/* Better Health & Wellness Clinic — site styles */
:root {
  --orange: #E89528;
  --orange-dark: #cf7f15;
  --teal: #174B4C;
  --teal-dark: #0f3536;
  --green: #47622B;
  --cream: #F8F1E4;
  --cream-2: #fbf7ef;
  --text: #202020;
  --muted: #5d625f;
  --line: #e7dfd0;
  --white: #fff;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(23, 75, 76, .08);
  --max: 1200px;
  --font: "Rethink Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--orange-dark); }
h1, h2, h3, h4, h5, h6 { font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--teal); letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
h5 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section--cream { background: var(--cream); }
.section--tight { padding: 70px 0; }
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); margin-bottom: 14px;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 24px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--cream); }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--teal); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .85rem/1 var(--font); letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn::after { content: "→"; font-size: 1.1em; letter-spacing: 0; transition: transform .2s; }
.btn:hover::after { transform: translateX(3px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-dark); color: #fff; }
.btn--light { background: var(--cream); color: var(--teal); }
.btn--light:hover { background: #fff; color: var(--teal); }
.btn--outline { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn--outline:hover { background: var(--teal); color: #fff; }
.btn--plain::after { content: none; }
.link-arrow { font-weight: 600; font-size: .9rem; color: var(--teal); display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 84px; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a { color: var(--text); font-weight: 500; font-size: .98rem; white-space: nowrap; }
.header-actions .btn { white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange-dark); }
.has-sub { position: relative; }
.has-sub > a::after { content: "▾"; font-size: .7em; margin-left: 6px; color: var(--muted); }
.sub {
  list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: -16px; min-width: 270px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; }
.sub a:hover { background: var(--cream); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-actions .zocdoc { font-weight: 600; font-size: .95rem; }
.header-actions .btn { padding: 12px 20px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--teal); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 1140px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 84px 0 0 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 24px; gap: 24px; overflow-y: auto; transform: translateX(100%); transition: transform .25s;
  }
  .nav.open { transform: none; }
  .nav > ul { flex-direction: column; gap: 0; }
  .nav > ul > li > a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 14px; min-width: 0; }
  .has-sub > a::after { content: none; }
  .header-actions { flex-direction: column; align-items: stretch; }
  .header-actions .btn { justify-content: center; }
  .header-actions .zocdoc { text-align: center; }
}
@media (max-width: 600px) { .logo img { height: 42px; } .header-inner { height: 72px; } .nav { inset: 72px 0 0 0; } }

/* Home hero */
.hero {
  position: relative; color: #fff; min-height: min(760px, 88vh); display: flex; align-items: center;
  background: var(--teal-dark) url(/images/hero.jpg) center right / cover no-repeat;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,40,40,.82) 0%, rgba(15,40,40,.55) 45%, rgba(15,40,40,.1) 100%); }
.hero .container { position: relative; }
.hero-content { max-width: 600px; padding: 80px 0; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; color: rgba(255,255,255,.88); margin-bottom: 32px; }

.features { background: var(--cream); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.feature { padding: 44px 36px; border-right: 1px solid var(--line); }
.feature:last-child { border-right: 0; }
.feature .icon { width: 52px; height: 52px; color: var(--orange); margin-bottom: 18px; }
.feature h4 { margin-bottom: 8px; }
.feature p { margin: 0; color: var(--muted); }
@media (max-width: 820px) { .features-grid { grid-template-columns: 1fr; } .feature { border-right: 0; border-bottom: 1px solid var(--line); } }

/* Generic split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split--rev .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/4.3; object-fit: cover; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .split--rev .split-media { order: 0; } }

.check-list { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.check-list--2col { grid-template-columns: 1fr 1fr; }
@media (max-width: 600px) { .check-list--2col { grid-template-columns: 1fr; } }

.stats { display: flex; gap: 40px; flex-wrap: wrap; margin: 26px 0 32px; }
.stat strong { display: block; font-size: 2.4rem; font-weight: 500; color: var(--orange); line-height: 1; }
.stat span { color: var(--muted); font-size: .95rem; }

/* Section heading */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px;
  display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .icon { width: 56px; height: 56px; border-radius: 50%; background: var(--cream); color: var(--orange); display: grid; place-items: center; margin-bottom: 22px; }
.card .icon svg { width: 28px; height: 28px; }
.card p { color: var(--muted); flex: 1; }
.card--img { padding: 0; overflow: hidden; }
.card--img img { aspect-ratio: 16/11; object-fit: cover; width: 100%; }
.card--img .card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }

