/* =====================================================
   Momentum Chiropractic — Templestowe
   Design System: Navy + Teal
   ===================================================== */

/* --- Variables --- */
:root {
    --navy:       #1E293B;
    --navy-mid:   #334155;
    --navy-light: #475569;
    --teal:       #2ABFAA;
    --teal-dark:  #1B9E8F;
    --teal-pale:  #EBF9F7;
    --sky:        #F4F8FC;
    --white:      #FFFFFF;
    --border:     #CBD5E1;
    --text:       #1E293B;
    --text-mid:   #475569;
    --text-light: #94A3B8;
    --text-muted: #64748B;
    --shadow:     0 4px 24px rgba(30,41,59,0.10);
    --shadow-lg:  0 8px 40px rgba(30,41,59,0.16);
}

.why-grid,
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* --- Skip link (accessibility) --- */
.skip-link {
    position: absolute;
    top: -48px;
    left: 16px;
    background: var(--teal);
    color: var(--navy);
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 0 0 6px 6px;
    z-index: 9999;
    transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { overflow-x: hidden; max-width: 100%; }
/* Enforce hidden attribute — author display rules (grid, flex, etc.) can override UA stylesheet */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
img, iframe, video, embed, object { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* --- Focus visible (keyboard accessibility) --- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--teal);
    outline-offset: 3px;
    border-radius: 3px;
}

/* Keyboard-accessible dropdowns */
.nav-item:focus-within .nav-dropdown { display: block; }

/* --- Base --- */
body {
    font-family: 'Lato', sans-serif;
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
    background: var(--white);
}

h1, h2, h3, h4 {
    font-family: 'Lora', Georgia, serif;
    color: var(--navy);
    line-height: 1.25;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 1rem; }
h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }
p  { margin-bottom: 1rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 80px 0;
}

.section--compact {
    padding-top: 24px;
}

.section--sky {
    background: var(--sky);
}

.section--teal-pale {
    background: var(--teal-pale);
}

.section--navy {
    background: var(--navy);
}

.section-label {
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal-dark);
    margin-bottom: 10px;
    display: block;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 56px;
}

.section-header p {
    font-size: 1.05rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 14px 32px;
    border-radius: 4px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn--teal {
    background: var(--teal);
    color: var(--navy);
}

.btn--teal:hover {
    background: var(--teal-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42,191,170,0.35);
}

.btn--navy {
    background: var(--navy);
    color: var(--white);
}

.btn--navy:hover {
    background: var(--navy-mid);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30,41,59,0.3);
}

.btn--outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.6);
}

.btn--outline-white:hover {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn--outline-teal {
    background: transparent;
    color: var(--teal-dark);
    border: 2px solid var(--teal);
}

.btn--outline-teal:hover {
    background: var(--teal);
    color: var(--navy);
}

/* =====================================================
   HEADER
   ===================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(30,41,59,0.07);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    gap: 24px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.header-logo img {
    height: 60px;
    width: auto;
}

.header-logo-text {
    display: flex;
    flex-direction: column;
}

.header-logo-name {
    font-family: 'Lora', serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.2;
}

.header-logo-tagline {
    font-size: 10px;
    color: var(--text-light);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* --- Primary Nav --- */
.header-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--navy-mid);
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--navy);
    background: var(--sky);
}

.nav-link.has-dropdown {
    padding-right: 24px;
    position: relative;
}

.nav-link.has-dropdown::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--text-mid);
    transition: transform 0.2s;
}

.nav-item:hover .nav-link.has-dropdown::after {
    transform: translateY(-50%) rotate(180deg);
}

/* --- Dropdown --- */
.nav-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    z-index: 200;
}

/* Invisible bridge covers the 4px gap so hover isn't lost moving to dropdown */
.nav-item::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 8px;
}

.nav-item:hover .nav-dropdown {
    display: block;
}

.nav-dropdown a {
    display: block;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy-mid);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s, color 0.15s;
}

.nav-dropdown a:last-child {
    border-bottom: none;
}

.nav-dropdown a:hover {
    background: var(--teal-pale);
    color: var(--navy);
}

/* --- Header CTA --- */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-phone {
    font-size: 14px;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
}

.header-phone:hover {
    color: var(--teal-dark);
}

/* --- Mobile hamburger --- */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   HERO
   ===================================================== */

.hero {
    background: var(--navy);
    padding: 80px 0 72px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(42,191,170,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 480px;
    gap: 60px;
    align-items: center;
}

.hero-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 16px;
    display: block;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 20px;
}

.hero h1 em {
    font-style: normal;
    color: var(--teal);
}

