/* ============================================================
   Dr Joe de Lange — modern rebuild
   Palette: brand turquoise (from the doctors' photo backdrop) + warm ink on light paper.
   ============================================================ */

:root {
    /* Brand turquoise (from the doctors' photo backdrop) */
    --teal: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --teal-800: #115e59;
    --teal-100: #ccfbf1;
    --teal-50: #f0fdfa;

    /* Neutrals */
    --ink: #201d16;
    --ink-soft: #5b564a;
    --paper: #fffdf8;
    --paper-2: #f7f3e9;
    --line: #e9e2d0;

    /* Deep olive — outdoors/bushveld nod, keeps gold primary */
    --olive: #4c5b2c;
    --olive-deep: #232b14;

    /* Type */
    --font-display: "Fraunces", Georgia, serif;
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Shape & motion */
    --radius: 18px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 10px rgba(32, 29, 22, 0.06);
    --shadow-md: 0 14px 40px rgba(32, 29, 22, 0.10);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--paper);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }
address { font-style: normal; }

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--ink);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    z-index: 1000;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout ---------- */
.container {
    width: min(1140px, 92%);
    margin-inline: auto;
}

.section { padding: 96px 0; }
.section-alt { background: var(--paper-2); }

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

.eyebrow {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--teal-800);
    margin-bottom: 12px;
}

.eyebrow-light { color: var(--teal); }

.section-head h2 { font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 14px; }
.section-sub { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    border: 2px solid transparent;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s, color 0.25s;
    cursor: pointer;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-gold {
    background: var(--teal);
    color: var(--ink);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.35);
}
.btn-gold:hover {
    background: var(--teal-600);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(20, 184, 166, 0.45);
}

.btn-outline {
    border-color: var(--ink);
    color: var(--ink);
    background: transparent;
}
.btn-outline:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.btn-ghost {
    border-color: var(--line);
    color: var(--ink-soft);
    background: transparent;
}
.btn-ghost:hover { border-color: var(--teal-700); color: var(--teal-800); }

.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-icon { font-size: 1.15rem; line-height: 1; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Cards ---------- */
.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal-600);
}

/* ---------- Header / Nav ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(255, 253, 248, 0.88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
    border-bottom-color: var(--line);
    box-shadow: 0 4px 24px rgba(32, 29, 22, 0.07);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    gap: 20px;
}

.nav-brand img { height: 46px; width: auto; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-menu a {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink-soft);
    padding: 9px 13px;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}
.nav-menu a:hover { color: var(--ink); background: var(--teal-50); }
.nav-menu .nav-cta { color: var(--ink); padding: 10px 20px; }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--ink);
    margin: 5px 0;
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero (booking first, logo on light) ---------- */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(60% 55% at 50% 38%, var(--teal-50) 0%, rgba(255, 253, 248, 0) 70%),
        linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
    padding: 130px 0 90px;
}

.hero-inner { position: relative; z-index: 2; }

.hero-logo {
    width: min(520px, 80%);
    margin: 0 auto 30px;
}

.hero h1 {
    font-size: clamp(2.4rem, 5.6vw, 4rem);
    margin-bottom: 18px;
}

.hero-lead {
    max-width: 640px;
    margin: 0 auto 36px;
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.hero-cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 42px;
}

.hero-chips {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 28px;
    color: var(--ink-soft);
    font-size: 0.92rem;
    font-weight: 500;
}
.hero-chips li::before {
    content: "";
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
    margin-right: 9px;
    vertical-align: 2px;
}

.hero-baobab {
    position: absolute;
    right: -60px;
    bottom: -70px;
    width: min(460px, 40vw);
    color: var(--teal-800);
    opacity: 0.07;
    pointer-events: none;
}
.hero-baobab svg { width: 100%; }

/* ---------- Practices ---------- */
.practice-card { padding: 34px; }

.practice-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.practice-pin { color: var(--teal-800); font-size: 1.25rem; }
.practice-top h3 { font-size: 1.45rem; margin: 0; }

.practice-card address {
    color: var(--ink-soft);
    margin-bottom: 18px;
    line-height: 1.6;
}

.practice-phone { color: var(--ink-soft); margin-bottom: 24px; line-height: 1.8; }
.practice-phone a, .contact-card a { color: var(--teal-800); font-weight: 600; text-decoration: none; }
.practice-phone a:hover, .contact-card a:hover { text-decoration: underline; }

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

.book-widget {
    margin-top: 56px;
    padding-top: 8px;
}
.book-widget .section-head { margin-bottom: 28px; }
.book-widget melink-book-widget {
    display: block;
    width: 100%;
}