/* Provider band */
.provider-band { background: var(--teal); color: #fff; border-radius: var(--radius-lg); overflow: hidden; display: grid; grid-template-columns: 380px 1fr; }
.provider-band img { width: 100%; height: 100%; object-fit: cover; object-position: top; min-height: 380px; }
.provider-band .body { padding: 60px; align-self: center; }
.provider-band h2 { color: #fff; }
.provider-band p { color: rgba(255,255,255,.85); font-size: 1.08rem; margin-bottom: 28px; }
@media (max-width: 860px) { .provider-band { grid-template-columns: 1fr; } .provider-band img { max-height: 420px; } .provider-band .body { padding: 36px 28px; } }

/* Testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.quote { background: #fff; border-radius: var(--radius-lg); padding: 34px 30px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.stars { color: var(--orange); letter-spacing: 3px; margin-bottom: 14px; }
.quote p { color: var(--muted); flex: 1; }
.quote .who { font-weight: 600; color: var(--teal); margin: 8px 0 0; }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; counter-reset: s; }
.step { padding: 30px 26px; border-top: 2px solid var(--orange); background: var(--cream-2); border-radius: 0 0 var(--radius) var(--radius); }
.step .num { font-size: 2.6rem; font-weight: 500; color: var(--orange); line-height: 1; margin-bottom: 18px; display: block; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--green); color: #fff; border-radius: var(--radius-lg); padding: 60px; display: flex; gap: 30px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; max-width: 620px; }
.cta-band .actions { display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 600px) { .cta-band { padding: 40px 26px; } }

/* Page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden; background: var(--teal); color: #fff; padding: 110px 0 100px;
}
.page-hero::after {
  content: ""; position: absolute; right: -120px; top: -40px; width: 720px; height: 520px; opacity: .22; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 400' fill='none' stroke='%23F8F1E4' stroke-width='.8'%3E%3Cpath d='M0 380C150 360 220 240 300 160S500 20 600 0'/%3E%3Cpath d='M20 390C170 368 240 252 318 172S510 34 600 16'/%3E%3Cpath d='M40 400C190 376 260 264 336 184S520 48 600 32'/%3E%3Cpath d='M60 400C210 384 280 276 354 196S530 62 600 48'/%3E%3Cpath d='M80 400C230 392 300 288 372 208S540 76 600 64'/%3E%3Cpath d='M100 400C250 400 320 300 390 220S550 90 600 80'/%3E%3Cpath d='M130 400C270 400 340 312 408 232S560 104 600 96'/%3E%3Cpath d='M160 400C290 400 360 324 426 244S570 118 600 112'/%3E%3Cpath d='M190 400C310 400 380 336 444 256S580 132 600 128'/%3E%3Cpath d='M220 400C330 400 400 348 462 268S590 146 600 144'/%3E%3C/svg%3E") center / contain no-repeat;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: 14px; }
.page-hero p { font-size: 1.2rem; color: rgba(255,255,255,.85); max-width: 640px; margin: 0; }
.crumbs { list-style: none; padding: 0; margin: 0 0 18px; display: flex; gap: 10px; font-size: .9rem; color: rgba(255,255,255,.7); }
.crumbs a { color: var(--cream); }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .6; }

/* Service detail */
.service-layout { display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: start; }
.sidebar { position: sticky; top: 110px; display: grid; gap: 24px; }
.side-box { background: var(--cream); border-radius: var(--radius-lg); padding: 30px; }
.side-box h4 { margin-bottom: 16px; }
.side-nav { list-style: none; margin: 0; padding: 0; }
.side-nav a { display: flex; justify-content: space-between; padding: 12px 16px; border-radius: 10px; color: var(--text); background: #fff; margin-bottom: 8px; font-weight: 500; }
.side-nav a::after { content: "→"; color: var(--orange); }
.side-nav a:hover, .side-nav a[aria-current="page"] { background: var(--teal); color: #fff; }
.side-nav a[aria-current="page"]::after { color: #fff; }
.side-box--teal { background: var(--teal); color: #fff; }
.side-box--teal h4 { color: #fff; }
.side-box--teal p { color: rgba(255,255,255,.85); }
.side-box--teal .phone { display: block; font-size: 1.3rem; font-weight: 600; color: var(--cream); margin: 4px 0 20px; }
.service-main .hero-img { border-radius: var(--radius-lg); aspect-ratio: 16/9; object-fit: cover; width: 100%; margin-bottom: 44px; }
.service-main h3 { font-size: 1.35rem; margin-top: 36px; }
.note { background: var(--cream-2); border-left: 3px solid var(--orange); padding: 16px 20px; border-radius: 0 10px 10px 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .service-layout { grid-template-columns: 1fr; } .sidebar { position: static; order: 2; } }

/* Pricing */
.price-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.price-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.price-row h4 { margin: 0; font-size: 1.15rem; }
.price { font-size: 1.35rem; font-weight: 600; color: var(--orange-dark); white-space: nowrap; }
.price small { font-size: .78rem; font-weight: 500; color: var(--muted); }
.price-item p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.insurers { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; }
.insurers li { list-style: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); width: 130px; height: 90px; display: grid; place-items: center; }
.insurers img { width: 70px; height: 70px; }
.insurers { padding: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card { background: var(--cream); border-radius: var(--radius-lg); padding: 30px; }
.contact-card .icon { color: var(--orange); width: 36px; height: 36px; margin-bottom: 14px; }
.contact-card h5 { margin-bottom: 6px; }
.contact-card a, .contact-card p { color: var(--text); font-size: 1.05rem; margin: 0; word-break: break-word; }
.map { border: 0; width: 100%; height: 380px; border-radius: var(--radius-lg); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* Provider page */
.provider-head { display: grid; grid-template-columns: 420px 1fr; gap: 60px; align-items: center; }
.provider-head img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top; }
.provider-meta { list-style: none; padding: 0; margin: 20px 0 30px; display: grid; gap: 8px; }
.provider-meta span { color: var(--muted); margin-right: 6px; }
.prose { max-width: 820px; }
.prose h2 { margin-top: 0; }
.prose h3 { font-size: 1.45rem; margin-top: 44px; }
.prose dl { margin: 20px 0; display: grid; gap: 14px; }
.prose dt { font-weight: 600; color: var(--teal); }
.prose dd { margin: 2px 0 0; color: var(--muted); }
@media (max-width: 900px) { .provider-head { grid-template-columns: 1fr; } .provider-head img { max-width: 420px; } }

/* Forms */
.form-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: start; }
.form { background: var(--cream); border-radius: var(--radius-lg); padding: 40px; display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; color: var(--teal); }
.form input, .form select, .form textarea {
  font: inherit; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text); }
.form .consent input { width: auto; margin-top: 5px; }
.form .hp { position: absolute; left: -9999px; }
.form-status { padding: 14px 18px; border-radius: 10px; display: none; }
.form-status.ok { display: block; background: #e5efdc; color: var(--green); }
.form-status.err { display: block; background: #fbe6d2; color: #8a4a06; }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } .form { padding: 28px 22px; } .form .row { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 1.1rem; color: var(--teal); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--teal-dark); color: rgba(255,255,255,.78); padding: 90px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; padding-bottom: 60px; }
.site-footer h5 { color: #fff; margin-bottom: 18px; }
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: var(--orange); }
.footer-logo img { height: 64px; width: auto; margin-bottom: 22px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.social { display: flex; gap: 12px; margin-top: 22px; list-style: none; padding: 0; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-cta .btn { margin: 6px 12px 12px 0; }
.site-footer .btn--primary, .site-footer .btn--primary:hover { color: #fff; }
.site-footer .btn--light, .site-footer .btn--light:hover { color: var(--teal); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 24px 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .9rem; }
.footer-bottom ul { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Reveal animation */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); transition-delay: var(--d, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (max-width: 600px) { .section { padding: 70px 0; } .page-hero { padding: 80px 0 70px; } body { font-size: 16px; } }

/* ===== Polish: smoother motion, depth and interactions ===== */
:root {
  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 1px 2px rgba(23, 75, 76, .05), 0 2px 8px rgba(23, 75, 76, .04);
  --shadow: 0 2px 6px rgba(23, 75, 76, .05), 0 14px 34px rgba(23, 75, 76, .09);
  --shadow-lg: 0 4px 10px rgba(23, 75, 76, .06), 0 24px 50px rgba(23, 75, 76, .14);
}
body { text-rendering: optimizeLegibility; }
::selection { background: rgba(232, 149, 40, .25); }
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* Header: compacts with a soft shadow once you scroll */
.site-header { transition: box-shadow .35s var(--ease), border-color .35s var(--ease); }
.header-inner { transition: height .35s var(--ease); }
.logo img { transition: height .35s var(--ease); }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(23, 75, 76, .08); border-color: transparent; }
@media (min-width: 1141px) {
  .site-header.scrolled .header-inner { height: 70px; }
  .site-header.scrolled .logo img { height: 44px; }
}
.nav > ul > li > a { position: relative; padding: 6px 0; transition: color .25s var(--ease); }
@media (min-width: 1141px) {
  .nav > ul > li > a::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
    background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
  }
  .nav > ul > li > a:hover::before, .nav > ul > li > a[aria-current="page"]::before { transform: scaleX(1); }
}
.sub { transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s; box-shadow: var(--shadow-lg); }
.sub a { transition: background .2s var(--ease), padding-left .2s var(--ease); }
.sub a:hover { padding-left: 16px; }

/* Mobile menu: fade + slide */
@media (max-width: 1140px) {
  .nav { opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s; }
  .nav.open { opacity: 1; visibility: visible; transform: none; }
}
.nav-toggle svg path { transition: d .3s var(--ease); }

/* Buttons */
.btn { transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.btn::after { transition: transform .3s var(--ease); }
.btn--primary { box-shadow: 0 6px 18px rgba(232, 149, 40, .28); }
.btn:hover { transform: translateY(-2px); }
.btn--primary:hover { box-shadow: 0 10px 26px rgba(232, 149, 40, .36); }
.btn--light:hover { box-shadow: 0 10px 26px rgba(0, 0, 0, .14); }
.btn:active { transform: translateY(0); transition-duration: .1s; }
.link-arrow { transition: color .25s var(--ease), gap .3s var(--ease); }
.link-arrow:hover { gap: 12px; color: var(--orange-dark); }
.link-arrow::after, .link-arrow:hover::after { transform: none; }

/* Hero: gentle entrance and slow image drift */
.hero { overflow: hidden; background-image: none; isolation: isolate; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: url(/images/hero.jpg) center right / cover no-repeat;
}
.hero::before { z-index: -1; background: linear-gradient(100deg, rgba(12, 38, 38, .86) 0%, rgba(12, 38, 38, .6) 42%, rgba(12, 38, 38, .12) 100%); }
@media (prefers-reduced-motion: no-preference) {
  .hero::after { animation: heroDrift 18s var(--ease) both; }
  .hero-content > * { animation: rise .8s var(--ease) both; }
  .hero-content > :nth-child(2) { animation-delay: .1s; }
  .hero-content > :nth-child(3) { animation-delay: .2s; }
  .hero-content > :nth-child(4) { animation-delay: .3s; }
}
@keyframes heroDrift { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* Feature strip floats over the hero edge */
.features { background: transparent; position: relative; z-index: 2; margin-top: -60px; }
.features-grid { background: var(--cream); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.feature { transition: background .3s var(--ease); }
.feature:hover { background: #fff; }
.feature .icon { transition: transform .4s var(--ease); }
.feature:hover .icon { transform: translateY(-3px); }
@media (max-width: 820px) { .features { margin-top: -40px; } }

/* Images */
.split-media, .card--img { overflow: hidden; }
.split-media { border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split-media img, .card--img img, .service-main .hero-img, .provider-head img { transition: transform .8s var(--ease); }
.split-media:hover img, .card--img:hover img { transform: scale(1.04); }
.service-main .hero-img, .provider-head img { box-shadow: var(--shadow); }

/* Cards & tiles */
.card, .quote, .price-item, .contact-card, .step {
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.card { border-color: transparent; box-shadow: var(--shadow-sm); }
.section--cream .card, .section--cream .quote { border-color: transparent; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card .icon { transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease); }
.card:hover .icon { background: var(--orange); color: #fff; transform: rotate(-6deg) scale(1.05); }
.quote { border-color: transparent; box-shadow: var(--shadow-sm); }
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.quote h4 { font-size: 1.15rem; }
.price-item { box-shadow: var(--shadow-sm); border-color: transparent; }
.price-item:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.contact-card:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow); }
.step { border-top-width: 3px; }
.step:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--shadow); }
.insurers li { box-shadow: var(--shadow-sm); border-color: transparent; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.insurers li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.side-nav a { transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease); }
.side-nav a:hover { transform: translateX(3px); }
.side-box { box-shadow: var(--shadow-sm); }
.provider-band, .cta-band { box-shadow: var(--shadow-lg); }
.provider-band img { transition: transform .8s var(--ease); }
.provider-band:hover img { transform: scale(1.03); }

/* Inner page hero: softer depth */
.page-hero { background: radial-gradient(120% 140% at 0% 0%, #1d5c5d 0%, var(--teal) 45%, var(--teal-dark) 100%); }
.page-hero .container > * { animation: rise .7s var(--ease) both; }
.page-hero .container > :nth-child(2) { animation-delay: .06s; }
.page-hero .container > :nth-child(3) { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) { .page-hero .container > * { animation: none; } }

/* Forms & FAQ */
.form input, .form select, .form textarea { transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(232, 149, 40, .18); }
.faq summary { transition: color .2s var(--ease); }
.faq summary:hover { color: var(--orange-dark); }
.faq summary::after { transition: transform .3s var(--ease); }
.faq details[open] summary::after { content: "+"; transform: rotate(45deg); }
.faq details p { animation: rise .35s var(--ease) both; }

/* Footer links */
.footer-links a, .footer-bottom a { transition: color .2s var(--ease), padding-left .25s var(--ease); }
.footer-links a:hover { padding-left: 4px; }
.social a { transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.social a:hover { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-2px); }

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

/* Compact feature rows on small screens */
@media (max-width: 820px) {
  .feature { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding: 22px 22px; align-items: start; }
  .feature .icon { width: 40px; height: 40px; margin: 2px 0 0; grid-row: span 2; }
  .feature h4 { margin-bottom: 2px; font-size: 1.12rem; }
  .feature p { font-size: .95rem; }
}
.features-grid.container { width: calc(100% - 48px); max-width: calc(var(--max) - 48px); padding: 0; }
@media (max-width: 600px) { .features-grid.container { width: calc(100% - 32px); } }

/* ===== Logo: colour + white versions stacked for a crossfade ===== */
.logo { position: relative; display: block; line-height: 0; }
.logo .logo-white { position: absolute; left: 0; top: 0; opacity: 0; }
.logo img { transition: height .35s var(--ease), opacity .4s var(--ease); }

/* ===== Home: transparent header over the hero, fades to white on scroll ===== */
.site-header { transition: background-color .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease); }
.home .site-header { position: fixed; left: 0; right: 0; }
.home .site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(8, 28, 28, .45), rgba(8, 28, 28, 0));
  transition: opacity .45s var(--ease);
}
.home .site-header:not(.scrolled):not(.menu-open) { background-color: transparent; border-color: transparent; box-shadow: none; }
.home .site-header.scrolled::before, .home .site-header.menu-open::before { opacity: 0; }
.home .site-header:not(.scrolled):not(.menu-open) .logo-white { opacity: 1; }
.home .site-header:not(.scrolled):not(.menu-open) .logo-color { opacity: 0; }
.home .site-header:not(.scrolled):not(.menu-open) .nav-toggle { color: #fff; }
.nav-toggle { transition: color .4s var(--ease); }
@media (min-width: 1141px) {
  .nav > ul > li > a, .header-actions .zocdoc { transition: color .4s var(--ease); }
  .home .site-header:not(.scrolled) .nav > ul > li > a,
  .home .site-header:not(.scrolled) .header-actions .zocdoc { color: #fff; }
  .home .site-header:not(.scrolled) .has-sub > a::after { color: rgba(255, 255, 255, .7); }
  .home .site-header:not(.scrolled) .nav > ul > li > a:hover,
  .home .site-header:not(.scrolled) .header-actions .zocdoc:hover { color: var(--cream); }
}
.sub a { color: var(--text); }

/* Hero sits under the fixed header */
.home .hero-content { padding: 140px 0 120px; }

/* ===== Taller hero on phones and tablets ===== */
@media (max-width: 820px) {
  .hero { min-height: 100vh; min-height: 100svh; align-items: flex-end; background-position: 62% center; }
  .hero::after { background-position: 62% center; }
  .hero::before { background: linear-gradient(to top, rgba(12, 38, 38, .9) 0%, rgba(12, 38, 38, .55) 55%, rgba(12, 38, 38, .25) 100%); }
  .home .hero-content { padding: 120px 0 110px; }
  .hero h1 { font-size: clamp(2.6rem, 11vw, 3.4rem); }
}
@media (max-width: 1140px) {
  .sub { box-shadow: none; background: transparent; border-radius: 0; }
  .sub a:hover { padding-left: 12px; }
}

/* ===== Taller inner page headers on phones and tablets ===== */
@media (max-width: 820px) {
  .page-hero { min-height: 60vh; min-height: 60svh; display: flex; align-items: flex-end; padding: 120px 0 64px; }
  .page-hero .container { width: 100%; }
  .page-hero h1 { font-size: clamp(2.5rem, 10.5vw, 3.2rem); }
  .page-hero::after { right: -260px; top: auto; bottom: -60px; width: 640px; height: 460px; opacity: .28; }
}

/* ===== Section with a photo background (as on the original site: photo + 60% dark overlay) ===== */
.section--photo { position: relative; isolation: isolate; color: #fff; background: #202020 var(--bg) center / cover no-repeat; }
.section--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(32, 32, 32, .6); }
.section--photo .section-head h2 { color: #fff; }
.section--photo .section-head p { color: rgba(255, 255, 255, .85); }
.section--photo .card { box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.section--photo .card:hover { box-shadow: 0 22px 50px rgba(0, 0, 0, .3); }
@media (min-width: 1025px) and (hover: hover) { .section--photo { background-attachment: fixed; } }

/* ===== "Comprehensive Care" boxes: hover matches the original site =====
   float up 8px, background → teal, title + text → cream, "Learn more" → orange, icon stays orange */
.section--photo .card {
  border-radius: 20px;
  transition: transform .3s ease-out, background-color .25s cubic-bezier(.455, .03, .515, .955), box-shadow .3s ease-out;
}
.section--photo .card h4 { color: var(--green); transition: color .25s ease; }
.section--photo .card p { color: #343434; transition: color .25s ease; }
.section--photo .card .link-arrow { color: var(--text); transition: color .25s ease, gap .3s var(--ease); }
.section--photo .card .icon { transition: background-color .25s ease, color .25s ease; }
.section--photo .card:hover,
.section--photo .card:focus-within { transform: translateY(-8px); background-color: var(--teal); }
.section--photo .card:hover h4, .section--photo .card:focus-within h4,
.section--photo .card:hover p, .section--photo .card:focus-within p { color: var(--cream); }
.section--photo .card:hover .link-arrow, .section--photo .card:focus-within .link-arrow { color: var(--orange); }
.section--photo .card:hover .icon, .section--photo .card:focus-within .icon { background: rgba(248, 241, 228, .1); color: var(--orange); transform: none; }
/* Whole box is clickable, like the original */
.section--photo .card { position: relative; cursor: pointer; }
.section--photo .card .link-arrow::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.section--photo .card .link-arrow:focus-visible { outline: none; }
.section--photo .card:has(.link-arrow:focus-visible) { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ===== New vs existing patient actions ===== */
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.btn--ghost:hover { background: #fff; color: var(--teal); border-color: #fff; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin: 18px 0 0 !important; font-size: .95rem !important; color: rgba(255, 255, 255, .78) !important; }
.hero-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hero-note a:hover { color: var(--cream); }
@media (prefers-reduced-motion: no-preference) { .hero-content > :nth-child(5) { animation-delay: .4s; } }
@media (max-width: 520px) { .hero-actions .btn { width: 100%; justify-content: center; } }

.patient-login { display: inline-flex; align-items: center; gap: 7px; }
.patient-login svg { flex: none; }
@media (max-width: 1140px) { .header-actions .patient-login { justify-content: center; } }

.price-link { margin-top: 10px; font-size: .85rem; }
.side-login { margin: 16px 0 0; font-size: .92rem; }
.side-login a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.side-login a:hover { color: var(--orange); }
.footer-login { margin: 4px 0 0; font-size: .92rem; }
.footer-login a { text-decoration: underline; text-underline-offset: 3px; }
.cta-band .btn--ghost:hover { color: var(--green); }
.hero-content { max-width: 720px; }
.hero-content > p:not(.hero-note) { max-width: 600px; }
.side-box .btn { width: 100%; justify-content: center; padding-left: 16px; padding-right: 16px; }

/* ===== Header "Request Appointment" button =====
   Same type as the menu items, and keep white text on hover
   (.nav a:hover would otherwise turn it orange-on-orange). */
.nav .header-actions .btn {
  font-family: var(--font); font-size: .98rem; font-weight: 500;
  text-transform: none; letter-spacing: 0; line-height: 1.2;
  padding: 12px 22px;
}
.nav .header-actions .btn--primary,
.nav .header-actions .btn--primary:hover,
.nav .header-actions .btn--primary:focus-visible,
.home .site-header .nav .header-actions .btn--primary:hover { color: #fff; }
@media (max-width: 1140px) { .nav .header-actions .btn { font-size: 1.05rem; padding: 14px 22px; } }

/* =====================================================================
   Buttons, cleaned up: sentence case, one size, no glow.
   Primary keeps the brand orange; its text is dark teal for contrast
   (white on #E89528 is only 2.4:1, dark teal is 5.5:1).
   ===================================================================== */
.btn {
  font: 600 1rem/1.2 var(--font); letter-spacing: 0; text-transform: none;
  padding: 14px 24px; gap: 10px; border-width: 1.5px; box-shadow: none;
}
.btn::after { font-size: 1.05em; }
.btn:hover { transform: translateY(-1px); }
.btn--primary, .btn--primary:hover { box-shadow: none; }
.btn--primary { background: var(--orange); color: var(--teal-dark); }
.btn--primary:hover, .btn--primary:focus-visible { background: #DB8A1F; color: var(--teal-dark); }
.btn--light { background: var(--cream); color: var(--teal-dark); }
.btn--light:hover { background: #fff; color: var(--teal-dark); box-shadow: none; }
.btn--outline { border-color: rgba(23, 75, 76, .35); }
.btn--outline:hover { border-color: var(--teal); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); }

/* Header button keeps menu-item type, with the same contrast fix */
.nav .header-actions .btn { font-weight: 600; padding: 11px 20px; }
.nav .header-actions .btn--primary,
.nav .header-actions .btn--primary:hover,
.nav .header-actions .btn--primary:focus-visible,
.home .site-header .nav .header-actions .btn--primary:hover { color: var(--teal-dark); }
/* Overrides from earlier footer styles */
.site-footer .btn--primary, .site-footer .btn--primary:hover { color: var(--teal-dark); }

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer { padding: 72px 0 0; background: var(--teal-dark); color: rgba(255, 255, 255, .72); font-size: .97rem; }
.site-footer a { color: rgba(255, 255, 255, .85); }
.site-footer a:hover { color: var(--orange); }

.footer-cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: 36px 40px; margin-bottom: 64px; border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .1);
}
.footer-cta-band h3 { color: #fff; font-size: 1.6rem; margin: 0 0 6px; }
.footer-cta-band p { margin: 0; }
.footer-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.15fr; gap: 48px; padding-bottom: 56px; }
.site-footer h5 { color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.footer-logo img { height: auto; width: 210px; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; margin: 0; line-height: 1.6; }
.footer-links { gap: 12px; }
.footer-links a:hover { padding-left: 0; }
.footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.footer-contact li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: start; line-height: 1.5; }
.footer-contact svg { width: 18px; height: 18px; margin-top: 2px; color: var(--orange); }
.footer-contact a { word-break: break-word; }
.social { margin-top: 24px; gap: 10px; }
.social a { width: 38px; height: 38px; border-color: rgba(255, 255, 255, .2); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0 28px; font-size: .88rem; color: rgba(255, 255, 255, .6); }
.footer-bottom a { color: rgba(255, 255, 255, .7); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .site-footer { padding-top: 48px; }
  .footer-cta-band { padding: 28px 22px; margin-bottom: 44px; }
  .footer-cta-actions, .footer-cta-actions .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; gap: 10px; }
}
.footer-grid { grid-template-columns: 1.35fr .95fr .9fr 1.35fr; }
.footer-contact a { word-break: normal; overflow-wrap: anywhere; }
@media (max-width: 1024px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 20px; }
  .footer-grid > .footer-brand, .footer-grid > :last-child { grid-column: 1 / -1; }
  .footer-links { gap: 10px; font-size: .95rem; }
}
