/* =================================================
   Farley Family Dental — Stylesheet
   ================================================= */

:root {
    --color-primary: #0d9aa8;
    --color-primary-dark: #0a7d89;
    --color-primary-light: #e6f7f8;
    --color-accent: #0a4a52;
    --color-bg: #ffffff;
    --color-bg-alt: #f7f9fb;
    --color-bg-dark: #0a2025;
    --color-text: #1a2b30;
    --color-text-soft: #4a5b62;
    --color-text-muted: #8095a0;
    --color-border: #e3eaee;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "DM Serif Display", Georgia, serif;
    --max-w: 1200px;
    --pad-x: clamp(1.25rem, 4vw, 2rem);
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 8px rgba(13, 154, 168, 0.06);
    --shadow: 0 8px 30px rgba(13, 64, 78, 0.08);
    --shadow-lg: 0 24px 60px rgba(13, 64, 78, 0.12);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { font-family: var(--font-sans); color: var(--color-text); background: var(--color-bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--color-primary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--color-primary-dark); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 400; line-height: 1.15; color: var(--color-text); letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600; }
h5 { font-size: .85rem; font-family: var(--font-sans); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); }
p { color: var(--color-text-soft); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad-x); width: 100%; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--color-primary); margin-bottom: 1rem; }
.eyebrow-light { color: rgba(255, 255, 255, 0.85); }
.lead { font-size: 1.15rem; color: var(--color-text-soft); margin-top: 1rem; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: .95rem; line-height: 1; transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease; white-space: nowrap; cursor: pointer; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: 0 6px 18px rgba(13, 154, 168, 0.28); }
.btn-primary:hover:not(:disabled) { background: var(--color-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(13, 154, 168, 0.35); }
.btn-secondary { background: var(--color-primary-light); color: var(--color-primary-dark); }
.btn-secondary:hover { background: #d4eff1; color: var(--color-primary-dark); }
.btn-ghost { background: transparent; color: var(--color-text); border: 1.5px solid var(--color-border); }
.btn-ghost:hover { border-color: var(--color-primary); color: var(--color-primary); }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* HEADER */
.site-header { position: sticky; top: 0; background: rgba(255, 255, 255, 0.85); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid rgba(227, 234, 238, 0.6); z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; padding-bottom: 1rem; gap: 1.5rem; }
.logo { display: flex; align-items: center; gap: .65rem; color: var(--color-text); }
.logo-mark { width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%); display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-name { font-family: var(--font-display); font-size: 1.1rem; color: var(--color-text); }
.logo-tag { font-size: .7rem; color: var(--color-text-muted); letter-spacing: .04em; }
.nav { display: flex; gap: 2rem; }
.nav a { color: var(--color-text-soft); font-weight: 500; font-size: .95rem; position: relative; }
.nav a:hover { color: var(--color-primary); }
.nav a.is-active { color: var(--color-primary); font-weight: 600; }
.header-cta { display: flex; align-items: center; gap: 1rem; }
.phone-link { display: flex; align-items: center; gap: .4rem; color: var(--color-text-soft); font-weight: 500; font-size: .9rem; }
.phone-link:hover { color: var(--color-primary); }
.menu-toggle { display: none; width: 36px; height: 36px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.menu-toggle span { width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.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); }
.mobile-nav { display: none; flex-direction: column; gap: 1rem; padding: 1.5rem var(--pad-x) 2rem; background: #fff; border-top: 1px solid var(--color-border); }
.mobile-nav a { color: var(--color-text); font-weight: 500; padding: .25rem 0; }
.mobile-nav a:hover { color: var(--color-primary); }
.mobile-nav.is-open { display: flex; }
.mobile-phone { color: var(--color-text-soft) !important; font-weight: 500 !important; }

/* HERO */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fafdfd 0%, #ffffff 100%); padding: clamp(3rem, 6vw, 5rem) 0 clamp(4rem, 8vw, 7rem); }
.hero::before { content: ""; position: absolute; top: -200px; right: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(13, 154, 168, 0.08) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.hero-copy h1 { margin-top: .25rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-trust { display: flex; gap: 2.5rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.hero-trust li { display: flex; flex-direction: column; }
.hero-trust strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-text); line-height: 1; }
.hero-trust span { font-size: .85rem; color: var(--color-text-muted); margin-top: .25rem; }
.hero-visual { position: relative; min-height: 440px; }
.hero-blob { position: absolute; inset: 10% 10% 10% 10%; background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%); border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%; opacity: .92; z-index: 0; animation: blob 18s ease-in-out infinite alternate; }
@keyframes blob { 0% { border-radius: 40% 60% 70% 30% / 40% 50% 50% 60%; } 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; } }
.hero-card { position: absolute; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 1.25rem 1.4rem; z-index: 2; }
.hero-card-main { top: 12%; left: 4%; width: 78%; }
.hc-row { display: flex; align-items: center; gap: .85rem; }
.hc-avatar { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; letter-spacing: .04em; }
.hc-name { font-weight: 600; font-size: .95rem; color: var(--color-text); }
.hc-sub { font-size: .8rem; color: var(--color-text-muted); }
.hc-divider { height: 1px; background: var(--color-border); margin: 1rem 0; }
.hc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hc-stats span { display: block; font-size: .72rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .06em; }
.hc-stats strong { font-size: .9rem; color: var(--color-text); font-weight: 600; }
.hero-card-quote { bottom: 8%; right: 0; width: 70%; color: var(--color-primary); }
.hero-card-quote p { font-family: var(--font-display); color: var(--color-text); font-size: 1.05rem; line-height: 1.4; margin: .5rem 0 .75rem; }
.hero-card-quote span { font-size: .8rem; color: var(--color-text-muted); }

/* TRUST STRIP */
.trust-strip { background: var(--color-bg-alt); padding: 2.5rem 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.trust-grid > div { display: flex; flex-direction: column; gap: .25rem; }
.trust-grid strong { font-family: var(--font-display); font-size: 2rem; color: var(--color-primary); line-height: 1; }
.trust-grid span { font-size: .85rem; color: var(--color-text-muted); }

/* SECTIONS */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-head p { margin-top: 1rem; }
.page-hero { background: linear-gradient(180deg, #fafdfd 0%, #ffffff 100%); padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); text-align: center; border-bottom: 1px solid var(--color-border); }
.page-hero h1 { margin: .5rem 0 1rem; }
.page-hero .lead { max-width: 620px; margin-left: auto; margin-right: auto; }

/* ABOUT */
.two-col { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: center; }
.col-copy h2 { margin-top: .25rem; }
.col-copy p { margin-top: 1rem; }
.col-copy .btn { margin-top: 1.75rem; }
.dentist-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.dentist-grid-page { max-width: 720px; margin: 0 auto; gap: 2rem; }
.dentist-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 0; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease; overflow: hidden; }
.dentist-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.dentist-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--color-primary-light); display: block; }
.dentist-card h3, .dentist-card .dentist-role, .dentist-card p { padding-left: 1.5rem; padding-right: 1.5rem; }
.dentist-card h3 { padding-top: 1.5rem; margin-bottom: .15rem; }
.dentist-card p:last-child { padding-bottom: 1.75rem; }
.dentist-role { font-size: .8rem; color: var(--color-primary); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }

/* TEAM */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; max-width: 880px; margin: 0 auto; }
.team-card { text-align: center; background: transparent; border: none; padding: 0; transition: transform .2s ease; }
.team-card:hover { transform: translateY(-3px); }
.team-photo { width: 180px; height: 220px; object-fit: cover; border-radius: var(--radius); margin: 0 auto 1rem; background: var(--color-primary-light); display: block; box-shadow: var(--shadow-sm); }
.team-name { font-family: var(--font-display); font-size: 1.2rem; color: var(--color-text); margin-bottom: .25rem; }
.team-role { font-size: .75rem; color: var(--color-primary); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }

/* SERVICES */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.service-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.75rem 1.5rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(13, 154, 168, 0.3); }
.service-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--color-primary-light); color: var(--color-primary); display: grid; place-items: center; margin-bottom: 1.25rem; }
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.service-card p { font-size: .92rem; }

