/* ==========================================================================
   Rivers Edge - main stylesheet
   1:1 visual replica of the previous Oxygen Builder site.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */
:root {
    --color-primary: #41B6E6;
    --color-primary-hover: #2ea0d0;
    --color-primary-soft: #EBFCFF;
    --color-secondary: #606E79;
    --color-text: #686868;
    --color-heading: #2b2b2b;
    --color-muted: #8a8a8a;
    --color-bg: #ffffff;
    --color-bg-soft: #f5fbfd;
    --color-bg-accent: #e9f7fc;
    --color-border: #e6ecf0;
    --color-footer-bg: #f6f8f9;
    --color-topbar-bg: #41B6E6;
    --color-topbar-text: #ffffff;
    --color-white: #ffffff;
    --color-star: #f4b323;

    --font-body: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-heading: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    --fs-body: 16px;
    --fs-small: 14px;
    --fs-h1: clamp(2.25rem, 4vw + 1rem, 3.75rem); /* up to 60px */
    --fs-h2: clamp(1.75rem, 2.5vw + 1rem, 2.5rem); /* up to 40px */
    --fs-h3: clamp(1.25rem, 1.2vw + 0.75rem, 1.5rem);
    --fs-h4: 1.125rem;
    --lh-body: 1.65;
    --lh-heading: 1.2;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-pill: 999px;

    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    --container: 1240px;
    --container-narrow: 960px;

    --shadow-sm: 0 1px 2px rgba(15, 30, 50, 0.05);
    --shadow-md: 0 6px 18px rgba(15, 30, 50, 0.08);
    --shadow-lg: 0 18px 48px rgba(15, 30, 50, 0.12);

    --transition: 200ms ease;
}

/* --------------------------------------------------------------------------
   Base / reset
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    line-height: var(--lh-body);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-hover); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--color-heading); line-height: var(--lh-heading); margin: 0 0 var(--space-4); font-weight: 700; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25rem; }
li { margin-bottom: var(--space-2); }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-8) 0; }

/* Accessibility */
.screen-reader-text {
    border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
    height: 1px; width: 1px; margin: -1px; overflow: hidden;
    padding: 0; position: absolute !important; word-wrap: normal !important;
}
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }
.skip-link {
    position: absolute; left: -9999px; top: 0; background: var(--color-primary);
    color: #fff; padding: 0.75rem 1rem; z-index: 1000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* --------------------------------------------------------------------------
   Layout primitives
   -------------------------------------------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--space-6); padding-right: var(--space-6); }
.container.narrow { max-width: var(--container-narrow); }
.section { padding-top: var(--space-20); padding-bottom: var(--space-20); }
.section.soft { background: var(--color-bg-soft); }
.section.accent { background: var(--color-bg-accent); }
.section-header { text-align: center; max-width: 760px; margin: 0 auto var(--space-12); }
.section-header h2 { margin-bottom: var(--space-4); }
.section-header p { color: var(--color-text); font-size: 1.05rem; }