.hero-intro {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 32px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.hero-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

/* --- Hero interior (sub-pages) --- */
.hero--interior {
    padding: 60px 0 52px;
}

.hero--interior h1 {
    margin-bottom: 12px;
}

.hero-sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    line-height: 1.7;
    margin: 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.80);
}

.breadcrumb a {
    color: rgba(255,255,255,0.80);
    transition: color 0.15s;
}

.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span { color: var(--teal); }

/* =====================================================
   STATS BAR
   ===================================================== */

.stats-bar {
    background: var(--teal);
    padding: 28px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    text-align: center;
    padding: 12px 16px;
    border-right: 1px solid rgba(30,41,59,0.15);
}

.stat-item:last-child { border-right: none; }

.stat-number {
    display: block;
    font-family: 'Lora', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
}

/* =====================================================
   CARDS
   ===================================================== */

.card-grid {
    display: grid;
    gap: 24px;
}

.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 28px;
}

.card-body h3 { color: var(--navy); }

.card--accent {
    border-top: 3px solid var(--teal);
}

.card--icon {
    padding: 32px;
    border-top: 3px solid var(--teal);
}

.card--icon .icon {
    width: 48px;
    height: 48px;
    background: var(--teal-pale);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card--icon .icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--teal-dark);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-icon {
    margin-bottom: 20px;
}
.card-icon svg {
    width: 80px;
    height: 80px;
    display: block;
    stroke: var(--navy);
}

/* =====================================================
   TREATMENT BLOCKS
   ===================================================== */

.treatment-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.treatment-block--reverse {
    direction: rtl;
}

.treatment-block--reverse > * {
    direction: ltr;
}

.treatment-block img {
    border-radius: 8px;
    width: 100%;
    height: 380px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.treatment-content .number {
    font-family: 'Lora', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--teal);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: -8px;
    display: block;
}

.treatment-content h3 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

/* =====================================================
   CONDITION LIST
   ===================================================== */

.condition-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.condition-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-left: 3px solid var(--teal);
    border-radius: 4px;
    padding: 20px 24px;
}

.condition-item h4 {
    color: var(--navy);
    margin-bottom: 6px;
}

.condition-item p {
    font-size: 0.9rem;
    margin: 0;
}

/* =====================================================
   FAQ ACCORDION
   ===================================================== */

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    gap: 16px;
    user-select: none;
    transition: color 0.15s;
}

.faq-question:hover { color: var(--teal-dark); }

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: var(--sky);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background: var(--navy-mid);
    border-radius: 2px;
    transition: transform 0.2s;
}

.faq-icon { position: relative; }
.faq-icon::before { width: 12px; height: 2px; }
.faq-icon::after  { width: 2px; height: 12px; }

.faq-item.is-open .faq-icon::after {
    transform: rotate(90deg);
}

.faq-item.is-open .faq-icon {
    background: var(--teal-pale);
}

.faq-answer {
    display: none;
    padding: 0 0 20px;
    color: var(--text-mid);
    line-height: 1.75;
}

.faq-item.is-open .faq-answer {
    display: block;
}

/* =====================================================
   CTA SECTION
   ===================================================== */

.cta-section {
    background: var(--navy);
    padding: 72px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 280px; height: 280px;
    background: var(--teal);
    border-radius: 50%;
    opacity: 0.06;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 320px; height: 320px;
    background: var(--teal);
    border-radius: 50%;
    opacity: 0.05;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.cta-section p {
    color: rgba(255,255,255,0.88);
    font-size: 1.05rem;
    max-width: 560px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* =====================================================
   TRUST BAR (health funds / logos)
   ===================================================== */

.trust-bar {
    background: var(--sky);
    padding: 28px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.trust-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-mid);
    display: flex;
    align-items: center;
    gap: 8px;
}

.trust-item svg {
    width: 18px;
    height: 18px;
    fill: var(--teal);
}

/* =====================================================
   ABOUT / BIO SECTION
   ===================================================== */

.bio-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 60px;
    align-items: start;
}

.bio-image {
    position: relative;
    max-width: 240px;
}

.bio-image img {
    border-radius: 8px;
    width: 100%;
    max-width: 240px;
    display: block;
    box-shadow: var(--shadow);
}

.bio-image::after {
    content: '';
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--teal);
    border-radius: 8px;
    z-index: -1;
}

.bio-content .credential {
    display: inline-block;
    background: var(--teal-pale);
    color: var(--teal-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.bio-highlights {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.bio-highlight {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy-mid);
}

.bio-highlight::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--teal);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%231E293B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2,6 5,9 10,3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
    margin-top: 3px;
}

/* =====================================================
   CONTACT PAGE
   ===================================================== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 56px;
    align-items: stretch;
}

/* When form is active, don't stretch — let each column be its natural height */
.contact-grid--form-active {
    align-items: start;
}

.contact-form-col {
    display: flex;
    flex-direction: column;
}

