/* ==========================================================================
   Simeon Dental — "calm coastal-clinical" design system
   ========================================================================== */

@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../fonts/Poppins-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }

/* ------------------------------------------------------------ base */
p { margin: 0 0 1em; }
a { color: var(--primary-teal); text-decoration-thickness: 1px; text-underline-offset: 2px; transition: color var(--ease); }
a:hover { color: var(--deep-teal); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--brand-teal); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 13px 26px; border-radius: 999px; font-family: var(--font-h); font-weight: 600; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform var(--ease), background var(--ease), color var(--ease), border-color var(--ease); min-height: 48px; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary-teal); color: #fff; }
.btn-primary:hover { background: var(--deep-teal); color: #fff; }
.btn-secondary { background: var(--mist); color: var(--teal-ink); border-color: var(--brand-teal); }
.btn-secondary:hover { background: #eaf4f3; color: var(--teal-ink); }
.btn-ghost { background: transparent; color: var(--teal-ink); border-color: rgba(19,78,74,.25); }
.btn-ghost:hover { border-color: var(--brand-teal); color: var(--primary-teal); }
.btn-icon { font-size: 1.05em; }

/* ------------------------------------------------------------ header */
.announce-bar { background: var(--deep-teal); color: var(--mint); text-align: center; padding: 8px 16px; font-size: .925rem; }
.announce-bar a { color: var(--mint); }
.nav-list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-list a { display: block; padding: 10px 7px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .875rem; white-space: nowrap; }
.nav-list a:hover { background: var(--mist); color: var(--primary-teal); }
.nav-list .current-menu-item > a { color: var(--primary-teal); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-call { padding: 10px 14px; font-size: .875rem; }
.lang-toggle { display: flex; gap: 3px; align-items: center; font-family: var(--font-h); font-weight: 600; font-size: .85rem; color: rgba(28,43,43,.4); }
.lang-toggle a { color: rgba(28,43,43,.72); text-decoration: none; padding: 6px; border-radius: 6px; }
.lang-toggle a.is-active { color: var(--primary-teal); }
.nav-toggle { display: none; background: none; border: 0; padding: 12px; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--teal-ink); position: relative; transition: transform var(--ease); content: ""; }
.nav-toggle-bar::before { position: absolute; top: -7px; }
.nav-toggle-bar::after { position: absolute; top: 7px; }

/* ------------------------------------------------------------ hero */
.hero { background: linear-gradient(180deg, var(--mist) 0%, #ffffff 100%); overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 80px; background: radial-gradient(120% 100% at 50% 100%, #fff 60%, transparent 61%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; align-items: center; padding-block: clamp(44px, 7.5vw, 92px); position: relative; z-index: 1; }
.eyebrow { font-family: var(--font-h); font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brand-teal); margin-bottom: 14px; }
.hero-sub { font-size: 1.125rem; max-width: 34em; color: rgba(28,43,43,.8); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-block: 26px 18px; }
.hero-note { font-size: .9rem; color: rgba(28,43,43,.6); }
.hero-visual { display: grid; place-items: center; }
.hero-photo-frame { position: relative; width: min(455px, 92%); }
.hero-photo { display: block; position: relative; border-radius: 50% 50% 30px 30px / 41.7% 41.7% 30px 30px; overflow: hidden;
	box-shadow: 0 34px 70px rgba(17, 94, 89, .22), 0 10px 24px rgba(17, 94, 89, .12); }
.hero-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(19, 78, 74, 0) 62%, rgba(19, 78, 74, .22) 100%);
	mix-blend-mode: multiply; }
.hero-photo::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); border-radius: inherit; }
.hero-photo img { display: block; width: 100%; height: auto;
	animation: heroKenburns 22s ease-in-out infinite alternate; transform-origin: 55% 38%; will-change: transform; }
@keyframes heroKenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.hero-photo-ring { position: absolute; inset: -16px; border-radius: 50% 50% 40px 40px / 42.5% 42.5% 40px 40px;
	border: 2px solid rgba(13, 148, 136, .22); pointer-events: none; }
