/* ============================================================
   Knutson Family Dentistry — site stylesheet
   Cream base (#efedea) · gold brand accent (#b4a687) · sage secondary
   Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

:root{
  --bg:        #efedea;
  --bg-soft:   #f6f4f1;
  --white:     #fcfbf9;
  --ink:       #211f1b;
  --ink-soft:  #4a463f;
  --muted:     #8a847a;
  --rule:      #ddd7cc;
  --rule-soft: #e7e2d8;

  --gold:      #b4a687;
  --gold-deep: #8d7f5e;   /* readable gold for text/links */
  --gold-tint: #e7e1d2;
  --gold-wash: #f0ebdf;

  --sage:      oklch(58% 0.05 165);
  --sage-deep: oklch(46% 0.05 165);
  --sage-tint: oklch(94% 0.02 165);

  --serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --sans:  "DM Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --shadow-card: 0 24px 50px -34px rgba(40,30,20,.28);
  --shadow-soft: 0 14px 34px -26px rgba(40,30,20,.30);

  --maxw: 1240px;
  --gutter: 40px;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
img{ max-width:100%; display:block; }
a{ color:inherit; }

/* ---------- type ---------- */
h1,h2,h3,h4{ font-family:var(--serif); font-weight:500; color:var(--ink); margin:0; line-height:1.05; letter-spacing:-0.01em; }
h1{ font-size:clamp(40px,5.2vw,66px); }
h2{ font-size:clamp(30px,3.6vw,46px); }
h3{ font-size:clamp(22px,2.2vw,28px); line-height:1.15; }
p{ margin:0 0 1em; }
.serif-em{ font-style:italic; color:var(--gold-deep); }

.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--sans); font-size:12px; font-weight:600;
  letter-spacing:0.18em; text-transform:uppercase; color:var(--gold-deep);
  margin:0 0 18px;
}
/* (decorative dash before eyebrow removed per request) */
.eyebrow.centered{ justify-content:center; }