/* WHY US */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.value-card { padding: 2rem 1.75rem; border-left: 3px solid var(--color-primary); background: var(--color-bg-alt); border-radius: 0 var(--radius) var(--radius) 0; }
.value-num { font-family: var(--font-display); font-size: 1.4rem; color: var(--color-primary); margin-bottom: .75rem; }
.value-card h3 { margin-bottom: .5rem; font-size: 1.15rem; }
.value-card p { font-size: .92rem; }

/* TESTIMONIALS */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial { background: #fff; border-radius: var(--radius); padding: 2rem 1.75rem; box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); }
.stars { color: #f5b94c; font-size: 1rem; letter-spacing: .15em; margin-bottom: 1rem; }
.testimonial blockquote { font-family: var(--font-display); font-size: 1.1rem; color: var(--color-text); line-height: 1.45; margin-bottom: 1.25rem; }
.testimonial figcaption { font-size: .85rem; color: var(--color-text-muted); }

/* CTA */
.section-cta { background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-primary-dark) 100%); color: #fff; position: relative; overflow: hidden; }
.section-cta::before { content: ""; position: absolute; inset: -100px -100px auto auto; width: 500px; height: 500px; background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%); border-radius: 50%; pointer-events: none; }
.section-cta h2 { color: #fff; }
.section-cta p { color: rgba(255, 255, 255, 0.85); }
.section-cta .btn-primary { background: #fff; color: var(--color-primary-dark); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.section-cta .btn-primary:hover { background: var(--color-primary-light); color: var(--color-primary-dark); }
.cta-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; position: relative; z-index: 2; }
.cta-copy h2 { margin: .25rem 0 1rem; }
.cta-copy .btn { margin-top: 1.5rem; }
.cta-or { margin-top: 1rem; font-size: .9rem; }
.cta-or a { color: #fff; text-decoration: underline; }
.cta-or a:hover { color: var(--color-primary-light); }
.cta-info { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); backdrop-filter: blur(10px); border-radius: var(--radius); padding: 2rem; display: grid; gap: 1.75rem; }
.info-block h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255, 255, 255, 0.7); margin-bottom: .5rem; font-family: var(--font-sans); font-weight: 600; }
.info-block p { color: #fff; font-size: 1rem; }
.info-block a { color: #fff; }
.info-block a:hover { color: var(--color-primary-light); }
.hours-list { display: flex; flex-direction: column; gap: .5rem; }
.hours-list li { display: flex; justify-content: space-between; color: #fff; font-size: .95rem; }
.hours-list li span:last-child { color: rgba(255, 255, 255, 0.7); }

/* FOOTER */
.site-footer { background: var(--color-bg-dark); color: rgba(255, 255, 255, 0.7); padding: 4rem 0 1.5rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.footer-brand .logo-name { color: #fff; font-size: 1.25rem; display: block; margin-bottom: .5rem; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); font-size: .92rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.footer-cols h5 { color: rgba(255, 255, 255, 0.5); margin-bottom: 1rem; }
.footer-cols a, .footer-cols span { display: block; color: rgba(255, 255, 255, 0.7); font-size: .92rem; padding: .25rem 0; }
.footer-cols a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.5rem; color: rgba(255, 255, 255, 0.4); font-size: .82rem; }

/* BOOKER */
.page-book { background: var(--color-bg-alt); }
.booker-page { padding: 2.5rem 0 4rem; }
.booker-container { max-width: 1100px; }

.booker-progress { margin-bottom: 1.75rem; }
.booker-progress ol { list-style: none; display: flex; gap: 0; padding: 0; overflow: hidden; }
.booker-progress li { flex: 1; display: flex; align-items: center; gap: .65rem; padding-right: 1rem; font-size: .85rem; color: var(--color-text-muted); position: relative; min-width: 0; }
.booker-progress li:not(:last-child)::after { content: ""; position: absolute; left: 32px; right: 12px; top: 50%; height: 2px; background: var(--color-border); z-index: 0; }
.booker-progress li span { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--color-border); display: grid; place-items: center; font-weight: 600; font-size: .8rem; color: var(--color-text-muted); flex-shrink: 0; z-index: 1; transition: all .2s ease; }
.booker-progress li em { font-style: normal; font-weight: 500; white-space: nowrap; }
.booker-progress li.is-active span { background: var(--color-primary); border-color: var(--color-primary); color: #fff; box-shadow: 0 0 0 4px rgba(13, 154, 168, 0.15); }
.booker-progress li.is-active { color: var(--color-text); }
.booker-progress li.is-active em { font-weight: 600; }
.booker-progress li.is-done span { background: var(--color-primary); border-color: var(--color-primary); color: transparent; position: relative; }
.booker-progress li.is-done span::after { content: "\2713"; color: #fff; font-size: .85rem; position: absolute; inset: 0; display: grid; place-items: center; }

.booker-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: flex-start; }
.booker-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 2.5rem 2.5rem 1.75rem; box-shadow: var(--shadow); min-height: 500px; display: flex; flex-direction: column; }
.booker-step { display: none; flex: 1; }
.booker-step.is-active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.booker-step-head { margin-bottom: 1.75rem; }
.booker-step-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: .35rem 0 .5rem; }
.booker-step-head p { font-size: .95rem; color: var(--color-text-soft); }

.service-options { display: grid; gap: .75rem; }
.service-option { text-align: left; background: #fff; border: 1.5px solid var(--color-border); border-radius: var(--radius); padding: 1.25rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: center; cursor: pointer; position: relative; transition: border-color .15s ease, background .15s ease, transform .15s ease; font-family: inherit; width: 100%; }
.service-option:hover { border-color: var(--color-primary); background: var(--color-primary-light); }
.service-option.is-selected { border-color: var(--color-primary); background: var(--color-primary-light); box-shadow: 0 0 0 3px rgba(13, 154, 168, 0.15); }
.service-option-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--color-primary-light); color: var(--color-primary); display: grid; place-items: center; flex-shrink: 0; }
.service-option-icon svg { width: 24px; height: 24px; }
.service-option.is-selected .service-option-icon { background: var(--color-primary); color: #fff; }
.service-option-body h3 { font-family: var(--font-sans); font-weight: 600; font-size: 1rem; margin: 0 0 .15rem; }
.service-option-body p { font-size: .85rem; color: var(--color-text-soft); margin: 0 0 .35rem; }
.service-option-meta { font-size: .75rem; color: var(--color-primary); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.service-option-check { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 1.5px solid var(--color-border); color: transparent; display: grid; place-items: center; flex-shrink: 0; transition: all .15s ease; }
.service-option-check svg { width: 16px; height: 16px; }
.service-option.is-selected .service-option-check { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.service-badge { position: absolute; top: -8px; right: 14px; background: var(--color-accent); color: #fff; font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .25rem .55rem; border-radius: 999px; }

.calendar { user-select: none; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.calendar-title { font-family: var(--font-display); font-size: 1.35rem; color: var(--color-text); margin: 0; }
.calendar-nav { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--color-border); background: #fff; color: var(--color-text); display: grid; place-items: center; transition: all .15s ease; }
.calendar-nav:hover { border-color: var(--color-primary); color: var(--color-primary); }
.calendar-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.calendar-dow span { text-align: center; font-size: .72rem; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .05em; padding: .5rem 0; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-cell { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); background: transparent; border: 1.5px solid transparent; color: var(--color-text); font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .15s ease; display: grid; place-items: center; }
.calendar-cell.is-empty { cursor: default; pointer-events: none; }
.calendar-cell:not(.is-disabled):not(.is-empty):hover { border-color: var(--color-primary); background: var(--color-primary-light); }
.calendar-cell.is-disabled { color: var(--color-text-muted); opacity: .35; cursor: not-allowed; }
.calendar-cell.is-today { font-weight: 700; color: var(--color-primary); }
.calendar-cell.is-selected { background: var(--color-primary); border-color: var(--color-primary); color: #fff !important; box-shadow: 0 4px 12px rgba(13, 154, 168, 0.3); }

.time-blocks { display: flex; flex-direction: column; gap: 1.5rem; }
.time-block h4 { font-size: .8rem; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; font-family: var(--font-sans); }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .5rem; }
.time-slot { padding: .65rem .75rem; border-radius: var(--radius-sm); border: 1.5px solid var(--color-border); background: #fff; color: var(--color-text); font-size: .9rem; font-weight: 500; cursor: pointer; transition: all .15s ease; text-align: center; }
.time-slot:hover:not(:disabled) { border-color: var(--color-primary); color: var(--color-primary); background: var(--color-primary-light); }
.time-slot.is-selected { background: var(--color-primary); border-color: var(--color-primary); color: #fff !important; box-shadow: 0 4px 12px rgba(13, 154, 168, 0.3); }
.time-slot.is-unavailable { background: var(--color-bg-alt); color: var(--color-text-muted); text-decoration: line-through; cursor: not-allowed; opacity: .6; }
.time-empty { color: var(--color-text-muted); font-size: .95rem; }
.time-empty a { color: var(--color-primary); font-weight: 500; }

.booker-form { display: flex; flex-direction: column; gap: 1rem; max-width: 540px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field > span { font-size: .85rem; font-weight: 500; color: var(--color-text); }
.field > span em { font-style: normal; color: var(--color-text-muted); font-weight: 400; }
.field input, .field textarea { padding: .75rem .9rem; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); font-family: inherit; font-size: .95rem; color: var(--color-text); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; width: 100%; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(13, 154, 168, 0.15); }
.field textarea { resize: vertical; min-height: 80px; }
.radio-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.radio-pill { cursor: pointer; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span { display: inline-flex; padding: .55rem 1rem; border-radius: 999px; border: 1.5px solid var(--color-border); font-size: .9rem; font-weight: 500; transition: all .15s ease; }
.radio-pill:hover span { border-color: var(--color-primary); color: var(--color-primary); }
.radio-pill input:checked + span { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }

.confirm-list { display: flex; flex-direction: column; gap: .85rem; background: var(--color-bg-alt); border-radius: var(--radius); padding: 1.5rem; margin: 0; }
.confirm-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; align-items: baseline; }
.confirm-list dt { font-size: .8rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.confirm-list dd { font-size: .95rem; color: var(--color-text); margin: 0; }
.confirm-list dd small { color: var(--color-text-muted); }

.booker-done { text-align: center; padding: 1rem 0; }
.booker-done.is-active { display: flex; flex-direction: column; align-items: center; }
.done-check { width: 88px; height: 88px; margin: 0 auto 1.5rem; }
.done-check svg { width: 100%; height: 100%; }
.done-check circle { stroke: var(--color-primary); stroke-width: 2; fill: none; stroke-dasharray: 166; stroke-dashoffset: 166; animation: drawCircle .6s ease forwards; }
.done-check path { stroke: var(--color-primary); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; fill: none; stroke-dasharray: 50; stroke-dashoffset: 50; animation: drawCheck .35s .55s ease forwards; }
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.booker-done h1 { font-size: 2rem; margin-bottom: .5rem; }
.booker-done > p { font-size: 1rem; color: var(--color-text-soft); margin-bottom: .25rem; max-width: 480px; }
.done-meta { font-size: .85rem; color: var(--color-text-muted) !important; margin-bottom: 1.75rem !important; }
.done-actions { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }

.booker-controls { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.booker-controls [data-back] { margin-right: auto; }
.booker-controls [data-next] { margin-left: auto; }

.booker-summary { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 1.5rem; position: sticky; top: 88px; box-shadow: var(--shadow-sm); }
.booker-summary h3 { font-family: var(--font-sans); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); margin-bottom: 1.25rem; }
.booker-summary ul { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.booker-summary li { display: flex; flex-direction: column; gap: .15rem; }
.booker-summary li span { font-size: .72rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.booker-summary li strong { font-family: var(--font-sans); font-weight: 600; font-size: .95rem; color: var(--color-text); }
.summary-help { background: var(--color-bg-alt); border-radius: var(--radius); padding: 1rem; }
.summary-help strong { display: block; font-size: .85rem; margin-bottom: .25rem; }
.summary-help p { font-size: .85rem; color: var(--color-text-soft); margin: 0; }

/* RESPONSIVE */
@media (max-width: 960px) {
    .nav, .header-cta { display: none; }
    .menu-toggle { display: flex; }
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
    .hero-visual { min-height: 380px; max-width: 500px; margin: 0 auto; width: 100%; }
    .hero-trust { gap: 1.75rem; }
    .two-col { grid-template-columns: 1fr; gap: 3rem; }
    .cta-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .value-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonial-grid { grid-template-columns: 1fr; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .booker-grid { grid-template-columns: 1fr; }
    .booker-summary { position: static; order: -1; }
    .booker-summary ul { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
    .booker-card { padding: 1.75rem 1.25rem 1.25rem; }
    .booker-progress li em { display: none; }
    .booker-progress li { padding-right: 0; }
    .booker-progress li:not(:last-child)::after { left: 28px; right: 0; }
}
@media (max-width: 560px) {
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.7rem; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
    .hero-trust { flex-direction: column; gap: 1.25rem; }
    .service-grid { grid-template-columns: 1fr; }
    .value-grid { grid-template-columns: 1fr; }
    .dentist-grid { grid-template-columns: 1fr; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
    .team-photo { width: 140px; height: 175px; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .field-row { grid-template-columns: 1fr; }
    .booker-summary ul { grid-template-columns: 1fr; }
    .confirm-list > div { grid-template-columns: 1fr; gap: .25rem; }
    .booker-card { padding: 1.25rem 1rem; }
    .service-option { grid-template-columns: auto 1fr; }
    .service-option-check { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    html { scroll-behavior: auto; }
}

[hidden] { display: none !important; }


/* =================================================
   MOBILE FIXES (overlapping elements & spacing)
   ================================================= */
@media (max-width: 960px) {
    /* Hero visual — stack the floating cards instead of overlapping */
    .hero-visual { min-height: auto; padding: 1rem 0 2rem; }
    .hero-card { position: relative; width: 100%; max-width: 360px; margin: 0 auto; }
    .hero-card-main { top: auto; left: auto; }
    .hero-card-quote { bottom: auto; right: auto; margin-top: 1rem; }
    .hero-blob {
        position: absolute;
        inset: 0;
        width: 80%;
        height: 60%;
        margin: auto;
        opacity: .5;
        z-index: 0;
    }
    .hero-card-main, .hero-card-quote { z-index: 2; }

    /* Tighten section padding so content doesn't feel airy */
    .section { padding: clamp(2.75rem, 8vw, 4.5rem) 0; }
    .section-head { margin-bottom: 2rem; }

    /* Hero spacing */
    .hero { padding: 2rem 0 1rem; }
    .hero-trust { margin-top: 2rem; padding-top: 1.5rem; }

    /* Trust strip — keep readable */
    .trust-strip { padding: 1.75rem 0; }
    .trust-grid strong { font-size: 1.65rem; }

    /* Booker — hide summary panel on mobile to avoid header overlap */
    .booker-summary { display: none !important; }
    .booker-page { padding: 1.5rem 0 3rem; }
    .booker-card { padding: 1.5rem 1.25rem 1.25rem; min-height: auto; }
    .booker-progress { margin-bottom: 1.25rem; }

    /* CTA grid spacing */
    .cta-info { padding: 1.5rem; gap: 1.25rem; }

    /* Footer */
    .site-footer { padding: 3rem 0 1.25rem; }
    .footer-inner { padding-bottom: 2rem; }

    /* Page hero (subpages) tighter */
    .page-hero { padding: 2rem 0 1.5rem; }

    /* About section spacing */
    .two-col { gap: 2rem; }
}

@media (max-width: 560px) {
    /* Calendar cells slightly smaller font on tiny screens */
    .calendar-cell { font-size: .85rem; }
    .calendar-title { font-size: 1.15rem; }
    .calendar-dow span { font-size: .65rem; padding: .35rem 0; }

    /* Time grid tighter */
    .time-grid { grid-template-columns: repeat(2, 1fr); gap: .4rem; }
    .time-slot { padding: .55rem .5rem; font-size: .85rem; }

    /* Booker card more compact */
    .booker-card { padding: 1.25rem 1rem 1rem; }
    .booker-step-head { margin-bottom: 1.25rem; }
    .booker-step-head h1 { font-size: 1.35rem; }
    .booker-step-head p { font-size: .9rem; }

    /* Service options tighter */
    .service-option { padding: 1rem; gap: .85rem; }
    .service-option-icon { width: 38px; height: 38px; }
    .service-option-icon svg { width: 20px; height: 20px; }
    .service-option-body h3 { font-size: .95rem; }
    .service-option-body p { font-size: .8rem; }

    /* Booker controls — smaller buttons */
    .booker-controls { margin-top: 1.5rem; padding-top: 1rem; }
    .booker-controls .btn { padding: .65rem 1rem; font-size: .9rem; }

    /* Container padding */
    .container { padding-left: 1rem; padding-right: 1rem; }

    /* Hero card content slightly smaller */
    .hero-card { padding: 1rem 1.1rem; }

    /* Hide hero quote card on phones to avoid clutter */
    .hero-card-quote { display: none; }

    /* Confirm list field sizing */
    .confirm-list dt { font-size: .7rem; }
    .confirm-list dd { font-size: .9rem; }

    /* Done state */
    .booker-done h1 { font-size: 1.6rem; }
    .done-actions { flex-direction: column; width: 100%; }
    .done-actions .btn { width: 100%; }

    /* Page-hero compact */
    .page-hero { padding: 1.5rem 0 1.25rem; }
    .page-hero h1 { font-size: 1.75rem; }
    .page-hero .lead { font-size: 1rem; }
}

/* Push booker content below sticky header on mobile */
@media (max-width: 960px) {
    .booker-page { padding-top: 1.25rem; }
    /* Make header non-sticky on booker page on mobile so progress isn't covered */
    .page-book .site-header { position: static; }
}

/* Hero visual — hide entirely on phones; the desktop blob/cards
   don't add value at narrow widths and were causing layout issues */
@media (max-width: 960px) {
    .hero-visual { display: none; }
    .hero-inner { gap: 0; }
    /* Tidy up hero so it feels grounded without the visual */
    .hero { padding: 1.5rem 0 2.5rem; }
    .hero-trust { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
}

/* Final hero cleanup on mobile — kill the awkward trust stack
   (the trust-strip below already shows the same stats more nicely)
   and make sure hero visual is definitely hidden */
@media (max-width: 960px) {
    .hero-visual { display: none !important; }
    .hero-trust { display: none !important; }
    .hero { padding: 1.5rem 0 2rem; }
}

/* =================================================
   INSURANCE & FINANCING
   ================================================= */
.insurance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    max-width: 980px;
    margin: 0 auto;
}
.insurance-block {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow-sm);
}
.insurance-block h3 {
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
}
.insurance-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem 1.25rem;
    margin-bottom: 1.25rem;
}
.insurance-list li {
    font-size: .95rem;
    color: var(--color-text);
    padding-left: 1.25rem;
    position: relative;
}
.insurance-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 700;
    font-size: .9rem;
}
.insurance-note {
    font-size: .88rem;
    color: var(--color-text-muted);
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
}
.payment-options {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.payment-options li {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}
.payment-options strong {
    font-weight: 600;
    color: var(--color-text);
    font-size: .98rem;
}
.payment-options span {
    font-size: .88rem;
    color: var(--color-text-soft);
}

/* =================================================
   MID-PAGE CTA BAND
   ================================================= */
.mid-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: #fff;
    padding: 2.5rem 0;
    position: relative;
    overflow: hidden;
}
.mid-cta::before {
    content: "";
    position: absolute;
    inset: -150px auto auto -150px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}
.mid-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}
.mid-cta h3 {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    color: #fff;
    margin: 0 0 .25rem;
}
.mid-cta p {
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}
.mid-cta-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}
.mid-cta .btn-primary {
    background: #fff;
    color: var(--color-primary-dark);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.mid-cta .btn-primary:hover:not(:disabled) {
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
}
.btn-on-dark {
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #fff !important;
}
.btn-on-dark:hover {
    border-color: #fff !important;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* =================================================
   FAQ
   ================================================= */
.faq-container { max-width: 760px; }
.faq-list { display: flex; flex-direction: column; gap: .65rem; }
.faq-item {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 1.15rem 1.4rem;
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--color-primary);
    transition: transform .2s ease;
    flex-shrink: 0;
    line-height: 1;
}
.faq-item[open] summary::after {
    content: "−";
}
.faq-item summary:hover { color: var(--color-primary); }
.faq-item p {
    padding: 0 1.4rem 1.25rem;
    color: var(--color-text-soft);
    font-size: .95rem;
    line-height: 1.6;
}

/* =================================================
   FIRST VISIT — STEPS
   ================================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    list-style: none;
    counter-reset: none;
    padding: 0;
}
.step-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem;
    position: relative;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.step-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: rgba(13, 154, 168, 0.3);
}
.step-num {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary);
    font-family: var(--font-display);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}
.step-card h3 {
    margin-bottom: .5rem;
    font-size: 1.05rem;
}
.step-card p { font-size: .92rem; }

/* =================================================
   MAP
   ================================================= */
.map-section {
    background: var(--color-bg-alt);
    line-height: 0;
}
.map-section iframe {
    display: block;
    filter: grayscale(0.15) contrast(0.95);
    transition: filter .3s ease;
}
.map-section iframe:hover { filter: none; }

/* Get directions link in cta-info */
.info-link {
    display: inline-block;
    margin-top: .5rem;
    font-size: .85rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    font-weight: 500;
}
.info-link:hover { color: #fff; }

/* Section-head paragraph link styling (Google review CTA) */
.section-head p a { font-weight: 500; }

/* =================================================
   RESPONSIVE OVERRIDES FOR NEW SECTIONS
   ================================================= */
@media (max-width: 960px) {
    .insurance-grid { grid-template-columns: 1fr; gap: 1.25rem; max-width: 540px; }
    .insurance-block { padding: 1.5rem 1.25rem; }
    .insurance-list { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .mid-cta { padding: 2rem 0; }
    .mid-cta-inner { flex-direction: column; align-items: flex-start; text-align: left; gap: 1.25rem; }
    .mid-cta-actions { width: 100%; }
    .mid-cta-actions .btn { flex: 1; min-width: 140px; }
}
@media (max-width: 560px) {
    .insurance-list { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .faq-item summary { padding: 1rem 1.1rem; font-size: .95rem; }
    .faq-item p { padding: 0 1.1rem 1rem; }
    .mid-cta-actions { flex-direction: column; }
    .mid-cta-actions .btn { width: 100%; }
    .map-section iframe { height: 280px; }
}
