/* ============================================================================
   Two Rivers Care Training — Main Stylesheet
   ----------------------------------------------------------------------------
   Organised as: variables → reset → typography → navbar/drawer → buttons →
   home (hero + booking + calendar) → about → courses → contact → footer →
   responsive. Light + dark themes are driven entirely by CSS variables.
   ============================================================================ */

/* ── Theme Variables (Light default) ─────────────────────────────────────── */
:root {
    --color-green:       #226d2d;
    --color-gold:        #9a850d;
    --color-green-light: #4a9d57;
    --color-gold-light:  #c4aa1a;
    --color-teal:        #1a7a9a;
    --color-purple:      #7a1a9a;
    --color-red:         #c0392b;

    --bg:           #f7f8f4;
    --bg-surface:   #ffffff;
    --bg-surface-2: #f0f2ec;
    --text:         #1a1a18;
    --text-muted:   #5a5e52;
    --border:       #dde0d8;
    --shadow:       rgba(0, 0, 0, 0.08);
    --nav-bg:       rgba(247, 248, 244, 0.92);

    --radius:   14px;
    --radius-sm: 8px;
    --maxw:    1180px;
    --nav-h:    68px;
}

[data-theme="dark"] {
    --bg:           #0f1210;
    --bg-surface:   #181d19;
    --bg-surface-2: #1e2520;
    --text:         #e8ece6;
    --text-muted:   #8a9486;
    --border:       #2a3028;
    --shadow:       rgba(0, 0, 0, 0.3);
    --nav-bg:       rgba(15, 18, 16, 0.92);
    --color-green-light: #5cb46a;
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-weight: 400;
    /* Smooth colour transitions when toggling dark mode. */
    transition: background 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; font-weight: 700; }

section { transition: background 0.3s ease; }

