/* ============================================
   Greenwood Elder Law — Main Stylesheet
   Colors: #1F304C | #354B66 | #8191A2 | #FEFEFE | #FFFFFF
   ============================================ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --indigo:    #1F304C;
  --blue:      #354B66;
  --gold:      #D4AF37;
  --gold-shine: #F5E070;
  --gold-dark:  #9A7A0A;
  --gold-grad: linear-gradient(135deg, #9A7A0A 0%, #F5E070 38%, #D4AF37 55%, #9A7A0A 100%);
  --steel:     #6B7E96;
  --light:     #F8FAFC;
  --white:     #FFFFFF;
  --text:      #111827;
  --muted:     #4B5563;
  --border:    #C9D3DE;
  --bg-alt:    #E4EBF3;
  --shadow:    0 4px 8px -1px rgba(0,0,0,.14), 0 2px 4px -1px rgba(0,0,0,.09);
  --shadow-lg: 0 12px 28px -5px rgba(0,0,0,.18), 0 6px 12px -3px rgba(0,0,0,.11);
  --radius:    8px;
  --ease:      .28s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--light);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--blue); text-decoration: none; transition: color var(--ease); }
a:hover { color: var(--indigo); }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--indigo);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem,   5vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.4rem);  }
h3 { font-size: clamp(1.15rem, 2vw, 1.6rem);  }
h4 { font-size: 1.15rem; font-family: 'Inter', sans-serif; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ── Skip Link ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--blue);
  color: var(--white);
  padding: .5rem 1.25rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: .875rem;
  font-weight: 600;
  z-index: 10000;
  transition: top .2s;
}
.skip-link:focus { top: 0; color: var(--white); }

/* ── Contact Strip ── */
.contact-strip {
  background: var(--indigo);
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .02em;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: .55rem 1.5rem;
  flex-wrap: wrap;
}
.contact-strip a { color: rgba(255,255,255,.85); }
.contact-strip a:hover { color: #fff; }
.contact-strip .cs-item { display: flex; align-items: center; gap: .45rem; }
.contact-strip i { font-size: .85rem; }

/* ── Site Header ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow var(--ease);
}
.site-header.scrolled {
  background: var(--indigo);
  border-bottom-color: transparent;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.site-header.scrolled .nav-links a {
  color: rgba(255,255,255,.82);
}
.site-header.scrolled .nav-links a:hover,
.site-header.scrolled .nav-links a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.site-header.scrolled .nav-links .nav-cta a {
  background: var(--blue);
  color: #fff;
}
.site-header.scrolled .nav-links .nav-cta a:hover {
  background: var(--indigo);
}
.site-header.scrolled .hamburger span { background: #fff; }

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1.5rem;
  max-width: 1180px;
  margin-inline: auto;
}

.logo-link img { height: 68px; width: auto; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: .2rem;
}
.nav-links a {
  display: block;
  padding: .5rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--indigo);
  border-radius: 5px;
  transition: all var(--ease);
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--blue);
  color: #fff;
}
.nav-links .nav-cta a {
  background: var(--blue);
  color: #fff;
  padding: .55rem 1.25rem;
}
.nav-links .nav-cta a:hover { background: var(--indigo); color: #fff; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  border-radius: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--indigo);
  border-radius: 2px;
  transition: all var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Header Spacer ── */
.header-spacer { height: 100px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn-white   { background: #fff; color: var(--indigo); border-color: #fff; }
.btn-white:hover { background: transparent; color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Hero (Home) ── */
.hero {
  position: relative;
  background:
    linear-gradient(140deg, rgba(31,48,76,.91) 0%, rgba(31,48,76,.78) 50%, rgba(53,75,102,.85) 100%),
    url('../Backgroundwebsite.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  color: #fff;
  padding: 7rem 1.5rem 6rem;
  text-align: center;
  overflow: hidden;
}
.hero-inner {
  position: relative;
  max-width: 820px;
  margin-inline: auto;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  color: rgba(255,255,255,.9);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .4rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.hero p  { font-size: 1.15rem; color: rgba(255,255,255,.88); max-width: 580px; margin-inline: auto; margin-bottom: 2.5rem; }
.hero-phone {
  margin-top: 2.5rem;
  font-size: .9rem;
  color: rgba(255,255,255,.7);
}
.hero-phone a { color: #fff; font-weight: 700; font-size: 1.2rem; }
.hero-phone a:hover { color: rgba(255,255,255,.85); }

/* ── Page Hero (inner pages) ── */
.page-hero {
  background: linear-gradient(140deg, var(--indigo) 0%, var(--blue) 100%);
  color: #fff;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: .75rem; }
.page-hero p  { color: rgba(255,255,255,.82); font-size: 1.05rem; max-width: 520px; margin-inline: auto; }
.breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .4; }

/* ── Sections ── */
.section      { padding: 5.5rem 0; }
.section-alt  { background: var(--bg-alt); }
.section-dark { background: var(--indigo); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: rgba(255,255,255,.8); }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label  {
  display: inline-block;
  color: var(--steel);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.section-header h2 { margin-bottom: .75rem; }
.section-header p  { color: var(--muted); max-width: 580px; margin-inline: auto; font-size: 1.05rem; }
.divider {
  width: 52px; height: 3px;
  background: var(--blue);
  border-radius: 2px;
  margin: 1rem auto;
}
.section-dark .section-label { color: var(--steel); }
.section-dark .divider { background: rgba(255,255,255,.4); }

/* ── Cards (generic) ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: transform var(--ease), box-shadow var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 54px; height: 54px;
  background: rgba(53,75,102,.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.75rem; }

/* ── Service Cards ── */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border-top: 3px solid transparent;
  transition: all var(--ease);
}
.service-card:hover {
  border-top-color: var(--blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card .card-icon { margin-bottom: 1.25rem; }
.service-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.service-card p  { color: var(--muted); font-size: .95rem; flex: 1; }
.service-card a  {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--blue);
  font-weight: 600;
  font-size: .875rem;
  margin-top: 1.25rem;
}
.service-card a:hover { color: var(--indigo); }

/* ── Service Detail (services page) ── */
.service-detail {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 1.5rem;
  align-items: start;
  transition: box-shadow var(--ease);
}
.service-detail:hover { box-shadow: var(--shadow-lg); }
.service-detail-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, var(--blue), var(--indigo));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.service-detail h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.service-detail p  { color: var(--muted); font-size: .95rem; margin: 0; }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--indigo);
  padding: 3.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1rem;
  text-align: center;
}
.stat-num   { font-family: 'Playfair Display', serif; font-size: 3rem; font-weight: 700; color: #fff; line-height: 1; margin-bottom: .4rem; }
.stat-label { color: rgba(255,255,255,.7); font-size: .875rem; font-weight: 500; }

/* ── Why Choose Us ── */
.why-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.why-item:last-child { border-bottom: none; }
.why-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: rgba(53,75,102,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 1.1rem;
}
.why-item h4 { font-size: 1.05rem; color: var(--indigo); margin-bottom: .3rem; }
.why-item p  { color: var(--muted); font-size: .9rem; margin: 0; }

/* ── Split Layout ── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.split-visual {
  background: linear-gradient(140deg, var(--indigo), var(--blue));
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.split-visual img {
  width: 70%;
  filter: brightness(0) invert(1);
  opacity: .85;
}
.split-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

/* Real-photo variant (as opposed to the logo silhouette treatment above) */
.split-visual.photo { background: var(--bg-alt); }
.split-visual.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: none;
  opacity: 1;
}
.split-visual.photo::after { content: none; }
.split-visual.photo.portrait { aspect-ratio: 3/4; }

.tag-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.tag {
  background: rgba(53,75,102,.1);
  color: var(--blue);
  padding: .35rem .9rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
}

/* ── CTA Section ── */
.cta-section {
  background: linear-gradient(140deg, var(--blue) 0%, var(--indigo) 100%);
  color: #fff;
  padding: 5.5rem 0;
  text-align: center;
}
.cta-section h2 { color: #fff; margin-bottom: .75rem; }
.cta-section p  { color: rgba(255,255,255,.85); font-size: 1.05rem; max-width: 560px; margin-inline: auto; margin-bottom: 2.25rem; }
.cta-phone {
  margin-top: 2rem;
  color: rgba(255,255,255,.75);
  font-size: .9rem;
}
.cta-phone a { color: #fff; font-weight: 700; font-size: 1.3rem; }

/* ── Review Ticker / Rolling Banner ── */
.ticker-section {
  background: var(--bg-alt);
  padding: 2rem 0 2.5rem;
  position: relative;
  overflow: hidden;
}
.ticker-section-label {
  text-align: center;
  margin-bottom: 1.5rem;
}
/* Edge fade masks */
.ticker-outer {
  position: relative;
  overflow: hidden;
}
.ticker-outer::before,
.ticker-outer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 160px;
  z-index: 2;
  pointer-events: none;
}
.ticker-outer::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-alt) 20%, transparent);
}
.ticker-outer::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-alt) 20%, transparent);
}