/* Grid utilities */
.grid { display: grid; gap: var(--space-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; }
.flex-center { align-items: center; justify-content: center; }
.flex-between { align-items: center; justify-content: space-between; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    color: #fff !important;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 2px solid var(--color-primary);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition), color var(--transition);
    line-height: 1;
    white-space: nowrap;
}
.btn:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); color: #fff !important; }
.btn.btn-outline { background: transparent; color: var(--color-primary) !important; border-color: var(--color-primary); }
.btn.btn-outline:hover { background: var(--color-primary); color: #fff !important; }
.btn.btn-white { background: #fff; color: var(--color-primary) !important; border-color: #fff; }
.btn.btn-white:hover { background: var(--color-primary-soft); border-color: var(--color-primary-soft); color: var(--color-primary) !important; }
.btn.btn-sm { padding: 0.6rem 1.25rem; font-size: 0.8rem; }
.btn.btn-lg { padding: 1rem 2.25rem; font-size: 1rem; }

/* --------------------------------------------------------------------------
   Top bar (above header)
   -------------------------------------------------------------------------- */
.topbar {
    background: var(--color-topbar-bg);
    color: var(--color-topbar-text);
    font-size: 0.85rem;
    padding: 0.5rem var(--space-6);
    text-align: center;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.topbar .container { padding-left: 0; padding-right: 0; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 30, 50, 0.04);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem; padding-bottom: 0.75rem; gap: var(--space-4); }
.site-logo img { max-height: 60px; width: auto; }
.site-logo a { display: block; }

.primary-nav { display: flex; }
.primary-nav > ul { list-style: none; padding: 0; margin: 0; display: flex; gap: var(--space-2); align-items: center; }
.primary-nav > ul > li { position: relative; margin: 0; }
.primary-nav > ul > li > a {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 0.85rem 1rem;
    color: var(--color-heading);
    font-size: 0.9rem;
    font-weight: 500;
}
.primary-nav > ul > li > a:hover { color: var(--color-primary); }
.primary-nav .caret { font-size: 0.7rem; opacity: 0.7; }

.primary-nav .sub-menu {
    position: absolute;
    top: 100%; left: 0;
    background: #fff;
    list-style: none; padding: 0.5rem 0; margin: 0;
    min-width: 240px;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    opacity: 0; visibility: hidden;
    transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
    z-index: 110;
}
.primary-nav .has-children:hover > .sub-menu,
.primary-nav .has-children:focus-within > .sub-menu {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.primary-nav .sub-menu li { margin: 0; }
.primary-nav .sub-menu a {
    display: block; padding: 0.55rem 1.25rem;
    color: var(--color-heading); font-size: 0.85rem; font-weight: 500;
}
.primary-nav .sub-menu a:hover { background: var(--color-bg-soft); color: var(--color-primary); }

.header-actions { display: flex; align-items: center; gap: var(--space-4); }
.header-phone { color: var(--color-heading); font-weight: 600; font-size: 0.95rem; }
.header-phone:hover { color: var(--color-primary); }

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: none; border: none;
    width: 44px; height: 44px;
    padding: 0;
    color: var(--color-heading);
    align-items: center; justify-content: center;
}
.menu-toggle .bar {
    display: block; width: 24px; height: 2px;
    background: currentColor; position: relative;
}
.menu-toggle .bar::before,
.menu-toggle .bar::after {
    content: ''; position: absolute; left: 0; width: 24px; height: 2px;
    background: currentColor;
}
.menu-toggle .bar::before { top: -7px; }
.menu-toggle .bar::after { top: 7px; }

/* Mobile drawer */
.mobile-drawer {
    position: fixed; inset: 0 0 0 auto;
    width: min(360px, 90vw);
    background: #fff;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 200;
    padding: var(--space-16) var(--space-6) var(--space-6);
    overflow-y: auto;
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer ul { list-style: none; padding: 0; margin: 0; }
.mobile-drawer a {
    display: block; padding: 0.85rem 0;
    color: var(--color-heading); font-weight: 500;
    border-bottom: 1px solid var(--color-border);
}
.mobile-drawer-close {
    position: absolute; top: var(--space-4); right: var(--space-4);
    background: none; border: none; font-size: 1.5rem; line-height: 1;
    width: 44px; height: 44px; cursor: pointer;
}
.mobile-overlay {
    position: fixed; inset: 0; background: rgba(15, 30, 50, 0.4);
    opacity: 0; visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
    z-index: 190;
}
.mobile-overlay.is-open { opacity: 1; visibility: visible; }
body.has-mobile-menu { overflow: hidden; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    background: var(--color-primary-soft);
    padding: var(--space-20) 0 var(--space-12);
    position: relative;
    overflow: hidden;
}
.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}
.hero-content h1 {
    font-size: clamp(2rem, 3vw + 1rem, 3rem);
    color: var(--color-heading);
    margin-bottom: var(--space-6);
}
.hero-content p.lead {
    font-size: 1.125rem;
    color: var(--color-secondary);
    margin-bottom: var(--space-8);
    max-width: 520px;
}
.hero-cta { display: flex; gap: var(--space-4); flex-wrap: wrap; }
.hero-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }

/* Page hero (interior pages) */
.page-hero {
    background: var(--color-primary-soft);
    padding: var(--space-16) 0 var(--space-12);
    text-align: center;
}
.page-hero h1 { margin-bottom: var(--space-3); }
.page-hero p { color: var(--color-secondary); max-width: 680px; margin: 0 auto; font-size: 1.05rem; }
.breadcrumbs { color: var(--color-muted); font-size: 0.85rem; margin-bottom: var(--space-3); }
.breadcrumbs a { color: var(--color-muted); }
.breadcrumbs a:hover { color: var(--color-primary); }
.breadcrumbs .sep { margin: 0 0.5rem; opacity: 0.6; }

/* --------------------------------------------------------------------------
   Card / service grid
   -------------------------------------------------------------------------- */
.service-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.service-card-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-bg-soft); }
.service-card-image img { width: 100%; height: 100%; object-fit: cover; }
.service-card-body { padding: var(--space-6); display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 1.25rem; margin-bottom: var(--space-2); }
.service-card p { margin-bottom: var(--space-4); flex: 1; }
.service-card .card-link { color: var(--color-primary); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.04em; text-transform: uppercase; }
.service-card .card-link:hover { letter-spacing: 0.06em; }

/* --------------------------------------------------------------------------
   Doctor intro (home)
   -------------------------------------------------------------------------- */
.doctor-block { background: #fff; }
.doctor-block .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}
.doctor-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--color-bg-soft);
}
.doctor-media img { width: 100%; height: 100%; object-fit: cover; }
.doctor-eyebrow { color: var(--color-primary); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin-bottom: var(--space-3); }

/* --------------------------------------------------------------------------
   Reviews
   -------------------------------------------------------------------------- */
.reviews-block { background: var(--color-bg-soft); }
.reviews-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); margin-bottom: var(--space-10); }
.reviews-header h2 { margin: 0; }
.reviews-rating { display: flex; align-items: center; gap: var(--space-3); }
.reviews-rating .score { font-size: 2.25rem; font-weight: 700; color: var(--color-heading); }
.reviews-rating .stars { display: flex; gap: 2px; color: var(--color-star); font-size: 1.1rem; }
.review-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-5);
}
.review-card {
    background: #fff;
    padding: var(--space-5);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: var(--space-3);
}
.review-card .stars { color: var(--color-star); font-size: 1rem; }
.review-card .quote { font-size: 0.9rem; line-height: 1.55; color: var(--color-text); flex: 1; }
.review-card .reviewer { font-size: 0.85rem; font-weight: 600; color: var(--color-heading); }

