/* ================================================================
   V. Yuvaraj Advocate – LIGHT THEME
   Palette: Ivory White + Deep Navy + Aged Gold
   Fonts: Playfair Display + DM Sans
================================================================ */

:root {
  /* Light Theme Colors */
  --navy:        #1A2744;
  --navy-mid:    #223059;
  --gold:        #B8912A;
  --gold-rich:   #C9A84C;
  --gold-light:  #E8C96E;
  --gold-pale:   #FDF3DC;
  --gold-border: rgba(184,145,42,0.25);

  --bg:          #FAFAF7;
  --bg-alt:      #F4F1EA;
  --bg-card:     #FFFFFF;
  --bg-section:  #F7F4EC;

  --text-dark:   #1A2744;
  --text-mid:    #374151;
  --text-muted:  #6B7280;
  --text-light:  #9CA3AF;

  --border:      #E5E1D6;
  --border-card: rgba(184,145,42,0.2);

  --shadow-sm:   0 2px 8px rgba(26,39,68,0.06);
  --shadow-md:   0 8px 28px rgba(26,39,68,0.10);
  --shadow-lg:   0 20px 60px rgba(26,39,68,0.14);
  --shadow-gold: 0 8px 28px rgba(184,145,42,0.30);

  --radius:      6px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s ease, transform 0.75s ease;
  transition-delay: var(--delay, 0s);
}
.reveal.reveal-right { transform: translateX(36px); }
.reveal.visible { opacity: 1; transform: none; }

/* ===== CONTAINER ===== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== SHARED SECTION STYLES ===== */
.section-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: .75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-title em { font-style: italic; color: var(--gold); }
.section-sub { font-size: .97rem; color: var(--text-muted); max-width: 540px; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .section-sub { margin: 0 auto; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .82rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(26,39,68,.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,39,68,.35);
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 4px 16px rgba(37,211,102,.25);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  background: #1ebe5d;
  box-shadow: 0 8px 24px rgba(37,211,102,.35);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  transition: var(--transition);
  background: transparent;
}
.navbar.scrolled {
  background: rgba(250,250,247,0.97);
  backdrop-filter: blur(16px);
  padding: .75rem 0;
  box-shadow: 0 2px 20px rgba(26,39,68,.1);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  max-width: 1160px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}
.nav-logo { display: flex; align-items: center; gap: .65rem; }
.logo-emblem { font-size: 1.6rem; color: var(--gold-rich); line-height: 1; }
.logo-name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}
/* White logo name when hero is showing and not scrolled */
.navbar:not(.scrolled) .logo-name,
.navbar:not(.scrolled) .logo-title { color: #fff; }
.navbar:not(.scrolled) .logo-emblem { color: var(--gold-light); }
.navbar:not(.scrolled) .nav-link { color: rgba(255,255,255,.85); }
.navbar:not(.scrolled) .nav-link:hover { color: var(--gold-light); }

.logo-title {
  display: block;
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-links { display: flex; align-items: center; gap: 1.75rem; }
.nav-link {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: color .3s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .3s;
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }
.nav-cta {
  background: var(--gold-rich);
  color: var(--navy);
  padding: .52rem 1.2rem;
  border-radius: var(--radius);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: var(--transition);
}
.nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-gold); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: relative;
  z-index: 1002;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  transition: var(--transition);
}
.navbar:not(.scrolled) .hamburger span { background: #fff; }
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: linear-gradient(145deg, var(--navy) 0%, #223059 55%, #2a3d70 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 5rem;
  width: 100%;
}
.hero-bg-shape {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 65% 45%, rgba(201,168,76,.10) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(255,255,255,.03) 0%, transparent 40%);
  pointer-events: none;
}
.hero-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}
.hero-badge {
  display: inline-block;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.4);
  color: var(--gold-light);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: .4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.4rem;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5.5vw, 4.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: .4rem;
}
.hero-role {
  font-size: .75rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.4rem;
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-style: italic;
  color: rgba(255,255,255,.82);
  line-height: 1.5;
  margin-bottom: 1.1rem;
}
.hero-desc {
  color: rgba(255,255,255,.58);
  font-size: .93rem;
  max-width: 490px;
  margin-bottom: 2rem;
  line-height: 1.85;
}
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(201,168,76,.2);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.stat-label {
  display: block;
  font-size: .67rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-top: .2rem;
}
.stat-divider { width: 1px; height: 38px; background: rgba(201,168,76,.2); }

