/* =========================================================
   Friendly Smiles Dental — Home (playful brand recreation)
   Locked 8-swatch palette · rounded display type · awning + doodles
   ========================================================= */

@font-face {
  font-family: "BD Supper";
  src: url("../assets/BD-Supper-Regular.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "BD Supper";
  src: url("../assets/BD-Supper-Bold.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette */
  --cream: #fffff5;
  --yellow: #ffdf92;
  --mint: #d7f6ea;
  --teal: #92c8cd;
  --royal: #2644a0;
  --azure: #057bd2;
  --green: #548454;
  --forest: #395a3d;

  /* Roles */
  --paper: var(--cream);
  --ink: #243a2a;                  /* deep forest-charcoal text */
  --ink-2: color-mix(in srgb, #243a2a 64%, var(--cream));
  --accent: var(--azure);
  --cta: var(--yellow);
  --cta-ink: var(--royal);
  --line: color-mix(in srgb, var(--teal) 38%, var(--cream));

  /* Type */
  --display: "BD Supper", "Fredoka", system-ui, sans-serif;
  --head: "BD Supper", "Fredoka", system-ui, sans-serif;
  --body: "Mulish", system-ui, sans-serif;

  /* Shape & rhythm */
  --radius-card: 22px;
  --radius-lg: 34px;
  --pill: 999px;
  --maxw: 1200px;
  --pad: 96px;

  --shadow-sm: 0 2px 10px rgba(36,58,42,.06);
  --shadow-md: 0 14px 40px rgba(36,58,42,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--head); font-weight: 600; line-height: 1.05; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: 32px; }
section { padding-block: var(--pad); }

.sec-sep { border: 0; height: 1px; width: min(100% - 64px, var(--maxw)); margin: 0 auto; background: linear-gradient(90deg, transparent, rgba(0,0,0,.12), transparent); }

/* ---------- Buttons ---------- */
.btn {
  --btn-shadow: color-mix(in srgb, var(--royal) 26%, transparent);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--body); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 15px 28px; border-radius: var(--pill);
  border: 2px solid transparent; cursor: pointer;
  box-shadow: 5px 6px 0 var(--btn-shadow);
  transition: transform .12s ease, box-shadow .12s ease, background .2s, color .2s, border-color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translate(2px, 3px); box-shadow: 3px 3px 0 var(--btn-shadow); }
.btn:active { transform: translate(5px, 6px); box-shadow: 0 0 0 var(--btn-shadow); }
.btn-cta { background: var(--cta); color: var(--cta-ink); --btn-shadow: #cda23f; }
.btn-cta:hover { background: color-mix(in srgb, var(--yellow) 85%, #000); }
.btn-green { background: var(--green); color: #fff; --btn-shadow: var(--forest); }
.btn-green:hover { background: color-mix(in srgb, var(--green) 86%, #000); }
.btn-lightblue { background: var(--teal); color: var(--royal); --btn-shadow: var(--royal); }
.btn-lightblue:hover { background: color-mix(in srgb, var(--teal) 86%, #000); }
.btn-white { background: var(--cream); color: var(--royal); border-color: transparent; --btn-shadow: color-mix(in srgb, var(--teal) 80%, #000); }
.btn-white:hover { background: #fff; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); --btn-shadow: rgba(255,255,255,.3); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-sm { padding: 11px 20px; font-size: .92rem; }

.eyebrow {
  font-family: var(--body); font-size: 13px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}

/* =========================================================
   AWNING — scalloped valance across the very top
   ========================================================= */
.awning {
  height: 26px;
  background:
    radial-gradient(circle at 13px 0, var(--forest) 12px, transparent 13px) 0 0 / 26px 26px repeat-x;
  background-color: var(--cream);
}

/* =========================================================
   NAV
   ========================================================= */
.nav { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: saturate(1.3) blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 26px; min-height: 76px; }
.brand-logo { width: 154px; height: 58px; flex: none; }
.brand-logo image-slot, .brand-logo img { width: 100%; height: 100%; background: transparent; }
.brand-logo image-slot::part(frame) { background: transparent !important; }
.nav-links { display: flex; align-items: center; gap: 26px; margin-inline: auto; }
.nav-links a { font-family: var(--body); font-weight: 600; font-size: .98rem; color: var(--ink); transition: color .15s; }
.nav-links a:hover { color: var(--azure); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-menu-head { display: none; }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; padding: 0 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); cursor: pointer; }
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2){ opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO — azure, rounded display headline + mascot
   ========================================================= */
.hero { background: var(--azure); color: #fff; padding-block: 0; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-block: 70px 64px; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(44px, 6vw, 82px); line-height: .98; letter-spacing: -0.02em; }
.hero .support { margin-top: 22px; font-size: 1.12rem; line-height: 1.6; color: rgba(255,255,255,.92); max-width: 46ch; }
.hero .cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; display: grid; place-items: center; align-self: stretch; }
.hero-art svg, .hero-art img { width: 100%; height: 100%; max-height: 100%; object-fit: contain; object-position: center; filter: drop-shadow(0 18px 30px rgba(0,0,0,.18)); }
.hero-valance { line-height: 0; margin-bottom: 8px; }
.hero-valance img { width: 100%; height: auto; display: block; }

/* ---- Trust ticker strip ---- */
.ticker { background: var(--royal); color: #fff; overflow: hidden; }
.ticker-track { display: flex; align-items: center; white-space: nowrap; padding-block: 14px; animation: ticker 34s linear infinite; }
.ticker-track span { display: inline-flex; align-items: center; font-weight: 600; font-size: .98rem; }
.ticker-track .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); margin: 0 30px; opacity: .85; }
@keyframes ticker { from { transform: translateX(0);} to { transform: translateX(-50%);} }
@media (prefers-reduced-motion: reduce){ .ticker-track { animation: none; } }

/* ---- Top utility bar: centered offer link ---- */
.topbar { display: block; background: var(--royal); color: #fff; text-align: center; font-weight: 700; font-size: .92rem; letter-spacing: .01em; padding: 11px 18px; text-decoration: none; }
.topbar:hover { background: color-mix(in srgb, var(--royal) 88%, #fff); }

/* ---- Hero eyebrow + proof points ---- */
.hero .eyebrow { color: rgba(255,255,255,.88); margin-bottom: 16px; }
.hero .proof { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.hero .proof li { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 1.02rem; font-weight: 500; }
.hero .proof .pc { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--royal); display: grid; place-items: center; }
.hero .proof .stars { color: var(--yellow); letter-spacing: 1px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--royal); color: #fff; padding: 12px 18px; border-radius: 8px; font-weight: 700; text-decoration: none; transition: top .15s ease; }
.skip-link:focus { top: 12px; outline: 3px solid var(--yellow); outline-offset: 2px; }
.hero .proof .rating-text { display: inline; }
.hero .proof b { color: #fff; font-weight: 800; }
@media (max-width: 1024px){ .hero .proof { align-items: flex-start; text-align: left; } .hero .proof li { align-items: flex-start; } }

/* =========================================================
   INTRO — layout A (centered) + layout B (split)
   ========================================================= */
.intro { position: relative; }

/* --- Layout A: centered paragraphs (default) --- */
.intro[data-layout="A"] .about-layout-b,
.intro:not([data-layout]) .about-layout-b { display: none; }
.intro[data-layout="B"] .about-layout-a { display: none; }

.about-layout-a { max-width: 880px; text-align: center; display: flex; flex-direction: column; gap: 22px; }
.about-layout-a p { font-size: 1.2rem; line-height: 1.7; color: var(--ink); }
.about-layout-a p .accent-name { color: var(--azure); font-weight: 700; }

/* --- Layout B: split — quote left / credential tiles right --- */
.about-layout-b {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.ab-quote-col { display: flex; flex-direction: column; gap: 22px; position: relative; }
.ab-qmark { width: 56px; color: var(--azure); }
.ab-quote {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.28;
  color: var(--ink);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
.ab-cite {
  font-size: .9rem;
  font-weight: 700;
  color: var(--azure);
  font-style: normal;
  letter-spacing: .01em;
}
.ab-body { font-size: 1.05rem; line-height: 1.65; color: var(--ink-2); }

.ab-creds-col { display: flex; flex-direction: column; gap: 16px; }
.ab-cred {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 20px;
  align-items: center;
  background: var(--mint);
  border-radius: var(--radius-card);
  padding: 20px 24px;
}
.ab-cred-num {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--royal);
  line-height: 1;
  text-align: center;
}
.ab-cred-label {
  font-size: .93rem;
  line-height: 1.45;
  color: var(--ink);
}

@media (max-width: 860px) {
  .about-layout-b { grid-template-columns: 1fr; gap: 40px; }
}

.doodle { position: absolute; opacity: .95; pointer-events: none; }
.doodle img { width: 100%; height: auto; }
.doodle.sun { left: 3%; top: 14%; width: 150px; }
.doodle.flower { right: 4%; bottom: 8%; width: 120px; }
@media (max-width: 1080px){ .doodle { display: none; } }

/* ---------- Wavy / checker separators (CSS tiles) ---------- */
.sep-wavy { height: 12px; background: url("../assets/sep-wavy-dark.svg") repeat-x center / auto 10px; }
.sep-wavy.on-dark { background-image: url("../assets/sep-wavy-white.svg"); }
.sep-checker { height: 16px; background: url("../assets/sep-checker.svg") repeat-x center / auto 16px; }

/* ---------- Dashed divider ---------- */
.divider-dashed { height: 0; border: 0; border-top: 3px dotted color-mix(in srgb, var(--green) 60%, var(--cream)); max-width: var(--maxw); margin: 0 auto; }

/* =========================================================
   MEET THE DOCTORS — 2x2 colored cards
   ========================================================= */
.sec-head { margin-bottom: 40px; }
.sec-head h2 { font-family: var(--display); font-size: clamp(30px, 3.6vw, 44px); }
.sec-head.center { text-align: center; }
.sec-head .support { margin-top: 12px; color: var(--ink-2); font-size: 1.06rem; max-width: 60ch; }
.sec-head.center .support { margin-inline: auto; }

.docs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.doc-card { border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; }
.doc-card.mint { background: var(--teal); }
.doc-card.azure { background: var(--azure); }
.doc-card.green { background: var(--green); }
.doc-card.royal { background: var(--royal); }
.doc-card .photo { width: 100%; height: 340px; border-radius: 18px; overflow: hidden; background: #fff; }
.doc-card .photo image-slot { width: 100%; height: 100%; border-radius: 18px; }
.doc-card .doc-name { font-family: var(--display); font-size: 1.55rem; margin-top: 20px; text-align: center; }
.doc-card .doc-role { text-align: center; font-weight: 800; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; margin-top: 6px; }
.doc-card .doc-bio { margin-top: 12px; font-size: .94rem; line-height: 1.58; text-align: left; }
.doc-card .doc-learn { margin: 18px auto 4px; }
.doc-card > .doc-learn { margin-top: auto; }

/* Doctor bio accordion: Learn More toggles the full bio */
.doc-acc { margin-top: 16px; text-align: center; }
.doc-card .doc-acc summary { margin: 0 auto; list-style: none; cursor: pointer; }
.doc-acc summary::-webkit-details-marker { display: none; }
.doc-acc summary::marker { content: ""; }
.doc-acc[open] summary { margin-bottom: 4px; }
.doc-acc .doc-bio { margin-top: 14px; }
.doc-card.mint .doc-name { color: var(--royal); }
.doc-card.mint .doc-role { color: var(--azure); }
.doc-card.mint .doc-bio { color: color-mix(in srgb, var(--forest) 80%, var(--mint)); }
.doc-card.azure .doc-name, .doc-card.green .doc-name, .doc-card.royal .doc-name { color: #fff; }
.doc-card.azure .doc-role, .doc-card.green .doc-role, .doc-card.royal .doc-role { color: var(--yellow); }
.doc-card.azure .doc-bio, .doc-card.green .doc-bio, .doc-card.royal .doc-bio { color: rgba(255,255,255,.9); }

/* FS monogram intro card */
.doc-card.fs-card { align-items: center; justify-content: center; text-align: center; gap: 8px; }
.doc-card.fs-card .fs-mono { width: 60%; max-width: 230px; margin: 8px auto 6px; }
.doc-card.fs-card h3 { font-family: var(--display); color: #fff; font-size: 1.7rem; margin-top: 6px; }
.doc-card.fs-card p { color: rgba(255,255,255,.86); font-size: .98rem; margin-top: 8px; max-width: 34ch; }
.doc-card.fs-card .btn { margin-top: 18px; }

/* =========================================================
   OUR VALUES — rounded azure panel
   ========================================================= */
.values .wrap { background: var(--azure); border-radius: var(--radius-lg); padding: 60px clamp(28px, 5vw, 76px); color: #fff; }
.values h2 { font-family: var(--display); text-align: center; color: #fff; font-size: clamp(28px, 3.4vw, 42px); margin-bottom: 44px; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.value { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.value .vico { width: 92px; height: 92px; }
.value .vico svg { width: 100%; height: 100%; }
.value h3 { font-family: var(--display); color: var(--yellow); font-size: 1.28rem; }
.value p { color: rgba(255,255,255,.86); font-size: .96rem; line-height: 1.55; }

/* =========================================================
   OUR SERVICES — forest panel with arched top + accordion
   ========================================================= */
.services { position: relative; background: var(--forest); color: #fff; padding-top: 40px; }
.services-arch { position: absolute; top: 1px; left: 0; width: 100%; height: 120px; transform: translateY(-100%); display: block; }
.services-arch svg { width: 100%; height: 100%; display: block; }
.services-mascot { position: absolute; top: 0; left: 50%; transform: translate(-50%, -86%); width: 150px; z-index: 3; }
.services-mascot svg, .services-mascot img { width: 100%; height: auto; }
.services .sec-head h2 { color: #fff; }
.services .eyebrow { color: var(--yellow); }
.services .sec-head .support { color: rgba(255,255,255,.84); }
.services-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; margin-top: 8px; }
.services-photo { width: 100%; height: 420px; border-radius: var(--radius-card); overflow: hidden; }
.services-photo image-slot { width: 100%; height: 100%; border-radius: var(--radius-card); }
.accordion { display: flex; flex-direction: column; }
.acc-item { border-bottom: 1px solid rgba(255,255,255,.22); }
.acc-item summary { list-style: none; cursor: pointer; padding: 22px 4px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--display); font-weight: 500; font-size: 1.4rem; color: #fff; }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary .chev { flex: none; width: 30px; height: 30px; display: grid; place-items: center; transition: transform .25s; }
.acc-item[open] summary .chev { transform: rotate(180deg); }
.acc-item .acc-body { padding: 0 4px 24px; color: rgba(255,255,255,.85); font-size: 1rem; line-height: 1.6; max-width: 60ch; }
.services .btn { margin-top: 30px; }
@media (min-width: 1025px) { .services-photo { position: sticky; top: 96px; align-self: start; } }

/* =========================================================
   AFFILIATIONS — logo strip image
   ========================================================= */
.affil { text-align: center; }
.affil img { width: 100%; max-width: 1080px; margin: 0 auto; }
.affil image-slot { width: 100%; max-width: 1080px; margin: 0 auto; height: 200px; }

/* =========================================================
   REVIEWS — colored cards
   ========================================================= */
.reviews .review-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; align-items: start; }
.review { border-radius: var(--radius-card); padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-sm); }
.review .stars { color: var(--yellow); letter-spacing: 2px; font-size: 1rem; }
.review .quote { font-size: .98rem; line-height: 1.55; }
.review .who { margin-top: auto; display: flex; align-items: center; gap: 11px; }
.review .avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.review .name { font-weight: 700; font-size: .95rem; }
.review .src { font-size: .8rem; opacity: .72; }
.review.forest { background: var(--forest); color: #fff; }
.review.green { background: var(--green); color: #fff; }
.review.azure { background: var(--azure); color: #fff; }
.review.teal { background: var(--teal); color: var(--forest); }
.review.yellow { background: var(--yellow); color: var(--royal); }
.review.yellow .stars { color: var(--green); }
.review.teal .stars { color: var(--royal); }
.review .avatar { background: rgba(255,255,255,.22); color: #fff; }
.review.teal .avatar, .review.yellow .avatar { background: rgba(57,90,61,.18); color: var(--forest); }

/* =========================================================
   SMILE GALLERY + WHITENING BAND
   ========================================================= */
.gallery { background: var(--yellow); position: relative; }
.gallery .gal-head { text-align: center; position: relative; margin-bottom: 34px; }
.gallery h2 { font-family: var(--display); color: var(--royal); font-size: clamp(26px, 3.2vw, 40px); }
.gallery .whiten-badge { display: inline-block; margin-top: 14px; background: var(--azure); color: #fff; font-family: var(--body); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .76rem; padding: 9px 20px; border-radius: var(--pill); }
.gal-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.gal-row image-slot { width: 100%; aspect-ratio: 3/4; border-radius: 20px; }
.gallery .gal-cta { text-align: center; margin-top: 32px; }

/* =========================================================
   BLOG
   ========================================================= */
.blog .blog-top { display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px; align-items: end; margin-bottom: 40px; }
.blog .blog-top h2 { font-family: var(--display); color: var(--royal); font-size: clamp(28px, 3.4vw, 44px); }
.blog .blog-top p { color: var(--ink-2); font-size: 1.04rem; }
.blog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.post { display: flex; flex-direction: column; gap: 16px; }
.post image-slot { width: 100%; height: 300px; border-radius: var(--radius-card); }
.post h3 { font-family: var(--display); font-weight: 500; font-size: 1.32rem; color: var(--ink); text-align: center; }

/* =========================================================
   CLOSING CTA
   ========================================================= */
.closing { background: var(--azure); color: #fff; text-align: center; }
.closing h2 { font-family: var(--display); color: #fff; font-size: clamp(30px, 3.8vw, 48px); }
.closing .eyebrow { color: rgba(255,255,255,.85); }
.closing p { color: rgba(255,255,255,.85); margin-top: 16px; font-size: 1.1rem; max-width: 52ch; margin-inline: auto; }
.closing .cta-row { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer { background: var(--royal); color: rgba(255,255,255,.78); padding-block: 64px 30px; }
.footer .wrap { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; }
.footer h5 { color: #fff; font-family: var(--body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; font-weight: 800; }
.footer .f-logo { width: 180px; margin-bottom: 16px; }
.footer .f-logo image-slot, .footer .f-logo img { background: transparent; }
.footer .f-sub { color: rgba(255,255,255,.55); font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin: 14px 0 3px; }
.footer .f-val { font-size: .96rem; line-height: 1.5; color: rgba(255,255,255,.82); }
.footer .f-phone { font-family: var(--body); font-size: .96rem; font-weight: 400; color: rgba(255,255,255,.82); }
.footer .f-phone:hover { color: #fff; }
.footer .f-map { color: rgba(255,255,255,.82); text-decoration: none; }
.footer .f-map:hover { color: #fff; text-decoration: underline; }
.footer .f-social { display: flex; gap: 12px; margin-top: 18px; }
.footer .f-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); color: #fff; transition: background .15s ease; }
.footer .f-social a:hover { background: var(--yellow); color: var(--royal); }
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: .96rem; }
.footer ul a:hover { color: #fff; }
.footer .f-hours li { display: flex; justify-content: space-between; gap: 14px; }
.footer .f-bottom { max-width: var(--maxw); margin: 44px auto 0; padding: 22px 32px 0; border-top: 1px solid rgba(255,255,255,.16); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px 28px; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer .f-legal { display: flex; align-items: center; gap: 28px; }
.footer .f-legal a, .footer .f-built { color: rgba(255,255,255,.78); text-decoration: none; }
.footer .f-legal a:hover, .footer .f-built:hover { color: #fff; }
.footer .f-legal a + a { position: relative; }
.footer .f-legal a + a::before { content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%); width: 1px; height: 13px; background: rgba(255,255,255,.28); }

/* =========================================================
   IMAGE SLOT defaults
   ========================================================= */
image-slot { --slot-bg: color-mix(in srgb, var(--teal) 40%, var(--cream)); background: var(--slot-bg); display: block; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  :root { --pad: 72px; }
  .nav-links { position: fixed; inset: 0; width: 100vw; height: 100dvh; flex-direction: column; align-items: center; justify-content: center; gap: 6px; margin: 0; padding: 90px 32px 40px; background: var(--cream); z-index: 70; transform: translateY(-100%); opacity: 0; pointer-events: none; transition: transform .32s, opacity .25s; }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu-head { display: flex; align-items: center; justify-content: space-between; position: absolute; top: 0; left: 0; right: 0; height: 76px; padding: 0 24px; border-bottom: 1px solid var(--line); }
  .nav-close { width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); cursor: pointer; }
  .nav-links a { font-size: 1.3rem; padding: 14px; }
  .nav-toggle { display: flex; }
  .nav-actions { margin-left: auto; }
  .nav-book-desktop { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 18px; text-align: center; padding-block: 54px 40px; padding-inline: 28px; }
  .hero .support { margin-inline: auto; width: auto; max-width: 100%; }
  .hero .cta-row { justify-content: center; }
  .hero-art { order: -1; }
  .hero-art svg, .hero-art img { width: min(70%, 300px); height: auto; }
  .docs-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; gap: 34px; }
  .services-grid { grid-template-columns: 1fr; gap: 30px; }
  .services-photo { height: 320px; }
  .reviews .review-grid { grid-template-columns: 1fr 1fr; }
  .gal-row { grid-template-columns: repeat(3, 1fr); }
  .blog .blog-top { grid-template-columns: 1fr; gap: 16px; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer .wrap { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 620px) {
  :root { --pad: 56px; }
  .wrap { padding-inline: 20px; }
  .hero h1 { font-size: clamp(38px, 11vw, 52px); }
  .reviews .review-grid { grid-template-columns: 1fr; }
  .gal-row { grid-template-columns: repeat(2, 1fr); }
  .values .wrap { padding: 44px 22px; }
  .footer .wrap { grid-template-columns: 1fr; }
  .footer .f-bottom { flex-direction: column; }
}

/* =========================================================
   RESTORED CONTENT SECTIONS (playful restyle)
   ========================================================= */

/* ---- Why Friendly Smiles — 3 feature cards ---- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 34px 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.feature .fico { width: 62px; height: 62px; border-radius: 18px; background: var(--azure); color: #fff; display: grid; place-items: center; margin-bottom: 4px; }
.feature h3 { font-family: var(--display); font-weight: 500; font-size: 1.4rem; color: var(--royal); }
.feature p { color: var(--ink-2); font-size: 1rem; line-height: 1.6; }

/* ---- New Patient Visit ---- */
.npv-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: start; }
.npv-grid .eyebrow { color: var(--azure); }
.npv-grid h2 { font-family: var(--display); font-size: clamp(28px, 3.4vw, 42px); color: var(--royal); }
.npv-grid .support { margin-top: 14px; color: var(--ink-2); font-size: 1.06rem; }
.npv-list { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; }
.npv-list li { display: flex; align-items: flex-start; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 1.04rem; line-height: 1.5; }
.npv-list li:last-child { border-bottom: 0; }
.npv-list .pc { flex: none; width: 28px; height: 28px; border-radius: 50%; margin-top: 1px; background: var(--azure); color: #fff; display: grid; place-items: center; }
.special-card { background: var(--royal); color: #fff; border-radius: var(--radius-lg); padding: 38px 34px; box-shadow: var(--shadow-md); }
.special-card .badge { display: inline-block; background: var(--teal); color: var(--royal); font-family: var(--body); font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; padding: 7px 14px; border-radius: var(--pill); margin-bottom: 18px; }
.special-card h3 { font-family: var(--display); color: #fff; font-size: 1.7rem; }
.special-card .price { font-family: var(--display); font-size: 2.9rem; line-height: 1; margin: 16px 0 6px; color: var(--teal); }
.special-card .price small { font-family: var(--body); font-size: 1rem; font-weight: 600; color: rgba(255,255,255,.85); }
.special-card p { color: rgba(255,255,255,.85); font-size: .98rem; margin-top: 12px; }
.special-card .btn { margin-top: 22px; width: 100%; }
.special-card .fine { font-size: .82rem; color: rgba(255,255,255,.6); margin-top: 14px; }
@media (min-width: 1025px) { .special-card { position: sticky; top: 96px; } }

/* ---- Doctor bio modal ---- */
.doc-modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.doc-modal.open { display: block; }
.doc-modal-backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--forest) 62%, transparent); backdrop-filter: blur(3px); }
.doc-modal-card { position: relative; z-index: 1; width: min(680px, calc(100vw - 40px)); max-height: calc(100vh - 64px); overflow: auto; margin: clamp(24px, 7vh, 80px) auto 0; background: var(--cream); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); display: grid; grid-template-columns: 240px 1fr; }
.doc-modal-photo { background: #fff; }
.doc-modal-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.doc-modal-body { padding: 34px 34px 36px; }
.doc-modal-name { font-family: var(--display); font-size: 1.7rem; color: var(--royal); }
.doc-modal-role { font-weight: 800; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--azure); margin-top: 6px; }
.doc-modal-bio { margin-top: 16px; font-size: 1rem; line-height: 1.62; color: var(--ink); }
.doc-modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: var(--cream); color: var(--royal); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.doc-modal-close:hover { background: #fff; }
@media (max-width: 620px) {
  .doc-modal-card { grid-template-columns: 1fr; }
  .doc-modal-photo img { height: 240px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
}

/* =========================================================
   SPECIALTY & ADVANCED CARE — cream background
   ========================================================= */
.specialty { background: var(--cream); }
.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.spec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 28px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow-sm); }
.spec .sico { width: 56px; height: 56px; border-radius: 16px; background: var(--azure); color: #fff; display: grid; place-items: center; }
.spec h3 { font-family: var(--display); font-weight: 500; font-size: 1.3rem; color: var(--royal); }
.spec p { color: var(--ink-2); font-size: .96rem; line-height: 1.55; }
.spec-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.spec-tags .tag { background: transparent; color: var(--ink-2); border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent); font-weight: 600; font-size: .72rem; padding: 3px 9px; border-radius: var(--pill); }

/* ---- Compare table — soft teal background ---- */
.compare { background: color-mix(in srgb, var(--teal) 26%, var(--cream)); }
.compare-wrap { max-width: 980px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare-row { display: grid; grid-template-columns: 1fr 1fr; }
.compare-row + .compare-row { border-top: 1px solid var(--line); }
.compare-head .cc { font-family: var(--display); font-weight: 500; font-size: 1.15rem; padding-block: 20px; }
.compare-head .cc.fs { background: var(--royal); color: #fff; }
.compare-head .cc.corp { color: var(--ink-2); }
.compare-row .cc { padding: 16px 24px; display: flex; align-items: flex-start; gap: 11px; font-size: 1rem; line-height: 1.45; }
.compare-row .cc.fs { color: var(--ink); font-weight: 600; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--mint) 50%, var(--cream)); }
.compare-row .cc.corp { color: var(--ink-2); }
.compare-row .cc .mk { flex: none; margin-top: 2px; }
.compare-row .cc.fs .mk { color: var(--green); }
.compare-row .cc.corp .mk { color: var(--teal); }

/* ---- Cost & insurance (royal panel) ---- */
.cost .wrap { background: var(--royal); border-radius: var(--radius-lg); padding: 60px clamp(28px, 5vw, 76px); color: #fff; text-align: center; }
.cost .eyebrow { color: var(--yellow); }
.cost h2 { font-family: var(--display); color: #fff; font-size: clamp(28px, 3.4vw, 44px); }
.cost .support { color: rgba(255,255,255,.85); margin-top: 14px; font-size: 1.06rem; max-width: 60ch; margin-inline: auto; }
.cost-list { list-style: none; margin: 30px auto 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 38px; text-align: left; max-width: 760px; }
.cost-list li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255,255,255,.92); font-size: 1.04rem; }
.cost-list .pc { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--royal); display: grid; place-items: center; margin-top: 1px; }
.cost-note { color: rgba(255,255,255,.62); font-size: .92rem; margin: 20px auto 0; max-width: 760px; }
.cost .cta-row { margin-top: 30px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- FAQ — yellow background ---- */
.faq { background: var(--yellow); }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-item summary { list-style: none; cursor: pointer; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--display); font-weight: 500; font-size: 1.16rem; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pm { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--azure); color: #fff; display: grid; place-items: center; font-size: 1.4rem; line-height: 1; transition: transform .25s, background .2s, color .2s; }
.faq-item[open] summary .pm { transform: rotate(45deg); background: var(--royal); color: #fff; }
.faq-item .faq-a { padding: 0 26px 24px; color: var(--ink-2); font-size: 1rem; line-height: 1.65; }

@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: 1fr; }
  .npv-grid { grid-template-columns: 1fr; gap: 32px; }
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .cost-list { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .spec-grid { grid-template-columns: 1fr; }
  .compare-head .cc { font-size: 1rem; padding-block: 15px; }
  .compare-row .cc { padding: 13px 15px; font-size: .92rem; }
  .special-card .price { font-size: 2.4rem; }
}

/* Hidden via tweaks */
[data-hidden="true"] { display: none !important; }
body.nav-open { overflow: hidden; }

/* =========================================================
   Clean <img> replacements for the original <image-slot> web component.
   These reproduce the component's fit/position cropping with plain CSS.
   ========================================================= */
.brand-logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.doc-card .photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; border-radius: 18px; display: block; }
.services-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; border-radius: var(--radius-card); display: block; }
.footer .f-logo img { width: 100%; height: auto; display: block; }

/* =========================================================
   Floating Google review widget
   ========================================================= */
.google-review-widget-wrapper { position: fixed; left: 1rem; bottom: 1rem; z-index: 998; }
.google-review-widget {
  color: #424bf6;
  cursor: pointer;
  background-color: #fff;
  border-radius: 2em;
  align-items: center;
  gap: .5em;
  padding: .5em 1em;
  line-height: 100%;
  text-decoration: none;
  display: flex;
  box-shadow: 0 4px 18px #00000022;
  font-family: "Mulish", system-ui, sans-serif;
  font-size: 15px;
}
.google-review-widget-icon { display: block; }
#reviews-container .google-widget { display: flex; align-items: center; white-space: nowrap; font-weight: 600; }
.g-footer-number { margin-left: .5em; color: rgb(70, 116, 242); }
@media only screen and (max-width: 767px) {
  .google-review-widget { font-size: 13px; padding: .45em .8em; }
}

/* =========================================================
   UserWay accessibility widget — position override
   ========================================================= */
body .uwy.userway_p1 .userway_buttons_wrapper {
  top: auto !important;
  right: -1rem !important;
  bottom: 1rem !important;
  left: auto !important;
}
@media only screen and (min-width: 200px) and (max-width: 767px) {
  body .uwy.userway_p1 .userway_buttons_wrapper {
    top: auto !important;
    right: auto !important;
    left: 3.2rem !important;
    bottom: .75em !important;
  }
}
