:root {
  --color-primary: #0f172a;
  --color-secondary: #ffffff;
  --color-accent: #d4af37;
  --color-tertiary: #e0e0e0;
  --color-muted: #6b7280;
  --font-serif: "Playfair Display", "Times New Roman", serif;
  --font-sans: "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: linear-gradient(135deg, #ffffff 0%, #fefefe 20%, #f8f8f8 40%, #f5f5f5 60%, #f8f8f8 80%, #ffffff 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

body {
  font-family: var(--font-sans);
  color: var(--color-primary);
  background: transparent;
  line-height: 1.6;
  min-height: 100vh;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
}

section {
  padding: 5rem clamp(1rem, 5vw, 6rem);
  background: linear-gradient(to right, #ffffff 0%, #f0f0f0 100%);
}

.eyebrow {
  letter-spacing: 0.25em;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  display: inline-block;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  color: var(--color-primary);
}

h1 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1rem, 4vw, 4rem);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  z-index: 10;
}

.site-header.scrolled {
  border-color: var(--color-tertiary);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  padding-block: 0.85rem;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--color-primary);
  z-index: 11;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 11;
  position: relative;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--color-primary);
  transition: all 0.3s ease;
  display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(15, 23, 42, 0.5);
  z-index: 9;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-primary);
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.3rem;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.main-nav a:hover {
  color: var(--color-accent);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.contact-btn,
.primary-btn {
  background: var(--color-accent);
  color: var(--color-secondary);
  border: none;
  padding: 0.7rem 1.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 180px;
  height: 46px;
  box-sizing: border-box;
}

.contact-btn:hover,
.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(212, 175, 55, 0.25);
  opacity: 0.92;
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
  padding-top: 8rem;
}

.hero-content .hero-subtext {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.primary-btn {
  background: var(--color-accent);
  color: var(--color-secondary);
  border: 2px solid var(--color-accent);
}

.secondary-btn {
  background: var(--color-primary);
  color: var(--color-secondary);
  border: 2px solid var(--color-primary);
  transition: all 0.3s ease;
  padding: 0.6rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
}

.secondary-btn:hover {
  background: #0a1120;
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(255, 255, 255, 0.1);
}

.hero-visual img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18);
}

.about {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: center;
}

.why-us {
  background: linear-gradient(to right, #ffffff 0%, #f0f0f0 100%);
}

.section-heading {
  max-width: 600px;
  margin-bottom: 3rem;
}

.why-grid,
.lawyer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

/* Card Base Styles with Frosted Glass Effect */
.why-card,
.practice-card,
.lawyer-card,
.testimonial {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.7) 0%, 
    rgba(245, 247, 250, 0.8) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.08);
  position: relative;
  overflow: hidden;
}

/* Add subtle overlay for better text contrast */
.why-card::before,
.practice-card::before,
.lawyer-card::before,
.testimonial::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.6) 0%, 
    rgba(255, 255, 255, 0.3) 100%);
  z-index: -1;
  border-radius: 18px;
}

/* Animation Classes */
.section-hidden {
  opacity: 0;
  transform: translateY(8rem);
  transition: all 1s;
}

.card-hidden {
  opacity: 0;
  transform: translateY(3rem);
  transition: all 0.8s;
}

.section-visible {
  opacity: 1;
  transform: translateY(0);
}

.card-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card Hover Effect */
.why-card:hover,
.practice-card:hover,
.lawyer-card:hover,
.testimonial:hover {
  transform: translateY(-5px) scale(1.01) !important;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Black Icons */
.why-card .icon-circle,
.practice-card .icon-circle,
.lawyer-card .icon-circle,
.testimonial .icon-circle,
.why-card svg,
.practice-card svg,
.lawyer-card svg,
.testimonial svg,
.why-card i,
.practice-card i,
.lawyer-card i,
.testimonial i {
  fill: #000000 !important;
  color: #000000 !important;
  stroke: #000000 !important;
}

/* Card Background Variations */
.why-card {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.75) 0%, 
    rgba(245, 247, 250, 0.85) 100%);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.why-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 18px;
  padding: 1.5px;
  background: linear-gradient(135deg, 
    rgba(210, 180, 100, 0.8) 0%, 
    rgba(180, 150, 80, 0.9) 50%, 
    rgba(210, 180, 100, 0.8) 100%);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  transition: all 0.4s ease;
  opacity: 0.5;
}

.why-card:hover::after {
  opacity: 0.8;
  transform: scale(1.01);
  box-shadow: 0 0 20px rgba(180, 150, 80, 0.2);
}

.practice-card {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.8) 0%, 
    rgba(248, 250, 252, 0.9) 100%);
}

.lawyer-card {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.85) 0%, 
    rgba(250, 252, 255, 0.95) 100%);
  text-align: center;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.lawyer-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 18px;
  padding: 1.5px;
  background: linear-gradient(135deg, 
    rgba(210, 180, 100, 0.8) 0%, 
    rgba(180, 150, 80, 0.9) 50%, 
    rgba(210, 180, 100, 0.8) 100%);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
  transition: all 0.4s ease;
  opacity: 0.5;
}

.lawyer-card:hover::after {
  opacity: 0.8;
  transform: scale(1.01);
  box-shadow: 0 0 20px rgba(180, 150, 80, 0.2);
}

.testimonial {
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.75) 0%, 
    rgba(245, 247, 250, 0.85) 100%);
}