/* ===== HERO CARD WITH PHOTO ===== */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
  overflow: visible;
}
.hero-card {
  background: #fff;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 300px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.08);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(201,168,76,.3);
}
.advocate-photo-wrap {
  position: relative;
  width: 100%;
  height: 310px;
  overflow: hidden;
  background: var(--navy);
}
.advocate-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: transform .5s ease;
}
.hero-card:hover .advocate-photo { transform: scale(1.04); }
.photo-stripe {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--gold-rich), var(--gold-light), var(--gold-rich));
}
.hero-card-body {
  padding: 1.5rem 1.6rem 1.75rem;
  text-align: center;
  background: #fff;
}
.hero-card-name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .2rem;
}
.hero-card-qual {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.hero-card-divider {
  height: 1px;
  background: var(--border);
  margin: 0 auto .9rem;
  width: 70%;
}
.hero-card-reg-label {
  font-size: .65rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .25rem;
}
.hero-card-regno {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .6rem;
}
.hero-card-court {
  font-size: .78rem;
  color: var(--text-muted);
}
.hero-card-seal {
  position: absolute;
  top: 2.5rem; right: -3rem;
  background: linear-gradient(135deg, var(--gold-rich), var(--gold-light));
  color: var(--navy);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .16em;
  padding: .4rem 2.5rem;
  transform: rotate(45deg);
  transform-origin: center;
}
.card-shadow-block {
  position: absolute;
  width: 240px; height: 340px;
  background: rgba(184,145,42,.12);
  border-radius: var(--radius-xl);
  bottom: -16px; right: -16px;
  z-index: 1;
  border: 1px solid rgba(184,145,42,.15);
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  color: rgba(255,255,255,.3);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, rgba(201,168,76,.6), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: .4; }
  50% { opacity: 1; }
}

/* ===== ABOUT ===== */
.about {
  padding: 7rem 0;
  background: var(--bg);
  overflow: hidden;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.about-text p {
  color: var(--text-mid);
  margin-bottom: 1.2rem;
  font-size: .97rem;
  line-height: 1.85;
}
.about-text strong { color: var(--navy); }
.credential-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.35rem;
  margin-bottom: .9rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.credential-card:hover {
  transform: translateX(6px);
  border-color: var(--gold-rich);
  box-shadow: var(--shadow-md);
}
.cred-icon {
  font-size: 1.4rem;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-pale);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.cred-label {
  font-size: .67rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .2rem;
}
.cred-value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

/* ===== PRACTICE AREAS ===== */
.practice {
  padding: 7rem 0;
  background: var(--bg-section);
  position: relative;
  overflow: hidden;
}
.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.practice-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.practice-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-rich), var(--gold-light));
  transform: scaleX(0);
  transition: transform .4s ease;
  transform-origin: left;
}
.practice-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-border);
  box-shadow: var(--shadow-md);
}
.practice-card:hover::before { transform: scaleX(1); }
.pc-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-pale);
  line-height: 1;
  margin-bottom: .5rem;
}
.pc-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  display: block;
}
.practice-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .6rem;
}
.practice-card p {
  font-size: .86rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ===== CONSULTATION ===== */
.consultation-inner {
  background: linear-gradient(140deg, var(--navy) 0%, #223059 60%, #1a3060 100%);
  padding: 7rem 0;
  position: relative;
  overflow: hidden;
}
.consultation-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(201,168,76,.08) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 30%, rgba(255,255,255,.03) 0%, transparent 45%);
  pointer-events: none;
}
.consult-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.consult-text .section-label { color: var(--gold-light); }
.consult-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.22;
  margin-bottom: 1.2rem;
}
.consult-title em { font-style: italic; color: var(--gold-light); }
.consult-desc { color: rgba(255,255,255,.6); margin-bottom: 2rem; line-height: 1.8; font-size: .95rem; }
.consult-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.consult-trust { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.trust-item {
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  letter-spacing: .06em;
}

/* Form */
.consult-form-wrap {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.consult-form h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.6rem;
}
.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .4rem;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  color: var(--text-dark);
  font-size: .9rem;
  transition: border-color .3s, box-shadow .3s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold-rich);
  box-shadow: 0 0 0 3px rgba(184,145,42,.12);
}
.btn-form-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  padding: .95rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  justify-content: center;
  display: flex;
  align-items: center;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.btn-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26,39,68,.3);
}
.form-note {
  text-align: center;
  font-size: .72rem;
  color: var(--text-light);
  margin-top: .75rem;
}