/* ---------- layout helpers ---------- */
.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter); }
.wrap-narrow{ max-width:920px; margin:0 auto; padding:0 var(--gutter); }
section[id]{ scroll-margin-top:100px; }
section{ position:relative; }
.section-pad{ padding:94px 0; }
.section-pad-sm{ padding:64px 0; }
.bg-soft{ background:var(--bg-soft); }
.bg-gold-wash{ background:var(--bg); }
.bg-ink{ background:var(--ink); color:var(--bg-soft); }
.bg-ink h1,.bg-ink h2,.bg-ink h3{ color:var(--white); }
.text-center{ text-align:center; }
.lede{ font-size:19px; color:var(--ink-soft); max-width:56ch; }
.lede.centered{ margin-left:auto; margin-right:auto; }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  padding:15px 26px; border-radius:999px; cursor:pointer;
  font-family:var(--sans); font-size:15px; font-weight:600; letter-spacing:.01em;
  text-decoration:none; border:1.5px solid transparent;
  transition:background .2s, color .2s, border-color .2s, transform .15s;
}
.btn-sm{ padding:10px 18px; font-size:11px; }
.btn .ico{ width:17px; height:17px; }
.btn-primary{ background:var(--gold); color:#3a3324; }
.btn-primary:hover{ background:var(--gold-deep); color:var(--white); transform:translateY(-1px); }
.btn-gold{ background:var(--gold); color:#3a3324; }
.btn-gold:hover{ background:var(--gold-deep); color:var(--white); transform:translateY(-1px); }
.btn-ghost{ background:transparent; color:var(--ink); border-color:var(--ink); }
.btn-ghost:hover{ background:var(--ink); color:var(--white); }
.btn-ghost-light{ background:transparent; color:var(--white); border-color:rgba(255,255,255,.5); }
.btn-ghost-light:hover{ background:var(--white); color:var(--ink); border-color:var(--white); }
.btn-row{ display:flex; flex-wrap:wrap; gap:12px; }
.btn-row.centered{ justify-content:center; }

/* ---------- header ---------- */
.site-header{
  position:sticky; top:0; z-index:50;
  background:var(--bg);
  overflow:visible;
  transition:box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled{ border-bottom:1px solid var(--gold-tint); }
.site-header .bar{
  max-width:var(--maxw); margin:0 auto; padding:0 var(--gutter);
  height:84px; display:flex; align-items:center; justify-content:space-between; gap:24px;
  overflow:visible;
}
/* fixed-size brand box keeps the bar at 84px while the logo overflows downward */
.brand{ position:relative; width:188px; height:84px; flex-shrink:0; text-decoration:none; display:block; }
.brand img{
  position:absolute; left:0; top:8px; height:150px; width:auto;
  transition:height .28s ease, top .28s ease;
}
.site-header.scrolled .brand img{ height:74px; top:5px; }
.brand .brand-txt{ display:none; }
.nav{ display:flex; align-items:center; gap:4px; }
.nav a{
  position:relative; text-decoration:none; color:var(--ink-soft);
  font-size:14px; font-weight:500; letter-spacing:.01em;
  padding:10px 14px; border-radius:8px; white-space:nowrap;
  transition:color .18s, background .18s;
}
.nav a:hover{ color:var(--gold-deep); background:transparent; }
.nav a.active{ color:var(--gold-deep); }
.nav a.active::after{
  content:""; position:absolute; left:14px; right:14px; bottom:4px; height:2px;
  background:var(--gold); border-radius:2px;
}
/* nav dropdowns */
.nav-item{ position:relative; display:inline-flex; align-items:center; }
.nav .dropdown{
  position:absolute; top:100%; left:0; min-width:210px;
  background:var(--white); border:1px solid var(--rule); border-radius:12px;
  box-shadow:var(--shadow-card); padding:8px; display:flex; flex-direction:column; gap:2px;
  opacity:0; visibility:hidden; transform:translateY(6px);
  transition:opacity .16s ease, transform .16s ease, visibility .16s; z-index:60;
}
.nav-item:hover > .dropdown, .nav-item:focus-within > .dropdown{ opacity:1; visibility:visible; transform:translateY(0); }
.nav .dropdown a{ padding:9px 14px; border-radius:8px; font-size:13.5px; color:var(--ink-soft); white-space:nowrap; }
.nav .dropdown a:hover{ background:transparent; color:var(--gold-deep); }
.nav .dropdown a.active::after{ display:none; }
.header-cta{ display:flex; align-items:center; gap:14px; flex-shrink:0; }
.header-phone{
  display:inline-flex; align-items:center; gap:8px; text-decoration:none;
  color:var(--ink); font-weight:600; font-size:15px; white-space:nowrap;
}
.header-phone .ico{ width:16px; height:16px; color:var(--gold-deep); }
.header-cta .btn{ padding:11px 20px; font-size:14px; }
.nav-toggle{ display:none; background:none; border:none; cursor:pointer; padding:8px; color:var(--ink); }
.nav-toggle svg{ width:26px; height:26px; }

/* mobile nav panel */
.mobile-nav{
  display:none; flex-direction:column; gap:2px;
  padding:12px var(--gutter) 24px; border-bottom:1px solid var(--rule);
  background:var(--bg-soft);
}
.mobile-nav.open{ display:flex; }
.mobile-nav a{
  text-decoration:none; color:var(--ink); font-size:16px; font-weight:500;
  padding:13px 8px; border-bottom:1px solid var(--rule-soft);
}
.mobile-nav a:last-of-type{ border-bottom:none; }
.mobile-nav .btn{ margin-top:14px; }

/* ---------- hero ---------- */
.hero{ position:relative; overflow:hidden; }
.hero-grid{
  position:relative; z-index:2;
  display:grid; grid-template-columns:1.02fr 0.98fr; gap:64px; align-items:center;
  padding:80px var(--gutter) 124px;
}
/* swoop transition into the next (bg-soft) section */
.hero::after{
  content:""; position:absolute; left:-6%; bottom:-1px; width:112%; height:120px;
  background:var(--bg-soft); z-index:1; pointer-events:none;
  border-radius:50% 50% 0 0 / 100% 100% 0 0;
}
/* section with hero-cream bg + matching swoop curves top & bottom (neighbors are bg-soft) */
.swoop-section{
  position:relative; background:var(--bg); overflow:hidden;
  padding-top:150px; padding-bottom:150px; z-index:0;
}
.swoop-section > .wrap{ position:relative; z-index:2; }
.swoop-section::before,
.swoop-section::after{
  content:""; position:absolute; left:-6%; width:112%; height:120px;
  background:var(--bg-soft); z-index:1; pointer-events:none;
}
.swoop-section::before{ top:-1px; border-radius:0 0 50% 50% / 0 0 100% 100%; }
.swoop-section::after{ bottom:-1px; border-radius:50% 50% 0 0 / 100% 100% 0 0; }
/* specialty FAQ: swoop in from the section above only — the CTA gold swoop handles the bottom */
#faq.swoop-section::after{ content:none; }
.hero-photo{ position:relative; }
.hero-photo .frame{
  position:relative; border-radius:50%; overflow:hidden;
  aspect-ratio:1/1; max-width:520px; margin:0 auto;
}
.hero-photo .frame img{ width:100%; height:100%; object-fit:cover; }
.hero-photo .ring-accent{
  position:absolute; inset:auto auto -18px -18px; width:72%; height:72%;
  border:2px solid var(--gold); border-radius:50%; z-index:-1;
}
.hero h1{ margin-bottom:20px; }
.hero .lede{ margin-bottom:30px; }

/* page banner (interior pages) */
.page-banner{ padding:64px 0 18px; }
.page-banner .eyebrow{ margin-bottom:14px; }
.page-banner h1{ max-width:18ch; }
.page-banner .lede{ margin-top:20px; }
/* interior hero — darker bg + inverted swoop (dark dips down into the next, lighter section) */
.page-banner.hero-banner{ background:var(--bg); padding:96px 0 130px; position:relative; z-index:2; overflow-x:clip; }
.page-banner.hero-banner > .wrap{ position:relative; z-index:2; }
.page-banner.hero-banner::after{
  content:""; position:absolute; left:-6%; width:112%; bottom:-1px; height:120px;
  background:var(--bg-soft); z-index:1; pointer-events:none;
  border-radius:50% 50% 0 0 / 100% 100% 0 0;
}
/* consistent clearance for the first section under every interior hero (clears the swoop) */
.page-banner.hero-banner + section{ padding-top:56px; }
/* one-off convex bottom swoop transition into the next (lighter) section */
.swoop-bottom{ position:relative; overflow-x:clip; }
.swoop-bottom > .wrap{ position:relative; z-index:2; }
.swoop-bottom::after{
  content:""; position:absolute; left:-6%; width:112%; bottom:-1px; height:110px;
  background:var(--bg-soft); z-index:1; pointer-events:none;
  border-radius:50% 50% 0 0 / 100% 100% 0 0;
}
/* community photo gallery */
.community-gallery{ display:grid; grid-template-columns:repeat(5,1fr); gap:14px; }
.community-gallery img{ width:100%; aspect-ratio:1/1; object-fit:cover; border-radius:14px; display:block; }
@media (max-width:900px){ .community-gallery{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:600px){ .community-gallery{ grid-template-columns:repeat(2,1fr); } }
/* community photo slideshow */
.photoshow{ max-width:780px; margin:0 auto; }
.photoshow-stage{ border-radius:20px; overflow:hidden; aspect-ratio:16/10; background:var(--gold-wash); }
.photoshow-img{ width:100%; height:100%; object-fit:cover; display:block; cursor:pointer; transition:opacity .2s ease; }
.photoshow-cap{ text-align:center; color:var(--ink-soft); font-size:14px; margin:18px 0 16px; min-height:1.2em; }
.photoshow-dots{ display:flex; flex-wrap:wrap; justify-content:center; gap:9px; }
.photoshow-dots button{ width:9px; height:9px; border-radius:50%; border:none; cursor:pointer; padding:0; background:var(--rule); transition:background .2s, transform .2s; }
.photoshow-dots button.active{ background:var(--gold); transform:scale(1.3); }
/* two-column bulleted org list */
.org-list{ list-style:none; margin:0; padding:0; column-count:2; column-gap:34px; }
.org-list li{ position:relative; padding:7px 0 7px 20px; color:var(--ink-soft); font-size:14px; break-inside:avoid; }
.org-list li::before{ content:""; position:absolute; left:2px; top:15px; width:6px; height:6px; border-radius:50%; background:var(--gold); }
@media (max-width:600px){ .org-list{ column-count:1; } }

/* ---------- generic two-col rows ---------- */
.split{ display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }
.split.reverse .split-media{ order:2; }
.split-media img{ border-radius:20px; width:100%; }
.media-frame{ position:relative; }
.media-frame .tag{
  position:absolute; inset:auto auto -16px -16px; width:55%; height:60%;
  border:2px solid var(--gold); border-radius:20px; z-index:-1;
}
.media-frame.tag-tr .tag{ inset:-16px -16px auto auto; }
/* thin gold ring accent, upper-left, behind the photo */
.media-frame .ring-tl,
.media-frame .ring-tr{
  position:absolute; bottom:-16px; left:-16px; top:auto; right:auto; width:60%; height:60%;
  border:2px solid var(--gold); border-radius:50%; z-index:0;
}
/* checkmark bullet list */
.check-list{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:16px; }
.check-list li{
  position:relative; padding-left:38px; color:var(--ink-soft); font-size:16px; line-height:1.5;
}
.check-list li::before{
  content:""; position:absolute; left:0; top:3px; width:26px; height:20px;
  background:url('assets/checkmark.png') no-repeat center / contain;
}
.check-list li::after{ content:none; }

/* ---------- feature cards ---------- */
.card-grid{ display:grid; gap:24px; }
.cols-2{ grid-template-columns:repeat(2,1fr); }
.cols-3{ grid-template-columns:repeat(3,1fr); }
.cols-4{ grid-template-columns:repeat(4,1fr); }
.card{
  background:var(--white); border:1px solid var(--rule); border-radius:18px;
  padding:30px;
}
.card .card-ico{
  width:48px; height:48px; border-radius:12px; background:var(--gold-wash);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
  color:var(--gold-deep);
}
.card .card-ico svg{ width:24px; height:24px; }
.card h3{ margin-bottom:10px; }
.card p{ color:var(--ink-soft); font-size:15px; margin:0; }

/* service list cards */
.svc{
  background:var(--white); border:1px solid var(--rule); border-radius:20px; padding:34px 34px 30px;
  box-shadow:none; height:100%;
}
.svc h3{ margin-bottom:8px; }
.svc-photo{ width:88px; height:88px; border-radius:50%; object-fit:cover; margin-bottom:18px; border:3px solid var(--white); }
.svc .svc-sub{ color:var(--gold-deep); font-weight:600; font-size:13px; letter-spacing:.04em; text-transform:uppercase; margin-bottom:18px; }
.svc ul{ list-style:none; margin:0; padding:0; }
.svc li{
  position:relative; padding:11px 0 11px 28px; border-top:1px solid var(--rule-soft);
  color:var(--ink-soft); font-size:15px;
}
.svc li:first-child{ border-top:none; }
.svc li::before{
  content:""; position:absolute; left:2px; top:18px; width:8px; height:8px;
  border-radius:50%; background:var(--gold);
}
/* services: sticky photo + scrolling content */
.svc-sticky{ display:grid; grid-template-columns:0.92fr 1.08fr; gap:64px; align-items:start; }
.svc-sticky .svc-media{ position:sticky; top:104px; }
.ph-photo{
  position:relative; z-index:1; aspect-ratio:1/1; border-radius:50%; max-width:440px; margin:0 auto;
  background:repeating-linear-gradient(45deg, var(--gold-wash), var(--gold-wash) 13px, #ece3d0 13px, #ece3d0 26px);
  display:flex; align-items:center; justify-content:center; text-align:center; padding:0 14%;
  color:var(--gold-deep); font-family:ui-monospace,"SFMono-Regular",Menlo,monospace; font-size:12px; letter-spacing:.05em; line-height:1.5;
}
@media (max-width:900px){
  .svc-sticky{ grid-template-columns:1fr; gap:36px; }
  .svc-sticky .svc-media{ position:static; }
  .ph-photo{ max-width:360px; }
}
/* in-content info blocks (non-accordion prose) */
.info-block{ margin-top:34px; }
.info-block:first-of-type{ margin-top:28px; }
.info-block h3{ font-size:21px; margin-bottom:10px; }
.info-block p{ color:var(--ink-soft); font-size:16px; line-height:1.6; margin:0 0 12px; }
.info-block p:last-child{ margin-bottom:0; }
.info-list{ list-style:none; margin:0 0 12px; padding:0; }
.info-list li{ position:relative; padding:5px 0 5px 20px; color:var(--ink-soft); font-size:16px; line-height:1.5; }
.info-list li::before{ content:""; position:absolute; left:2px; top:13px; width:6px; height:6px; border-radius:50%; background:var(--gold); }

/* ---------- stat band ---------- */
.stats{ display:grid; grid-template-columns:repeat(3,1fr); gap:30px; }
.stat{ text-align:center; }
.stat .num{ font-family:var(--serif); font-size:clamp(40px,5vw,60px); color:var(--gold-deep); line-height:1; }
.stat .lab{ margin-top:10px; font-size:14px; color:var(--ink-soft); letter-spacing:.02em; }

/* ---------- team ---------- */
.team-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:40px 36px; }
.member{ text-align:left; }
.member .photo{
  border-radius:50%; overflow:hidden; aspect-ratio:1/1; background:var(--gold-wash);
  margin-bottom:16px;
}
.member .photo img{ width:100%; height:100%; object-fit:cover; }
.member .photo.mono{
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(160deg,#cabf9f,#a99a73);
}
.member .photo.mono span{ font-family:var(--serif); font-size:64px; color:#fff; opacity:.9; }
.member h4{ font-family:var(--serif); font-size:21px; }
.member .role{ color:var(--gold-deep); font-size:13px; font-weight:600; letter-spacing:.03em; text-transform:uppercase; margin-top:3px; }
.member .bio{ color:var(--ink-soft); font-size:14px; margin-top:10px; }

.doctor{ display:grid; grid-template-columns:0.8fr 1.2fr; gap:44px; align-items:center; }
.doctor .photo{ position:relative; overflow:visible; box-shadow:none; aspect-ratio:1/1; max-width:400px; margin:0 auto; }
.doctor .photo img{ width:100%; height:100%; object-fit:cover; border-radius:50%; position:relative; z-index:1; }
.doctor .photo::after{ content:""; position:absolute; bottom:-16px; left:-16px; top:auto; right:auto; width:60%; height:60%; border:2px solid var(--gold); border-radius:50%; z-index:0; }
.doctor.reverse .photo::after{ right:auto; left:-16px; }

/* ---------- gallery ---------- */
.gallery-filters{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom:40px; }
.filter-btn{
  border:1.5px solid var(--rule); background:var(--white); color:var(--ink-soft);
  padding:9px 18px; border-radius:999px; font-family:var(--sans); font-size:14px; font-weight:500;
  cursor:pointer; transition:all .18s;
}
.filter-btn:hover{ border-color:var(--gold); color:var(--ink); }
.filter-btn.active{ background:var(--ink); color:var(--white); border-color:var(--ink); }
.masonry{ columns:3; column-gap:22px; }
.masonry .ph{ break-inside:avoid; margin-bottom:22px; border-radius:16px; overflow:hidden; position:relative; }
.masonry .ph img{ width:100%; transition:transform .4s; }
.masonry .ph:hover img{ transform:scale(1.04); }
.masonry .ph .cap{
  position:absolute; left:0; right:0; bottom:0; padding:30px 16px 14px;
  background:linear-gradient(transparent,rgba(20,16,10,.78)); color:#fff; font-size:13px;
  opacity:0; transition:opacity .25s;
}
.masonry .ph:hover .cap{ opacity:1; }

/* ---------- testimonials ---------- */
.quote-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.quote{
  background:var(--white); border:1px solid var(--rule); border-radius:18px; padding:30px;
  box-shadow:none; display:flex; flex-direction:column;
}
.quote .stars{ color:var(--gold); letter-spacing:3px; margin-bottom:14px; font-size:15px; }
.quote p{ font-family:var(--serif); font-size:20px; line-height:1.35; color:var(--ink); }
.quote .who{ margin-top:auto; padding-top:16px; color:var(--gold-deep); font-weight:600; font-size:14px; }

/* testimonials slider */
.slider{ --per:3; --gap:26px; display:flex; align-items:center; gap:14px; }
.slider-window{ flex:1 1 auto; overflow:hidden; }
.slider-track{ display:flex; gap:var(--gap); transition:transform .45s ease; }
.slider-track .testimonial{ flex:0 0 calc((100% - (var(--per) - 1) * var(--gap)) / var(--per)); box-sizing:border-box; margin:0; }
.testimonial{
  background:var(--white); border:1px solid var(--rule); border-radius:18px; padding:42px 38px;
  box-shadow:none; display:flex; flex-direction:column; height:100%;
}
.slider-track .testimonial > div,
.slider-track .testimonial{ height:auto; }
.testimonial .stars{ color:var(--gold); letter-spacing:3px; margin-bottom:14px; font-size:15px; }
.testimonial p{ font-family:var(--serif); font-size:20px; line-height:1.35; color:var(--ink); margin:0 0 16px; }
.testimonial figcaption{ margin-top:auto; color:var(--gold-deep); font-weight:600; font-size:14px; }
.slider-arrow{ display:none; }
.slider-dots{ display:flex; justify-content:center; gap:9px; margin-top:30px; }
.slider-dots button{
  width:9px; height:9px; border-radius:50%; border:none; cursor:pointer; padding:0;
  background:var(--rule); transition:background .2s, transform .2s;
}
.slider-dots button.active{ background:var(--gold); transform:scale(1.3); }

/* ---------- FAQ accordion ---------- */
.faq{ max-width:860px; margin:0 auto; }
.faq-item{ border-bottom:1px solid var(--rule); }
.faq-q{
  width:100%; background:none; border:none; cursor:pointer; text-align:left;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:24px 4px; font-family:var(--serif); font-size:21px; color:var(--ink);
}
.faq-q .pm{ flex-shrink:0; width:26px; height:26px; position:relative; transition:transform .3s; }
.faq-q .pm::before,.faq-q .pm::after{
  content:""; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  background:var(--gold-deep);
}
.faq-q .pm::before{ width:14px; height:2px; }
.faq-q .pm::after{ width:2px; height:14px; transition:transform .3s; }
.faq-item.open .faq-q .pm::after{ transform:translate(-50%,-50%) scaleY(0); }
.faq-a{ display:none; }
.faq-item.open .faq-a{ display:block; }
.faq-a .faq-a-inner{ padding:6px 4px 24px; color:var(--ink-soft); font-size:16px; max-width:72ch; }

/* ---------- accordion (patient info) ---------- */
.acc-item{ background:var(--white); border:1px solid var(--rule); border-radius:16px; margin-bottom:14px; overflow:hidden; box-shadow:var(--shadow-soft); }
.acc-q{
  width:100%; background:none; border:none; cursor:pointer; text-align:left;
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:24px 28px; font-family:var(--serif); font-size:23px; color:var(--ink);
}
.acc-q .pm{ flex-shrink:0; width:26px; height:26px; position:relative; transition:transform .3s; }
.acc-q .pm::before,.acc-q .pm::after{ content:""; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); background:var(--gold-deep); }
.acc-q .pm::before{ width:14px; height:2px; }
.acc-q .pm::after{ width:2px; height:14px; transition:transform .3s; }
.acc-item.open .acc-q .pm::after{ transform:translate(-50%,-50%) scaleY(0); }
.acc-a{ display:none; }
.acc-item.open .acc-a{ display:block; }
.acc-a .acc-a-inner{ padding:2px 28px 26px; color:var(--ink-soft); font-size:16px; }
.acc-a a{ color:var(--gold-deep); font-weight:600; }

/* ---------- forms ---------- */
.form-card{
  background:var(--white); border:1px solid var(--rule); border-radius:22px;
  padding:40px; box-shadow:var(--shadow-card);
}
.field{ margin-bottom:18px; }
.field label{ display:block; font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted); margin-bottom:7px; font-weight:600; }
.field input,.field select,.field textarea{
  width:100%; background:var(--bg-soft); border:1px solid var(--rule); border-radius:10px;
  padding:13px 14px; font:inherit; font-size:16px; color:var(--ink); outline:none;
  transition:border-color .2s, box-shadow .2s;
}
.field input:focus,.field select:focus,.field textarea:focus{
  border-color:var(--gold); box-shadow:0 0 0 3px var(--gold-tint);
}
.field textarea{ resize:vertical; min-height:120px; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-success{
  display:none; padding:14px 16px; background:var(--gold-wash); border:1px solid var(--gold);
  border-radius:12px; color:var(--gold-deep); font-size:15px; margin-bottom:18px;
}
.form-success.show{ display:block; }

/* contact info rows */
.contact-list{ list-style:none; margin:0; padding:0; }
.contact-list li{ display:flex; gap:16px; padding:20px 0; border-bottom:1px solid var(--rule); }
.contact-list li:last-child{ border-bottom:none; }
.contact-list .ci-ico{
  flex-shrink:0; width:46px; height:46px; border-radius:12px; background:var(--gold-wash);
  display:flex; align-items:center; justify-content:center; color:var(--gold-deep);
}
.contact-list .ci-ico svg{ width:22px; height:22px; }
.contact-list .ci-label{ font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); font-weight:600; margin-bottom:3px; }
.contact-list .ci-val{ font-family:var(--serif); font-size:21px; color:var(--ink); }
.contact-list .ci-val a{ text-decoration:none; }
.contact-list .ci-val a:hover{ color:var(--gold-deep); }

/* ---------- CTA band ---------- */
.cta-band{ position:relative; overflow-x:clip; background-color:var(--gold); color:#3a3324; padding:36px 0 88px; margin-top:0; }
.cta-inner{ display:flex; align-items:center; gap:72px; }
.cta-media{ position:relative; flex:0 0 auto; width:300px; height:300px; }
.cta-media img{ position:relative; z-index:1; width:300px; height:300px; border-radius:50%; object-fit:cover; display:block; }
.cta-ring{ position:absolute; z-index:0; width:300px; height:300px; border-radius:50%; background:transparent; border:2px solid var(--ink); top:22px; left:22px; }
.cta-copy{ flex:1 1 auto; }
.cta-copy h2{ color:var(--ink); margin-bottom:16px; }
.cta-copy p{ color:rgba(40,30,20,.74); margin:0 0 28px; font-size:18px; text-align:justify; text-wrap:pretty; }
.cta-copy .btn-row{ justify-content:flex-start; }
/* gold swoop rising into the section above */
.cta-band::before{
  content:""; position:absolute; left:-6%; top:-89px; width:112%; height:90px;
  background:var(--gold); border-radius:50% 50% 0 0 / 100% 100% 0 0; pointer-events:none;
}
.cta-band .accent-line{ display:none; }
/* buttons on the gold band */
.cta-band .btn-gold{ background:var(--ink); color:var(--white); border-color:var(--ink); }
.cta-band .btn-gold:hover{ background:#000; color:var(--white); }
.cta-band .btn-ghost-light{ background:transparent; color:var(--ink); border-color:var(--ink); }
.cta-band .btn-ghost-light:hover{ background:var(--ink); color:var(--white); border-color:var(--ink); }

/* ---------- footer ---------- */
.site-footer{ background:var(--bg); color:var(--ink-soft); padding:70px 0 28px; font-size:14px; border-top:1px solid var(--rule); }
.footer-grid{ display:grid; grid-template-columns:1.5fr 1fr 1fr 1.1fr 1.3fr; gap:40px; padding-bottom:42px; border-bottom:1px solid var(--rule); }
.site-footer h5{ font-family:var(--sans); font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); margin:0 0 18px; font-weight:600; }
.site-footer a{ color:var(--ink-soft); text-decoration:none; }
.site-footer a:hover{ color:var(--gold-deep); }
.footer-brand .footer-logo{ height:84px; width:auto; margin-bottom:16px; }
.footer-brand p{ max-width:34ch; }
.footer-links{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:11px; }
.footer-map{ border-radius:14px; overflow:hidden; border:1px solid var(--rule); box-shadow:var(--shadow-soft); height:112px; align-self:start; min-height:0; }
.footer-map iframe{ width:100%; height:100%; min-height:0; border:0; display:block; }
.footer-bottom{ display:flex; justify-content:space-between; align-items:center; gap:20px; padding-top:24px; flex-wrap:wrap; color:var(--muted); font-size:13px; }
.footer-bottom .site-by{ color:var(--muted); }
.footer-bottom .site-by:hover{ color:var(--gold-deep); }
.footer-social{ display:flex; gap:12px; margin-top:18px; }
.footer-social a{ width:38px; height:38px; border:1px solid var(--rule); border-radius:50%; display:flex; align-items:center; justify-content:center; color:var(--ink-soft); }
.footer-social a:hover{ border-color:var(--gold); background:var(--gold-wash); color:var(--gold-deep); }
.footer-social svg{ width:17px; height:17px; }

/* ---------- reveal-on-scroll (only hides when JS is active) ---------- */
.js .reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.js .reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){ .js .reveal{ opacity:1; transform:none; } html{ scroll-behavior:auto; } }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width:1080px){
  :root{ --gutter:30px; }
  .nav{ display:none; }
  .nav-toggle{ display:block; }
  .site-header .bar{ justify-content:flex-start; }
  .brand{ margin-right:auto; }
  .hero-grid{ gap:44px; }
  .team-grid{ grid-template-columns:repeat(3,1fr); }
  .slider{ --per:3; }
}
@media (max-width:900px){
  .section-pad{ padding:70px 0; }
  .hero-grid{ grid-template-columns:1fr; gap:40px; padding:54px var(--gutter) 64px; }
  .hero-photo{ order:-1; max-width:520px; }
  .split{ grid-template-columns:1fr; gap:36px; }
  .split.reverse .split-media{ order:-1; }
  .cols-3,.cols-4{ grid-template-columns:repeat(2,1fr); }
  .quote-grid{ grid-template-columns:1fr; }
  .slider{ --per:3; }
  .doctor{ grid-template-columns:1fr; gap:28px; }
  .doctor .photo{ max-width:360px; }
  .masonry{ columns:2; }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:32px; }
  .footer-brand{ grid-column:1 / -1; }
  .footer-map{ grid-column:1 / -1; min-height:200px; }
  .cta-inner{ flex-direction:column; gap:40px; text-align:center; }
  .cta-copy p{ text-align:center; }
  .cta-copy .btn-row{ justify-content:center; }
  .header-cta .btn{ display:none; }
}
@media (max-width:600px){
  :root{ --gutter:20px; }
  .section-pad{ padding:54px 0; }
  .slider{ --per:1; }
  .section-pad-sm{ padding:44px 0; }
  .cols-2,.cols-3,.cols-4{ grid-template-columns:1fr; }
  .team-grid{ grid-template-columns:repeat(2,1fr); gap:18px; }
  .stats{ grid-template-columns:1fr; gap:22px; }
  .field-row{ grid-template-columns:1fr; gap:0; }
  .masonry{ columns:1; }
  .form-card{ padding:26px 20px; }
  .footer-grid{ grid-template-columns:1fr; gap:28px; }
  .site-header .bar{ height:72px; }
  .brand{ width:124px; height:72px; }
  .brand img{ height:104px; top:10px; }
  .site-header.scrolled .brand img{ height:62px; top:5px; }
  .header-cta{ gap:0; }
  .header-phone{ padding:8px; }
  .header-phone span{ display:none; }
  .header-phone .ico{ width:22px; height:22px; }
  .hero-photo .ring-accent{ width:66%; height:66%; }
  .btn{ padding:14px 22px; }
}