/* ---------- Services ---------- */
.service-card {
    padding: 30px 24px;
    text-align: center;
}
.service-card img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    margin: 0 auto 18px;
    padding: 12px;
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    border-radius: 50%;
    transition: transform 0.3s var(--ease);
}
.service-card:hover img { transform: scale(1.08); }
.service-card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.service-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 14px; }

.service-tag {
    display: inline-block;
    background: var(--teal-50);
    border: 1px solid var(--teal-100);
    color: var(--teal-800);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
}

.services-note {
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-top: 36px;
}
.services-note a { color: var(--teal-800); font-weight: 600; text-decoration: none; }
.services-note a:hover { text-decoration: underline; }

/* ---------- Rates ---------- */
.rates-grid { max-width: 860px; margin-inline: auto; }

.rate-card {
    padding: 40px 30px;
    text-align: center;
}
.rate-img-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 250px;
    padding: 22px 30px;
    margin-bottom: 20px;
    background: var(--teal-50);
    border: 2px dashed var(--teal-600);
    border-radius: var(--radius);
}
.rate-img-wrap img { width: 215px; }
.rate-card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.rate-card p { color: var(--ink-soft); font-size: 0.95rem; }

.rates-note {
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-top: 28px;
}
.rates-note a { color: var(--teal-800); font-weight: 600; }

/* ---------- Team ---------- */
.doctor-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.doctor-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: top center;
}
.doctor-info { padding: 26px 28px 30px; }
.doctor-info h3 { font-size: 1.5rem; margin-bottom: 4px; }
.doctor-role { color: var(--teal-800); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.doctor-reg { color: var(--ink-soft); font-size: 0.9rem; }

.team-grid { margin-top: 26px; }

.staff-card {
    padding: 26px;
    text-align: center;
}
.staff-card img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    object-position: top center;
    border-radius: 50%;
    margin: 0 auto 18px;
    border: 4px solid var(--teal-100);
}
.staff-card h3 { font-size: 1.2rem; margin-bottom: 2px; }
.staff-role { color: var(--teal-800); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.staff-cell { color: var(--ink-soft); font-size: 0.9rem; }
.staff-cell a { color: var(--teal-800); font-weight: 600; text-decoration: none; }
.staff-cell a:hover { text-decoration: underline; }

/* ---------- Story (baobab section) ---------- */
.story {
    position: relative;
    background: var(--olive-deep);
    color: #f2efe4;
    overflow: hidden;
}

.story-inner { position: relative; z-index: 2; max-width: 760px; }

.story h2 { color: #fff; font-size: clamp(2rem, 4vw, 2.7rem); margin-bottom: 20px; }

.story p { font-size: 1.08rem; margin-bottom: 18px; opacity: 0.92; }
.story p strong { color: var(--teal); font-weight: 700; }

.story-baobab {
    position: absolute;
    left: -80px;
    bottom: -80px;
    width: min(520px, 44vw);
    color: var(--teal);
    opacity: 0.10;
    pointer-events: none;
}
.story-baobab svg { width: 100%; }

.story-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}
.story-stats li {
    flex: 1 1 140px;
    background: rgba(20, 184, 166, 0.08);
    border: 1px solid rgba(20, 184, 166, 0.25);
    border-radius: var(--radius-sm);
    padding: 18px 16px;
    text-align: center;
}
.story-stats strong {
    display: block;
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--teal);
    line-height: 1.1;
}
.story-stats span { font-size: 0.85rem; opacity: 0.8; }

/* ---------- Hours / weekly calendar ---------- */
.week-calendar-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 26px;
    margin-bottom: 28px;
    overflow-x: auto;
}
.week-calendar { min-width: 720px; display: grid; gap: 10px; }
.cal-row { display: grid; grid-template-columns: 150px repeat(5, 1fr); gap: 10px; }

.cal-head .cal-day {
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
    text-align: center;
    padding: 10px 4px 14px;
    border-bottom: 3px solid transparent;
}

.cal-loc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 0 8px;
}
.cal-loc-name { font-weight: 700; font-size: 0.95rem; }
.cal-loc-sub { font-size: 0.78rem; color: var(--ink-soft); }

.cal-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 18px 10px;
    border-radius: 14px;
    border: 2px solid transparent;
    text-align: center;
    min-height: 172px;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.cal-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.cal-cell img {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 3px solid #fff;
    box-shadow: 0 3px 10px rgba(32, 29, 22, 0.18);
}
.cal-day-mobile { display: none; }
.cal-doctor { font-weight: 700; font-size: 0.95rem; }
.cal-time { font-size: 0.84rem; font-weight: 600; font-variant-numeric: tabular-nums; opacity: 0.95; }