.ticker-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: tickerScroll 80s linear infinite;
  padding: .75rem .5rem;
  cursor: default;
}
/* Pause on hover of the whole outer wrapper */
.ticker-outer:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-card {
  width: 290px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  border-bottom: 3px solid var(--gold);
  box-shadow: 0 4px 14px rgba(0,0,0,.08),
              0 0 0 1px rgba(212,175,55,.08);
  transition: box-shadow .3s ease, transform .3s ease;
  overflow: hidden;
}
.ticker-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(212,175,55,.15);
  pointer-events: none;
}
.ticker-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(212,175,55,.28),
              0 0 0 1.5px rgba(212,175,55,.35);
}
.ticker-card .t-stars  { color: #F59E0B; font-size: .9rem; margin-bottom: .6rem; letter-spacing: .05em; }
.ticker-card .t-text   { font-size: .875rem; font-style: italic; color: var(--text); line-height: 1.65; margin-bottom: .75rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ticker-card .t-author { font-size: .8rem; font-weight: 700; color: var(--indigo); }
.ticker-card .t-quote  { position: absolute; top: .75rem; right: 1rem; font-size: 3rem; color: var(--steel); opacity: .1; line-height: 1; font-family: Georgia, serif; user-select: none; }

/* ── College Badge ── */
.credential-badge {
  margin-top: 2rem;
  padding: 1.75rem;
  background: var(--indigo);
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.credential-badge img {
  height: 90px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(1.1) drop-shadow(0 0 8px rgba(255,255,255,.25));
}
.credential-badge-text h4 { font-size: 1rem; color: #fff; margin-bottom: .3rem; font-family: 'Inter', sans-serif; }
.credential-badge-text p  { font-size: .875rem; color: rgba(255,255,255,.75); margin: 0; line-height: 1.55; }

/* ── Review Cards ── */
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  position: relative;
  transition: transform var(--ease), box-shadow var(--ease);
}
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.review-stars { color: #F59E0B; font-size: 1rem; margin-bottom: .75rem; letter-spacing: .05em; }
.review-text  { color: var(--text); font-style: italic; line-height: 1.75; margin-bottom: 1.25rem; font-size: .95rem; }
.review-author { font-weight: 700; color: var(--indigo); font-size: .875rem; }
.review-meta   { color: var(--muted); font-size: .8rem; margin-top: .2rem; }
.quote-mark {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--steel);
  opacity: .12;
  font-family: Georgia, serif;
  user-select: none;
}

/* ── Rating Badge ── */
.rating-badges { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }
.rating-badge {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 2rem;
  text-align: center;
  min-width: 150px;
}
.rating-score { font-size: 2.5rem; font-weight: 800; color: var(--indigo); font-family: 'Playfair Display', serif; line-height: 1; }
.rating-source { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-top: .25rem; }
.rating-stars  { color: #F59E0B; font-size: .9rem; margin-top: .3rem; }

/* ── FAQ Accordion ── */
.faq-list { max-width: 820px; margin-inline: auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
}
.faq-btn {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: var(--white);
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  color: var(--indigo);
  transition: background var(--ease);
}
.faq-btn:hover { background: var(--bg-alt); }
.faq-btn[aria-expanded="true"] { background: var(--indigo); color: #fff; }
.faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform var(--ease);
}
.faq-btn[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-body {
  display: none;
  padding: 1.25rem 1.5rem;
  color: var(--text);
  line-height: 1.75;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.faq-body.open { display: block; }
.faq-body p:last-child { margin-bottom: 0; }

/* ── Forms ── */
.form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group:last-child { margin-bottom: 0; }
.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--indigo);
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(53,75,102,.12);
}
.form-group textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: .8rem; color: var(--muted); margin-top: .4rem; }

/* ── Contact Page ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start; }
.contact-info {
  background: var(--indigo);
  border-radius: var(--radius);
  padding: 2.5rem;
  color: rgba(255,255,255,.85);
}
.contact-info h3 { color: #fff; margin-bottom: 2rem; font-size: 1.4rem; }
.c-detail { display: flex; gap: 1rem; margin-bottom: 1.75rem; align-items: flex-start; }
.c-detail:last-child { margin-bottom: 0; }
.c-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,.9);
}
.c-text strong { display: block; color: #fff; margin-bottom: .2rem; font-size: .95rem; }
.c-text span, .c-text a { color: rgba(255,255,255,.75); font-size: .9rem; line-height: 1.6; }
.c-text a:hover { color: #fff; }

/* ── Map Embed ── */
.map-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 2rem;
}
.map-wrap iframe { display: block; width: 100%; height: 280px; border: 0; }

/* ── Attorney Bio ── */
.attorney-bio {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3.5rem;
  align-items: start;
}
.attorney-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-lg);
}
.attorney-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: none;
  opacity: 1;
}
.cred-list { list-style: none; margin-top: 1.5rem; }
.cred-list li {
  padding: .6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}
