/* ==========================================================================
   Serenity Dental — design system
   Brand: sky blue #2ea3f2 · navy #284389 · teal #82c0c7
   Fonts: Bricolage Grotesque (display) · Hanken Grotesk (body)
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --blue-500: #2ea3f2;
  --blue-600: #1d7fc4;
  --blue-700: #1666a8;
  --blue-800: #284389;
  --blue-900: #1d3469;
  --blue-100: #e3f1fd;
  --blue-50:  #f2f9fe;
  --teal-500: #82c0c7;
  --teal-100: #e8f3f4;
  --ink:        #1a2733;
  --ink-muted:  #566571;
  --muted:      #566571;   /* alias used by some builders */
  --slate:      #64748b;
  --nav-navy:      #274387; /* matches the logo's baked-in background exactly */
  --nav-navy-dark: #1e3266; /* top contact bar */
  --line:       #e1e8ef;
  --page-bg:    #ffffff;
  --alt-bg:     #f5f9fc;
  --card-bg:    #ffffff;
  --warning:    #dc3232;
  --success:    #1f9c6a;

  --font-display: 'Bricolage Grotesque', Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 3px rgba(26,39,51,.07), 0 1px 2px rgba(26,39,51,.05);
  --shadow-md: 0 10px 30px -12px rgba(26,39,51,.22);
  --shadow-lg: 0 24px 60px -20px rgba(40,67,137,.32);
  --ease: cubic-bezier(.22,.61,.36,1);
  --t: 180ms var(--ease);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--page-bg);
  line-height: 1.65;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-700); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--blue-800); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; font-weight: 600; margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
/* Sticky-header offset for in-page anchor jumps so headings aren't hidden under the nav. */
[id] { scroll-margin-top: 96px; }
/* Snappier taps on touch devices; suppress the grey flash on tap. */
a, button, summary, .btn, input[type="submit"], .faq summary, label { touch-action: manipulation; -webkit-tap-highlight-color: rgba(40,67,137,.15); }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1rem; }
ul, ol { margin: 0 0 1.1rem; padding-left: 1.2rem; }
li { margin-bottom: .45rem; }
strong { color: var(--ink); font-weight: 700; }

:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }

.container { width: min(var(--container), 100% - 2.6rem); margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--blue-800); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color:#fff; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--blue-500); --btn-ink: #fff;
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: var(--radius-pill);
  background: var(--btn-bg); color: var(--btn-ink);
  border: 2px solid transparent; cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t);
  box-shadow: 0 6px 18px -8px rgba(46,163,242,.7);
}
.btn:hover { transform: translateY(-2px); color: var(--btn-ink); box-shadow: 0 12px 26px -10px rgba(46,163,242,.8); }
.btn:active { transform: translateY(0); }
.btn-primary, .btn--primary { --btn-bg: var(--blue-500); --btn-ink:#fff; }
.btn-primary:hover, .btn--primary:hover { background: var(--blue-600); }
.btn-ghost, .btn--ghost { --btn-bg: transparent; --btn-ink: var(--blue-800); border-color: var(--line); box-shadow: none; }
.btn-ghost:hover { --btn-bg: var(--blue-50); border-color: var(--blue-500); }
.btn-on-dark { --btn-bg:#fff; --btn-ink: var(--blue-800); box-shadow:none; }
.btn-on-dark:hover { --btn-bg: var(--teal-100); }
.btn--lg { padding: .95rem 1.9rem; font-size: 1.04rem; }
.btn-nav { padding: .6rem 1.25rem; }

/* ---------- Topbar ---------- */
.topbar { background: var(--nav-navy-dark); color: #fff; font-size: .86rem; }
.topbar a { color: #fff; }
.topbar a:hover { color: var(--teal-100); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; padding-block: .25rem; }
.topbar-info { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.tb-item { display: inline-flex; align-items: center; gap: .4rem; opacity: .95; }
.tb-item svg { opacity: .85; }
.topbar-social { display: flex; gap: .5rem; }
/* 44×44 tap target (a11y) with a 30px visible circle drawn on the icon. */
.tb-social { display: grid; place-items: center; width: 44px; height: 44px; color:#fff; }
.tb-social svg { width: 30px; height: 30px; padding: 8px; box-sizing: border-box; border-radius: 50%; background: rgba(255,255,255,.12); transition: background var(--t); }
.tb-social:hover svg { background: rgba(255,255,255,.25); }
@media (max-width: 760px) { .tb-hide-sm { display: none; } }

/* ---------- Header / nav (solid navy so the white logo reads cleanly) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--nav-navy); border-bottom: 1px solid rgba(255,255,255,.12); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 92px; }
.brand-logo { display: block; width: min(250px, 42vw); height: auto; object-fit: contain; }
.brand-logo--footer { width: auto; height: 56px; }
.main-nav { display: flex; align-items: center; gap: .35rem; }
.main-nav > a { padding: .55rem .75rem; border-radius: 8px; font-weight: 600; font-size: .97rem; color: rgba(255,255,255,.9); }
.main-nav > a:hover, .main-nav > a.active { color: #fff; background: rgba(255,255,255,.14); }
.nav-phone { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: #fff !important; margin-left: .3rem; }
.nav-phone:hover { color: var(--teal-100) !important; }
.btn-nav { margin-left: .4rem; }

/* dropdown */
.has-dropdown { position: relative; }
.services-toggle { display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-weight: 600; font-size: .97rem; color: rgba(255,255,255,.9); background: none; border: 0; padding: .55rem .75rem; border-radius: 8px; cursor: pointer; }
.services-toggle:hover, .services-toggle.active, .has-dropdown:hover .services-toggle { color: #fff; background: rgba(255,255,255,.14); }
.chev { font-size: .8em; transition: transform var(--t); }
.has-dropdown:hover .chev { transform: rotate(180deg); }
.dropdown { position: absolute; top: 100%; left: 0; min-width: 280px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity var(--t), transform var(--t), visibility var(--t); z-index: 50; }
/* hover bridge — spans the gap so the panel stays open while the cursor travels down */
.dropdown::before { content: ""; position: absolute; top: -12px; left: 0; right: 0; height: 12px; }
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item { display: block; padding: .6rem .85rem; border-radius: 9px; font-weight: 600; color: var(--ink); }
.dropdown-item:hover { background: var(--blue-50); color: var(--blue-700); }
.dropdown-item--parent { display: flex; align-items: center; justify-content: space-between; }
.has-submenu { position: relative; }
.has-submenu .chev { transform: none; }
.submenu { position: absolute; top: -.5rem; left: calc(100% - 4px); min-width: 250px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .5rem; opacity: 0; visibility: hidden; transform: translateX(6px); transition: opacity var(--t), transform var(--t), visibility var(--t); }
.has-submenu:hover .submenu, .has-submenu:focus-within .submenu { opacity: 1; visibility: visible; transform: translateX(0); }
.submenu a { display: block; padding: .55rem .8rem; border-radius: 9px; font-weight: 600; color: var(--ink); }
.submenu a:hover { background: var(--blue-50); color: var(--blue-700); }
.submenu-overview { color: var(--blue-700) !important; border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0 !important; margin-bottom: .25rem; }

/* mobile menu toggle */
.menu-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; }
.menu-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform var(--t), opacity var(--t); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .menu-toggle { display: flex; }
  .main-nav { position: fixed; inset: 114px 0 0 auto; width: min(360px, 86vw); flex-direction: column; align-items: stretch; gap: .15rem; background: var(--nav-navy); border-left: 1px solid rgba(255,255,255,.12); box-shadow: var(--shadow-lg); padding: 1.2rem; transform: translateX(110%); transition: transform var(--t); overflow-y: auto; overscroll-behavior: contain; }
  .main-nav.open { transform: translateX(0); }
  .has-dropdown, .has-submenu { position: static; }
  .dropdown, .submenu { position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: 0; border-left: 2px solid rgba(255,255,255,.2); border-radius: 0; margin: .2rem 0 .2rem .6rem; padding-left: .4rem; min-width: 0; }
  .has-dropdown.open > .dropdown, .has-submenu.open > .submenu { display: block; }
  .has-dropdown.open > .services-toggle .chev, .has-submenu.open > .dropdown-item--parent .chev { transform: rotate(180deg); }
  .dropdown::before { display: none; }
  .dropdown-item, .submenu a { color: rgba(255,255,255,.88); }
  .dropdown-item:hover, .submenu a:hover { background: rgba(255,255,255,.14); color: #fff; }
  .submenu-overview { color: var(--teal-100) !important; border-bottom-color: rgba(255,255,255,.15); }
  .nav-phone, .btn-nav { margin: .5rem 0 0; justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--alt { background: var(--alt-bg); }
.section--tight { padding: clamp(1.6rem, 3vw, 2.6rem) 0; }
.section .eyebrow, .eyebrow { display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600); margin-bottom: .6rem; }
.sec-head { max-width: 760px; }
.two-col { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: center; }
.two-col--reverse .two-col-media { order: -1; }
.two-col-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 4/3; }
.two-col-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } .two-col--reverse .two-col-media { order: 0; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(2.6rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 5.5rem); background: linear-gradient(180deg, var(--blue-50), #fff 70%); }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; z-index: 2; }
.hero__blob { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .5; z-index: 1; }
.hero__blob--1 { width: 460px; height: 460px; background: radial-gradient(circle, rgba(130,192,199,.55), transparent 70%); top: -120px; right: -90px; }
.hero__blob--2 { width: 380px; height: 380px; background: radial-gradient(circle, rgba(46,163,242,.4), transparent 70%); bottom: -140px; left: -120px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.1rem; }
.hero__badge { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .4rem .9rem; font-weight: 600; font-size: .85rem; box-shadow: var(--shadow-sm); }
.hero__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-500, #16a34a); flex: none; }
.hero__badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(31,156,106,.18); }
.hero h1 { margin-bottom: .5rem; }
.hero__sub { font-size: 1.18rem; color: var(--ink-muted); max-width: 38ch; margin-bottom: 1.8rem; }
.hero__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.hero__phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--blue-800); }
.hero__visual { position: relative; }
.hero__photo { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; background: var(--teal-100); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.hero__chip { position: absolute; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-radius: 16px; box-shadow: var(--shadow-md); padding: .7rem .95rem; display: flex; align-items: center; gap: .6rem; }
.hero__chip--reviews { bottom: 1.1rem; left: -1.4rem; }
.hero__chip--reviews .num { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; line-height: 1; }
.hero__chip--reviews small { color: var(--ink-muted); font-size: .74rem; }
.hero__chip--years { top: 1.1rem; right: -1rem; flex-direction: column; gap: 0; text-align: center; }
.hero__stars { color: #f5b301; display: inline-flex; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 440px; margin: 0 auto; }
  .hero__chip--reviews { left: .4rem; }
}

/* ---------- Tiles ---------- */
.tiles__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: -3.5rem; position: relative; z-index: 5; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-md); transition: transform var(--t), box-shadow var(--t); }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile--accent { background: linear-gradient(160deg, var(--blue-800), var(--blue-700)); color: #fff; border-color: transparent; }
.tile.tile--accent h3, .tile.tile--accent p { color: #fff; }
.tile--accent .tile__link { color: var(--teal-100); }
.tile--accent .tile__link:hover { color: #fff; }
.tile__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--blue-50); color: var(--blue-700); margin-bottom: .9rem; }
.tile--accent .tile__icon { background: rgba(255,255,255,.16); color: #fff; }
.tile__icon svg { width: 24px; height: 24px; }
.tile h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.tile p { font-size: .95rem; color: var(--ink-muted); margin-bottom: .8rem; }
.tile__link { font-weight: 700; font-size: .9rem; color: var(--blue-700); display: inline-flex; gap: .3rem; }
@media (max-width: 1024px) { .tiles__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles__grid { grid-template-columns: 1fr; margin-top: -2rem; } }

/* ---------- Service grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2.4rem; }
.subsvc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.3rem; margin-top: 2rem; }
.svc-card, .subsvc-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.svc-card:hover, .subsvc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-500); }
.svc-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, var(--blue-100), var(--teal-100)); color: var(--blue-700); margin-bottom: 1rem; }
.svc-icon svg { width: 28px; height: 28px; }
.svc-card h3, .subsvc-card h3 { font-size: 1.18rem; margin-bottom: .4rem; color: var(--ink); }
.svc-card p, .subsvc-card p { color: var(--ink-muted); font-size: .96rem; margin-bottom: 1rem; }
.svc-cta { font-weight: 700; color: var(--blue-700); font-size: .92rem; display: inline-flex; gap: .35rem; }
@media (max-width: 880px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- CDCP / coverage band ---------- */
.cdcp-band { background: linear-gradient(150deg, var(--blue-800), var(--blue-700)); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.8rem, 4vw, 3rem); box-shadow: var(--shadow-lg); }
.cdcp-band__inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2rem; align-items: center; }
.cdcp-band h2 { color: #fff; }
.cdcp-band p { color: rgba(255,255,255,.9); }
.cdcp-band .eyebrow { color: var(--teal-100); }
.cdcp-band__cta { text-align: right; }
@media (max-width: 760px) { .cdcp-band__inner { grid-template-columns: 1fr; } .cdcp-band__cta { text-align: left; } }

/* ---------- Why-choose value list ---------- */
.section ul li::marker { color: var(--blue-500); }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; margin-top: 2rem; }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.team-photo { aspect-ratio: 1/1; overflow: hidden; background: var(--teal-100); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-name { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; margin: .9rem 1rem .1rem; }
.team-role { color: var(--ink-muted); font-size: .9rem; margin: 0 1rem 1rem; }
@media (max-width: 860px) { .team-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Office tour gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin-top: 2rem; }
.gallery-grid__item { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t); }
.gallery-grid__item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-grid__item img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.gallery-grid__item figcaption { padding: .8rem 1rem 1rem; font-weight: 700; font-size: .92rem; color: var(--ink-muted); }
@media (max-width: 860px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-top: 1.6rem; }
.faq { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-bottom: .8rem; overflow: hidden; }
.faq summary { cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--blue-600); transition: transform var(--t); line-height: 1; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq__body { padding: 0 1.3rem 1.2rem; color: var(--ink-muted); }

/* ---------- Reviews / quote section ---------- */
.section--quote { background: linear-gradient(160deg, var(--blue-800), var(--blue-900)); color: #fff; }
.section--quote h2 { color: #fff; }
.section--quote .eyebrow { color: var(--teal-100); }
.section--quote p { color: rgba(255,255,255,.88); }
.review-widget-card { background: #fff; border-radius: var(--radius-lg); padding: 1rem; margin: 2rem auto 0; max-width: 1000px; box-shadow: var(--shadow-lg); }
.reviews-frame { width: 100%; min-height: 420px; border: 0; border-radius: var(--radius); }
.review-cta { text-align: center; margin-top: 1.8rem; }

/* ---------- Forms ---------- */
.ff-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 3vw, 2.1rem); box-shadow: var(--shadow-md); }
.ff-form__head h3 { font-size: 1.3rem; margin-bottom: .25rem; }
.ff-form__head p { color: var(--ink-muted); font-size: .95rem; margin-bottom: 1.2rem; }
.ff-row { margin-bottom: 1rem; }
.ff-row--split { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ff-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.ff-form input, .ff-form select, .ff-form textarea { width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: .98rem; background: var(--blue-50); transition: border-color var(--t), background var(--t); }
.ff-form input:focus, .ff-form select:focus, .ff-form textarea:focus { border-color: var(--blue-500); background: #fff; }
.ff-form input:focus-visible, .ff-form select:focus-visible, .ff-form textarea:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 1px; }
.ff-actions { margin-top: 1.2rem; }
.ff-fineprint { font-size: .8rem; color: var(--ink-muted); margin: .9rem 0 0; }
@media (max-width: 520px) { .ff-row--split { grid-template-columns: 1fr; } }
.map-embed { width: 100%; min-height: 320px; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }

/* ---------- Associations strip ---------- */
.assoc-strip { background: var(--alt-bg); }
.assoc-strip__grid { display: flex; flex-wrap: wrap; gap: 1.6rem; align-items: center; justify-content: center; }
.assoc-card { display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.6rem; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t); }
.assoc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.assoc-card__logo img { object-fit: contain; }
.assoc-card--cda img { max-height: 64px; max-width: 200px; }
.assoc-card--ada img { max-height: 56px; max-width: 220px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(150deg, var(--blue-500), var(--blue-700)); color: #fff; border-radius: var(--radius-lg); padding: clamp(2.2rem, 5vw, 3.6rem); text-align: center; box-shadow: var(--shadow-lg); margin: clamp(3rem, 6vw, 5rem) 0; }
.cta-band-inner { max-width: 640px; margin-inline: auto; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.92); margin-bottom: 1.6rem; }
.cta-band .contact-link { color: var(--blue-100); text-decoration: underline; text-decoration-color: rgba(255,255,255,.45); text-underline-offset: 2px; }
.cta-band .contact-link:hover { color: #fff; text-decoration-color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--nav-navy); color: rgba(255,255,255,.78); padding: clamp(2.6rem, 5vw, 4rem) 0 1.6rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 2rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: .55rem; }
.footer-tagline { margin: 1rem 0; font-size: .95rem; }
.social { display: flex; gap: .6rem; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; transition: background var(--t); }
.social a:hover { background: var(--blue-500); }
.footer-contact { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.footer-contact li { display: flex; gap: .55rem; align-items: flex-start; margin-bottom: .7rem; }
.footer-contact svg { margin-top: .25rem; flex: none; }
.hours { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; max-width: 240px; }
.hours .day { color: rgba(255,255,255,.7); }
.footer-hours-h { margin-top: 1.2rem; }
.footer-assoc { padding: 1.6rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.assoc-h { margin-bottom: .8rem; }
.assoc-list { list-style: none; display: flex; flex-wrap: wrap; gap: 1.4rem; padding: 0; margin: 0; font-size: .9rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; font-size: .85rem; }
.footer-bottom-links a { margin: 0; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: .85rem; color: var(--ink-muted); margin-bottom: 1rem; }
.crumbs a { color: var(--blue-700); }
.crumbs span[aria-current] { color: var(--ink-muted); }

/* ---------- Prose (verbatim content) ---------- */
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; font-size: 1.12rem; }
.prose p { margin-bottom: 1.1rem; }
.prose ul, .prose ol { margin-bottom: 1.2rem; }
.prose__figure { margin: 1.6rem 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 3vw, 2.4rem); align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem; box-shadow: var(--shadow-sm); }
.contact-card h3 { margin-bottom: 1.2rem; }
.info-row { display: flex; gap: .9rem; align-items: flex-start; margin-bottom: 1.1rem; }
.info-row .ico { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--blue-50); color: var(--blue-700); }
.info-row b { display: block; font-size: .9rem; }
.info-row a { color: var(--ink); }
.info-row a:hover { color: var(--blue-700); }
.hours .closed { color: var(--ink-muted); }
.contact-form-wrap .ff-form { margin-top: 0; }
.contact-link { color: var(--blue-700); }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.post-card { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card__body { padding: 1.5rem; }
.post-card__body h3 { font-size: 1.18rem; margin-bottom: .5rem; }
.post-card__body p { color: var(--ink-muted); font-size: .96rem; margin-bottom: 1rem; }
.post-card__link { font-weight: 700; color: var(--blue-700); font-size: .92rem; }
.article-hero { position: relative; overflow: hidden; padding: clamp(2.4rem, 5vw, 4rem) 0 0; background: linear-gradient(180deg, var(--blue-50), #fff); }
.article-hero .container { max-width: 820px; }
.article-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: .4rem 0 1rem; }
.article-hero__byline { font-size: .9rem; font-weight: 600; color: var(--blue-700); margin: .1rem 0 .6rem; }
.article-hero__lead { font-size: 1.18rem; color: var(--ink-muted); }
.article-hero__img { margin-top: 2rem; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; box-shadow: var(--shadow-md); aspect-ratio: 16/7; }
.article-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 760px; margin-inline: auto; font-size: 1.08rem; }
.article-body h2 { margin-top: 2.2rem; }
.article-body h3 { margin-top: 1.6rem; }

/* Service/interior heroes use a landscape photo slot (source images are 16:9-ish);
   the homepage keeps its square/portrait slot. */
.hero__photo--wide { aspect-ratio: 3/2; }

/* ---------- Texture on dark CTA/coverage bands ---------- */
.cta-band, .cdcp-band, .section--quote { position: relative; overflow: hidden; }
.cta-band::before, .cdcp-band::before, .section--quote::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.16) 1.4px, transparent 1.5px);
  background-size: 20px 20px; opacity: .55;
  -webkit-mask-image: radial-gradient(120% 120% at 85% 15%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 120% at 85% 15%, #000 30%, transparent 75%);
}
.cta-band-inner, .cdcp-band__inner, .section--quote .container { position: relative; z-index: 1; }

/* ---------- Scroll reveal (progressive enhancement; content visible without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
  .js-reveal.in-view { opacity: 1; transform: none; }
}

/* ---------- Checkmark lists (digestible content) ---------- */
.check-list { list-style: none; padding: 0; margin: 1rem 0 1.3rem; display: grid; gap: .6rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--ink-muted); }
.check-list li::before,
.prose ul > li::before {
  content: "✓"; position: absolute; left: 0; top: .12em;
  width: 1.35rem; height: 1.35rem; display: grid; place-items: center;
  font-size: .78rem; font-weight: 800; color: var(--blue-700);
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: 50%;
}
.check-list li::before { color: #fff; background: var(--blue-500); border-color: transparent; }
/* Scraped body lists render inside .prose — turn bullets into checkmarks */
.prose ul { list-style: none; padding: 0; }
.prose ul > li { position: relative; padding-left: 2rem; margin-bottom: .55rem; }
.prose ol { padding-left: 1.2rem; }

/* ---------- About: team bios (horizontal cards — photo always left) ---------- */
.team-bios { display: flex; flex-direction: column; gap: clamp(1.2rem, 2.5vw, 1.8rem); margin-top: 2.4rem; }
.team-bio { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(1.3rem, 3vw, 2.2rem); align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(1.2rem, 2.5vw, 1.6rem); }
/* Fixed 4:5 framed portrait that tops-aligns, so a long bio never stretches the
   photo into an awkward tall crop. Crop biased to the head so faces stay in frame. */
.team-bio__photo { aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--teal-100); }
.team-bio__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.team-bio__monogram { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 3rem; color: var(--blue-800); background: linear-gradient(135deg, var(--blue-100), var(--teal-100)); }
.team-bio__body { padding: .2rem 0; }
.team-bio__name { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.5rem); margin: 0 0 .35rem; }
.team-bio__role { display: inline-block; background: var(--blue-50); color: var(--blue-700); font-weight: 700; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .32rem .75rem; border-radius: var(--radius-pill); margin-bottom: 1.1rem; }
.team-bio__body p { color: var(--ink-muted); margin-bottom: .9rem; }
.team-bio__fun { background: var(--teal-100); border-left: 3px solid var(--teal-500); border-radius: 0 10px 10px 0; padding: .75rem 1rem; font-size: .92rem; color: var(--ink); }
@media (max-width: 640px) {
  .team-bio { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .team-bio__photo { width: 100%; max-width: 220px; }
  .team-bio__role { text-align: center; }
}

/* ---------- Service page: main + sticky sidebar ---------- */
.service-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.6rem, 3vw, 2.8rem); align-items: start; }
.service-main { min-width: 0; }
.svc-prose > h2 { margin-bottom: 1.2rem; }
.faq-inline { margin-top: 2.4rem; }
.faq-inline .faq-list { max-width: none; }
.service-aside { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 1.1rem; }
@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .service-aside > * { flex: 1 1 240px; }
}
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1.4rem 1.3rem; }
.aside-card__title { font-family: var(--font-display); font-size: 1.05rem; margin: 0 0 .8rem; }
.aside-card--cta { position: relative; overflow: hidden; background: linear-gradient(155deg, var(--blue-700), var(--nav-navy)); color: #fff; border-color: transparent; }
.aside-card--cta .eyebrow { color: var(--teal-100); }
.aside-card--cta h3 { color: #fff; margin: 0 0 .4rem; }
.aside-card--cta p { color: rgba(255,255,255,.85); font-size: .9rem; margin-bottom: 1.1rem; }
.aside-cta__mark { position: absolute; right: -16px; top: -16px; width: 118px; height: 118px; color: rgba(255,255,255,.12); }
.aside-cta__phone { display: inline-flex; align-items: center; gap: .5rem; margin-top: .9rem; font-weight: 700; color: #fff; }
.aside-cta__phone:hover { color: var(--blue-100); }
.btn--full { display: flex; width: 100%; justify-content: center; }
.aside-nav { list-style: none; padding: 0; margin: 0; }
.aside-nav li { border-top: 1px solid var(--line); }
.aside-nav li:first-child { border-top: none; }
.aside-nav a { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .62rem 0; font-weight: 600; color: var(--ink); font-size: .93rem; }
.aside-nav a::after { content: "→"; color: var(--blue-500); opacity: 0; transform: translateX(-4px); transition: opacity var(--t), transform var(--t); }
.aside-nav a:hover { color: var(--blue-700); }
.aside-nav a:hover::after { opacity: 1; transform: translateX(0); }
.aside-visit__addr { display: flex; gap: .55rem; align-items: flex-start; font-size: .9rem; color: var(--ink-muted); margin: 0 0 1rem; }
.aside-visit__addr svg { flex: none; width: 15px; height: 15px; color: var(--blue-600); margin-top: .2em; }
.aside-hours { font-size: .86rem; }
.aside-hours__row { display: flex; justify-content: space-between; gap: .8rem; padding: .3rem 0; border-top: 1px dashed var(--line); color: var(--ink-muted); }
.aside-hours__row:first-child { border-top: none; }
.aside-hours__row span:first-child { font-weight: 600; color: var(--ink); }

/* ---------- Homepage client revisions: CDCP CTAs, Google rating, location checklist, footer emergency ---------- */
.btn-on-dark-ghost { --btn-bg: transparent; --btn-ink: #fff; border-color: rgba(255,255,255,.6); box-shadow: none; }
.btn-on-dark-ghost:hover { --btn-bg: rgba(255,255,255,.14); border-color: #fff; color: #fff; }

.cdcp-band__cta { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: flex-end; align-items: center; }
@media (max-width: 760px) { .cdcp-band__cta { justify-content: flex-start; } }

.google-rating { display: inline-flex; align-items: center; gap: .55rem; flex-wrap: wrap; background: #fff; border-radius: var(--radius-pill); padding: .55rem 1.15rem; box-shadow: var(--shadow-md); margin-top: .2rem; }
.google-rating__g { display: block; width: 30px; height: 30px; }
.google-rating__score { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--blue-900); }
.google-rating__stars { color: #fbbc05; font-size: 1.15rem; letter-spacing: 1px; }
.google-rating__meta { color: var(--ink-muted); font-size: .9rem; font-weight: 600; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.checklist li { position: relative; padding-left: 2.1rem; line-height: 1.5; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--teal-100); }
.checklist li::after { content: ""; position: absolute; left: .46rem; top: .34rem; width: .5rem; height: .28rem; border-left: 2.5px solid var(--blue-600); border-bottom: 2.5px solid var(--blue-600); transform: rotate(-45deg); }

.footer-emergency { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem; text-align: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: .9rem 1.2rem; margin-bottom: 2.4rem; }
.footer-emergency__label { font-weight: 700; color: #fff; }
.footer-emergency__call { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: #fff; background: var(--blue-500); padding: .55rem 1.1rem; border-radius: var(--radius-pill); }
.footer-emergency__call:hover { background: var(--blue-600); color: #fff; }

/* --- Client revisions v32 --- */
/* Tighten the gap between a section heading and its lead paragraph */
.section > .container > h2 { margin-bottom: .7rem; }
/* Lead line above the "Why Patients Choose" checklist on service pages */
.check-list-lead { margin: 1.4rem 0 .55rem; font-size: 1.02rem; color: var(--ink); }
/* Single-column (text-only) variant of the CDCP bucket — used for Our Philosophy */
.cdcp-band--single .cdcp-band__inner { grid-template-columns: 1fr; text-align: center; }
.cdcp-band--single p { max-width: 720px; margin: 0 auto; }

/* --- Client revisions v33 --- */
/* Top-align the Office teaser two-col so the intro sits under the heading */
.two-col--top { align-items: start; }
/* Don't apply the 2rem top-margin to the FIRST heading in a prose block —
   it was pushing the heading away from the eyebrow above it (service pages) */
.prose > :first-child { margin-top: 0; }

/* --- Patient forms v34 --- */
/* GoHighLevel intake / consent form embed. form_embed.js resizes the iframe to
   real content height once the widget hydrates; the min-height avoids a
   collapsed box while it loads. */
.ghl-embed { margin: 1.6rem 0 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.ghl-embed iframe { display: block; width: 100%; min-height: 420px; border: 0; }

/* Downloadable-PDF list ("print and bring" option) */
.form-dl { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .75rem; }
.form-dl li { border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; background: #fff; }
.form-dl li > a { display: inline-flex; align-items: baseline; gap: .55rem; font-weight: 700; }
.form-dl__meta { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-600); background: var(--teal-100); border-radius: var(--radius-pill); padding: .15rem .5rem; }
.form-dl__note { display: block; margin-top: .2rem; color: var(--ink-muted); font-size: .93rem; }
.form-dl--plain li { padding: .55rem 0; border: 0; background: none; }

/* --- Digestible content treatments v35 --- */
/* Numbered process steps — for genuine sequences (consult → treat → after) */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1.4rem 0 0; display: grid; gap: 1.15rem; }
.steps > li { counter-increment: step; position: relative; padding-left: 3.4rem; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--blue-500); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1rem; display: grid; place-items: center; }
.steps h3 { margin: .15rem 0 .3rem; font-size: 1.05rem; }
.steps p { margin: 0; }

/* Side-by-side comparison of two or more named options */
.compare-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); margin: 1.4rem 0 1.6rem; }
.compare-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.3rem; background: #fff; }
.compare-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.compare-card p { margin: 0; }

/* --- Homepage brand hero v36 --- */
/* Oversized practice name with the descriptor smaller beneath (client request:
   make "Serenity Dental" bigger and more noticeable on the homepage). Both parts
   stay inside one <h1> so the heading text is unchanged for SEO. */
.hero__h1--brand { margin-bottom: .6rem; }
.hero__brand { display: block; font-size: clamp(3.6rem, 8.5vw, 5.8rem); line-height: .98; letter-spacing: -0.03em; color: var(--blue-900); }
.hero__h1-rest { display: block; margin-top: .55rem; font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 600; line-height: 1.2; color: var(--ink); }

/* --- Form submission status v38 --- */
.ff-status { margin: .9rem 0 0; padding: .7rem .95rem; border-radius: var(--radius); font-size: .95rem; line-height: 1.45; }
.ff-status--pending { background: var(--teal-100); color: var(--blue-900); }
.ff-status--ok { background: #e6f4ea; color: #1c5b2e; border: 1px solid #b7dfc2; }
.ff-status--error { background: #fdecec; color: #8a1c1c; border: 1px solid #f2c2c2; }

/* --- a11y: visually-hidden headings (fix heading-level jumps) v39 --- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