/* --------------------------------------------------------------------------
   Location cards
   -------------------------------------------------------------------------- */
.locations-block .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
}
.location-card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column;
}
.location-map { aspect-ratio: 16 / 9; background: var(--color-bg-soft); }
.location-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.location-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); flex: 1; }
.location-body h3 { margin: 0; font-size: 1.4rem; }
.location-name { font-weight: 600; color: var(--color-heading); }
.location-address { color: var(--color-text); font-size: 0.95rem; }
.location-phone { color: var(--color-primary); font-weight: 600; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 6px; }
.location-hours { list-style: none; padding: 0; margin: 0; font-size: 0.85rem; }
.location-hours li { display: flex; justify-content: space-between; padding: 4px 0; border-bottom: 1px dashed var(--color-border); margin: 0; }
.location-hours li:last-child { border-bottom: 0; }
.location-hours .day { color: var(--color-muted); }
.location-hours .hrs { color: var(--color-heading); font-weight: 500; }

/* --------------------------------------------------------------------------
   Contact form
   -------------------------------------------------------------------------- */
.contact-block .container {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: var(--space-12);
    align-items: flex-start;
}
.contact-info h2 { margin-bottom: var(--space-4); }
.contact-info .lead { font-size: 1.05rem; margin-bottom: var(--space-6); color: var(--color-secondary); }
.contact-info ul { list-style: none; padding: 0; }
.contact-info li { padding-left: 1.5rem; position: relative; margin-bottom: var(--space-2); }
.contact-info li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--color-primary); font-weight: 700; }

.contact-form {
    background: #fff;
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
}
.contact-form h2 { font-size: 1.5rem; margin-bottom: var(--space-6); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.form-field { margin-bottom: var(--space-4); }
.form-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--color-heading); margin-bottom: 0.4rem; }
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--color-heading);
    transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(65, 182, 230, 0.15);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field.required label::after { content: ' *'; color: #e85a4f; }
.form-actions { margin-top: var(--space-6); }
.form-actions .btn { width: 100%; }
.form-recaptcha-note { font-size: 0.7rem; color: var(--color-muted); margin-top: var(--space-3); text-align: center; }

/* --------------------------------------------------------------------------
   Content prose (single page / post body)
   -------------------------------------------------------------------------- */
.prose { max-width: 760px; margin: 0 auto; }
.prose h1 { font-size: 2.25rem; margin-bottom: var(--space-6); }
.prose h2 { font-size: 1.75rem; margin-top: var(--space-10); margin-bottom: var(--space-4); }
.prose h3 { font-size: 1.35rem; margin-top: var(--space-8); margin-bottom: var(--space-3); }
.prose p { font-size: 1.05rem; line-height: 1.75; }
.prose ul li, .prose ol li { font-size: 1.05rem; line-height: 1.75; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-md); margin: var(--space-6) 0; }
.prose blockquote { border-left: 3px solid var(--color-primary); padding-left: var(--space-4); margin: var(--space-6) 0; color: var(--color-secondary); font-style: italic; }

/* --------------------------------------------------------------------------
   Blog
   -------------------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--space-6); }
.post-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16 / 10; background: var(--color-bg-soft); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.post-card .meta { font-size: 0.8rem; color: var(--color-muted); }
.post-card h3 { font-size: 1.15rem; margin: 0; }
.post-card .excerpt { font-size: 0.9rem; flex: 1; }
.post-card .read-more { color: var(--color-primary); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* --------------------------------------------------------------------------
   Service hub (Children's Dentistry / Orthodontics parent pages)
   -------------------------------------------------------------------------- */
.service-hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-6); }

/* --------------------------------------------------------------------------
   CTA strip (used on interior pages)
   -------------------------------------------------------------------------- */
.cta-strip {
    background: var(--color-primary);
    color: #fff;
    padding: var(--space-12) 0;
    text-align: center;
}
.cta-strip h2 { color: #fff; margin-bottom: var(--space-4); }
.cta-strip p { color: rgba(255,255,255,0.9); max-width: 620px; margin: 0 auto var(--space-6); font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-text);
    padding: var(--space-16) 0 var(--space-8);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: var(--space-8);
}
.footer-brand img { max-width: 160px; margin-bottom: var(--space-4); }
.footer-brand p { font-size: 0.9rem; color: var(--color-text); }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-heading); margin-bottom: var(--space-4); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: var(--space-2); }
.footer-col a { color: var(--color-text); font-size: 0.9rem; }
.footer-col a:hover { color: var(--color-primary); }