.hero-photo-ring::after { content: ""; position: absolute; top: 13%; right: -5px; width: 11px; height: 11px;
	border-radius: 50%; background: #E8B54A; box-shadow: 0 0 0 5px rgba(232, 181, 74, .22); }
.hero-badge { position: absolute; top: 4%; left: -8%; width: 74px; height: 74px; display: grid; place-items: center;
	background: #fff; border-radius: 50%; box-shadow: var(--shadow);
	animation: cardFloat 7s ease-in-out infinite alternate; }
.hero-badge-icon { width: 44px; height: 44px; display: block; }
.hero-card { position: absolute; display: flex; align-items: center; gap: 10px; background: rgba(255, 255, 255, .94);
	backdrop-filter: blur(6px); border-radius: 16px; box-shadow: 0 18px 40px rgba(17, 94, 89, .16);
	padding: 13px 18px; font-family: var(--font-h); line-height: 1.2; }
.hero-card.hc-years { left: -13%; bottom: 12%; flex-direction: column; align-items: flex-start; gap: 2px;
	animation: cardFloat 6s ease-in-out .8s infinite alternate; }
.hero-card.hc-years strong { font-size: 1.7rem; color: var(--primary-teal); letter-spacing: -.01em; }
.hero-card.hc-years span { font-size: .8rem; font-weight: 500; color: rgba(28, 43, 43, .62); max-width: 130px; }
.hero-card.hc-lang { right: -9%; top: 16%; font-size: .85rem; font-weight: 600; color: var(--teal-ink);
	animation: cardFloat 6.6s ease-in-out .3s infinite alternate; }
.hc-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(94, 234, 212, .25); }
@keyframes cardFloat { from { transform: translateY(0); } to { transform: translateY(-12px); } }
/* pop-in entrance for badges/cards, choreographed after the copy */
.hero-pop { opacity: 0; transform: translateY(14px) scale(.92); animation: heroPop 560ms cubic-bezier(.22,.9,.3,1) forwards;
	animation-delay: calc(220ms + var(--d, 0) * 110ms); }
@keyframes heroPop { to { opacity: 1; transform: none; } }
.hero-pop.hc-years { animation: heroPop 560ms cubic-bezier(.22,.9,.3,1) forwards, cardFloat 6s ease-in-out 1.2s infinite alternate; animation-delay: calc(220ms + var(--d, 0) * 110ms), 1.2s; }
.hero-pop.hc-lang { animation: heroPop 560ms cubic-bezier(.22,.9,.3,1) forwards, cardFloat 6.6s ease-in-out 1.4s infinite alternate; animation-delay: calc(220ms + var(--d, 0) * 110ms), 1.4s; }
.hero-pop.hero-badge { animation: heroPop 560ms cubic-bezier(.22,.9,.3,1) forwards, cardFloat 7s ease-in-out 1.1s infinite alternate; animation-delay: calc(220ms + var(--d, 0) * 110ms), 1.1s; }

/* ------------------------------------------------------------ trust strip */
.trust-strip { background: var(--deep-teal); color: #fff; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-block: 26px; }
.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; }
.trust-item strong { font-family: var(--font-h); font-size: 1.85rem; line-height: 1.2; color: var(--mint); }
.trust-item strong [data-countup] { font: inherit; color: inherit; }
.trust-item span { font-size: .875rem; color: rgba(255,255,255,.85); }

/* ------------------------------------------------------------ sections & cards */
section { padding-block: clamp(40px, 7vw, 80px); }
.card { background: #fff; border: 1px solid rgba(17,94,89,.1); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; margin-top: 28px; }
.card-grid .card, .card-grid a.card { text-decoration: none; color: inherit; transition: transform var(--ease), box-shadow var(--ease); }
a.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(17,94,89,.14); }
a.card h2, a.card h3 { color: var(--teal-ink); }
.card-more { font-family: var(--font-h); font-weight: 600; color: var(--brand-teal); font-size: .925rem; }
.card-meta { font-size: .85rem; color: rgba(28,43,43,.68); }

