﻿:root {
  --forest: #16483f;
  --sage: #789887;
  --gold: #c59b5a;
  --cream: #fffdf8;
  --ink: #1e3733;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

.font-display { font-family: Georgia, serif; }
.glass { background: rgba(255,253,248,.94); backdrop-filter: blur(12px); }
img { display: block; max-width: 100%; }
a { transition: color .2s ease, background-color .2s ease, transform .2s ease; }

.site-topbar { font-size: .75rem; }
.site-topbar .topbar-meta { min-width: 0; }
.site-header-shell { position: relative; }

.logo-link {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1;
}

.logo-frame {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: min(72vw, 380px);
}

.logo-mark {
  width: auto;
  height: 4.8rem;
  max-width: 100%;
  max-height: 5.75rem;
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 8px 16px rgba(22,72,63,.08));
}

.menu-button {
  display: inline-flex;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .28rem;
  border: 1px solid rgba(120,152,135,.45);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  color: var(--forest);
  box-shadow: 0 8px 20px rgba(22,72,63,.08);
}

.menu-button span {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.nav-link { position: relative; display: inline-flex; align-items: center; }
.nav-link:after { content: ""; position: absolute; left: 0; bottom: -7px; width: 0; height: 1px; background: var(--gold); transition: .25s; }
.nav-link:hover:after,
.nav-link.active:after { width: 100%; }
.nav-panel { transition: opacity .25s ease, transform .25s ease, max-height .25s ease; }

.eyebrow { letter-spacing: .18em; text-transform: uppercase; }
.page-hero { background: linear-gradient(135deg,#f7f3e9,#fffdf8,#e5efe7); }
.hero-card { box-shadow: 0 18px 45px rgba(22,72,63,.08); }
.page-hero h1 { max-width: 13ch; }

@media (min-width: 768px) {
  .menu-button { display: none; }
}

@media (max-width: 767px) {
  .page-hero { padding-top: 4rem!important; padding-bottom: 4rem!important; }
  .page-hero h1 { font-size: clamp(2.2rem,7vw,3.2rem); line-height: 1.08; max-width: none; }
  .page-hero .hero-actions a { width: 100%; justify-content: center; text-align: center; }
  .page-hero .hero-card { padding: 1.4rem; }
  .page-hero .hero-card .h-64 { height: 16rem; }

  .site-topbar { line-height: 1.35; }
  .site-topbar > div { min-height: 2.25rem; }
  .site-topbar .topbar-meta {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: .2rem .75rem;
    text-align: center;
  }

  .site-header-shell {
    min-height: 6.25rem;
    padding: .75rem 1rem;
    gap: .85rem;
  }

  .logo-link { flex: 1 1 auto; min-width: 0; }
  .logo-frame { max-width: calc(100vw - 4.75rem); }
  .logo-mark {
    height: 5.25rem;
    max-height: 5.25rem;
    max-width: calc(100vw - 4.75rem);
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + .55rem);
    left: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: .85rem;
    border: 1px solid rgba(22,72,63,.12);
    border-radius: .9rem;
    background: #fffdf8;
    box-shadow: 0 18px 45px rgba(0,0,0,.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
  }

  .nav-panel.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-panel a { width: 100%; padding: .72rem .25rem; border-bottom: 1px solid rgba(22,72,63,.08); }
  .nav-panel a:last-child { border-bottom: none; margin-top: .35rem; padding: .75rem 1rem; }
  .nav-panel .bg-\[#16483f\] { width: 100%; text-align: center; }
}

@media (max-width: 420px) {
  .site-topbar .topbar-meta { font-size: .68rem; }
  .site-header-shell { min-height: 5.5rem; padding-inline: .75rem; }
  .logo-mark { height: 4.65rem; max-height: 4.65rem; }
  .menu-button { width: 2.55rem; height: 2.55rem; }
}

@media (max-width: 1023px) {
  main section.py-20 { padding-top: 4rem!important; padding-bottom: 4rem!important; }
}
/* Premium homepage */
.home-hero {
  position: relative;
  background:
    radial-gradient(circle at 12% 20%, rgba(197,155,90,.18), transparent 32%),
    linear-gradient(135deg, #f7f3e9 0%, #fffdf8 42%, #e7f0e9 100%);
}

.home-hero h1 { max-width: 11.5ch; }
.home-hero .hero-copy { position: relative; z-index: 1; }

.premium-btn {
  display: inline-flex;
  min-height: 3.35rem;
  align-items: center;
  justify-content: center;
  border-radius: .35rem;
  padding: .9rem 1.35rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 16px 32px rgba(22,72,63,.12);
}

.premium-btn.primary { background: var(--forest); color: #fff; }
.premium-btn.primary:hover { background: #103a33; transform: translateY(-1px); }
.premium-btn.secondary { border: 1px solid rgba(22,72,63,.22); color: var(--forest); background: rgba(255,255,255,.66); box-shadow: none; }
.premium-btn.secondary:hover { background: #fff; transform: translateY(-1px); }
.premium-btn.light { background: #fffdf8; color: var(--forest); }
.premium-btn.outline-light { border: 1px solid rgba(255,255,255,.35); color: #fff; background: transparent; box-shadow: none; }

.trust-strip > div {
  padding: 1rem .85rem;
  text-align: center;
}

.trust-strip b {
  display: block;
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: clamp(1.35rem, 4vw, 2rem);
  line-height: 1;
}

.trust-strip span {
  display: block;
  margin-top: .35rem;
  color: #64726f;
  font-size: .74rem;
  font-weight: 700;
  line-height: 1.25;
}

.hero-visual-wrap { position: relative; }
.hero-visual {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(22,72,63,.12);
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 30px 80px rgba(22,72,63,.16);
}

.hero-visual:before {
  content: "";
  position: absolute;
  inset: .8rem;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: .9rem;
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  height: min(62vw, 34rem);
  min-height: 26rem;
  object-fit: cover;
  object-position: center;
}

.hero-note {
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 2;
  display: grid;
  gap: .25rem;
  max-width: 25rem;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: .75rem;
  background: rgba(255,253,248,.9);
  padding: 1rem 1.1rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(22,72,63,.13);
}

.hero-note span {
  color: var(--sage);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero-note b { color: var(--forest); line-height: 1.35; }

.home-section { padding: 6rem 0; }
.section-heading h2 { max-width: 13ch; }
.section-heading p:not(.eyebrow) { max-width: 42rem; }

.premium-card {
  min-height: 17rem;
  border: 1px solid rgba(22,72,63,.12);
  border-radius: .5rem;
  background: #fffdf8;
  padding: 1.55rem;
  box-shadow: 0 18px 46px rgba(22,72,63,.06);
}

.premium-card span {
  display: inline-flex;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.premium-card h3 {
  margin-top: 2.25rem;
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 1.65rem;
  line-height: 1.15;
}

.premium-card p {
  margin-top: .9rem;
  color: #5f6f6b;
  font-size: .95rem;
  line-height: 1.75;
}

.premium-card a {
  display: inline-flex;
  margin-top: 1.25rem;
  color: var(--forest);
  font-size: .86rem;
  font-weight: 900;
}

.featured-card {
  background: linear-gradient(135deg, #143f38, #1f5b50);
  color: #fff;
}

.featured-card h3,
.featured-card a { color: #fff; }
.featured-card p { color: rgba(236,253,245,.78); max-width: 31rem; }

.process-section {
  background: linear-gradient(180deg, #fffdf8 0%, #edf3ed 100%);
}

.sticky-copy { position: sticky; top: 7rem; }
.timeline-panel {
  display: grid;
  gap: 1rem;
}

.timeline-panel article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  border: 1px solid rgba(22,72,63,.12);
  border-radius: .55rem;
  background: rgba(255,255,255,.78);
  padding: 1.35rem;
  box-shadow: 0 18px 44px rgba(22,72,63,.06);
}

.timeline-panel b {
  display: grid;
  width: 3.3rem;
  height: 3.3rem;
  place-items: center;
  border-radius: 999px;
  background: #16483f;
  color: #fff;
  font-family: Georgia, serif;
}

.timeline-panel h3 {
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 1.45rem;
}

.timeline-panel p {
  margin-top: .45rem;
  color: #64726f;
  line-height: 1.75;
}

.doctor-band {
  padding: 6rem 0;
  background:
    linear-gradient(135deg, rgba(16,47,42,.98), rgba(22,72,63,.96)),
    #102f2a;
}

.doctor-profile-card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: .75rem;
  background: rgba(255,253,248,.08);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0,0,0,.16);
}

.doctor-profile-card img {
  width: min(100%, 18rem);
  margin: 0 auto;
  border-radius: .5rem;
  background: #fffdf8;
  padding: .75rem;
}

.doctor-profile-card h2 {
  margin-top: 1.6rem;
  color: #fff;
  font-size: 2.2rem;
}

.doctor-profile-card p { color: rgba(236,253,245,.72); }
.doctor-points div {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: .45rem;
  padding: 1rem;
  color: rgba(236,253,245,.82);
  font-size: .92rem;
  font-weight: 700;
}

.quote-panel {
  position: relative;
  border-left: 3px solid var(--gold);
  background: #f7f3e9;
  padding: 2rem;
}

.quote-panel span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: .7;
}

.quote-panel p {
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.1;
}

.quote-panel b {
  display: block;
  margin-top: 1.2rem;
  color: #64726f;
}

.final-cta {
  padding: 6rem 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(197,155,90,.18), transparent 34%),
    linear-gradient(135deg, #102f2a, #16483f);
}

@media (max-width: 767px) {
  .home-hero h1 { max-width: none; }
  .home-hero .hero-actions a,
  .final-cta .hero-actions a { width: 100%; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip > div + div { border-left: 0!important; }
  .trust-strip > div { border-bottom: 1px solid rgba(22,72,63,.1); }
  .trust-strip > div:last-child { border-bottom: 0; }
  .hero-visual img { height: 25rem; min-height: 25rem; object-position: 60% center; }
  .hero-note { left: .85rem; right: .85rem; bottom: .85rem; padding: .9rem; }
  .home-section,
  .doctor-band,
  .final-cta { padding: 4rem 0; }
  .section-heading h2 { max-width: none; }
  .premium-card { min-height: auto; }
  .premium-card h3 { margin-top: 1.4rem; }
  .sticky-copy { position: static; }
  .timeline-panel article { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .hero-visual img { height: 22rem; min-height: 22rem; }
  .quote-panel { padding: 1.35rem; }
}

/* Service directory */
.services-directory {
  background: linear-gradient(180deg, #fffdf8 0%, #f3f7f2 100%);
}

.service-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.service-category {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid rgba(22,72,63,.12);
  border-radius: .55rem;
  background: rgba(255,255,255,.78);
  padding: 1.45rem;
  box-shadow: 0 18px 44px rgba(22,72,63,.06);
}

.service-category.featured-service {
  grid-column: span 2;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 1.5rem;
  background: linear-gradient(135deg, #143f38, #1f5b50);
  color: #fff;
}

.service-category span {
  display: inline-flex;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.2rem;
  line-height: 1;
}

.service-category h2 {
  margin-top: 1.15rem;
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 1.7rem;
  line-height: 1.15;
}

.service-category p {
  margin-top: .75rem;
  color: #64726f;
  font-size: .94rem;
  line-height: 1.7;
}

.service-category ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem .8rem;
  margin-top: 1.2rem;
  padding: 0;
  list-style: none;
}

.service-category li {
  position: relative;
  padding-left: 1rem;
  color: #3e514d;
  font-size: .92rem;
  line-height: 1.45;
}

.service-category li:before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: .35rem;
  height: .35rem;
  border-radius: 999px;
  background: var(--gold);
}

.service-link {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.service-link:hover {
  color: var(--gold);
}

.category-link {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease;
}

.category-link:hover {
  color: var(--gold);
}

.featured-service .category-link {
  color: #fff;
}

.featured-service .category-link:hover {
  color: var(--gold);
}

.featured-service .service-link {
  color: #fff;
}

.featured-service .service-link:hover {
  color: var(--gold);
}

.featured-service h2,
.featured-service p,
.featured-service li {
  color: #fff;
}

.featured-service p,
.featured-service li {
  color: rgba(236,253,245,.8);
}

.service-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid rgba(22,72,63,.12);
  border-radius: .55rem;
  background: #fffdf8;
  padding: 1.25rem;
  box-shadow: 0 18px 44px rgba(22,72,63,.06);
}

.service-note p {
  max-width: 48rem;
  color: #64726f;
  line-height: 1.7;
}

@media (max-width: 1023px) {
  .service-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .service-category-grid,
  .service-category.featured-service {
    grid-template-columns: 1fr;
  }

  .service-category.featured-service {
    grid-column: auto;
  }

  .service-category ul {
    grid-template-columns: 1fr;
  }

  .service-note {
    align-items: stretch;
    flex-direction: column;
  }

  .service-note .premium-btn {
    width: 100%;
  }
}

/* Homepage redesign refinements */
.home-hero-v2 {
  background: linear-gradient(135deg, #f6f1e6 0%, #fffdf8 46%, #e8f0ea 100%);
}

.home-hero-inner {
  display: grid;
  grid-template-columns: .94fr 1.06fr;
  align-items: center;
  gap: 3.5rem;
  padding-top: 5.75rem;
  padding-bottom: 5.25rem;
}

.home-hero-v2 h1 {
  max-width: 12ch;
  letter-spacing: 0;
}

.hero-concern-strip {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.9rem;
  max-width: 42rem;
}

.hero-concern-strip a {
  border: 1px solid rgba(22,72,63,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.62);
  padding: .55rem .85rem;
  color: #435753;
  font-size: .82rem;
  font-weight: 800;
}

.hero-concern-strip a:hover {
  border-color: rgba(22,72,63,.28);
  background: #fff;
  color: var(--forest);
}

.hero-visual-v2 {
  border-radius: .8rem;
}

.hero-visual-v2:before {
  border-radius: .55rem;
}

.hero-visual-v2 img {
  height: clamp(28rem, 46vw, 36rem);
  min-height: 0;
  object-position: 54% center;
}

.hero-note-v2 {
  left: 1rem;
  right: auto;
  bottom: 1rem;
  width: min(25rem, calc(100% - 2rem));
  border-radius: .5rem;
}

.hero-stats-panel {
  position: absolute;
  right: -1rem;
  bottom: 2.25rem;
  z-index: 3;
  display: grid;
  width: min(18.5rem, 58%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(22,72,63,.12);
  border-radius: .6rem;
  background: rgba(255,253,248,.94);
  box-shadow: 0 18px 44px rgba(22,72,63,.13);
}

.hero-stats-panel div {
  padding: .85rem .55rem;
  text-align: center;
}

.hero-stats-panel div + div {
  border-left: 1px solid rgba(22,72,63,.1);
}

.hero-stats-panel b {
  display: block;
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 1.35rem;
  line-height: 1;
}

.hero-stats-panel span {
  display: block;
  margin-top: .35rem;
  color: #64726f;
  font-size: .66rem;
  font-weight: 800;
  line-height: 1.25;
}

.care-section-v2 .section-heading h2,
.confidence-section h2 {
  max-width: 15ch;
}

.care-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.care-card {
  min-height: 15.5rem;
  border: 1px solid rgba(22,72,63,.12);
  border-radius: .55rem;
  background: #fffdf8;
  padding: 1.45rem;
  box-shadow: 0 18px 44px rgba(22,72,63,.055);
}

.care-card.primary-care-card {
  grid-row: span 2;
  background: linear-gradient(135deg, #143f38, #1f5b50);
  color: #fff;
}

.care-card span {
  display: inline-flex;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 1.25rem;
}

.care-card h3 {
  margin-top: 1.5rem;
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.15;
}

.care-card p {
  margin-top: .85rem;
  color: #5f6f6b;
  font-size: .94rem;
  line-height: 1.65;
}

.care-card a {
  display: inline-flex;
  margin-top: 1.25rem;
  color: #fff;
  font-size: .86rem;
  font-weight: 900;
}

.primary-care-card h3,
.primary-care-card p {
  color: #fff;
}

.primary-care-card p {
  color: rgba(236,253,245,.78);
}

.condition-band {
  background: #102f2a;
  padding: 3.75rem 0;
}

.condition-band-inner {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  align-items: center;
  gap: 2rem;
}

.condition-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .7rem;
}

.condition-pills a {
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  padding: .62rem .9rem;
  color: rgba(236,253,245,.86);
  font-size: .85rem;
  font-weight: 800;
}

.condition-pills a:hover {
  background: #fffdf8;
  color: var(--forest);
}

.process-section-v2 {
  background: linear-gradient(180deg, #f8faf7 0%, #edf3ed 100%);
}

.timeline-panel-v2 article {
  border-radius: .5rem;
  background: rgba(255,253,248,.82);
}

.doctor-band-v2 {
  background: linear-gradient(135deg, #102f2a, #16483f);
}

.doctor-profile-v2 {
  display: grid;
  grid-template-columns: 8rem 1fr;
  align-items: center;
  gap: 1.25rem;
  text-align: left;
}

.doctor-profile-v2 img {
  width: 8rem;
  margin: 0;
}

.doctor-profile-v2 p {
  color: rgba(236,253,245,.75);
  font-weight: 800;
}

.doctor-profile-v2 h2 {
  margin-top: .35rem;
  font-size: 1.65rem;
}

.quote-panel-v2 {
  border-radius: .55rem;
  border-left: 0;
  border-top: 3px solid var(--gold);
}

.final-cta-v2 {
  background: linear-gradient(135deg, #102f2a 0%, #16483f 100%);
}

@media (max-width: 1023px) {
  .home-hero-inner,
  .condition-band-inner {
    grid-template-columns: 1fr;
  }

  .home-hero-inner {
    padding-top: 4.25rem;
    padding-bottom: 4rem;
  }

  .home-hero-v2 h1 {
    max-width: 13ch;
  }

  .condition-pills {
    justify-content: flex-start;
  }

  .care-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .care-card.primary-care-card {
    grid-row: auto;
    grid-column: span 2;
  }

  .hero-stats-panel {
    right: 1rem;
  }
}

@media (max-width: 767px) {
  .home-hero-inner {
    gap: 2.2rem;
    padding-top: 3.5rem;
  }

  .home-hero-v2 h1 {
    max-width: none;
  }

  .hero-concern-strip a {
    flex: 1 1 calc(50% - .6rem);
    text-align: center;
  }

  .hero-visual-v2 img {
    height: 24rem;
    object-position: 58% center;
  }

  .hero-stats-panel {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: .85rem;
  }

  .hero-note-v2 {
    left: .8rem;
    bottom: .8rem;
    width: calc(100% - 1.6rem);
  }

  .care-card-grid {
    grid-template-columns: 1fr;
  }

  .care-card.primary-care-card {
    grid-column: auto;
  }

  .care-card {
    min-height: auto;
  }

  .condition-band {
    padding: 3rem 0;
  }

  .condition-pills a {
    flex: 1 1 calc(50% - .7rem);
    text-align: center;
  }

  .doctor-profile-v2 {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .doctor-profile-v2 img {
    margin: 0 auto;
  }
}

@media (max-width: 420px) {
  .hero-concern-strip a,
  .condition-pills a {
    flex-basis: 100%;
  }

  .hero-visual-v2 img {
    height: 21rem;
  }

  .hero-stats-panel {
    grid-template-columns: 1fr;
  }

  .hero-stats-panel div + div {
    border-top: 1px solid rgba(22,72,63,.1);
    border-left: 0;
  }
}

.certificate-section {
  padding: 6rem 0;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.certificate-card {
  border: 1px solid rgba(22,72,63,.12);
  border-radius: .75rem;
  background: #fffdf8;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(22,72,63,.055);
  transition: transform .2s ease, box-shadow .2s ease;
}

.certificate-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px rgba(22,72,63,.12);
}

.certificate-card img {
  width: 100%;
  height: 22rem;
  object-fit: contain;
  background: #f7f3e9;
}

.certificate-info {
  padding: 1.5rem;
  text-align: center;
}

.certificate-info h3 {
  color: var(--forest);
}

.certificate-info p {
  font-size: .92rem;
  line-height: 1.55;
}

@media (max-width: 767px) {
  .certificate-grid {
    grid-template-columns: 1fr;
  }

  .certificate-card img {
    height: 20rem;
  }
}

@media (max-width: 420px) {
  .certificate-card img {
    height: 18rem;
  }
}

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  place-items: center;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  font-size: .86rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 18px 35px rgba(18,140,84,.28);
}

.whatsapp-float:hover {
  background: #1ebe5d;
  color: #fff;
  transform: translateY(-1px);
}

/* Hero overlap fix */
.hero-visual-wrap {
  display: grid;
  gap: .9rem;
}

.hero-stats-panel {
  position: static;
  right: auto;
  bottom: auto;
  width: 100%;
  max-width: none;
  margin-top: 0;
}

.hero-stats-panel div {
  min-width: 0;
  padding: 1rem .75rem;
}

.hero-stats-panel b,
.hero-stats-panel span {
  overflow-wrap: anywhere;
}

.hero-stats-panel span {
  font-size: .72rem;
  line-height: 1.35;
}

.hero-note-v2 {
  z-index: 4;
  max-width: calc(100% - 2rem);
}

@media (max-width: 767px) {
  .hero-visual-wrap {
    gap: .75rem;
  }

  .hero-stats-panel {
    margin-top: 0;
  }
}

@media (max-width: 420px) {
  .hero-note-v2 {
    position: static;
    width: 100%;
    max-width: none;
    margin-top: .75rem;
  }
}

.seo-faq-section { border-top: 1px solid rgba(22,72,63,.08); }
.seo-faq-list { display: grid; gap: .85rem; }
.seo-faq-list details { border: 1px solid rgba(22,72,63,.12); background: #fffdf8; padding: 1rem 1.1rem; }
.seo-faq-list summary { cursor: pointer; color: var(--forest); font-weight: 800; }
.seo-faq-list p { margin-top: .75rem; color: #5f6f6b; line-height: 1.75; }
.ai-summary-section { border-top: 1px solid rgba(22,72,63,.08); border-bottom: 1px solid rgba(22,72,63,.08); }
.ai-summary-section p { max-width: 72rem; }
.local-ranking-section { border-top: 1px solid rgba(22,72,63,.08); }
.local-ranking-panel { border: 1px solid rgba(22,72,63,.12); background: #fff; padding: 1.5rem; box-shadow: 0 18px 42px rgba(22,72,63,.08); }
.local-ranking-panel ul { display: grid; gap: .7rem; margin-top: 1rem; color: #5f6f6b; }
.local-ranking-panel li { padding-left: 1.15rem; position: relative; }
.local-ranking-panel li:before { content: ""; position: absolute; left: 0; top: .72rem; width: .38rem; height: .38rem; border-radius: 999px; background: var(--gold); }
.not-found-hero {
  min-height: 68vh;
  display: grid;
  align-items: center;
  padding: 5rem 0;
  background: linear-gradient(135deg, #fffdf8 0%, #f7efe1 48%, #e9f4ef 100%);
}
.not-found-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, .8fr);
  gap: 3rem;
  align-items: center;
}
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
}
.not-found-card {
  border: 1px solid rgba(22,72,63,.12);
  background: rgba(255,255,255,.78);
  box-shadow: 0 26px 70px rgba(22,72,63,.12);
  overflow: hidden;
}
.not-found-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.not-found-panel {
  padding: 1.5rem;
}
.not-found-panel ul {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}
.not-found-panel a {
  color: var(--forest);
  font-weight: 800;
}
.not-found-panel a:hover {
  color: #b9812d;
}
@media (max-width: 900px) {
  .not-found-shell {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .not-found-hero {
    padding: 3.5rem 0;
  }
  .not-found-actions .premium-btn {
    width: 100%;
    text-align: center;
  }
}

/* Responsive SEO/mobile hardening */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

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

main,
section,
header,
footer {
  max-width: 100%;
}

h1,
h2,
h3,
p,
a,
li,
summary,
button,
input,
textarea {
  overflow-wrap: anywhere;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

input,
textarea,
select,
button {
  font: inherit;
  max-width: 100%;
}

.nav-panel {
  max-width: calc(100vw - 2rem);
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  .site-topbar .topbar-meta span,
  .site-topbar .topbar-meta a {
    line-height: 1.35;
  }

  .site-header-shell {
    min-height: 4.85rem;
  }

  .logo-frame {
    max-width: calc(100vw - 5.25rem);
  }

  .logo-mark {
    height: clamp(3.45rem, 13vw, 4.55rem);
    max-height: 4.55rem;
  }

  .nav-panel {
    max-height: min(78vh, 32rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-panel a,
  .premium-btn,
  .whatsapp-float {
    min-height: 44px;
  }

  .home-hero-inner {
    padding-inline: 1rem;
  }

  .home-hero-v2 h1,
  .home-hero h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.45rem);
    line-height: 1.04;
    max-width: 12ch;
  }

  .home-hero .hero-copy p,
  .page-hero p,
  .ai-summary-section p,
  .local-ranking-panel p,
  .seo-faq-list p {
    line-height: 1.72;
  }

  .hero-concern-strip {
    gap: .45rem;
  }

  .hero-concern-strip a {
    min-height: 2.45rem;
    display: inline-flex;
    align-items: center;
  }

  .hero-visual,
  .hero-visual-v2,
  .not-found-card,
  .local-ranking-panel,
  .seo-faq-list details,
  .care-card,
  .service-card,
  .certificate-card {
    border-radius: .65rem;
  }

  .hero-visual-v2 img,
  .hero-visual img {
    height: clamp(18rem, 74vw, 23rem);
    min-height: 0;
    object-position: 58% center;
  }

  .hero-note,
  .hero-note-v2 {
    font-size: .88rem;
  }

  .hero-stats-panel {
    gap: 0;
  }

  .hero-stats-panel div {
    padding: .85rem .55rem;
  }

  .home-section,
  main section.py-16,
  main section.py-20 {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  .section-heading h2,
  .ai-summary-section h2,
  .local-ranking-section h2,
  .seo-faq-section h2 {
    font-size: clamp(2rem, 8vw, 2.75rem);
    line-height: 1.08;
  }

  .whatsapp-float {
    right: .9rem;
    bottom: .9rem;
    width: 3.15rem;
    height: 3.15rem;
  }
}

@media (max-width: 420px) {
  .site-topbar > div {
    padding-inline: .65rem;
  }

  .home-hero-v2 h1,
  .home-hero h1,
  .page-hero h1,
  .not-found-hero h1 {
    font-size: clamp(2rem, 11vw, 2.75rem);
  }

  .hero-actions,
  .not-found-actions {
    width: 100%;
  }

  .premium-btn {
    width: 100%;
    padding-inline: .9rem;
    text-align: center;
  }

  .local-ranking-panel,
  .not-found-panel,
  .seo-faq-list details {
    padding: 1rem;
  }
}

/* Tailwind large text mobile guard */
@media (max-width: 767px) {
  .text-5xl,
  .text-6xl,
  .text-7xl {
    font-size: clamp(2rem, 9vw, 3.25rem) !important;
    line-height: 1.08 !important;
  }
}

/* Creative motion layer */
@keyframes softRise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes gentleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes glowSweep {
  from { transform: translateX(-120%) rotate(12deg); opacity: 0; }
  30% { opacity: .5; }
  to { transform: translateX(145%) rotate(12deg); opacity: 0; }
}

@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.34), 0 18px 35px rgba(18,140,84,.28); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0), 0 18px 35px rgba(18,140,84,.28); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 18px 35px rgba(18,140,84,.28); }
}

.motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .72s ease, transform .72s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.home-hero .hero-copy,
.page-hero > div,
.not-found-copy {
  animation: softRise .75s ease both;
}

.hero-visual,
.hero-visual-v2,
.not-found-card {
  isolation: isolate;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}

.hero-visual:hover,
.hero-visual-v2:hover,
.not-found-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 36px 90px rgba(22,72,63,.18);
  border-color: rgba(197,155,90,.35);
}

.hero-visual:after,
.hero-visual-v2:after,
.not-found-card:after {
  content: "";
  position: absolute;
  inset: -30% auto -30% -55%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  pointer-events: none;
  transform: translateX(-120%) rotate(12deg);
}

.hero-visual:hover:after,
.hero-visual-v2:hover:after,
.not-found-card:hover:after {
  animation: glowSweep 1.25s ease;
}

.hero-note,
.hero-note-v2 {
  animation: gentleFloat 5.5s ease-in-out infinite;
}

.care-card,
.service-card,
.category-card,
.certificate-card,
.local-ranking-panel,
.seo-faq-list details,
.not-found-panel {
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease, background-color .28s ease;
}

.care-card:hover,
.service-card:hover,
.category-card:hover,
.local-ranking-panel:hover,
.seo-faq-list details:hover,
.not-found-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(197,155,90,.32);
  box-shadow: 0 24px 58px rgba(22,72,63,.11);
}

.premium-btn {
  position: relative;
  overflow: hidden;
}

.premium-btn:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255,255,255,.24) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .65s ease;
}

.premium-btn:hover:after {
  transform: translateX(120%);
}

.nav-link {
  transition: color .2s ease, transform .2s ease;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.whatsapp-float {
  animation: pulseRing 2.8s ease-out infinite;
}

.seo-faq-list details[open] {
  background: #fff;
  border-color: rgba(197,155,90,.32);
}

.seo-faq-list details[open] p {
  animation: softRise .3s ease both;
}

@media (max-width: 767px) {
  .motion-ready .reveal-item {
    transform: translateY(14px);
  }

  .hero-note,
  .hero-note-v2,
  .whatsapp-float {
    animation-duration: 4.8s;
  }

  .care-card:hover,
  .service-card:hover,
  .category-card:hover,
  .local-ranking-panel:hover,
  .seo-faq-list details:hover,
  .not-found-panel:hover {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }

  .motion-ready .reveal-item {
    opacity: 1;
    transform: none;
  }
}

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

.footer-social-icon {
  display: inline-flex;
  width: 2.7rem;
  height: 2.7rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #fffdf8;
  transition: transform .22s ease, background-color .22s ease, border-color .22s ease, color .22s ease;
}

.footer-social-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social-icon span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

.footer-social-icon:hover,
.footer-social-icon:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(197,155,90,.58);
  background: rgba(197,155,90,.18);
  color: #ffffff;
  outline: none;
}

@media (max-width: 767px) {
  .footer-social-icon {
    width: 2.85rem;
    height: 2.85rem;
  }
}

/* Testimonial image slider */
.testimonial-showcase {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(22,72,63,.08);
  border-bottom: 1px solid rgba(22,72,63,.08);
}

.testimonial-slider {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
}

.testimonial-viewport {
  overflow: hidden;
  border-radius: .8rem;
}

.testimonial-track {
  display: flex;
  align-items: stretch;
  transition: transform .55s ease;
  will-change: transform;
}

.testimonial-slide {
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  padding: .25rem;
}

.testimonial-slide img {
  width: min(100%, 30rem);
  max-height: min(72vh, 48rem);
  object-fit: contain;
  border: 1px solid rgba(22,72,63,.12);
  border-radius: .75rem;
  background: #fff;
  box-shadow: 0 24px 70px rgba(22,72,63,.14);
}

.testimonial-nav {
  display: inline-grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(22,72,63,.16);
  border-radius: 999px;
  background: #fff;
  color: var(--forest);
  font-size: 2rem;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(22,72,63,.08);
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.testimonial-nav:hover,
.testimonial-nav:focus-visible {
  transform: translateY(-2px);
  background: var(--forest);
  color: #fff;
  outline: none;
}

.testimonial-dots {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: .5rem;
  margin-top: .5rem;
}

.testimonial-dot {
  width: .7rem;
  height: .7rem;
  border: 0;
  border-radius: 999px;
  background: rgba(22,72,63,.22);
  transition: transform .2s ease, background-color .2s ease, width .2s ease;
}

.testimonial-dot.is-active {
  width: 1.8rem;
  background: var(--gold);
}

@media (max-width: 767px) {
  .testimonial-slider {
    grid-template-columns: 1fr;
    gap: .85rem;
  }

  .testimonial-nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 2.65rem;
    height: 2.65rem;
    transform: translateY(-50%);
    background: rgba(255,255,255,.9);
  }

  .testimonial-nav:hover,
  .testimonial-nav:focus-visible {
    transform: translateY(-50%);
  }

  .testimonial-prev { left: .4rem; }
  .testimonial-next { right: .4rem; }

  .testimonial-slide img {
    width: min(100%, 24rem);
    max-height: 68vh;
  }
}