.footer-bottom {
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-12);
    padding-top: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--color-muted);
}
.footer-social { display: flex; gap: var(--space-3); }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: var(--radius-pill);
    background: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--color-secondary);
    border: 1px solid var(--color-border);
    transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero .container { grid-template-columns: 1fr; gap: var(--space-8); }
    .hero-image { max-width: 540px; }
    .doctor-block .container { grid-template-columns: 1fr; }
    .contact-block .container { grid-template-columns: 1fr; }
    .locations-block .container { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .primary-nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .header-phone { display: none; }
    .section { padding-top: var(--space-12); padding-bottom: var(--space-12); }
    .hero { padding: var(--space-12) 0 var(--space-10); }
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-6); }
    .footer-bottom { justify-content: center; text-align: center; }
    .form-row { grid-template-columns: 1fr; }
    .reviews-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
    .container { padding-left: var(--space-4); padding-right: var(--space-4); }
    .contact-form { padding: var(--space-5); }
    .topbar { font-size: 0.75rem; padding-left: var(--space-3); padding-right: var(--space-3); }
}

/* ==========================================================================
   New service-page patterns (added 2026-05-26 - covers classes used by
   page-childrens-dentistry, page-orthodontics, page-dental-surgeries and
   all sub-service templates)
   ========================================================================== */

/* Small eyebrow label above H1 */
.eyebrow {
    color: var(--color-primary);
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 0.75rem;
    font-weight: 600;
}

/* Hero pillars - the 4 brand differentiators under hero CTAs */
.hero-pillars {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
    max-width: 980px;
}
.hero-pillars li {
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--color-bg-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    position: relative;
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.4;
}
.hero-pillars li::before {
    content: "\2713";
    position: absolute;
    left: 1rem;
    top: 0.7rem;
    color: var(--color-primary);
    font-weight: 700;
}
.hero-pillars li strong {
    color: var(--color-heading);
    font-weight: 600;
}

/* "Why us" reason cards - used inside .grid.grid-2 */
.reason {
    padding: 0;
}
.reason h3 {
    color: var(--color-heading);
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
    font-weight: 600;
    line-height: 1.3;
}
.reason p {
    color: var(--color-text);
    font-size: 0.98rem;
    line-height: 1.6;
    margin: 0;
}

/* FAQ accordion (<details>/<summary> pattern) */
.faq-list {
    max-width: 820px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 1.1rem 0;
}
.faq-item:first-of-type {
    border-top: 1px solid var(--color-border);
}
.faq-item summary {
    font-weight: 600;
    color: var(--color-heading);
    cursor: pointer;
    list-style: none;
    padding-right: 2.25rem;
    position: relative;
    font-size: 1.02rem;
    line-height: 1.45;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: -0.1rem;
    color: var(--color-primary);
    font-weight: 400;
    font-size: 1.5rem;
    transition: transform 0.18s;
    line-height: 1;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item > p,
.faq-item .faq-answer {
    padding-top: 0.7rem;
    color: var(--color-text);
    font-size: 0.96rem;
    line-height: 1.65;
    margin: 0;
}

/* Button safety defs (in case main.css doesnt define these yet) */
.btn-lg {
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
}
.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}
.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Page hero polish (already exists but ensure consistent spacing) */
.page-hero .hero-cta {
    margin-top: 1.25rem;
}

/* ==========================================================================
   v2 DESIGN UPGRADE (2026-05-27) - hero photo, video embed, real service
   images, top bar, premium cards, reviews + locations polish
   ========================================================================== */

/* Top bar (trust signals, above header) */
.top-bar {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--color-white);
    padding: 0.7rem 1rem;
    text-align: center;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    font-weight: 500;
}
.top-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem 1.25rem;
}
.top-bar-item { display: inline-flex; align-items: center; gap: 0.4rem; }
.top-bar-item::before { content: "\2713"; opacity: 0.85; font-weight: 700; }
.top-bar-sep { opacity: 0.5; }
@media (max-width: 640px) {
    .top-bar { font-size: 0.78rem; padding: 0.55rem 0.75rem; }
    .top-bar-sep { display: none; }
}