.cred-list li:last-child { border-bottom: none; }
.cred-list li i { color: var(--blue); margin-top: .2rem; flex-shrink: 0; }

/* ── Privacy / Terms ── */
.legal-content { max-width: 820px; margin-inline: auto; }
.legal-content h2 { font-size: 1.65rem; margin: 2.5rem 0 1rem; padding-top: 1rem; }
.legal-content h3 { font-size: 1.2rem; margin: 1.75rem 0 .6rem; }
.legal-content p  { color: var(--text); line-height: 1.8; font-size: .975rem; }
.legal-content ul {
  margin: .75rem 0 1rem 1.5rem;
  color: var(--text);
  font-size: .975rem;
  line-height: 1.8;
}
.legal-content ul li { margin-bottom: .4rem; }
.legal-content .updated {
  display: inline-block;
  background: rgba(53,75,102,.08);
  color: var(--blue);
  padding: .35rem .9rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  margin-bottom: 2rem;
}
.legal-divider { border: none; border-top: 2px solid var(--border); margin: 3rem 0; }

/* ── Area Coverage ── */
.area-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.area-tag {
  background: rgba(53,75,102,.08);
  color: var(--blue);
  padding: .4rem 1rem;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
}

/* ── Intro Banner ── */
.intro-banner {
  background: var(--bg-alt);
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
}
.intro-banner p { color: var(--text); font-size: 1.05rem; line-height: 1.75; margin: 0; }