.contact-form-col .contact-form {
    flex: 1;
}

/* In form-active mode, the form doesn't need to stretch */
.contact-grid--form-active .contact-form-col .contact-form {
    flex: 0 0 auto;
}

.contact-info-card {
    height: 100%;
    box-sizing: border-box;
}

.contact-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 40px;
}

.contact-form h3 {
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy-mid);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    font-family: 'Lato', sans-serif;
    color: var(--text);
    background: var(--sky);
    border: 1px solid var(--border);
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(42,191,170,0.15);
    background: var(--white);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-honeypot {
    display: none;
}

.contact-info-card {
    background: var(--navy);
    border-radius: 8px;
    padding: 40px;
    color: var(--white);
}

.contact-info-card h3 {
    color: var(--white);
    margin-bottom: 28px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-info-item:last-child { margin-bottom: 0; }

.contact-info-icon {
    width: 44px;
    height: 44px;
    background: rgba(42,191,170,0.15);
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--teal);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-info-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 4px;
    display: block;
}

.contact-info-value {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.contact-info-value a {
    color: var(--white);
    font-weight: 700;
    transition: color 0.15s;
}

.contact-info-value a:hover { color: var(--teal); }

.contact-info-header {
    padding-bottom: 28px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.contact-info-tagline {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal);
    margin: 0 0 10px;
}

.contact-info-header h2 {
    color: var(--white);
    font-size: 1.4rem;
    line-height: 1.3;
    margin: 0 0 10px;
}

.contact-info-subtext {
    color: rgba(255,255,255,0.70);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.contact-info-item h4 {
    color: var(--teal);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.contact-info-item p {
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}

.contact-info-item p a {
    color: var(--white);
    transition: color 0.15s;
}

.contact-info-item p a:hover { color: var(--teal); }

.map-embed {
    margin-top: 28px;
    border-radius: 8px;
    overflow: hidden;
}

.map-embed iframe {
    width: 100%;
    height: 220px;
    border: none;
    display: block;
}

/* Form alert messages */

/* Form choice cards (initial state — two big entry options) */
@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes checkPop {
    from { opacity: 0; transform: scale(0) rotate(-15deg); }
    to   { opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes formSlideDown {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* Selected card zooms toward you; other card fades away */
@keyframes cardZoomEnter {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(1.08); }
}
@keyframes cardFadeAway {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(10px) scale(0.96); }
}
/* Form sliding back up when going back to cards */
@keyframes formSlideUp {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-16px); }
}

.form-choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 36px;
}

/* ---- Base card ---- */
.form-choice__card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 16px;
    padding: 48px 32px;
    min-height: 240px;
    border: 2px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s, opacity 0.3s, background 0.25s;
    animation: cardEntrance 0.45s ease both;
}
.form-choice__card:nth-child(1) { animation-delay: 0.05s; }
.form-choice__card:nth-child(2) { animation-delay: 0.18s; }

/* ---- Card 1: Send an Enquiry — light / airy ---- */
.form-choice__card:nth-child(1) {
    background: var(--sky);
    border-color: #cbd5e1;
    color: var(--text-mid);
}
.form-choice__card:nth-child(1):hover {
    background: #fff;
    border-color: var(--teal);
    box-shadow: 0 8px 28px rgba(20,184,166,0.15);
    transform: translateY(-4px);
}
.form-choice__card:nth-child(1).form-choice__card--active {
    background: #fff;
    border-color: var(--teal);
    box-shadow: 0 8px 28px rgba(20,184,166,0.2);
}

/* ---- Card 2: Request an Appointment — bold / navy ---- */
.form-choice__card:nth-child(2) {
    background: var(--navy);
    border-color: var(--navy);
    color: rgba(255,255,255,0.85);
}
.form-choice__card:nth-child(2):hover {
    background: #263550;
    border-color: var(--teal);
    box-shadow: 0 8px 32px rgba(30,41,59,0.45);
    transform: translateY(-4px);
}
.form-choice__card:nth-child(2).form-choice__card--active {
    background: #263550;
    border-color: var(--teal);
    box-shadow: 0 8px 32px rgba(30,41,59,0.45);
}

/* ---- Icons ---- */
.form-choice__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    transition: background 0.25s, color 0.25s, transform 0.2s;
}

/* Icon — light card */
.form-choice__card:nth-child(1) .form-choice__icon {
    background: #fff;
    color: var(--teal);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}
.form-choice__card:nth-child(1):hover .form-choice__icon,
.form-choice__card:nth-child(1).form-choice__card--active .form-choice__icon {
    background: var(--teal);
    color: #fff;
    transform: scale(1.1);
}