/* Hero with background image */
.hero.hero-image {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    color: var(--color-white);
    padding: 96px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-inner { width: 100%; }
.hero-content-centered { text-align: center; max-width: 920px; margin: 0 auto; }
.hero h1 {
    color: var(--color-white);
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.1;
    margin: 0 0 1.25rem;
    font-weight: 700;
    text-shadow: 0 2px 12px rgba(0,0,0,0.35);
    letter-spacing: -0.5px;
}
.hero .lead {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.22rem;
    line-height: 1.55;
    margin: 0 0 2.25rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.hero-eyebrow {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.82rem;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin: 0 0 1rem;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.hero-cta {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
}
.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 0.95rem 2rem;
    box-shadow: 0 4px 16px rgba(65, 182, 230, 0.35);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary:hover {
    background: var(--color-primary-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(65, 182, 230, 0.45);
}
.btn-outline-light {
    background: transparent;
    color: var(--color-white);
    border: 2px solid rgba(255, 255, 255, 0.85);
    padding: 0.85rem 1.85rem;
    transition: background 0.18s ease, border-color 0.18s ease;
}
.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    color: white;
}
@media (max-width: 640px) {
    .hero.hero-image { min-height: 480px; padding: 64px 0; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; text-align: center; }
}

/* Intro paragraph */
.intro-section { padding: 4rem 0 3rem; }
.intro-paragraph {
    font-size: 1.18rem;
    line-height: 1.7;
    color: var(--color-text);
    max-width: 800px;
    margin: 0 auto;
}
.intro-paragraph strong { color: var(--color-heading); }
.text-center { text-align: center; }

/* Service cards with hero image */
.service-grid { gap: 2rem; }
.service-card-image-hero {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    background: var(--color-white);
    display: flex;
    flex-direction: column;
    text-align: left;
}
.service-card-image-hero:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.service-card-image-link {
    display: block;
    overflow: hidden;
    line-height: 0;
}
.service-card-image-hero .service-card-image {
    width: 100%;
    height: 260px;
    background-size: cover;
    background-position: center;
    transition: transform 0.5s ease;
}
.service-card-image-hero:hover .service-card-image { transform: scale(1.05); }
.service-card-image-hero .service-card-body { padding: 1.85rem 1.85rem 2rem; flex: 1; display: flex; flex-direction: column; }
.service-card-image-hero h3 { margin: 0 0 0.75rem; color: var(--color-heading); font-size: 1.4rem; line-height: 1.25; }
.service-card-image-hero h3 a { color: inherit; text-decoration: none; }
.service-card-image-hero h3 a:hover { color: var(--color-primary); }
.service-card-image-hero p { color: var(--color-text); margin: 0 0 1.5rem; line-height: 1.6; flex: 1; }
.service-card-image-hero .card-link {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    margin-top: auto;
}
.service-card-image-hero .card-link:hover { text-decoration: underline; }

/* Doctor block with Wistia video */
.doctor-block { padding: 5rem 0; }
.doctor-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 36px rgba(0,0,0,0.18);
    background: #0e2236;
}
.video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.doctor-eyebrow {
    color: var(--color-primary);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0 0 0.5rem;
    font-weight: 600;
}
.doctor-copy h2 { margin: 0.25rem 0 1.25rem; color: var(--color-heading); line-height: 1.2; }
.doctor-copy p { margin-bottom: 1.25rem; line-height: 1.7; color: var(--color-text); font-size: 1.02rem; }
.doctor-copy p strong { color: var(--color-heading); }
@media (max-width: 880px) {
    .doctor-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* Reviews upgrade */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}
.reviews-header h2 { margin: 0.25rem 0 0; line-height: 1.2; }
.reviews-rating { display: flex; align-items: center; gap: 1rem; }
.reviews-rating .score { font-size: 3rem; font-weight: 700; color: var(--color-heading); line-height: 1; }
.reviews-rating .stars { color: var(--color-star); font-size: 1.35rem; line-height: 1; letter-spacing: 2px; }
.reviews-meta { font-size: 0.85rem; color: var(--color-muted); margin-top: 0.35rem; }
.review-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.review-card {
    background: var(--color-white);
    padding: 1.85rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}
.review-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.review-card .stars { color: var(--color-star); margin-bottom: 0.85rem; font-size: 1.1rem; letter-spacing: 2px; }
.review-card .quote { color: var(--color-text); line-height: 1.65; margin: 0 0 1.25rem; font-size: 0.98rem; font-style: italic; flex: 1; }
.review-card .reviewer { color: var(--color-muted); font-size: 0.88rem; margin: 0; font-weight: 500; }

/* Locations upgrade */
.locations-grid { margin-top: 2.5rem; gap: 2rem; }
.location-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
}
.location-map { height: 280px; overflow: hidden; }
.location-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.location-body { padding: 1.85rem 2rem 2rem; flex: 1; display: flex; flex-direction: column; }
.location-body h3 { margin: 0 0 0.25rem; color: var(--color-heading); font-size: 1.4rem; }
.location-name { color: var(--color-muted); margin-bottom: 1rem; font-size: 0.95rem; }
.location-address { font-style: normal; color: var(--color-text); margin: 0 0 1rem; line-height: 1.6; }
.location-phone { display: inline-block; color: var(--color-primary); font-weight: 700; font-size: 1.1rem; margin: 0 0 1.25rem; text-decoration: none; }
.location-phone:hover { color: var(--color-primary-hover); }
.location-hours { list-style: none; padding: 0; margin: 0 0 1.5rem; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.location-hours li { display: flex; justify-content: space-between; padding: 0.55rem 0; border-bottom: 1px solid var(--color-border); font-size: 0.93rem; }
.location-hours li:last-child { border-bottom: none; }
.location-hours .day { color: var(--color-heading); font-weight: 600; }
.location-hours .hrs { color: var(--color-text); }
.location-body > div:last-child { margin-top: auto; }

/* Section spacing polish */
.section { padding: 4.5rem 0; }
.section-header { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-header .eyebrow { color: var(--color-primary); }
.section-header h2 { margin: 0.5rem 0 1rem; line-height: 1.2; }
.section-header p { color: var(--color-text); line-height: 1.6; }
.container.narrow { max-width: 820px; }

/* ==========================================================================
   v2 FIXES (2026-05-27) - hero video, kill hero border-radius, style
   existing header.php .topbar instead of duplicate top-bar
   ========================================================================== */

/* Kill the rounded corners on the hero (the existing .hero-image rule was
   adding border-radius which made no sense for a full-width hero) */
.hero, .hero-image, .hero-video {
    border-radius: 0 !important;
    overflow: hidden;
}

/* Full-bleed video hero */
.hero.hero-video {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    color: var(--color-white);
    padding: 96px 0;
    overflow: hidden;
    background: #0e2236;
}
.hero-bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 39, 56, 0.55) 0%, rgba(15, 39, 56, 0.45) 100%);
    z-index: 1;
    pointer-events: none;
}
.hero-video .hero-inner { position: relative; z-index: 2; }