/* ── Accessibility Widget ── */
.a11y-trigger {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 9999;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.25);
  transition: all var(--ease);
  font-size: 1.4rem;
}
.a11y-trigger:hover { background: var(--indigo); transform: scale(1.08); }

.a11y-panel {
  position: fixed;
  bottom: 5.5rem; right: 2rem;
  z-index: 9998;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  width: 260px;
  display: none;
}
.a11y-panel.open { display: block; }
.a11y-panel-title {
  font-size: .875rem;
  font-weight: 700;
  color: var(--indigo);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
  font-family: 'Inter', sans-serif;
}
.a11y-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .55rem 0;
  border-bottom: 1px solid var(--border);
}
.a11y-row:last-of-type { border-bottom: none; }
.a11y-row-label { font-size: .875rem; color: var(--text); font-weight: 500; }
.a11y-btns { display: flex; gap: .3rem; }
.a11y-btns button {
  width: 30px; height: 30px;
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  border-radius: 5px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 700;
  color: var(--indigo);
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.a11y-btns button:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.a11y-switch {
  position: relative;
  width: 44px; height: 24px;
}
.a11y-switch input { opacity: 0; width: 0; height: 0; }
.a11y-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  transition: background .2s;
}
.a11y-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px; left: 3px;
  transition: left .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.a11y-switch input:checked + .a11y-slider { background: var(--blue); }