/* Icon — dark card */
.form-choice__card:nth-child(2) .form-choice__icon {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.form-choice__card:nth-child(2):hover .form-choice__icon,
.form-choice__card:nth-child(2).form-choice__card--active .form-choice__icon {
    background: var(--teal);
    color: #fff;
    transform: scale(1.1);
}

/* ---- Text ---- */
.form-choice__card strong {
    display: block;
    font-size: 18px;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: -0.01em;
}
.form-choice__card:nth-child(1) strong { color: var(--navy); }
.form-choice__card:nth-child(2) strong { color: #fff; }

.form-choice__card span:not(.form-choice__icon) {
    font-size: 13px;
    line-height: 1.55;
    max-width: 200px;
}
.form-choice__card:nth-child(1) span:not(.form-choice__icon) { color: var(--text-muted); }
.form-choice__card:nth-child(2) span:not(.form-choice__icon) { color: rgba(255,255,255,0.65); }

/* ---- Checkmark badge ---- */
.form-choice__card--active::after {
    content: '\2713';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--teal);
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: checkPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ---- Exit animations when a card is chosen ---- */
.form-choice--exiting {
    pointer-events: none;
}
/* The chosen card zooms toward you */
.form-choice--exiting .form-choice__card--active {
    animation: cardZoomEnter 0.35s cubic-bezier(0.4, 0, 0.2, 1) both;
}
/* The unchosen card fades away */
.form-choice--exiting .form-choice__card:not(.form-choice__card--active) {
    animation: cardFadeAway 0.28s ease both;
}

/* ---- Animated form reveal ---- */
.form-fields-animate {
    animation: formSlideDown 0.42s ease both;
}
/* ---- Animated form exit (going back to cards) ---- */
.form-fields-exiting {
    animation: formSlideUp 0.28s ease both;
    pointer-events: none;
}

/* ---- Selected form header (injected by JS) ---- */
.form-selected-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: var(--sky);
    border-radius: 8px;
    margin-bottom: 22px;
    border-left: 3px solid var(--teal);
}
.form-selected-header__label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
}
.form-selected-header__label svg { stroke: var(--teal); flex-shrink: 0; }
.form-selected-header__change {
    background: none;
    border: none;
    color: var(--teal);
    font-size: 12px;
    font-weight: 700;
    font-family: 'Lato', sans-serif;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
    transition: color 0.15s;
}
.form-selected-header__change:hover { color: var(--navy); }

/* ---- Appointment wizard ---- */
.appt-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 28px;
}
.appt-dot {
    height: 5px;
    width: 22px;
    border-radius: 3px;
    background: var(--border);
    transition: width 0.3s ease, background 0.3s ease, opacity 0.3s;
}
.appt-dot--active {
    background: var(--teal);
    width: 36px;
}
.appt-dot--done {
    background: var(--teal);
    opacity: 0.4;
}

@keyframes stepSlideRight {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes stepSlideLeft {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: translateX(0); }
}
.appt-step--enter-fwd  { animation: stepSlideRight 0.3s ease both; }
.appt-step--enter-back { animation: stepSlideLeft  0.3s ease both; }

.step-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 28px;
    gap: 12px;
}
.step-back-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: 'Lato', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
    transition: color 0.15s;
}
.step-back-btn:hover { color: var(--navy); }

.step-error {
    font-size: 13px;
    color: #c0392b;
    font-weight: 600;
    margin: 10px 0 0;
}

/* ---- Mobile ---- */
@media (max-width: 640px) {
    .form-choice { gap: 14px; }
    .form-choice__card {
        min-height: 0;
        padding: 28px 20px;
        gap: 12px;
    }
    .form-choice__icon { width: 56px; height: 56px; }
    .form-choice__card strong { font-size: 16px; }
}

@media (max-width: 480px) {
    .form-choice { grid-template-columns: 1fr; }
    .form-choice__card {
        flex-direction: row;
        text-align: left;
        padding: 22px 18px;
        justify-content: flex-start;
        gap: 16px;
    }
    .form-choice__icon { flex-shrink: 0; }
    .form-choice__card span:not(.form-choice__icon) { max-width: none; }
    .form-choice__card--active::after { top: 10px; right: 10px; }
}

/* Form toggle (Enquiry / Appointment) */
.form-toggle {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 24px;
}

.form-toggle__btn {
    flex: 1;
    padding: 13px 12px;
    background: var(--sky);
    border: none;
    cursor: pointer;
    font-family: 'Lato', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-mid);
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.form-toggle__btn + .form-toggle__btn {
    border-left: 1px solid var(--border);
}

.form-toggle__btn--active {
    background: var(--navy);
    color: var(--white);
}

.form-toggle__btn:hover:not(.form-toggle__btn--active) {
    background: #e2e8f0;
    color: var(--navy);
}