/* Style the EXISTING header.php .topbar (single source of truth) */
.topbar {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--color-white);
    padding: 0.7rem 1rem;
    text-align: center;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    font-weight: 500;
}
.topbar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}
@media (max-width: 640px) {
    .topbar { font-size: 0.78rem; padding: 0.55rem 0.75rem; line-height: 1.4; }
}

/* Hide the unused .top-bar class (no-op, but defensive in case any markup
   slips through) */
.top-bar { display: none !important; }

/* ==========================================================================
   v3 (2026-05-27) - North-Hill-style 2-column hero with callback form
   card, About video section, why-list, action-block, form-band, footer CTA
   on every page. Used by riversedge_page_hero() helper.
   ========================================================================== */

/* Reset .hero rules from earlier that assumed white text on dark hero image */
.hero.hero-split {
    background: linear-gradient(160deg, #f5fbfd 0%, #e9f7fc 60%, #d8f1fb 100%);
    color: var(--color-text);
    padding: 4rem 0 4rem;
    min-height: 0;
    display: block;
    text-align: left;
    position: relative;
    overflow: hidden;
}
.hero.hero-split::before {
    content: "";
    position: absolute;
    top: -120px; right: -120px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(65,182,230,0.16) 0%, rgba(65,182,230,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero.hero-split::after {
    content: "";
    position: absolute;
    bottom: -160px; left: -100px;
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(65,182,230,0.12) 0%, rgba(65,182,230,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero.hero-split .wrap {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
}
.hero.hero-split .hero-copy {
    text-align: left;
    color: var(--color-text);
}
.hero.hero-split .hero-copy .eyebrow {
    display: inline-block;
    background: rgba(65, 182, 230, 0.14);
    color: var(--color-primary-hover);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.35rem 0.95rem;
    border-radius: var(--radius-pill);
    margin: 0 0 1.1rem;
    text-shadow: none;
}
.hero.hero-split h1 {
    color: var(--color-heading);
    font-size: clamp(1.9rem, 3vw + 0.9rem, 2.85rem);
    line-height: 1.15;
    margin: 0 0 1.1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: none;
    max-width: 620px;
    text-align: left;
}
.hero.hero-split .lead {
    color: var(--color-secondary);
    font-size: 1.1rem;
    line-height: 1.55;
    margin: 0 0 1.5rem;
    max-width: 580px;
    text-shadow: none;
    text-align: left;
}
.hero.hero-split .trust-strip {
    list-style: none;
    padding: 0;
    margin: 0.25rem 0 1.75rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    max-width: 560px;
}
.hero.hero-split .trust-strip li {
    position: relative;
    padding-left: 1.85rem;
    margin: 0;
    font-size: 0.97rem;
    line-height: 1.45;
    color: var(--color-text);
}
.hero.hero-split .trust-strip li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    background-image:
        linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%);
    background-size: 10px 2px, 6px 2px;
    background-repeat: no-repeat, no-repeat;
    background-position: 4px 9px, 3px 9px;
}
.hero.hero-split .trust-strip li strong {
    color: var(--color-heading);
    font-weight: 700;
}
.hero.hero-split .hero-cta {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-top: 0;
}

/* The form card on the right side of the hero
   ------------------------------------------------------------------------ */
.hero-form-card {
    background: #fff;
    color: var(--color-text);
    padding: 2rem 2rem 1.75rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 56px rgba(15, 30, 50, 0.14);
    border: 1px solid var(--color-border);
    max-width: 480px;
    justify-self: end;
    width: 100%;
}
.hero-form-card .hero-form-title {
    color: var(--color-heading);
    font-size: 1.4rem;
    text-align: center;
    margin: 0 0 0.35rem;
    line-height: 1.2;
    text-shadow: none;
}
.hero-form-card .hero-form-sub {
    font-size: 0.92rem;
    color: var(--color-muted);
    text-align: center;
    margin: 0 0 1.25rem;
    text-shadow: none;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}
.form-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.85rem;
}
.form-field label {
    font-size: 0.82rem;
    color: var(--color-heading);
    font-weight: 600;
    margin-bottom: 0.35rem;
    letter-spacing: 0.02em;
}
.form-field label span { color: #d63b3b; margin-left: 2px; }
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
    font-size: 0.95rem;
    color: var(--color-heading);
    transition: border-color var(--transition), box-shadow var(--transition);
    line-height: 1.3;
}
.form-field input::placeholder { color: #b0b8c1; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(65, 182, 230, 0.18);
}
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }
.form-actions { margin-top: 0.5rem; }
.btn-full { width: 100%; display: block; text-align: center; }
.form-fineprint { font-size: 0.78rem; color: var(--color-muted); text-align: center; margin: 0.85rem 0 0; line-height: 1.45; }
.form-status {
    margin: 0 0 1rem;
    padding: 0.8rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.92rem;
    line-height: 1.45;
}
.form-status--success {
    background: #e9f9ec;
    color: #1d6a2c;
    border: 1px solid #b6e3bf;
}
.form-status--error,
.form-status--invalid {
    background: #fbeaea;
    color: #8a1f1f;
    border: 1px solid #e3b6b6;
}

/* About section (split video + copy)
   ------------------------------------------------------------------------ */
.about-block { padding: 5rem 0; }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}
.about-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(15, 30, 50, 0.18);
    aspect-ratio: 4 / 3;
    background: #0e2236;
}
.about-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.about-copy .eyebrow {
    display: inline-block;
    background: rgba(65, 182, 230, 0.14);
    color: var(--color-primary-hover);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.35rem 0.95rem;
    border-radius: var(--radius-pill);
    margin-bottom: 0.9rem;
}
.about-copy h2 { margin: 0 0 1rem; color: var(--color-heading); line-height: 1.2; }
.about-copy p { color: var(--color-text); line-height: 1.7; margin-bottom: 1.25rem; }
@media (max-width: 880px) {
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Why list - checkmark bullets used in About and form-band copy
   ------------------------------------------------------------------------ */
.why-list { list-style: none; padding: 0; margin: 1rem 0 1.5rem; display: grid; gap: 0.65rem; }
.why-list li {
    position: relative;
    padding-left: 1.85rem;
    color: var(--color-text);
    line-height: 1.45;
    font-size: 0.98rem;
    margin: 0;
}
.why-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3rem;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--color-primary);
    background-image:
        linear-gradient(45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, #fff 45%, #fff 55%, transparent 55%);
    background-size: 10px 2px, 6px 2px;
    background-repeat: no-repeat, no-repeat;
    background-position: 4px 9px, 3px 9px;
}
.action-block { margin-top: 1.25rem; }