/* ------------------------------------------------------------ doctor & education teasers */
.doctor-grid, .edu-teaser, .visit-grid { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 44px; align-items: center; }
.home-doctor { background: var(--mist); }
.photo-placeholder { aspect-ratio: 4/5; border-radius: var(--radius); background: linear-gradient(160deg, #e6f2f0, #f6f8f8); display: grid; place-items: center; }
.placeholder-tooth { width: 40%; height: auto; aspect-ratio: 1/1; opacity: .5; }
.doctor-photo-slot img { border-radius: var(--radius); box-shadow: var(--shadow); }
.edu-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.edu-list a { display: block; background: var(--mist); border-radius: 12px; padding: 16px 20px; text-decoration: none; font-weight: 500; color: var(--teal-ink); transition: background var(--ease), transform var(--ease); }
.edu-list a:hover { background: #e8f2f1; transform: translateX(4px); }

/* ------------------------------------------------------------ testimonials */
.home-testimonials { background: linear-gradient(180deg,#fff, var(--mist)); }
.quote-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 26px; }
.quote-card { margin: 0; background: #fff; border-radius: var(--radius); border: 1px solid rgba(17,94,89,.1); box-shadow: var(--shadow); padding: 26px; font-size: 1.02rem; }
.quote-card footer { margin-top: 14px; font-family: var(--font-h); font-weight: 600; font-size: .9rem; color: var(--primary-teal); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.quote-tag { background: var(--mist); color: var(--teal-ink); border-radius: 999px; padding: 3px 12px; font-size: .78rem; }

/* ------------------------------------------------------------ visit / map & photos */
.visit-map { display: grid; gap: 18px; }
.visit-map iframe { width: 100%; aspect-ratio: 4/3; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.visit-map .office-photo { margin: 0; }
.office-photo { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
.office-figure { padding: 16px; margin: 0 0 22px; }
.office-figure figcaption { padding-top: 10px; font-size: .875rem; color: rgba(28,43,43,.68); text-align: center; }
.doctor-photo { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); display: block; }

/* ------------------------------------------------------------ page scaffolding */
.page-wrap { padding-block: clamp(36px, 6vw, 64px); }
.page-head { max-width: 760px; margin-bottom: 34px; }
.entry-content { max-width: 72ch; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.article-wrap { max-width: 860px; margin-inline: auto; }
.article-byline { color: rgba(28,43,43,.6); font-size: .925rem; }
.byline-check { color: var(--brand-teal); font-weight: 700; }
.article-cta { margin-top: 40px; text-align: center; background: linear-gradient(160deg, #f0faf8, #fff); }
.related-articles { margin-top: 56px; }
.topic-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.topic-chip { background: var(--mist); border-radius: 999px; padding: 8px 18px; text-decoration: none; color: var(--teal-ink); font-weight: 500; font-size: .9rem; }
.topic-chip:hover { background: #e2efed; }
.lang-fallback { background: #fdf6e8; border: 1px solid #f2dfb6; color: #6a5216; border-radius: 12px; padding: 12px 18px; margin-bottom: 20px; font-size: .925rem; }

/* ------------------------------------------------------------ FAQ */
.faq-group { padding-block: 10px 26px; }
.faq-item { border: 1px solid rgba(17,94,89,.12); border-radius: 14px; margin-bottom: 12px; background: #fff; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 18px 22px; font-family: var(--font-h); font-weight: 600; color: var(--teal-ink); list-style: none; position: relative; padding-right: 52px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.3rem; color: var(--brand-teal); transition: transform var(--ease); }
.faq-item[open] summary::after { content: "–"; }
.faq-item summary:hover { background: var(--mist); }
.faq-answer { padding: 0 22px 18px; }

/* ------------------------------------------------------------ contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-phone a { font-family: var(--font-h); font-size: 1.6rem; font-weight: 700; text-decoration: none; }
.contact-details h3 { margin-top: 1.4em; font-size: 1.05rem; }
.hours-list { list-style: none; margin: 0; padding: 0; }
.hours-list li { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; border-bottom: 1px dashed rgba(17,94,89,.12); font-size: .95rem; }
.insurance-list { columns: 2; list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.insurance-list li::before { content: "✓ "; color: var(--brand-teal); font-weight: 700; }
.contact-form label { display: block; font-weight: 500; margin-bottom: 6px; }
.contact-form input, .contact-form select { width: 100%; padding: 12px 14px; border: 1.5px solid rgba(17,94,89,.25); border-radius: 10px; font: inherit; background: #fff; }
.contact-form input:focus, .contact-form select:focus { border-color: var(--brand-teal); outline: 2px solid rgba(13,148,136,.2); }
.form-privacy { background: var(--mist); border-radius: 12px; padding: 14px 18px; font-size: .9rem; }
.form-ok { background: #ecfbf4; border: 1px solid #b5e8d0; color: #14532d; padding: 12px 18px; border-radius: 12px; }
.form-err { background: #fdf0ef; border: 1px solid #f3c2bd; color: #7f1d1d; padding: 12px 18px; border-radius: 12px; }
.hp-field { position: absolute; left: -9999px; }

/* ------------------------------------------------------------ smile gallery */
.smile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.smile-case { padding: 16px; }
.ba-frame { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.ba-frame img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.ba-before-clip { position: absolute; inset: 0; width: 50%; overflow: hidden; border-right: 3px solid #fff; }
.ba-before-clip img { width: 100%; max-width: none; }
.ba-control { position: absolute; inset: 0; display: flex; align-items: flex-end; }
.ba-control input { width: 100%; margin: 12px; accent-color: var(--brand-teal); }
.smile-case figcaption { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; flex-wrap: wrap; }
.consent-note { font-size: .78rem; color: rgba(28,43,43,.68); }

/* ------------------------------------------------------------ Know Your Teeth */
.teeth-app { padding: clamp(16px, 3vw, 32px); }
.teeth-toolbar { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.seg { display: inline-flex; background: var(--mist); border-radius: 999px; padding: 4px; gap: 2px; }
.seg-btn { border: 0; background: transparent; font-family: var(--font-h); font-weight: 600; font-size: .875rem; color: rgba(28,43,43,.75); padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: background var(--ease), color var(--ease); min-height: 40px; }
.seg-btn.is-active { background: var(--primary-teal); color: #fff; }
.teeth-stage { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, .8fr); gap: 24px; align-items: start; }
.teeth-canvas { border-radius: 14px; background: radial-gradient(120% 120% at 50% 0%, #eefaf8, var(--mist)); min-height: 380px; overflow: hidden; }
.teeth-canvas canvas { display: block; }
.tooth-panel { background: var(--mist); border-radius: 14px; padding: 22px; min-height: 200px; }
.tooth-num { font-family: var(--font-h); font-weight: 700; color: var(--brand-teal); font-size: 1.05rem; margin-bottom: 4px; }
.tooth-name { font-size: 1.3rem; margin-bottom: 2px; }
.tooth-type { color: var(--primary-teal); font-weight: 600; font-size: .925rem; }
.tooth-alt { font-size: .875rem; color: rgba(28,43,43,.6); border-top: 1px dashed rgba(17,94,89,.2); padding-top: 12px; margin-top: 14px; }
.teeth-keys { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 22px 0 0; }
.tooth-key { border: 1px solid rgba(17,94,89,.2); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: .8rem; cursor: pointer; color: var(--teal-ink); transition: background var(--ease); }
.tooth-key:hover, .tooth-key:focus-visible { background: var(--mist); }
.teeth-fallback { display: grid; gap: 18px; }
.teeth-fallback[hidden] { display: none; }
.fb-arch { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; background: var(--mist); border-radius: 14px; }
.fb-tooth { border: 1px solid rgba(17,94,89,.2); background: #fff; border-radius: 12px; padding: 10px; display: grid; gap: 2px; cursor: pointer; min-width: 86px; text-align: center; }
.fb-tooth.is-active { background: var(--primary-teal); color: #fff; }
.fb-tooth.is-active .fb-num { color: var(--mint); }
.fb-num { font-family: var(--font-h); font-weight: 700; color: var(--brand-teal); font-size: .85rem; }
.fb-name { font-size: .72rem; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--deep-teal); color: rgba(255,255,255,.9); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 36px; padding-block: 56px 30px; }
.footer-logo { height: 50.4px; width: 217.2px; margin-bottom: 16px; }
.footer-h { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin-bottom: 14px; }
.site-footer a { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.9; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { color: var(--mint); }
.site-footer .hours-list li { border-color: rgba(255,255,255,.15); }
.hours-note { font-size: .85rem; color: var(--mint); }
.footer-legal { border-top: 1px solid rgba(255,255,255,.15); padding-block: 18px; font-size: .85rem; color: rgba(255,255,255,.82); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-legal p { margin: 0; }
.footer-legal-links { display: flex; align-items: center; gap: 8px; }
.footer-legal-links a { color: rgba(255,255,255,.82); text-decoration: none; }
.footer-legal-links a:hover { color: var(--mint); text-decoration: underline; }
.footer-legal-links span { color: rgba(255,255,255,.4); }
.site-credit a { color: var(--mint); text-decoration: none; }
.site-credit a:hover { text-decoration: underline; }

/* ------------------------------------------------------------ mobile call bar */
.mobile-call-bar { display: none; position: fixed; inset-inline: 0; bottom: 0; z-index: 60; background: var(--primary-teal); box-shadow: 0 -6px 20px rgba(17,94,89,.3); }
.mobile-call-bar a { display: flex; justify-content: center; align-items: center; gap: 10px; color: #fff; font-family: var(--font-h); font-weight: 600; padding: 15px; text-decoration: none; min-height: 52px; }

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
	.hero-grid, .doctor-grid, .edu-teaser, .visit-grid, .contact-grid, .teeth-stage { grid-template-columns: minmax(0, 1fr); }
	.hero-visual { order: 1; margin-top: 8px; }
	.hero-photo-frame { width: min(320px, 88%); }
	.hero-badge { width: 56px; height: 56px; }
	.hero-badge-icon { width: 34px; height: 34px; }
	.hero-card.hc-years strong { font-size: 1.35rem; }
	.hero-card { padding: 10px 14px; }
	.hero-card.hc-years { left: -4%; }
	.hero-card.hc-lang { right: -4%; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1380px) {
	/* visibility keeps the closed menu out of the tab order and the a11y
	   tree (transform alone leaves 7 invisible links focusable); the delayed
	   transition lets the slide-out animation finish before hiding. */
	.site-nav { position: fixed; inset: 84px 0 0 0; background: #fff; padding: 24px; transform: translateX(100%); visibility: hidden; transition: transform 220ms ease-out, visibility 0s linear 220ms; overflow: auto; z-index: 40; }
	body.nav-open .site-nav { transform: none; visibility: visible; transition: transform 220ms ease-out, visibility 0s; }
	body.nav-open { overflow: hidden; } /* background must not scroll behind the open menu */
	.nav-list { flex-direction: column; gap: 2px; }
	.nav-list a { font-size: 1.15rem; padding: 14px; }
	.nav-toggle { display: block; }
	body.nav-open .nav-toggle-bar { background: transparent; }
	body.nav-open .nav-toggle-bar::before { transform: translateY(7px) rotate(45deg); }
	body.nav-open .nav-toggle-bar::after { transform: translateY(-7px) rotate(-45deg); }
	.header-call { display: none; }
	.mobile-call-bar { display: block; }
	body { padding-bottom: 52px; }
}
@media (max-width: 560px) {
	.footer-grid { grid-template-columns: 1fr; }
	.insurance-list { columns: 1; }
}
@media (max-width: 380px) {
	/* The one-line call button is wider than a 320px screen; let it wrap. */
	.btn { white-space: normal; text-align: center; justify-content: center; }
}


/* ==========================================================================
   Motion system — hero choreography, scroll reveals, ambient details.
   Everything gated on html.js (no-JS gets static page) and disabled
   entirely under prefers-reduced-motion.
   ========================================================================== */

/* ---------- hero entrance (CSS-only, runs on load) */
.hero-in { opacity: 0; transform: translateY(18px); animation: heroIn 650ms cubic-bezier(.22,.9,.3,1) forwards; animation-delay: calc(120ms + var(--d, 0) * 110ms); }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.hero-title .line-mask { display: block; overflow: hidden; }
.hero-title .line-mask > span { display: block; transform: translateY(105%); animation: lineUp 700ms cubic-bezier(.22,.9,.3,1) forwards; animation-delay: inherit; }
.line-mask.hero-in { opacity: 1; transform: none; animation: none; }
.line-mask.hero-in > span { animation-delay: calc(160ms + var(--d, 0) * 120ms); }
@keyframes lineUp { to { transform: none; } }

/* ---------- hero ambience */
.hero { isolation: isolate; }
.hero-blob { position: absolute; right: -14%; top: -24%; width: 58vw; max-width: 780px; aspect-ratio: 1; z-index: 0; pointer-events: none;
	background: radial-gradient(closest-side, rgba(94,234,212,.28), rgba(13,148,136,.10) 58%, transparent 72%);
	filter: blur(26px); border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%;
	animation: blobDrift 16s ease-in-out infinite alternate; }
@keyframes blobDrift { from { transform: translate3d(0,0,0) rotate(0deg) scale(1); } to { transform: translate3d(-3%,4%,0) rotate(8deg) scale(1.06); } }

.sparkle { position: absolute; width: 12px; height: 12px; pointer-events: none; opacity: 0;
	background: var(--mint); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
	animation: sparkle 4.4s ease-in-out infinite; }
.sparkle.s1 { top: 6%; right: -4%; animation-delay: .4s; }
.sparkle.s2 { top: 58%; left: -7%; width: 9px; height: 9px; animation-delay: 1.7s; }
.sparkle.s3 { top: 34%; right: -8%; left: auto; width: 7px; height: 7px; animation-delay: 3s; }
@keyframes sparkle { 0%,100% { opacity: 0; transform: scale(.4) rotate(0); } 50% { opacity: .95; transform: scale(1) rotate(24deg); } }

/* ---------- wave divider stitches hero into the trust strip */
.hero { padding-bottom: 0; }
.hero::after { display: none; }
.wave-divider { display: block; width: 100%; height: 70px; margin-top: clamp(24px, 4vw, 56px); }
.trust-strip { position: relative; }

/* ---------- scroll reveals (activated by html.js) */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 640ms cubic-bezier(.22,.9,.3,1), transform 640ms cubic-bezier(.22,.9,.3,1); transition-delay: calc(var(--d, 0) * 90ms); will-change: opacity, transform; }
html.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- section eyebrows */
section .eyebrow { margin-bottom: 8px; }

/* ---------- service cards: icon + arrow micro-interaction */
.service-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 16px;
	background: linear-gradient(150deg, #e9f6f4, #f6fbfa); color: var(--primary-teal);
	transition: background var(--ease), color var(--ease), transform var(--ease); }
.service-icon svg { width: 26px; height: 26px; }
a.service-card:hover .service-icon { background: var(--primary-teal); color: #fff; transform: scale(1.06) rotate(-3deg); }
.card-arrow { display: inline-block; transition: transform var(--ease); }
a.service-card:hover .card-arrow { transform: translateX(5px); }
a.card { position: relative; overflow: hidden; }
a.card::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--brand-teal), var(--mint)); transform: scaleX(0); transform-origin: left; transition: transform 260ms cubic-bezier(.22,.9,.3,1); }
a.card:hover::after { transform: scaleX(1); }

/* ---------- doctor photo ring */
.doctor-photo-slot { position: relative; }
.photo-ring { position: absolute; inset: -16px auto auto -16px; width: 120px; height: 120px; border: 3px solid rgba(13,148,136,.25); border-radius: 50%; z-index: 0; animation: ringPulse 5s ease-in-out infinite; pointer-events: none; }
@keyframes ringPulse { 0%,100% { transform: scale(1); opacity: .8; } 50% { transform: scale(1.12); opacity: .4; } }
.doctor-photo { position: relative; z-index: 1; }

/* ---------- testimonial quote glyph */
.quote-card { position: relative; }
.quote-glyph { position: absolute; top: 2px; left: 16px; font-family: var(--font-h); font-size: 84px; line-height: 1; color: rgba(13,148,136,.14); pointer-events: none; }
.quote-card p { position: relative; }

/* ---------- ticker */
.ticker { overflow: hidden; background: var(--mist); border-block: 1px solid rgba(17,94,89,.08); padding-block: 14px; }
.ticker-track { display: flex; width: max-content; animation: tickerScroll 36s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { font-family: var(--font-h); font-weight: 600; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); white-space: nowrap; }
.ticker-dot { color: var(--brand-teal); margin-inline: 22px; }
@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* ---------- education list arrows */
.edu-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.edu-arrow { transition: transform var(--ease); color: var(--brand-teal); }
.edu-list a:hover .edu-arrow { transform: translateX(5px); }

/* ---------- office photo frame hover */
.office-frame { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.office-frame .office-photo { border-radius: 0; box-shadow: none; transition: transform 900ms cubic-bezier(.22,.9,.3,1); }
.office-frame:hover .office-photo { transform: scale(1.04); }

/* ---------- nav link underline slide */
.nav-list a { position: relative; }
.nav-list a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--brand-teal); transform: scaleX(0); transform-origin: left; transition: transform 220ms cubic-bezier(.22,.9,.3,1); }
.nav-list a:hover::after, .nav-list .current-menu-item > a::after { transform: scaleX(1); }
.nav-list a:hover { background: transparent; }

/* ---------- header call icon nudge */
.header-call:hover .btn-icon { animation: ringRing 480ms ease-in-out; }
@keyframes ringRing { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 65% { transform: rotate(12deg); } }

/* ---------- reduced motion: everything static, everything visible */
@media (prefers-reduced-motion: reduce) {
	.hero-in, .line-mask.hero-in > span { opacity: 1 !important; transform: none !important; animation: none !important; }
	.hero-blob, .hero-tooth, .sparkle, .photo-ring, .ticker-track, .hero-photo img, .hero-badge, .hero-card { animation: none !important; }
	.hero-pop { opacity: 1 !important; transform: none !important; }
	.sparkle { display: none; }
	html.js .reveal { opacity: 1; transform: none; transition: none; }
}


/* ==========================================================================
   Coming Soon scene
   ========================================================================== */
.coming-soon-body, .tracker-body.gated { background: linear-gradient(175deg, #f6fbfa 0%, #eaf5f3 55%, #dff0ed 100%); min-height: 100vh; }
.cs-scene { position: relative; min-height: 100vh; display: grid; place-items: center; padding: clamp(24px, 5vw, 64px); overflow: hidden; isolation: isolate; }
.cs-blob { position: absolute; border-radius: 46% 54% 58% 42% / 48% 44% 56% 52%; filter: blur(2px); pointer-events: none; z-index: 0; }
.cs-blob.b1 { width: 52vw; max-width: 700px; aspect-ratio: 1; right: -12%; top: -14%;
	background: radial-gradient(closest-side, rgba(94,234,212,.4), rgba(13,148,136,.12) 62%, transparent 76%);
	animation: blobDrift 18s ease-in-out infinite alternate; }
.cs-blob.b2 { width: 42vw; max-width: 520px; aspect-ratio: 1; left: -10%; bottom: -16%;
	background: radial-gradient(closest-side, rgba(232,181,74,.22), rgba(232,181,74,.06) 60%, transparent 75%);
	animation: blobDrift 22s ease-in-out infinite alternate-reverse; }
.cs-scene .sparkle.s1 { top: 18%; right: 22%; }
.cs-scene .sparkle.s2 { top: 70%; left: 14%; }
.cs-scene .sparkle.s3 { top: 34%; left: 24%; }
.cs-card { position: relative; z-index: 1; max-width: 640px; width: 100%; text-align: center;
	background: rgba(255,255,255,.82); backdrop-filter: blur(14px); border: 1px solid rgba(17,94,89,.1);
	border-radius: 28px; box-shadow: 0 30px 80px rgba(17,94,89,.14); padding: clamp(32px, 6vw, 64px); }
.cs-logo-svg { height: 120px; width: auto; margin-inline: auto; display: block; }
.cs-card h1 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); margin-block: 10px 14px; }
.cs-sub { color: rgba(28,43,43,.78); max-width: 44ch; margin-inline: auto; }
.cs-ctas { margin-block: 22px 16px; display: flex; justify-content: center; }
.cs-meta { font-size: .875rem; color: rgba(28,43,43,.6); }
.cs-footer { position: relative; z-index: 1; text-align: center; font-size: .85rem; color: rgba(28,43,43,.55); margin: 18px 0 0; }
.cs-footer a { color: var(--primary-teal); }
.cs-tracker-card { display: flex; align-items: center; gap: 16px; text-align: left; margin-top: 26px;
	background: linear-gradient(150deg, #f0faf8, #fff); border: 1px solid rgba(13,148,136,.25); border-radius: 16px;
	padding: 16px 20px; text-decoration: none; color: var(--teal-ink); transition: transform var(--ease), box-shadow var(--ease); }
.cs-tracker-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(17,94,89,.16); color: var(--teal-ink); }
.cs-tracker-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 13px;
	background: var(--primary-teal); color: #fff; }
.cs-tracker-icon svg { width: 24px; height: 24px; }
.cs-tracker-card strong { display: block; font-family: var(--font-h); }
.cs-tracker-card em { font-style: normal; font-size: .875rem; color: rgba(28,43,43,.65); }
.cs-tracker-arrow { margin-left: auto; color: var(--brand-teal); font-weight: 700; transition: transform var(--ease); }
.cs-tracker-card:hover .cs-tracker-arrow { transform: translateX(5px); }
.cs-mini-header { background: rgba(255,255,255,.92); backdrop-filter: blur(10px); box-shadow: 0 2px 14px rgba(17,94,89,.06); }

/* ==========================================================================
   Antibiotic Dose Tracker
   ========================================================================== */
.tracker-grid { display: grid; grid-template-columns: minmax(300px, 5fr) minmax(0, 7fr); gap: 26px; align-items: start; }
.tracker-form h2, .tracker-table-card h2 { font-size: 1.15rem; margin-bottom: 16px; }
.tracker-field { margin-bottom: 14px; }
.tracker-field label { display: block; font-weight: 600; font-size: .875rem; margin-bottom: 5px; color: var(--teal-ink); }
.tracker-field input, .tracker-field select { width: 100%; padding: 11px 13px; border: 1.5px solid rgba(17,94,89,.25); border-radius: 10px; font: inherit; background: #fff; }
.tracker-field input:focus, .tracker-field select:focus { border-color: var(--brand-teal); outline: 2px solid rgba(13,148,136,.2); }
.tracker-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tracker-actions { margin-block: 18px 14px; }
.tracker-actions .btn { width: 100%; justify-content: center; }
.tracker-actions .btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.tracker-summary { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 20px; margin-bottom: 18px; }
.ts-chip { background: var(--mist); border: 1px solid rgba(17,94,89,.12); border-radius: 999px; padding: 7px 15px;
	font-family: var(--font-h); font-weight: 600; font-size: .82rem; color: var(--teal-ink); }
.tracker-empty { color: rgba(28,43,43,.55); }
.tracker-scroll { max-height: 560px; overflow: auto; border-radius: 10px; }
.tracker-table { width: 100%; border-collapse: collapse; font-size: .925rem; }
.tracker-table th { position: sticky; top: 0; background: var(--primary-teal); color: #fff; font-family: var(--font-h);
	font-weight: 600; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding: 10px 12px; text-align: center; }
.tracker-table td { border-bottom: 1px solid rgba(17,94,89,.1); padding: 9px 12px; text-align: center; }
.tracker-table td:first-child { font-weight: 700; color: var(--teal-ink); width: 3.5em; }
.tracker-table tr.alt-day td { background: var(--mist); }
.tracker-table .day-first { text-align: left; font-weight: 600; }
.tracker-table .day-ditto { color: rgba(28,43,43,.45); }
.taken-box { display: inline-block; width: 17px; height: 17px; border: 2px solid var(--brand-teal); border-radius: 4px; }
@media (max-width: 900px) { .tracker-grid { grid-template-columns: 1fr; } }