.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #f3f3f3;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.practice {
  background: linear-gradient(to right, #ffffff 0%, #f0f0f0 100%);
}

.practice-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.9) 0%, 
    rgba(255, 250, 240, 0.95) 50%,
    rgba(255, 248, 235, 0.9) 100%);
  border: 1px solid rgba(212, 175, 55, 0.15);
  position: relative;
  overflow: hidden;
  padding: 1.5rem;
}

.practice-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 0.25rem;
  color: #000000;
}

.practice-content {
  flex: 1;
}

.practice-card h3 {
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.experience {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  padding-block: 4rem;
  background: var(--color-primary);
  color: var(--color-secondary);
}

.experience .stat {
  text-align: center;
  padding: 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.experience .stat span {
  display: block;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-accent);
}

.lawyers {
  background: linear-gradient(to right, #ffffff 0%, #f0f0f0 100%);
}

.lawyer-card img {
  border-radius: 14px;
  margin-bottom: 1.5rem;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.lawyer-card .title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.testimonials {
  background: linear-gradient(to right, #ffffff 0%, #f0f0f0 100%);
}

.testimonial-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
}

.testimonial {
  position: relative;
  height: auto;
  min-height: auto;
  padding: 1.5rem;
}

.quote-mark {
  font-size: 3rem;
  color: var(--color-tertiary);
  display: block;
  margin-bottom: 0.75rem;
}

.testimonial .author {
  margin-top: 0.75rem;
  font-weight: 600;
  color: var(--color-muted);
}

.contact {
  background: linear-gradient(to right, #ffffff 0%, #f0f0f0 100%);
}

.contact-grid {
  display: flex;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  display: grid;
  gap: 1.5rem;
  width: 100%;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.contact-form input,
.contact-form textarea {
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-tertiary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form textarea {
  border-radius: 18px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-feedback {
  min-height: 1rem;
  font-size: 0.9rem;
  color: var(--color-accent);
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--color-accent);
}

.site-footer {
  background: linear-gradient(135deg, #0b1120 0%, #0f172a 100%);
  color: var(--color-secondary);
  padding: 2.5rem 1.5rem 1rem;
  position: relative;
  font-size: 0.9rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212, 175, 55, 0.3), transparent);
}

.footer-brand {
  max-width: 250px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-top: 0.75rem;
  font-size: 0.9rem;
}

.site-footer h4 {
  font-family: var(--font-serif);
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--color-secondary);
  position: relative;
  display: inline-block;
  padding-bottom: 0.5rem;
}

.site-footer h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
}

/* Footer Navigation */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  white-space: nowrap;
  position: relative;
  padding: 0.25rem 0;
}

.footer-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width 0.3s ease;
}

.footer-nav a:hover {
  color: var(--color-accent);
}

.footer-nav a:hover::after {
  width: 100%;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Footer Contact */
.footer-contact p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.footer-contact i {
  color: var(--color-accent);
  width: 16px;
  text-align: center;
}

/* Footer Social */
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.8);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social a:hover {
  background: var(--color-accent);
  color: var(--color-primary);
  transform: translateY(-2px);
  border-color: transparent;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
}

/* Mobile Footer */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .footer-brand,
  .footer-nav,
  .footer-contact,
  .footer-social {
    width: 100%;
    text-align: center;
  }
  
  .footer-nav {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .footer-social {
    justify-content: center;
    margin-top: 0.5rem;
  }
}

@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .site-header {
    flex-wrap: nowrap;
    gap: 1rem;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0;
    box-shadow: -5px 0 30px rgba(15, 23, 42, 0.1);
    transition: right 0.3s ease;
    z-index: 10;
    overflow-y: auto;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav a {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    font-size: 1rem;
    width: 100%;
  }

  .main-nav a::after {
    display: none;
  }

  .contact-btn {
    display: none;
  }

  .practice-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 2.5rem;
    padding: 3rem clamp(1rem, 5vw, 4rem) 2rem;
  }

  .hero {
    padding-top: 6rem;
    min-height: auto;
  }

  .section-heading {
    margin-bottom: 2rem;
  }
}

@media (max-width: 600px) {
  section {
    padding: 3rem 1.25rem;
  }
  
  .about {
    display: flex;
    flex-direction: column;
  }
  
  .about-content {
    order: -1;
  }

  .logo {
    font-size: 1rem;
  }

  .site-header {
    padding: 1rem 1.25rem;
  }

  .main-nav {
    width: 100%;
    right: -100%;
  }

  .hero {
    padding-top: 5rem;
    gap: 2rem;
  }

  .hero-content .hero-subtext {
    font-size: 1rem;
  }

  .primary-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    white-space: normal;
    text-align: center;
  }

  .about,
  .hero {
    grid-template-columns: 1fr;
  }

  .why-grid,
  .lawyer-grid,
  .testimonial-list {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .experience {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 3rem 1.25rem;
  }

  .experience .stat {
    padding: 1rem;
  }

  .experience .stat span {
    font-size: 1.8rem;
  }

  .contact-grid {
    max-width: 100%;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 3rem 1.25rem 2rem;
    text-align: center;
  }

  .site-footer > div:first-child {
    max-width: 100%;
  }

  .site-footer h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .site-footer ul {
    align-items: center;
  }

  .testimonial {
    padding: 1.25rem;
  }

  .quote-mark {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
  }

  .section-heading {
    margin-bottom: 1.5rem;
  }
}