/* ===== CONTACT ===== */
.contact {
  padding: 7rem 0;
  background: var(--bg);
  overflow: hidden;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}
.contact-item {
  display: flex;
  gap: 1.1rem;
  padding: 1.35rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  margin-bottom: .9rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.contact-item:hover { border-color: var(--gold-rich); box-shadow: var(--shadow-md); }
.contact-icon {
  font-size: 1.3rem;
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-pale);
  border-radius: var(--radius);
  flex-shrink: 0;
}
.contact-label {
  font-size: .67rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: .3rem;
}
.contact-value { font-size: .93rem; color: var(--text-dark); line-height: 1.65; display: block; }
.contact-link { color: var(--navy); font-weight: 500; display: block; }
.contact-link:hover { color: var(--gold); }
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 430px;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 430px; border: none; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-logo { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.2rem; }
.footer-emblem { font-size: 1.75rem; color: var(--gold-rich); }
.footer-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}
.footer-qual {
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-rich);
}
.footer-about { font-size: .85rem; line-height: 1.8; }
.footer-col h4 {
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-rich);
  margin-bottom: 1.2rem;
  font-weight: 600;
}
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul li a,
.footer-col p a { font-size: .85rem; color: rgba(255,255,255,.55); transition: color .3s; }
.footer-col ul li a:hover,
.footer-col p a:hover { color: var(--gold-light); }
.footer-col p { font-size: .85rem; margin-bottom: .5rem; line-height: 1.6; }
.footer-disclaimer {
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(201,168,76,.1);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin: 2rem 0;
  font-size: .76rem;
  line-height: 1.75;
  color: rgba(255,255,255,.38);
}
.footer-disclaimer strong { color: rgba(255,255,255,.6); }
.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .76rem;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-bottom strong { color: rgba(255,255,255,.5); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-visual { justify-content: center; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-desc { margin: 0 auto 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
  .consult-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  /* Hide desktop nav, show hamburger */
  .nav-links { display: none; }
  .hamburger { display: flex; }

  /* Navbar must be position:relative context for the card */
  .navbar { overflow: visible; }

  /* Small dropdown card — sits right below navbar, top-right corner */
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 6px);
    right: 1rem;
    left: auto;
    width: 175px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(26,39,68,0.22), 0 0 0 1px rgba(184,145,42,0.18);
    padding: .45rem;
    gap: 2px;
    align-items: stretch;
    z-index: 9999;
    animation: menuFadeIn 0.18s ease;
  }

  @keyframes menuFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* Nav links */
  .nav-links.open .nav-link {
    color: var(--navy);
    font-size: .82rem;
    font-weight: 500;
    padding: .52rem .8rem;
    border-radius: 7px;
    letter-spacing: .05em;
    transition: background .18s, color .18s;
    display: block;
    text-align: left;
  }
  .nav-links.open .nav-link:hover {
    background: var(--gold-pale);
    color: var(--gold);
  }
  .nav-links.open .nav-link::after { display: none; }

  /* Divider above Call Now */
  .nav-links.open .nav-link:last-of-type {
    border-bottom: 1px solid var(--border);
    padding-bottom: .52rem;
    margin-bottom: .3rem;
  }

  /* Call Now button */
  .nav-links.open .nav-cta {
    display: block;
    text-align: center;
    font-size: .78rem;
    font-weight: 700;
    padding: .52rem .8rem;
    border-radius: 7px;
    background: var(--gold-rich);
    color: var(--navy);
    letter-spacing: .08em;
    transition: background .18s;
  }
  .nav-links.open .nav-cta:hover { background: var(--gold-light); }

  /* Hamburger bar color when scrolled + active */
  .navbar.scrolled .hamburger.active span { background: var(--navy); }

  /* Page layout fixes */
  .hero { padding: 7rem 0 5rem; }
  .practice-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .about, .practice, .contact { padding: 5rem 0; }
  .consultation-inner { padding: 5rem 0; }
}

@media (max-width: 480px) {
  .hero-actions, .consult-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .consult-actions .btn { justify-content: center; }
  .container { padding: 0 1.2rem; }
  .consult-form-wrap { padding: 1.75rem 1.2rem; }
  .hero-stats { gap: 1rem; }
  .hero-card { max-width: 260px; }
}