/* Service type cards */
.service-picker {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.service-card {
    display: block;
    cursor: pointer;
}

.service-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.service-card span {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: var(--sky);
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.15s;
    gap: 8px;
    height: 100%;
    box-sizing: border-box;
}

.service-card:hover span {
    border-color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.service-card span svg {
    stroke: var(--teal);
    flex-shrink: 0;
    transition: transform 0.2s;
}
.service-card:hover span svg { transform: scale(1.15); }

.service-card span strong {
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    display: block;
}

.service-card span small {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    line-height: 1.4;
}

.service-card input:checked + span {
    border-color: var(--teal);
    background: #f0fdfa;
    box-shadow: 0 4px 12px rgba(20,184,166,0.15);
}

/* Checkmark badge on checked service card */
.service-card input:checked + span::after {
    content: '\2713';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 11px;
    font-weight: 900;
    color: var(--teal);
    animation: checkPop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@media (max-width: 480px) {
    .service-picker { grid-template-columns: 1fr; }
}

/* Day / time picker pills */
.day-picker,
.time-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
}

.picker-btn {
    position: relative;
    display: inline-flex;
    cursor: pointer;
}

.picker-btn input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.picker-btn span {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    background: var(--sky);
    transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s, box-shadow 0.15s;
    user-select: none;
}

.picker-btn input:checked + span {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(20,184,166,0.3);
}

.picker-btn:hover span {
    border-color: var(--teal);
    color: var(--navy);
}

.picker-btn:active span {
    transform: scale(0.95);
}

.form-label-hint {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 2px;
}

.form-divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0 24px;
}

.form-alert {
    padding: 14px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

.form-alert--success {
    background: #E8F7F1;
    color: #1A7A4A;
    border: 1px solid #A8DFC0;
}

.form-alert--error {
    background: #FDF0EE;
    color: #B84A30;
    border: 1px solid #F5C0B0;
}

.form-thankyou {
    padding: 40px 32px;
    background: #EBF9F7;
    border-radius: 8px;
    text-align: center;
}

.form-thankyou__icon {
    width: 56px;
    height: 56px;
    background: #2ABFAA;
    color: #fff;
    border-radius: 50%;
    font-size: 26px;
    line-height: 56px;
    margin: 0 auto 20px;
}

.form-thankyou h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    color: var(--navy);
    margin: 0 0 12px;
}

.form-thankyou p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 8px;
}

.form-thankyou a {
    color: var(--teal);
}

.thankyou-summary {
    margin-top: 24px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #c7ede8;
    text-align: left;
    overflow: hidden;
}

.thankyou-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 11px 16px;
    border-bottom: 1px solid #e8f5f3;
    font-size: 14px;
}
.thankyou-row:last-child { border-bottom: none; }

.thankyou-row span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--teal-dark);
}

.thankyou-row strong {
    color: var(--navy);
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
}

.thankyou-row--message strong {
    white-space: pre-wrap;
}

/* =====================================================
   ARTICLE / BLOG
   ===================================================== */

.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.article-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.article-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-body {
    padding: 28px;
}

.article-meta {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--teal-dark);
    margin-bottom: 10px;
}

.article-card-body h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.article-card-body h3 a {
    color: var(--navy);
    transition: color 0.15s;
}

.article-card-body h3 a:hover { color: var(--teal-dark); }

.article-content h2 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    color: var(--navy);
    margin-top: 48px;
    margin-bottom: 6px;
    padding-top: 0;
}

.article-content h2::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    background: var(--teal);
    border-radius: 2px;
    margin-top: 8px;
    margin-bottom: 18px;
}

.article-content h3 {
    font-size: 1.05rem;
    color: var(--teal-dark);
    margin-top: 28px;
    margin-bottom: 10px;
}

.article-content ul,
.article-content ol {
    padding-left: 28px;
    margin-bottom: 20px;
    color: var(--text-mid);
}

.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }

.article-content li { margin-bottom: 8px; }

.article-author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--sky);
    border-radius: 8px;
    margin-top: 48px;
}

.article-author img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.article-author-name {
    font-weight: 700;
    color: var(--navy);
    font-size: 15px;
}

.article-author-title {
    font-size: 13px;
    color: var(--text-light);
}

/* =====================================================
   ICON FEATURE LIST
   ===================================================== */

.feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.feature-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--teal-pale);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--teal-dark);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =====================================================
   CHECK LIST
   ===================================================== */

.check-list {
    margin: 16px 0;
}

.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-mid);
    font-size: 15px;
}

.check-list li::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--teal);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%231E293B' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='2,6 5,9 10,3'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
    margin-top: 3px;
}

/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
    background: var(--navy);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand img {
    height: 52px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.80);
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-phone {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--teal);
    display: block;
    margin-bottom: 4px;
}