/* Form band (mid-page CTA - gradient bg with copy + form card)
   ------------------------------------------------------------------------ */
.form-band {
    background: linear-gradient(135deg, var(--color-primary) 0%, #2789b8 50%, #1e6c93 100%);
    color: #fff;
    padding: 4.5rem 0;
    position: relative;
    overflow: hidden;
}
.form-band::before {
    content: "";
    position: absolute;
    top: -80px; right: -80px;
    width: 320px; height: 320px;
    background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}
.form-band .wrap {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 2;
}
.form-band-copy .eyebrow {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}
.form-band-copy h2 { color: #fff; margin: 0 0 1rem; line-height: 1.2; }
.form-band-copy p { color: rgba(255, 255, 255, 0.92); font-size: 1.05rem; line-height: 1.6; }
.form-band-copy .why-list li { color: rgba(255, 255, 255, 0.95); }
.form-band-copy .why-list li::before {
    background: rgba(255, 255, 255, 0.95);
    background-image:
        linear-gradient(45deg, transparent 45%, var(--color-primary) 45%, var(--color-primary) 55%, transparent 55%),
        linear-gradient(-45deg, transparent 45%, var(--color-primary) 45%, var(--color-primary) 55%, transparent 55%);
    background-size: 10px 2px, 6px 2px;
    background-repeat: no-repeat, no-repeat;
    background-position: 4px 9px, 3px 9px;
}
.form-band-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 24px 56px rgba(0,0,0,0.22);
    max-width: 480px;
    justify-self: end;
    width: 100%;
}
.form-band-card .hero-form-title { color: var(--color-heading); font-size: 1.4rem; text-align: center; margin: 0 0 0.35rem; line-height: 1.2; }
.form-band-card .hero-form-sub { font-size: 0.92rem; color: var(--color-muted); text-align: center; margin: 0 0 1.25rem; }

/* Eyebrow inside form-band-copy uses light pill */

/* Responsive
   ------------------------------------------------------------------------ */
@media (max-width: 980px) {
    .hero.hero-split .wrap,
    .form-band .wrap {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .hero-form-card,
    .form-band-card {
        justify-self: stretch;
        max-width: 100%;
    }
}
@media (max-width: 640px) {
    .hero.hero-split { padding: 2.5rem 0 2.5rem; }
    .hero.hero-split h1 { font-size: 1.85rem; }
    .hero.hero-split .lead { font-size: 1rem; }
    .hero.hero-split .hero-cta { flex-direction: column; align-items: stretch; }
    .hero.hero-split .hero-cta .btn { width: 100%; }
    .form-band { padding: 3rem 0; }
    .form-band-card,
    .hero-form-card { padding: 1.5rem 1.25rem 1.25rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .about-block { padding: 3rem 0; }
    .about-grid { gap: 1.5rem; }
}

/* Service pages: kill the existing white-on-dark .hero rules from earlier
   that get inherited because the new hero is .hero.hero-split */
.hero.hero-split.hero-image { background-image: none !important; }

/* Responsive grid collapse - was previously forcing 3-col / 2-col on phone
   ------------------------------------------------------------------------ */
@media (max-width: 880px) {
    .grid.grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .grid.grid-3,
    .grid.grid-2,
    .grid.grid-4 { grid-template-columns: 1fr; }
    .locations-grid { grid-template-columns: 1fr; }
}
/* Doctor block + about block also collapse on tablet */
@media (max-width: 880px) {
    .doctor-grid { grid-template-columns: 1fr !important; gap: 2rem; }
}

/* ==========================================================================
   v1.2.0 (2026-05-27) - top bar polish, hero CTA anchor, reduced-motion,
   eyebrow text wrap control
   ========================================================================== */

/* Top bar: pipe-separated items with inline check marks */
.topbar { padding: 0.7rem 1rem; }
.topbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem 0.85rem;
    line-height: 1.4;
}
.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
    font-weight: 500;
}
.topbar-check {
    display: inline-block;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
    color: #fff;
    font-size: 0.62rem;
    line-height: 16px;
    text-align: center;
    font-weight: 700;
}
.topbar-sep {
    opacity: 0.45;
    font-weight: 300;
}
@media (max-width: 640px) {
    .topbar .container { gap: 0.25rem 0.6rem; font-size: 0.78rem; }
    .topbar-sep { display: none; }
}

/* Hero "or request a callback" anchor under primary CTA */
.hero.hero-split .hero-cta-anchor {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-primary-hover);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    align-self: center;
    transition: color var(--transition), text-underline-offset var(--transition);
}
.hero.hero-split .hero-cta-anchor:hover {
    color: var(--color-heading);
    text-underline-offset: 5px;
}
/* Hide the "Or request a callback" anchor on desktop (form is right there)
   and surface it on tablet/mobile where the form is below the fold */