/* ── Utility ─────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.text-muted { color: var(--text-muted); }
.center { text-align: center; }

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: background 0.3s ease, border-color 0.3s ease;
}
.nav-logo img { height: 40px; width: auto; }
.nav-brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 500;
    letter-spacing: 0.32em;
    font-size: 0.95rem;
    color: var(--text);
}
.nav-actions { display: flex; align-items: center; gap: 14px; }

.theme-toggle,
.hamburger {
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease;
}
.theme-toggle:hover, .hamburger:hover { background: var(--bg-surface-2); }

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-divider { width: 1px; height: 26px; background: var(--border); }

.hamburger { flex-direction: column; gap: 4px; width: 34px; }
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ── Nav Drawer ──────────────────────────────────────────────────────────── */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 110;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 320px;
    max-width: 82vw;
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 40px var(--shadow);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 120;
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--text);
    cursor: pointer;
}
.drawer-links { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 6px; }
.drawer-links a {
    display: block;
    padding: 14px 16px;
    font-size: 1.15rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background 0.2s ease, color 0.2s ease;
}
.drawer-links a:hover { background: var(--bg-surface-2); }
.drawer-links a.active { color: var(--color-green); }
.drawer-cta {
    margin-top: 10px;
    background: var(--color-green);
    color: #fff !important;
    text-align: center;
    font-weight: 600 !important;
}
.drawer-cta:hover { background: var(--color-green-light); }
.drawer-footer { margin-top: auto; color: var(--text-muted); font-size: 0.85rem; line-height: 1.7; }
.drawer-footer p { margin-top: 10px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 30px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary { background: var(--color-green); color: #fff; box-shadow: 0 8px 24px rgba(34, 109, 45, 0.28); }
.btn-primary:hover { background: var(--color-green-light); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { border-color: var(--color-green); color: var(--color-green); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ── Home: Hero ──────────────────────────────────────────────────────────── */
.snap-container { }
.section-screen {
    min-height: calc(100vh - var(--nav-h));
    display: flex;
    align-items: center;
    scroll-snap-align: start;
}

.hero {
    position: relative;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(1000px 600px at 50% -10%, rgba(34, 109, 45, 0.10), transparent 60%),
        radial-gradient(800px 500px at 80% 120%, rgba(154, 133, 13, 0.08), transparent 60%);
    animation: heroShift 14s ease-in-out infinite alternate;
}
@keyframes heroShift {
    0%   { background-position: 0% 0%, 100% 100%; }
    100% { background-position: 20% 10%, 80% 90%; }
}
.hero-inner { width: 100%; max-width: 860px; margin: 0 auto; padding: 40px 24px; }
.hero h1 {
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(120deg, var(--color-green), var(--color-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero .slogan {
    margin-top: 18px;
    font-size: clamp(1.1rem, 2.4vw, 1.6rem);
    color: var(--text-muted);
    font-weight: 400;
}
.hero .hero-cta { margin-top: 40px; }

/* Decorative soft caregiving curve */
.hero-decor {
    position: absolute;
    width: 340px; height: 340px;
    border-radius: 50%;
    border: 2px solid var(--color-green);
    opacity: 0.10;
    top: 8%; left: -80px;
    pointer-events: none;
}
.hero-decor.two { border-color: var(--color-gold); width: 240px; height: 240px; top: auto; bottom: 6%; left: auto; right: -60px; }

/* ── Home: Booking Section ───────────────────────────────────────────────── */
.booking-section {
    background: var(--bg-surface-2);
    padding: 60px 0;
    scroll-margin-top: var(--nav-h);
}
.booking-header { text-align: center; margin-bottom: 36px; }
.booking-header h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.booking-header p { color: var(--text-muted); margin-top: 8px; }

/* Flex (not fixed grid) so the calendar stays CENTERED when the booking
   panel is hidden, and the calendar + panel sit centered as a pair once a
   course is chosen. On narrow screens they wrap into a single column. */
.booking-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 28px;
    max-width: 1040px;   /* keep the calendar + side panel centred as a pair */
    margin: 0 auto;
}
.calendar-card { flex: 1 1 500px; max-width: 560px; }
.booking-panel,
.booking-intro { flex: 1 1 400px; max-width: 440px; }

/* ── Calendar ────────────────────────────────────────────────────────────── */
.calendar-card, .booking-panel, .booking-intro {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px var(--shadow);
    padding: 22px;
}
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-title { font-size: 1.2rem; font-weight: 600; }
.cal-nav { display: flex; gap: 8px; }
.cal-nav button {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-surface-2);
    color: var(--text);
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.cal-nav button:hover { border-color: var(--color-green); color: var(--color-green); }

.cal-weekdays, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-weekdays { margin-bottom: 6px; }
.cal-weekdays span { text-align: center; font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.cal-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    background: var(--bg-surface-2);
    cursor: pointer;
    border: 1.5px solid transparent;
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    user-select: none;
}
.cal-cell:hover:not(.disabled) { transform: translateY(-2px); border-color: var(--color-green-light); }
.cal-cell.empty { background: transparent; cursor: default; }
.cal-cell.disabled { color: var(--text-muted); opacity: 0.4; cursor: not-allowed; }
.cal-cell.selected { border-color: var(--color-green); background: rgba(34, 109, 45, 0.12); font-weight: 700; }
/* Dates offering the program a visitor clicked through to book (via a
   "Book This Class" link) get a soft glow so they stand out. */
.cal-cell.match { border-color: var(--color-gold); box-shadow: 0 0 0 2px rgba(154, 133, 13, 0.25); }

/* Banner above the calendar naming the pre-selected program. */
.cal-preselect {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: rgba(154, 133, 13, 0.10);
    border: 1px solid rgba(154, 133, 13, 0.35);
    font-size: 0.85rem;
}
.cal-preselect .sw { display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 7px; vertical-align: middle; }
.cal-preselect button {
    border: none;
    background: transparent;
    color: var(--color-green);
    font-weight: 600;
    font-family: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    text-decoration: underline;
}
.cal-cell.today::after {
    content: '';
    position: absolute; top: 5px; right: 5px;
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--color-gold);
}
.cal-dots { display: flex; gap: 3px; margin-top: 4px; height: 6px; }
.cal-dot { width: 6px; height: 6px; border-radius: 50%; }
.dot-HCA       { background: var(--color-green); }
.dot-CNA       { background: var(--color-gold); }
.dot-BRIDGE    { background: var(--color-teal); }
.dot-DAILY_CNA { background: var(--color-purple); }
.dot-HCA_EXAM  { background: var(--color-red); }
.cal-spots {
    position: absolute;
    bottom: 2px;
    font-size: 0.55rem;
    color: var(--color-red);
    font-weight: 600;
}

.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; font-size: 0.78rem; color: var(--text-muted); }
.cal-legend .lg { display: flex; align-items: center; gap: 6px; }
.cal-legend .sw { width: 10px; height: 10px; border-radius: 50%; }

.cal-loading { text-align: center; padding: 40px 0; color: var(--text-muted); }

/* Course chooser panel (after date click) */
.course-choices { margin-top: 18px; }
.course-choices h4 { font-size: 0.95rem; margin-bottom: 10px; }
.course-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.course-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--border);
    background: var(--bg-surface-2);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: border-color 0.2s ease, transform 0.15s ease;
}
.course-tag:hover { transform: translateY(-2px); }
.course-tag.sel { border-color: var(--color-green); background: rgba(34,109,45,0.1); }
.course-tag .sw { width: 11px; height: 11px; border-radius: 50%; }
.course-tag .price { color: var(--text-muted); font-weight: 400; }

/* ── Booking Panel / Form ────────────────────────────────────────────────── */
.booking-panel {
    display: none;
    opacity: 0;
}
.booking-panel.visible { display: block; }
.booking-panel h3 { font-size: 1.3rem; margin-bottom: 4px; }

/* ── Booking Intro (shown before a course is chosen) ─────────────────────── */
.booking-intro h3 { font-size: 1.3rem; margin-bottom: 18px; }
.booking-steps { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 16px; }
.booking-steps li { display: flex; gap: 14px; align-items: flex-start; }
.booking-steps .bs-num {
    flex: 0 0 auto;
    width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--color-green);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}
.booking-steps li strong { display: block; font-size: 0.98rem; margin-bottom: 2px; }
.booking-steps li p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.4; }
.booking-intro-note {
    margin-top: 4px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(34, 109, 45, 0.08);
    border: 1px solid rgba(34, 109, 45, 0.25);
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}
.booking-summary { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 18px; }
.booking-summary strong { color: var(--text); }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; }
.field input {
    width: 100%;
    padding: 13px 15px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg-surface-2);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}