.footer-phone:hover { color: white; }

.footer-address {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
}

.footer-col h4 {
    font-family: 'Lato', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 18px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: rgba(255,255,255,0.80);
    transition: color 0.15s;
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.80);
    margin: 0;
}

.footer-bottom a {
    color: rgba(255,255,255,0.85);
    transition: color 0.15s;
}

.footer-bottom a:hover { color: var(--white); }

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1080px) {
    .hero-grid { grid-template-columns: 1fr 380px; gap: 40px; }
    .bio-grid   { grid-template-columns: 280px 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
    /* Tablet: collapse contact grid early so it doesn't squeeze */
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form-col, .contact-info-col { width: 100%; max-width: 100%; min-width: 0; }
    .contact-info-card { height: auto; }

    /* Tablet: collapse content-sidebar early */
    .content-sidebar { grid-template-columns: 1fr; }
    .sidebar-card { position: static; }
}

@media (max-width: 900px) {
    .header-nav { display: none; }
    .header-phone { display: none; }
    .nav-toggle { display: flex; }

    /* Shrink header to reclaim vertical space */
    .header-inner { height: 72px; }
    .header-logo img { height: 44px; }
    .header-logo { flex-shrink: 1; min-width: 0; }
    .header-logo-name { font-size: 0.9rem; max-width: 5.5em; }
    .header-logo-tagline { display: none; }
    .header-actions .btn { padding: 8px 14px; font-size: 12px; }

    .header-nav.is-open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 72px;
        left: 0; right: 0;
        background: var(--white);
        padding: 16px 0 32px;
        box-shadow: var(--shadow-lg);
        z-index: 99;
        gap: 0;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .nav-item { width: 100%; }

    .nav-link {
        padding: 14px 24px;
        border-radius: 0;
        font-size: 14px;
    }

    .nav-link.has-dropdown::after { display: inline-block; margin-left: 6px; }
    .nav-link.has-dropdown.is-open::after { transform: rotate(180deg); }

    .nav-dropdown {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        border-top: 1px solid var(--border);
        border-radius: 0;
        background: var(--sky);
    }

    .nav-dropdown.is-open { display: block; }

    .nav-dropdown a {
        padding: 12px 36px;
        font-size: 13px;
    }

    .hero-grid { grid-template-columns: 1fr; }
    .hero-image { display: none; }

    .card-grid--3 { grid-template-columns: repeat(2, 1fr); }

    .why-grid,
    .two-col-grid { grid-template-columns: 1fr; gap: 32px; }
    .treatment-block { grid-template-columns: 1fr; gap: 32px; }
    .treatment-block--reverse { direction: ltr; }
    /* Reduce tall image height when stacked */
    .treatment-block img { height: 260px; }

    .bio-grid { grid-template-columns: 1fr; }
    .bio-image { max-width: 300px; margin: 0 auto; }
    .bio-image::after { display: none; }
    .bio-highlights { grid-template-columns: 1fr; }

    .contact-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 28px; overflow-x: hidden; }
    .contact-info-card { padding: 28px; overflow-x: hidden; }
    .contact-form-col, .contact-info-col { width: 100%; max-width: 100%; min-width: 0; }
    .form-row { grid-template-columns: 1fr; }

    .condition-list { grid-template-columns: 1fr; }
    .feature-list   { grid-template-columns: 1fr; }

    /* 2-col stats: add row separator between top and bottom rows */
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
    .stat-item:nth-child(1),
    .stat-item:nth-child(2) { border-bottom: 1px solid rgba(30,41,59,0.15); }
}

@media (max-width: 640px) {
    .section { padding: 48px 0; }
    .hero { padding: 48px 0; }
    .hero--interior { padding: 40px 0 32px; }
    .card-grid--3 { grid-template-columns: 1fr; }
    .card-grid--2 { grid-template-columns: 1fr; }
    .article-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .footer-brand img { margin: 0 auto 16px; }
    .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-form { padding: 24px; }
    .contact-info-card { padding: 28px; }

    /* Hide tagline to reduce logo footprint on small phones */
    .header-logo-tagline { display: none; }

    /* Reduce Book Now button padding in header */
    .header-actions .btn { padding: 8px 14px; font-size: 12px; }

    /* Stack hero CTA buttons full-width */
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { text-align: center; }

    /* Stack CTA section buttons full-width */
    .cta-actions { flex-direction: column; align-items: stretch; padding: 0 8px; }
    .cta-actions .btn { text-align: center; }

    /* Tighten section header bottom margin */
    .section-header { margin-bottom: 36px; }

    /* Contact page */
    .contact-info-col a { word-break: break-all; }
    .trust-bar-inner { gap: 20px; }
    .trust-item { font-size: 13px; }

    /* Prevent any element from causing horizontal overflow */
    .cta-section, .hero, .section { overflow-x: hidden; }

    /* FAQ max-width on mobile */
    .faq-list { max-width: 100%; }

    /* Reduce textarea height on small screens */
    .form-group textarea { min-height: 90px; }

    /* Scale down h3/h4 on small screens */
    h3 { font-size: 1.15rem; }
    h4 { font-size: 1rem; }

    /* Reduce map height on phones */
    .map-container iframe { height: 180px; }

    /* Card body padding */
    .card-body { padding: 20px; }
    .card--icon { padding: 24px; }
}