@media (min-width: 981px) {
    .hero.hero-split .hero-cta-anchor { display: none; }
}

/* Cap eyebrow pill width and keep it tidy when text is long */
.hero.hero-split .hero-copy .eyebrow,
.about-copy .eyebrow,
.form-band-copy .eyebrow {
    max-width: 100%;
    white-space: normal;
}

/* Lazy iframe placeholders - prevent flash of empty gray box while map /
   Wistia iframes load. Subtle brand-tint gradient + skeleton sweep. */
.location-map {
    position: relative;
    background:
        linear-gradient(120deg, rgba(65,182,230,0.06) 0%, rgba(65,182,230,0.10) 50%, rgba(65,182,230,0.06) 100%) #eef6fb;
    background-size: 200% 100%;
    overflow: hidden;
}
.location-map::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(65,182,230,0.08) 0, transparent 40%),
        radial-gradient(circle at 70% 60%, rgba(65,182,230,0.06) 0, transparent 45%);
    pointer-events: none;
}
.location-map iframe {
    position: relative;
    z-index: 1;
    width: 100%; height: 100%;
    border: 0;
    display: block;
    background: #fff;
}
.video-wrapper {
    background:
        linear-gradient(135deg, #1a3a52 0%, #0e2236 100%) #0e2236;
    position: relative;
}
.video-wrapper::after {
    content: "▶";
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 64px; height: 64px;
    border-radius: 50%;
    background: rgba(65, 182, 230, 0.9);
    color: #fff;
    font-size: 1.6rem;
    line-height: 64px;
    text-align: center;
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}
.video-wrapper iframe {
    position: absolute; inset: 0; z-index: 1;
}

/* About-media fallback poster - prevents the dark navy flash before the
   muted-autoplay video paints its first frame */
.about-media {
    background:
        linear-gradient(160deg, rgba(65,182,230,0.55) 0%, rgba(15,39,56,0.55) 100%),
        url('https://fortsaskorthopeds.com/wp-content/uploads/2023/01/pexels-caio-67112-scaled.jpg')
        center/cover no-repeat,
        #0e2236;
}
.about-video {
    position: relative;
    z-index: 1;
}

/* Tablet hero polish - when hero collapses to 1-col below 980px, the form
   card was stretching full container width and looked oversized. Cap it
   and centre it. Also tighten the hero top/bottom padding so the page
   does not feel sparse on tablet. */
@media (max-width: 980px) {
    .hero.hero-split { padding: 2.5rem 0 2.5rem; }
    .hero.hero-split .wrap { gap: 2rem; }
    .hero-form-card,
    .form-band-card {
        justify-self: center;
        max-width: 520px;
    }
}

/* Thank-you page card */
.hero-thanks .hero-thanks-card { text-align: center; }
.thanks-checkmark {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 2.4rem;
    line-height: 72px;
    text-align: center;
    margin: 0 auto 1rem;
    box-shadow: 0 6px 20px rgba(65, 182, 230, 0.35);
}
.thanks-next {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 1rem;
    text-align: left;
    display: grid;
    gap: 0.55rem;
}
.thanks-next li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    color: var(--color-text);
    line-height: 1.5;
    margin: 0;
}
.thanks-next li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.5rem;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--color-primary);
}

/* Reduced-motion respect: stop the About-section video from auto-playing
   visually and drop hover scale on cards */
@media (prefers-reduced-motion: reduce) {
    .about-video {
        display: none;
    }
    .about-media {
        background: var(--color-bg-soft) url('https://fortsaskorthopeds.com/wp-content/uploads/2023/01/pexels-caio-67112-scaled.jpg') center/cover no-repeat;
    }
    .service-card-image-hero:hover { transform: none; }
    .service-card-image-hero:hover .service-card-image { transform: none; }
    .review-card:hover { transform: none; }
    .btn-primary:hover { transform: none; }
    html { scroll-behavior: auto; }
}