.a11y-switch input:checked + .a11y-slider::before { left: 23px; }

.a11y-reset-btn {
  width: 100%;
  margin-top: 1rem;
  padding: .5rem;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: .825rem;
  font-weight: 600;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  transition: all .2s;
}
.a11y-reset-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ── Accessibility Modes ──
   Filter is applied to content containers, NOT body.
   This keeps the fixed a11y widget always visible. */

body.high-contrast .contact-strip,
body.high-contrast .site-header,
body.high-contrast main,
body.high-contrast .site-footer {
  filter: contrast(145%) brightness(1.08);
}
body.grayscale .contact-strip,
body.grayscale .site-header,
body.grayscale main,
body.grayscale .site-footer {
  filter: grayscale(100%);
}
body.high-contrast.grayscale .contact-strip,
body.high-contrast.grayscale .site-header,
body.high-contrast.grayscale main,
body.high-contrast.grayscale .site-footer {
  filter: contrast(145%) brightness(1.08) grayscale(100%);
}

/* a11y widget — always fully visible regardless of mode */
.a11y-trigger,
.a11y-panel { filter: none !important; isolation: isolate; }

body.text-lg { font-size: 18px; }
body.text-xl { font-size: 20px; }
body.text-sm { font-size: 14px; }

/* ── Footer ── */
.site-footer {
  background: var(--indigo);
  color: rgba(255,255,255,.75);
  padding: 5rem 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
}
.footer-logo { height: 68px; margin-bottom: 1.25rem; }
.footer-about p { font-size: .9rem; line-height: 1.75; }
.footer-col h5 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .6rem; }
.footer-col ul li a { color: rgba(255,255,255,.7); font-size: .9rem; transition: color var(--ease); }
.footer-col ul li a:hover { color: #fff; }
.footer-col ul li span { color: rgba(255,255,255,.7); font-size: .9rem; line-height: 1.6; display: block; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .825rem;
  color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: rgba(255,255,255,.9); }
.footer-links { display: flex; gap: 1.5rem; }

/* ── Navy & Gold Accents ── */
.contact-strip { border-bottom: 2px solid var(--indigo); }

/* Gold section underline — metallic gradient */
.section-header h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: var(--gold-grad);
  margin: .9rem auto 0;
  border-radius: 2px;
  box-shadow: 0 1px 6px rgba(212,175,55,.45);
}
.split-text h2::after,
.attorney-bio h2::after { display: none; }

/* Gold dividers — metallic gradient */
.divider {
  background: var(--gold-grad);
  box-shadow: 0 1px 6px rgba(212,175,55,.4);
}