/* Author intro grid (health articles page — Dr Jacinta callout) */
.author-intro-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    align-items: center;
    max-width: 860px;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid rgba(30,41,59,0.15); }
    .stat-item:last-child { border-bottom: none; }

    /* Shrink logo name further on very small phones */
    .header-logo-name { font-size: 0.8rem; }

    /* Stack the author intro on small phones */
    .author-intro-grid { grid-template-columns: 1fr; gap: 16px; text-align: center; }
    .author-intro-grid img { margin: 0 auto; }

    /* Google review CTA button — ensure it doesn't overflow on tiny screens */
    .cta-section .btn { padding: 12px 24px !important; font-size: 15px !important; }
}

/* =====================================================
   CONTACT PAGE — MOBILE & TABLET REFINEMENTS
   ===================================================== */

/* Tablet (≤768px): stacked layout already handled; tighten form padding */
@media (max-width: 768px) {
    .contact-form { padding: 24px 20px; }

    /* Choice cards: stay side by side on tablet but tighter */
    .form-choice { gap: 14px; }
    .form-choice__card { padding: 24px 18px; min-height: 160px; }
    .form-choice__icon { width: 52px; height: 52px; }

    /* Wizard service cards: 3 col on tablet is fine, reduce padding */
    .service-card span {
        padding: 16px 10px;
        gap: 8px;
    }
    .service-card span strong { font-size: 12px; }
    .service-card span small  { font-size: 10px; }

    /* Step actions: ensure buttons are tap-friendly */
    .step-actions { gap: 12px; }
    .step-actions .btn { padding: 12px 22px; font-size: 14px; }

    /* Selected form header: prevent overflow */
    .form-selected-header { flex-wrap: wrap; gap: 6px; }
    .form-selected-header__change { font-size: 13px; }

    /* Day / time picker: ensure pills wrap nicely */
    .day-picker, .time-picker { gap: 8px; }
    .picker-btn span { padding: 9px 14px; font-size: 14px; }

    /* Thank-you card */
    .form-thankyou { padding: 28px 20px; }
}

/* Mobile (≤480px): full-width, finger-friendly */
@media (max-width: 480px) {
    /* Form */
    .contact-form { padding: 20px 16px; border-radius: 8px; }

    /* Choice cards: stack vertically on small phones */
    .form-choice { grid-template-columns: 1fr; gap: 12px; }
    .form-choice__card {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 18px 16px;
        gap: 16px;
        min-height: 0;
    }
    .form-choice__icon { flex-shrink: 0; width: 48px; height: 48px; font-size: 20px; }
    .form-choice__card strong { font-size: 15px; }
    .form-choice__card span:not(.form-choice__icon) { max-width: none; font-size: 12px; }
    .form-choice__card--active::after { top: 10px; right: 10px; }

    /* Wizard service cards: single column */
    .service-picker { grid-template-columns: 1fr; gap: 10px; }
    .service-card span {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        text-align: left;
        border-radius: 8px;
    }
    .service-card span svg { flex-shrink: 0; width: 24px; height: 24px; }
    .service-card span strong { font-size: 14px; }
    .service-card span small  { font-size: 12px; display: block; }

    /* Step actions: full-width submit, back stays left */
    .step-actions { gap: 10px; }
    .step-actions .btn { flex: 1; text-align: center; padding: 14px 12px; font-size: 14px; }
    .step-back-btn { flex-shrink: 0; white-space: nowrap; }

    /* Day pills: slightly larger tap targets */
    .picker-btn span { padding: 10px 14px; font-size: 14px; min-width: 44px; text-align: center; }

    /* Time picker: wrap if needed */
    .time-picker { flex-direction: column; align-items: stretch; }
    .time-picker .picker-btn { display: block; }
    .time-picker .picker-btn span { display: block; text-align: center; }

    /* Progress dots */
    .appt-progress { margin-bottom: 20px; }

    /* Form selected header */
    .form-selected-header { padding: 10px 12px; }
    .form-selected-header__label { font-size: 13px; }

    /* Form rows: already 1-col from 768px rule */
    .form-row--2 { grid-template-columns: 1fr; gap: 0; }

    /* Thank-you */
    .form-thankyou { padding: 24px 16px; }
    .form-thankyou h3 { font-size: 1.3rem; }
    .thankyou-summary { margin-top: 16px; }
}