.field input:focus { outline: none; border-color: var(--color-green); }

#payment-element { margin: 18px 0; }
.booking-error {
    color: var(--color-red);
    font-size: 0.88rem;
    margin: 10px 0;
    min-height: 1em;
}
.booking-step { display: none; }
.booking-step.active { display: block; }

.spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2.5px solid rgba(255,255,255,0.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Success screen */
.booking-success { text-align: center; padding: 20px 0; }
.booking-success .check {
    width: 64px; height: 64px; margin: 0 auto 16px;
    border-radius: 50%;
    background: rgba(34,109,45,0.14);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-green);
    font-size: 2rem;
}
.booking-success h3 { color: var(--color-green); }
.booking-success .ref {
    display: inline-block;
    margin: 14px 0;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--bg-surface-2);
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* ── Page hero (about/courses/contact) ───────────────────────────────────── */
.page-hero {
    padding: 72px 0 48px;
    text-align: center;
    background: radial-gradient(800px 400px at 50% -20%, rgba(34,109,45,0.08), transparent 60%);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-hero p { color: var(--text-muted); margin-top: 12px; font-size: 1.1rem; max-width: 640px; margin-inline: auto; }

.block { padding: 56px 0; }
.block h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 20px; }
.block.alt { background: var(--bg-surface-2); }

.quote {
    border-left: 4px solid var(--color-gold);
    padding: 12px 22px;
    font-style: italic;
    color: var(--text-muted);
    margin: 22px 0;
    font-size: 1.15rem;
}

/* Philosophy pillars */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; margin-top: 20px; }
.pillar {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    box-shadow: 0 6px 20px var(--shadow);
}
.pillar .p-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(34,109,45,0.12); color: var(--color-green);
    margin-bottom: 14px; font-size: 1.4rem;
}
.pillar h4 { margin-bottom: 6px; }
.pillar p { color: var(--text-muted); font-size: 0.92rem; }

/* Photo slideshow */
.gallery { position: relative; max-width: 820px; margin: 24px auto 0; }
.gallery-track { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 34px var(--shadow); aspect-ratio: 4 / 3; background: var(--bg-surface-2); }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
.gallery-track img.active { opacity: 1; position: relative; }
.gallery-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%;
    border: none; background: rgba(255,255,255,0.85); color: #222;
    cursor: pointer; font-size: 1.3rem; z-index: 2;
}
.gallery-btn.prev { left: 12px; } .gallery-btn.next { right: 12px; }
.gallery-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.gallery-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: var(--border); cursor: pointer; }
.gallery-dots button.active { background: var(--color-green); }