/* Gold label accent dot — shiny */
.section-label { position: relative; padding-left: 1rem; }
.section-label::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  background: radial-gradient(circle at 35% 35%, var(--gold-shine), var(--gold) 55%, var(--gold-dark));
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(212,175,55,.55);
}

/* Card hovers — gold top, navy border */
.service-card:hover { border-top-color: var(--gold); }
.card:hover { border: 1px solid rgba(31,48,76,.25); box-shadow: var(--shadow-lg); }

/* Structural borders — deep navy */
.stats-bar   { border-top: 4px solid var(--indigo); }
.cta-section { border-top: 4px solid var(--gold); }
.site-footer { border-top: 4px solid var(--indigo); }

/* Gold card-icon accent — metallic */
.card-icon {
  border-bottom: 2px solid var(--gold);
  padding-bottom: .15rem;
  border-image: var(--gold-grad) 1;
}

/* FAQ open — deep navy */
.faq-btn[aria-expanded="true"] { background: var(--indigo); color: #fff; }

/* Buttons — indigo primary */
.btn-primary       { background: var(--indigo); border-color: var(--indigo); }
.btn-primary:hover { background: var(--blue);   border-color: var(--blue); color: #fff; }
.btn-outline:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }

/* Nav hover — indigo */
.nav-links a:hover, .nav-links a.active { background: var(--indigo); color: #fff; }

/* Review hover — gold bottom */
.review-card { border-bottom: 3px solid transparent; }
.review-card:hover { border-bottom-color: var(--gold); }

/* Gold hero eyebrow */
.hero-eyebrow { background: rgba(196,151,58,.2); border-color: rgba(196,151,58,.45); color: #f5d48e; }

/* Gold phone link accent */
.hero-phone a, .cta-phone a { color: #f5d48e; }
.hero-phone a:hover, .cta-phone a:hover { color: #fff; }

/* Gold stat numbers — metallic gradient text */
.stat-num {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 1px 3px rgba(212,175,55,.4));
}

/* Gold why-icon — metallic */
.why-icon {
  border: 1.5px solid var(--gold);
  background: linear-gradient(135deg, rgba(154,122,10,.12), rgba(245,224,112,.08));
  color: var(--gold);
  box-shadow: inset 0 1px 2px rgba(245,224,112,.2);
}

/* Gold CTA border — shiny */
.cta-section { border-top: 4px solid var(--gold); border-image: var(--gold-grad) 1; }

/* Gold review hover */
.review-card:hover { border-bottom-color: var(--gold); }

/* Gold hero eyebrow — shimmer animation */
.hero-eyebrow {
  background: linear-gradient(110deg, rgba(154,122,10,.25) 0%, rgba(245,224,112,.22) 40%, rgba(212,175,55,.18) 60%, rgba(154,122,10,.25) 100%);
  background-size: 200% 100%;
  border-color: rgba(212,175,55,.5);
  color: var(--gold-shine);
  animation: eyebrowShimmer 3.5s linear infinite;
  text-shadow: 0 0 12px rgba(245,224,112,.5);
}

/* Hero headline gold glow */
.hero h1 {
  text-shadow: 0 2px 8px rgba(0,0,0,.25), 0 0 40px rgba(212,175,55,.08);
}

/* Hero phone link — golden glow */
.hero-phone a, .cta-phone a {
  color: var(--gold-shine);
  text-shadow: 0 0 10px rgba(245,224,112,.55);
}
.hero-phone a:hover, .cta-phone a:hover {
  color: #fff;
  text-shadow: none;
}

/* ── Legal Icon Animations ── */
@keyframes eyebrowShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes scaleRock {
  from { transform: rotate(-11deg); }
  to   { transform: rotate(11deg); }
}

@keyframes gavelBang {
  0%, 30%    { transform: rotate(-40deg); }
  47%        { transform: rotate(0deg); }
  51%        { transform: rotate(5deg); }
  55%        { transform: rotate(-5deg); }
  62%, 100%  { transform: rotate(-40deg); }
}

@keyframes impactFlash {
  0%, 30%, 65%, 100% { opacity: 0; transform: scale(.8); }
  47%, 53%           { opacity: 1; transform: scale(1); }
}

@keyframes goldGlow {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(212,175,55,.35)); }
  50%      { filter: drop-shadow(0 0 16px rgba(245,224,112,.7)); }
}

@keyframes courthouseFloat {
  0%, 100% { transform: translateY(0px); opacity: .18; }
  50%      { transform: translateY(-8px); opacity: .25; }
}

@keyframes starTwinkle {
  0%, 100% { opacity: 1; transform: scale(1);   filter: drop-shadow(0 0 5px rgba(245,224,112,.9)); }
  50%      { opacity: .5; transform: scale(.82); filter: drop-shadow(0 0 1px rgba(245,224,112,.2)); }
}

@keyframes letterPeek {
  0%, 100% { transform: translateY(0px); }
  40%, 60% { transform: translateY(-20px); }
}

@keyframes envelopePulse {
  0%, 100% { filter: drop-shadow(0 0 6px rgba(255,255,255,.2)); }
  50%      { filter: drop-shadow(0 0 14px rgba(255,255,255,.45)); }
}

/* Hero animation wrappers */
.hero-anim-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  pointer-events: none;
}
.hero-courthouse {
  color: rgba(255,255,255,.9);
  animation: courthouseFloat 5s ease-in-out infinite, goldGlow 4s ease-in-out infinite;
  overflow: visible;
}
.hero-stars-svg {
  overflow: visible;
  animation: envelopePulse 3s ease-in-out infinite;
}
.hero-stars-svg text {
  fill: var(--gold-shine);
}
.hero-envelope {
  color: rgba(255,255,255,.85);
  animation: envelopePulse 3.5s ease-in-out infinite;
  overflow: visible;
}

/* Hero background scales decoration */
.hero { isolation: isolate; }
.hero-scales-bg {
  position: absolute;
  right: 6%;
  top: 50%;
  transform: translateY(-50%);
  width: 280px;
  max-width: 30%;
  opacity: .13;
  pointer-events: none;
  color: var(--gold-shine);
  animation: goldGlow 4s ease-in-out infinite;
  z-index: 0;
}
.hero-inner { position: relative; z-index: 1; }

/* Inline legal icon blocks */
.legal-anim-block {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}
.legal-anim-block svg {
  overflow: visible;
  color: var(--gold);
  filter: drop-shadow(0 2px 6px rgba(212,175,55,.35));
  animation: goldGlow 3.5s ease-in-out infinite;
}

/* Gavel section decoration */
.gavel-decor {
  display: flex;
  justify-content: center;
  padding: 2rem 0 .5rem;
  opacity: .85;
}
.gavel-decor svg {
  color: var(--gold);
  filter: drop-shadow(0 2px 8px rgba(212,175,55,.4));
  overflow: visible;
  animation: goldGlow 3s ease-in-out infinite;
}

/* ── Motion & Animations ── */

/* Keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(.94); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196,151,58,0); }
  50%       { box-shadow: 0 0 0 6px rgba(196,151,58,.18); }
}

/* Hero — staggered entrance */
.hero-inner > * {
  opacity: 0;
  animation: fadeUp .75s ease forwards;
}
.hero-inner > *:nth-child(1) { animation-delay: .1s; }
.hero-inner > *:nth-child(2) { animation-delay: .27s; }
.hero-inner > *:nth-child(3) { animation-delay: .44s; }
.hero-inner > *:nth-child(4) { animation-delay: .6s; }
.hero-inner > *:nth-child(5) { animation-delay: .75s; }

/* Page hero — entrance */
.page-hero .breadcrumb { opacity: 0; animation: fadeIn .5s ease .05s forwards; }
.page-hero h1          { opacity: 0; animation: fadeUp .65s ease .15s forwards; }
.page-hero p           { opacity: 0; animation: fadeUp .65s ease .3s forwards; }

/* Scroll reveal — base states */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .65s cubic-bezier(.22,1,.36,1),
              transform .65s cubic-bezier(.22,1,.36,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-38px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1),
              transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal-left.in-view { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(38px);
  transition: opacity .7s cubic-bezier(.22,1,.36,1),
              transform .7s cubic-bezier(.22,1,.36,1);
}
.reveal-right.in-view { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(.93);
  transition: opacity .6s cubic-bezier(.22,1,.36,1),
              transform .6s cubic-bezier(.22,1,.36,1);
}
.reveal-scale.in-view { opacity: 1; transform: scale(1); }

/* Stagger delays for grid children */
.stagger-grid > *:nth-child(1)  { transition-delay: 0s;    }
.stagger-grid > *:nth-child(2)  { transition-delay: .09s;  }
.stagger-grid > *:nth-child(3)  { transition-delay: .18s;  }
.stagger-grid > *:nth-child(4)  { transition-delay: .27s;  }
.stagger-grid > *:nth-child(5)  { transition-delay: .36s;  }
.stagger-grid > *:nth-child(6)  { transition-delay: .45s;  }
.stagger-grid > *:nth-child(7)  { transition-delay: .54s;  }
.stagger-grid > *:nth-child(8)  { transition-delay: .63s;  }
.stagger-grid > *:nth-child(9)  { transition-delay: .72s;  }

/* Gold pulse on CTA buttons */
.cta-section .btn-white:hover { animation: goldPulse .9s ease; }

/* Smooth underline on nav links */
.nav-links li { position: relative; }
.nav-links a  { position: relative; overflow: hidden; }

/* Smooth card transform upgrade */
.card, .service-card, .review-card, .service-detail {
  transition: transform .35s cubic-bezier(.22,1,.36,1),
              box-shadow .35s cubic-bezier(.22,1,.36,1),
              border-color .25s ease;
}

/* Contact strip fade-slide on load */
.contact-strip {
  animation: fadeIn .5s ease both;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ── Utility ── */
.text-center  { text-align: center; }
.text-muted   { color: var(--muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-4 { margin-bottom: 2rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .footer-grid     { grid-template-columns: 1fr 1fr; }
  .stats-grid      { grid-template-columns: repeat(2,1fr); }
  .grid-4          { grid-template-columns: repeat(2,1fr); }
  .attorney-bio    { grid-template-columns: 240px 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: .75rem 1.25rem 1rem;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: .75rem 1rem; }
  .nav-links .nav-cta a { text-align: center; }

  /* The mobile dropdown always has a white background (see .nav-links above),
     but .site-header.scrolled turns nav text near-white for the desktop navy
     header bar. Force it back to readable dark text inside the dropdown. */
  .site-header.scrolled .nav-links a {
    color: var(--indigo);
  }
  .site-header.scrolled .nav-links a:hover,
  .site-header.scrolled .nav-links a.active {
    background: var(--blue);
    color: #fff;
  }

  .header-spacer { height: 86px; }
  /* background-attachment: fixed is unreliable on mobile browsers and can
     fail to paint at all; fall back to normal scrolling background. */
  .hero { background-attachment: scroll; padding: 5rem 1.5rem 4rem; }
  .page-hero { padding: 5rem 1.5rem 3rem; }
  .split, .attorney-bio, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse { direction: ltr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-about { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .contact-strip { gap: .75rem; font-size: .75rem; }
  .btn-group { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .stats-grid  { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .a11y-panel  { right: 1rem; width: calc(100vw - 2rem); }
  .a11y-trigger { right: 1rem; bottom: 1rem; }
  .rating-badges { flex-direction: column; align-items: center; }
}