/* =====================================================
   UTILITIES
   ===================================================== */

/* text-teal always uses the DARK variant for WCAG AA contrast */
.text-teal   { color: var(--teal-dark); }
/* On pale teal backgrounds, force dark navy for link text */
.section--teal-pale .text-teal,
.card--accent .text-teal { color: var(--navy-mid); }
.text-navy   { color: var(--navy); }
.text-mid    { color: var(--text-mid); }
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.mb-0  { margin-bottom: 0; }

/* Video embed */
.video-embed {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-embed iframe {
    width: 100%;
    height: 320px;
    display: block;
    border: none;
}

/* Service area pill list */
.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.pill {
    background: var(--sky);
    border: 1px solid var(--border);
    color: var(--navy-mid);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
}

/* Teal divider */
.teal-divider {
    width: 48px;
    height: 3px;
    background: var(--teal);
    border-radius: 2px;
    margin-bottom: 24px;
}

/* Page intro block */
.page-intro {
    max-width: 720px;
}

/* Two-col with sidebar */
.content-sidebar {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    align-items: start;
}

.sidebar-card {
    background: var(--sky);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 28px;
    position: sticky;
    top: 110px;
}

.sidebar-card h4 {
    margin-bottom: 16px;
    color: var(--navy);
}

.sidebar-card .btn {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
    display: block;
}

@media (max-width: 900px) {
    .content-sidebar { grid-template-columns: 1fr; }
    .sidebar-card { position: static; }
}

/* =====================================================
   ARTICLE PAGE ENHANCEMENTS
   ===================================================== */

/* Hide header logo image on article pages — nav text/links remain */
.article-page .header-logo img { display: none; }

/* Article content as white card on sky section background */
.article-page .article-content {
    background: var(--white);
    border-radius: 12px;
    padding: 40px 48px 48px;
    box-shadow: 0 1px 20px rgba(30,41,59,0.06);
}

@media (max-width: 768px) {
    .article-page .article-content { padding: 28px 24px 32px; }
}

/* Category label pill */
.article-category-label {
    display: inline-block;
    background: var(--teal);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

/* Lead paragraph — teal left accent, slightly larger */
.article-lead {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text);
    border-left: 3px solid var(--teal);
    padding-left: 20px;
    margin-bottom: 32px;
}

/* Body paragraphs in article */
.article-content p {
    color: var(--text);
    line-height: 1.85;
}

/* Author bio box */
.author-bio {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 24px !important;
    background: var(--sky) !important;
    border: 1px solid var(--border) !important;
    border-radius: 8px !important;
    margin-top: 0 !important;
}

.author-bio img {
    width: 64px !important;
    height: 64px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    flex-shrink: 0 !important;
}

.author-bio-content strong {
    display: block;
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}

.author-bio-content span {
    display: block;
    font-size: 12px;
    color: var(--teal-dark);
    font-weight: 600;
    margin-bottom: 6px;
}

.author-bio-content p {
    font-size: 13px !important;
    color: var(--text-mid) !important;
    margin: 0 !important;
    line-height: 1.55 !important;
}

@media (max-width: 560px) {
    .author-bio { flex-direction: column !important; text-align: center !important; }
}

/* Navy sidebar card variant */
.sidebar-card--navy {
    background: var(--navy);
    border-color: var(--navy-mid);
}

.sidebar-card--navy h3 {
    color: #fff;
    margin-bottom: 12px;
}

.sidebar-card--navy p {
    color: rgba(255,255,255,0.85);
    margin-bottom: 16px;
}

/* Share + Print icon row */
.article-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 0 24px;
    border-top: 1px solid var(--border);
    margin: 40px 0 24px;
}

.article-share__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
    margin-right: 2px;
    flex-shrink: 0;
}

.share-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    border-radius: 50% !important;
    border: none !important;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.15s;
    text-decoration: none !important;
    flex-shrink: 0;
    padding: 0 !important;
    line-height: 1 !important;
    overflow: hidden;
}

.share-btn svg {
    display: block;
    flex-shrink: 0;
    pointer-events: none;
}

.share-btn:hover {
    opacity: 0.82;
    transform: scale(1.1);
    text-decoration: none !important;
}

.share-btn--facebook { background: #1877F2 !important; color: white !important; }
.share-btn--x        { background: #0F1419 !important; color: white !important; }
.share-btn--whatsapp { background: #25D366 !important; color: white !important; }
.share-btn--linkedin { background: #0A66C2 !important; color: white !important; }
.share-btn--print    { background: var(--navy) !important; color: white !important; }