/* Accreditation strip */
.accred-strip {
    background: var(--color-green);
    color: #fff;
    text-align: center;
    padding: 20px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ── Courses grid ────────────────────────────────────────────────────────── */
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 12px; }
.course-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-top: 5px solid var(--color-green);
    border-radius: var(--radius);
    padding: 26px 24px;
    box-shadow: 0 8px 26px var(--shadow);
    display: flex; flex-direction: column;
}
.course-card.c-HCA       { border-top-color: var(--color-green); }
.course-card.c-CNA       { border-top-color: var(--color-gold); }
.course-card.c-BRIDGE    { border-top-color: var(--color-teal); }
.course-card.c-DAILY_CNA { border-top-color: var(--color-purple); }
.course-card h3 { font-size: 1.25rem; }
.course-card .price { font-size: 1.9rem; font-weight: 800; margin: 10px 0 2px; color: var(--color-green); }
.course-card .hours { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 14px; }
.course-card ul { list-style: none; margin-bottom: 20px; }
.course-card li { padding: 6px 0 6px 24px; position: relative; font-size: 0.94rem; }
.course-card li::before { content: '✓'; position: absolute; left: 0; color: var(--color-green); font-weight: 700; }
.course-card .btn { margin-top: auto; }

/* HCA Exam booking callout */
.exam-callout {
    margin-top: 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-left: 5px solid var(--color-red);
    border-radius: var(--radius);
    padding: 26px 28px;
    box-shadow: 0 8px 26px var(--shadow);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.exam-callout-text { flex: 1 1 340px; }
.exam-callout-text h3 { font-size: 1.25rem; margin-bottom: 6px; }
.exam-callout-text p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.5; }
.exam-callout .btn { flex: 0 0 auto; }

/* Why CNA benefits */
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; }
.benefit { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: 0 6px 18px var(--shadow); }
.benefit .b-icon { font-size: 2rem; margin-bottom: 10px; }
.benefit h4 { margin-bottom: 6px; }
.benefit p { color: var(--text-muted); font-size: 0.9rem; }

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 22px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item .ci-icon {
    width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
    background: rgba(34,109,45,0.12); color: var(--color-green);
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-item h4 { font-size: 1rem; }
.contact-item p { color: var(--text-muted); font-size: 0.94rem; }

.contact-form-card { background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: 0 10px 30px var(--shadow); }
.contact-form-card textarea {
    width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
    border: 1.5px solid var(--border); background: var(--bg-surface-2);
    color: var(--text); font-family: inherit; font-size: 1rem; resize: vertical; min-height: 130px;
}
.contact-form-card textarea:focus { outline: none; border-color: var(--color-green); }
.form-success { text-align: center; padding: 20px; }
.form-success h3 { color: var(--color-green); margin-bottom: 8px; }
.form-error { color: var(--color-red); margin-top: 10px; }
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline-block; }
.htmx-request.contact-form-card button { opacity: 0.6; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--bg-surface); border-top: 1px solid var(--border); padding: 48px 24px 0; margin-top: 40px; }
.footer-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 30px; }
.footer-col h4 { margin-bottom: 12px; font-size: 1rem; }
.footer-col a { display: block; color: var(--text-muted); padding: 4px 0; transition: color 0.2s ease; }
.footer-col a:hover { color: var(--color-green); }
.footer-col p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 8px; }
.footer-slogan { margin-top: 12px; font-style: italic; }
.footer-accred { font-size: 0.8rem; margin-top: 10px; }
.footer-bottom { max-width: var(--maxw); margin: 32px auto 0; padding: 20px 0; border-top: 1px solid var(--border); text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .contact-grid  { grid-template-columns: 1fr; }
    .footer-grid   { grid-template-columns: 1fr 1fr; }
    .nav-brand     { font-size: 0.82rem; letter-spacing: 0.22em; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .cal-cell { font-size: 0.8rem; }
    .container { padding: 0 18px; }
    .btn { padding: 13px 24px; }
}

/* Respect reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