.dr-joe { background: var(--teal-50); border-color: var(--teal-600); }
.dr-joe .cal-doctor { color: var(--teal-800); }
.dr-joe img { border-color: var(--teal-600); }

.dr-peet { background: #eef1e0; border-color: var(--olive); }
.dr-peet .cal-doctor { color: var(--olive-deep); }
.dr-peet img { border-color: var(--olive); }

.cal-day.today-col { color: var(--teal-800) !important; border-bottom-color: var(--teal) !important; }
.cal-cell.today-col { box-shadow: inset 0 0 0 3px var(--teal); }

.cal-today-badge {
    display: inline-block;
    margin-left: 6px;
    background: var(--teal);
    color: var(--ink);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 999px;
    vertical-align: 2px;
}

.cal-hint {
    text-align: center;
    color: var(--ink-soft);
    font-size: 0.85rem;
    margin-top: 12px;
}

/* ---------- Calendar: mobile (compressed, day-by-day bars) ---------- */
@media (max-width: 860px) {
    .week-calendar-wrap {
        padding: 18px 14px;
        overflow-x: visible;
    }
    .week-calendar { min-width: 0; display: block; }
    .cal-row {
        display: block;
        margin-bottom: 20px;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        overflow: hidden;
    }
    .cal-row.cal-head { display: none; }
    .cal-row:last-child { margin-bottom: 0; }

    .cal-loc {
        display: block;
        padding: 12px 16px;
        background: var(--paper-2);
        border-bottom: 1px solid var(--line);
    }
    .cal-loc-sub { display: block; }

    .cal-cell {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
        min-height: 0;
        padding: 10px 16px;
        border: 0;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        text-align: left;
    }
    .cal-cell:last-child { border-bottom: 0; }
    .cal-cell:hover { transform: none; box-shadow: none; }
    .cal-cell img { width: 40px; height: 40px; flex: none; }

    .cal-day-mobile {
        display: inline-block;
        font-weight: 800;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--ink-soft);
        white-space: nowrap;
    }
    .cal-doctor { font-size: 0.9rem; white-space: nowrap; }
    .cal-time {
        margin-left: auto;
        text-align: right;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .cal-cell.today-col {
        box-shadow: none;
        background: var(--teal-100);
        border-left: 3px solid var(--teal);
        padding-left: 13px;
    }
    .cal-cell.today-col .cal-day-mobile { color: var(--teal-800); }
    .cal-today-badge { margin-left: 4px; font-size: 0.55rem; padding: 1px 6px; vertical-align: 1px; }
}

.cal-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin-top: 18px;
    font-size: 0.88rem;
    font-weight: 600;
}
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; }
.legend-joe .legend-dot { background: var(--teal-600); }
.legend-peet .legend-dot { background: var(--olive); }

.practice-hours-grid { margin-top: 26px; }

.hours-card { padding: 30px; }
.hours-card h3 { font-size: 1.35rem; margin-bottom: 14px; }
.hours-address { color: var(--ink-soft); margin-bottom: 16px; }

.map-wrap {
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--line);
    line-height: 0;
}
.map-wrap iframe { width: 100%; height: 280px; border: 0; }

/* ---------- Contact ---------- */
.contact-card { padding: 32px; }
.contact-card h3 { font-size: 1.3rem; margin-bottom: 14px; }
.contact-card address { color: var(--ink-soft); margin-bottom: 14px; }
.contact-card p { color: var(--ink-soft); line-height: 1.9; }

.contact-extra {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 44px;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--ink);
    color: #c9c4b6;
    padding: 56px 0 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    padding-bottom: 40px;
}

.footer-brand { display: flex; align-items: center; gap: 18px; }
.footer-baobab { width: 54px; color: var(--teal); opacity: 0.85; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.15rem; }

.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a {
    color: #c9c4b6;
    text-decoration: none;
    font-size: 0.92rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--teal); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 0 26px;
    font-size: 0.85rem;
    color: #8f8a7c;
}

/* ---------- Reveal animation (only when JS runs — content never hidden without it) ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
html.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
    .section { padding: 72px 0; }

    .nav-toggle { display: block; }

    .nav-menu {
        position: fixed;
        top: 78px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: rgba(255, 253, 248, 0.97);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        padding: 18px 5%;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        gap: 4px;
        transform: translateY(-16px);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s, transform 0.3s;
    }
    .nav-menu.open { transform: none; opacity: 1; pointer-events: auto; }
    .nav-menu a { display: block; text-align: center; padding: 13px; font-size: 1rem; }
    .nav-menu .nav-cta { margin-top: 8px; }

    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .grid-4 { grid-template-columns: 1fr; }
    .hero { padding: 110px 0 70px; }
    .practice-actions .btn { flex: 1; }
}
