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

/* ========== FOCUS VISIBLE ========== */
:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

/* Dark backgrounds: use cream outline */
#footer :focus-visible,
.service-card-content :focus-visible {
    outline-color: var(--cream);
}

/* Round elements: match shape */
.burger-btn:focus-visible,
.modal-x:focus-visible {
    outline-offset: 2px;
    border-radius: 50%;
}

/* Remove default outline when :focus-visible handles it */
:focus:not(:focus-visible) {
    outline: none;
}

:root {
    --cream: #F0EDE6;
    --cream-warm: #E4DDD2;
    --teal: #2D8C89;
    --teal-dark: #1E6B69;
    --copper: #C47B5A;
    --teal-tint: #E4EDEB;
    --teal-charcoal: #1A2F2E;
    --gold: #D4A853;
    --dusty-coral: #C9897A;
    --text-main: #1A2F2E;
    --text-mid: #4A6462;
    --text-muted: #7E9593;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --sans: 'DM Sans', system-ui, sans-serif;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

html.font-large {
    font-size: 22px;
}

html.font-dyslexic {
    font-size: 20px;
}

html.font-dyslexic body,
html.font-dyslexic p,
html.font-dyslexic a,
html.font-dyslexic span,
html.font-dyslexic li {
    font-family: 'Atkinson Hyperlegible', sans-serif !important;
    letter-spacing: 0.025em;
    word-spacing: 0.12em;
    line-height: 1.95;
}

html.font-dyslexic h1,
html.font-dyslexic h2,
html.font-dyslexic h3,
html.font-dyslexic .hero-title,
html.font-dyslexic .bio-heading,
html.font-dyslexic .services-title,
html.font-dyslexic .testimonials-title,
html.font-dyslexic .calendar-title,
html.font-dyslexic .service-name,
html.font-dyslexic .footer-brand-name,
html.font-dyslexic .testimonial-text,
html.font-dyslexic .bio-inspired-text {
    font-family: 'Atkinson Hyperlegible', sans-serif !important;
    font-style: normal !important;
    letter-spacing: 0.01em;
}

/* ========== SCREEN READER ONLY ========== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========== SKIP LINK ========== */
.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 10000;
    padding: 0.8rem 1.6rem;
    background: var(--teal-charcoal);
    color: var(--cream);
    font-family: var(--sans);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 0 0 4px 4px;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* ========== HIGH CONTRAST MODE ========== */
html.contrast-high {
    --text-muted: #2A4644;
    --text-mid: #1A2F2E;
}

/* Remove grain — improves readability */
html.contrast-high body::after { opacity: 0; }

/* Service cards — darken image and strengthen overlay for text legibility */
html.contrast-high .service-card-bg {
    filter: saturate(0.15) brightness(0.55);
}

html.contrast-high .service-card-overlay {
    background: linear-gradient(
        to top,
        rgba(5, 15, 14, 0.97) 0%,
        rgba(5, 15, 14, 0.72) 50%,
        rgba(5, 15, 14, 0.45) 100%
    );
}

html.contrast-high .service-card:hover .service-card-overlay {
    background: linear-gradient(
        to top,
        rgba(5, 15, 14, 0.99) 0%,
        rgba(5, 15, 14, 0.82) 50%,
        rgba(5, 15, 14, 0.60) 100%
    );
}

html.contrast-high .service-desc {
    color: rgba(240, 237, 230, 1);
}

/* Small teal text: darker teal for better contrast on cream */
html.contrast-high .hero-eyebrow,
html.contrast-high .modal-ey,
html.contrast-high .modal-ws-badge {
    color: #1F6E6B;
}

/* Footer: near-fully opaque on dark background */
html.contrast-high .footer-col-title {
    color: rgba(240, 237, 230, 0.85);
}

html.contrast-high .footer-legal {
    color: rgba(240, 237, 230, 0.80);
}

html.contrast-high .footer-disclaimer {
    color: rgba(240, 237, 230, 0.85);
}

html.contrast-high .footer-disclaimer:hover {
    color: rgba(240, 237, 230, 0.95);
}

html.contrast-high .footer-brand-desc {
    color: rgba(240, 237, 230, 0.90);
}

html.contrast-high .footer-link,
html.contrast-high .footer-link-btn {
    color: rgba(240, 237, 230, 0.90);
}

body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    opacity: 0.028;
    pointer-events: none;
    z-index: 9999;
}

/* ========== CUSTOM CURSOR (desktop only) ========== */
@media (hover: hover) and (pointer: fine) {
    .cursor-dot {
        position: fixed;
        width: 7px;
        height: 7px;
        background: var(--teal);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10001;
        transform: translate(-50%, -50%);
        transition: transform 0.08s ease;
        mix-blend-mode: exclusion;
    }

    .cursor-ring {
        position: fixed;
        width: 34px;
        height: 34px;
        border: 1.2px solid rgba(45, 140, 137, 0.35);
        border-radius: 50%;
        pointer-events: none;
        z-index: 10000;
        transform: translate(-50%, -50%);
        transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease;
    }

    .cursor-ring.hover {
        width: 52px;
        height: 52px;
        border-width: 2px;
        border-color: rgba(201, 137, 122, 0.55);
    }
}

@media (hover: none) {
    .cursor-dot, .cursor-ring {
        display: none;
    }
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.1;
}

p {
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-mid);
}

a {
    text-decoration: none;
    color: inherit;
}

section, footer {
    overflow: hidden;
    box-shadow: 0 20px 15px 15px gray;
}

.section-label {
    font-family: var(--sans);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.85rem 2.2rem;
    border: 1.5px solid currentColor;
    transition: all 0.35s var(--ease);
    cursor: pointer;
    background: transparent;
}

.btn-terracotta {
    color: var(--teal);
    border-color: var(--teal);
}

.btn-terracotta:hover {
    background: var(--teal);
    color: var(--cream);
}

.btn-outline-light {
    color: var(--cream);
    border-color: rgba(240, 237, 230, 0.55);
}

.btn-outline-light:hover {
    background: var(--cream);
    color: var(--teal-charcoal);
}

/* ========== SCROLL REVEAL ========== */
.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.d1 {
    transition-delay: 0.12s;
}

.reveal.d2 {
    transition-delay: 0.24s;
}

.reveal.d3 {
    transition-delay: 0.36s;
}

.reveal.d4 {
    transition-delay: 0.48s;
}

/* ===================================================
   FLOATING BURGER + NAV OVERLAY
=================================================== */
.burger-btn {
    position: fixed;
    top: 1.8rem;
    right: 1.8rem;
    z-index: 600;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cream);
    border: 1px solid rgba(26, 47, 46, 0.14);
    box-shadow: 0 2px 16px rgba(26, 47, 46, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, box-shadow 0.25s ease;
}

.burger-btn:hover {
    background: var(--cream-warm);
    box-shadow: 0 4px 22px rgba(26, 47, 46, 0.15);
}

.burger-btn span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--teal-charcoal);
    transition: transform 0.35s var(--ease), opacity 0.35s ease;
    transform-origin: center;
}

.burger-btn.open {
    background: var(--cream-warm);
}

.burger-btn.open span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.burger-btn.open span:nth-child(2) {
    opacity: 0;
}

.burger-btn.open span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* Full-screen nav overlay */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 550;
    background: var(--cream);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.nav-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: clamp(1.5rem, 8vh, 4rem) 2rem;
    width: 100%;
    margin: auto 0;
}

.nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.nav-overlay-link {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 300;
    font-style: italic;
    color: var(--teal-charcoal);
    text-decoration: none;
    text-align: center;
    padding: 0.45rem 1rem;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.4s ease, transform 0.4s var(--ease), color 0.2s ease;
}

.nav-overlay.open .nav-overlay-link {
    opacity: 1;
    transform: translateY(0);
}

.nav-overlay.open .nav-overlay-link:nth-child(2) {
    transition-delay: 0.06s;
}

.nav-overlay.open .nav-overlay-link:nth-child(3) {
    transition-delay: 0.12s;
}

.nav-overlay.open .nav-overlay-link:nth-child(4) {
    transition-delay: 0.18s;
}

.nav-overlay.open .nav-overlay-link:nth-child(5) {
    transition-delay: 0.24s;
}

.nav-overlay.open .nav-overlay-link:nth-child(6) {
    transition-delay: 0.30s;
}

.nav-overlay-link:hover {
    color: var(--teal);
}

/* Decorative dot in overlay */
.nav-overlay-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--teal);
    opacity: 0;
    transition: opacity 0.4s ease 0.35s;
}

.nav-overlay.open .nav-overlay-dot {
    opacity: 0.5;
}

/* ========== FONT SWITCHER (inside overlay) ========== */
.nav-overlay-font-switcher,
.nav-overlay-contrast-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(26, 47, 46, 0.06);
    border: 1px solid rgba(26, 47, 46, 0.1);
    border-radius: 100px;
    padding: 4px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.nav-overlay-font-switcher {
    margin-top: 2.4rem;
    transition-delay: 0.38s;
}

.nav-overlay-contrast-switcher {
    margin-top: 0.6rem;
    transition-delay: 0.44s;
}

.nav-overlay.open .nav-overlay-font-switcher,
.nav-overlay.open .nav-overlay-contrast-switcher {
    opacity: 1;
}

.font-btn,
.contrast-btn {
    font-family: var(--sans);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 100px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
    line-height: 1;
}

.font-btn:hover,
.contrast-btn:hover {
    color: var(--text-main);
}

.font-btn.active,
.contrast-btn.active {
    background: var(--teal-charcoal);
    color: var(--cream);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(28px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===================================================
   HERO
=================================================== */
#hero {
    height: 100vh;
    min-height: 680px;
    display: grid;
    grid-template-columns: 58% 42%;
    position: relative;
}

.hero-photo {
    position: relative;
    z-index: 1;
    padding: 2.5rem 2.5rem 2.5rem 3.5rem;
    display: flex;
    flex-direction: column;
}

.photo-placeholder {
    flex: 1;
    border-radius: 4px 180px 4px 4px;
    background: radial-gradient(ellipse at 25% 70%, rgba(196, 123, 90, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 25%, rgba(45, 140, 137, 0.2) 0%, transparent 40%),
    radial-gradient(ellipse at 55% 55%, rgba(212, 168, 83, 0.12) 0%, transparent 45%),
    repeating-linear-gradient(
            135deg,
            transparent,
            transparent 24px,
            rgba(255, 255, 255, 0.035) 24px,
            rgba(255, 255, 255, 0.035) 25px
    ),
    var(--teal);
    position: relative;
    overflow: hidden;
    animation: fadeUp 1.2s var(--ease) 0.15s both;
}

.photo-placeholder img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

/* Subtle overlay on top of the photo */
.photo-placeholder::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26, 47, 46, 0.08) 0%, transparent 40%);
    z-index: 1;
    pointer-events: none;
}

.hero-right {
    padding: 2.5rem 3.5rem 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 1px solid rgba(26, 47, 46, 0.08);
    position: relative;
    z-index: 1;
}

.hero-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    padding: 2rem 0;
}

.hero-eyebrow {
    font-family: var(--sans);
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 1.6rem;
    animation: fadeIn 1.2s ease 0.45s both;
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(4.5rem, 8vw, 9rem);
    font-weight: 300;
    font-style: italic;
    color: var(--teal-charcoal);
    line-height: 0.92;
    letter-spacing: -0.02em;
    animation: fadeUp 1.2s var(--ease) 0.25s both;
}

.hero-sub {
    margin-top: 2rem;
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.65;
    max-width: 28ch;
    animation: fadeIn 1.2s ease 0.65s both;
}

.dot-trio {
    display: flex;
    gap: 7px;
    margin-top: 1.8rem;
    animation: fadeIn 1.2s ease 0.85s both;
}

.dot-trio span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0.6;
}

.dot-trio span:nth-child(1) {
    background: var(--teal);
}

.dot-trio span:nth-child(2) {
    background: var(--copper);
}

.dot-trio span:nth-child(3) {
    background: var(--dusty-coral);
    opacity: 0.5;
}

.hero-cta {
    animation: fadeIn 1.2s ease 0.9s both;
    display: flex;
    flex-direction: row;
    gap: 2.5rem;
    align-items: flex-start;
}

.hero-cta .social-group {
    margin-bottom: 0;
}

@media (max-width: 380px) {
    .hero-cta {
        flex-direction: column;
        gap: 0;
    }

    .hero-cta .social-group {
        margin-bottom: 1.4rem;
    }
}

/* ===================================================
   BIO
=================================================== */
#bio {
    padding: 7rem 3.5rem;
    display: grid;
    grid-template-columns: 1fr 12rem;
    gap: 4rem;
    align-items: start;
    background: radial-gradient(ellipse at 85% 20%, rgba(45, 140, 137, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 10% 80%, rgba(196, 123, 90, 0.10) 0%, transparent 45%),
    var(--cream-warm);
    position: relative;
}

.bio-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
}

.bio-heading {
    font-family: var(--serif);
    font-size: clamp(2.6rem, 4.5vw, 4.2rem);
    font-weight: 300;
    font-style: italic;
    color: var(--teal-charcoal);
    line-height: 1.18;
    margin-bottom: 2.8rem;
}

.bio-heading em {
    color: var(--teal);
    font-style: italic;
}

.bio-text {
    font-size: 1.02rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-mid);
    margin-bottom: 1.8rem;
}

.bio-inspired {
    margin-top: 3rem;
    padding: 1.8rem 0 0;
    border-top: 1px solid rgba(26, 47, 46, 0.1);
}

.bio-inspired-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.bio-inspired-text {
    font-family: var(--serif);
    font-size: 1rem;
    font-style: italic;
    font-weight: 300;
    color: var(--text-mid);
    line-height: 1.7;
}

.bio-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: .8rem;
    margin-bottom: 2.8rem;
}

.bio-pill {
    font-size: 0.67rem;
    font-weight: 400;
    letter-spacing: 0.07em;
    padding: 0.28rem 0.75rem;
    border: 1px solid rgba(26, 47, 46, 0.14);
    border-radius: 100px;
    color: var(--text-mid);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.bio-pill:hover {
    background: rgba(26, 47, 46, 0.04);
    border-color: rgba(26, 47, 46, 0.25);
}

.bio-social {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-top: 0.5rem;
    position: relative;
    z-index: 1;
}

.social-heading {
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.social-link {
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--text-mid);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid rgba(26, 47, 46, 0.07);
    transition: color 0.3s ease;
    position: relative;
    padding-left: 1em;
}

.social-link:hover {
    color: var(--teal);
}

.social-link:hover .social-dot {
    width: 8px;
    height: 8px;
}

.social-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal);
    opacity: 0.45;
    flex-shrink: 0;
    transition: width 0.3s ease, height 0.3s ease;
    position: absolute;
    left: 0;
}

/* ===================================================
   SERVICES
=================================================== */
#services {
    padding: 7rem 3.5rem;
    position: relative;
    background: radial-gradient(ellipse at 70% 10%, rgba(45, 140, 137, 0.04) 0%, transparent 45%),
    var(--cream);
}

.services-header {
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.services-title {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: 300;
    font-style: italic;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.service-card {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 3px 3px 15px -9px var(--teal-charcoal);
}

.service-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s var(--ease), filter 0.7s var(--ease);
}

.service-card:hover .service-card-bg {
    transform: scale(1.05);
    filter: saturate(0.5) blur(3px) brightness(0.8);
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
            to top,
            rgba(15, 30, 29, 0.88) 0%,
            rgba(15, 30, 29, 0.45) 55%,
            rgba(15, 30, 29, 0.10) 100%
    );
    transition: background 0.7s var(--ease);
}

.service-card:hover .service-card-overlay {
    background: linear-gradient(
            to top,
            rgba(15, 30, 29, 0.96) 0%,
            rgba(15, 30, 29, 0.65) 55%,
            rgba(15, 30, 29, 0.30) 100%
    );
}

.service-card-content {
    position: relative;
    z-index: 2;
    padding: 2.2rem 2.4rem;
}

/* Social section split */
.social-group {
    margin-bottom: 1.4rem;
}

.social-group:last-child {
    margin-bottom: 0;
}

.social-group-label {
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.7;
    margin-bottom: 0.4rem;
    display: block;
}

.social-dot.project {
    background: var(--copper);
}

.social-dot.social {
    background: var(--teal);
}

.service-name {
    font-family: var(--serif);
    font-size: 1.85rem;
    font-weight: 400;
    font-style: italic;
    color: var(--cream);
    margin-bottom: 0.9rem;
    line-height: 1.2;
}

.service-desc {
    font-size: 0.86rem;
    line-height: 1.72;
    color: rgba(240, 237, 230, 0.78);
    margin-bottom: 1.8rem;
    font-weight: 300;
}

/* ===================================================
   TESTIMONIALS
=================================================== */
#testimonials {
    background: radial-gradient(ellipse at 15% 30%, rgba(45,140,137,0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 90% 70%, rgba(196, 123, 90, 0.08) 0%, transparent 40%),
    var(--teal-tint);
    padding: 7rem 3.5rem;
    position: relative;
    overflow: hidden;
}

.testimonials-header {
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.testimonials-title {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4vw, 3.8rem);
    font-weight: 300;
    font-style: italic;
    color: var(--teal-charcoal);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.testimonial-card {
    background:
        url("data:image/svg+xml,%3Csvg width='18' height='18' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='9' r='1' fill='%23C47B5A' fill-opacity='0.12'/%3E%3C/svg%3E"),
        radial-gradient(ellipse at 15% 20%, rgba(196, 123, 90, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 100% 80%, rgba(45, 140, 137, 0.06) 0%, transparent 60%),
        var(--cream);
    padding: 3rem 2.5rem 2.5rem;
    position: relative;
    transition: transform 0.4s ease;
    border-radius: 6px;
    box-shadow: 3px 3px 15px -12px var(--copper);
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

.testimonial-mark {
    font-family: var(--serif);
    font-size: 9rem;
    line-height: 0.7 !important;
    opacity: 0.66;
    margin-bottom: -1rem;
    display: block;
    user-select: none;
    background-color: var(--teal);
    color: transparent;
    text-shadow: 0px 3px 3px rgba(255,255,255,0.5);
    -webkit-background-clip: text;
    -moz-background-clip: text;
    background-clip: text;
}

.testimonial-text {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 300;
    font-style: italic;
    line-height: 1.72;
    color: var(--text-main);
    margin-bottom: 2rem;
}

.testimonial-author {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ===================================================
   CALENDAR / BOOKING
=================================================== */
#calendar {
    padding: 7rem 3.5rem;
    background: var(--cream);
    position: relative;
}

.calendar-section-header {
    margin-bottom: 3.5rem;
    position: relative;
    z-index: 1;
}

.calendar-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.calendar-title {
    font-family: var(--serif);
    font-size: clamp(2.4rem, 4vw, 4.2rem);
    font-weight: 300;
    font-style: italic;
    color: var(--teal-charcoal);
    margin-bottom: 0;
    line-height: 1.1;
}

.calendar-desc {
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-mid);
    margin-bottom: 2.2rem;
    font-weight: 300;
}

.session-types {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.session-type {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    font-size: 0.85rem;
    color: var(--text-mid);
    font-weight: 300;
}

.type-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.type-dot.online {
    background: var(--copper);
}

.type-dot.in-person {
    background: var(--teal);
}

.type-dot.training {
    background: var(--dusty-coral);
}

.calendar-embed {
}

.calendar-embed-heading {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 300;
    font-style: italic;
    color: var(--teal-charcoal);
    margin-bottom: 1.5rem;
}

.calendar-embed-sub {
    font-size: 0.65rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.6;
    margin-top: 0.8rem;
    display: block;
}

.calendar-iframe-wrap {
    border: 1px solid rgba(26, 47, 46, 0.12);
    overflow: hidden;
}

.calendar-iframe-wrap iframe {
    display: block;
    width: 100%;
    height: 480px;
    border: none;
}

/* ===================================================
   FOOTER
=================================================== */
#footer {
    background: var(--teal-charcoal);
    color: var(--cream);
    padding: 5rem 3.5rem 2.5rem;
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(240, 237, 230, 0.08);
    position: relative;
    z-index: 1;
}

.footer-brand-name {
    font-family: var(--serif);
    font-size: 2.8rem;
    font-weight: 300;
    font-style: italic;
    color: var(--cream);
    line-height: 1;
    margin-bottom: 1.2rem;
    position: relative;
    z-index: 1;
}

.footer-brand-desc {
    font-size: 0.82rem;
    font-weight: 300;
    color: rgba(240, 237, 230, 0.55);
    line-height: 1.7;
    max-width: 34ch;
}

.footer-col-title {
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(240, 237, 230, 0.35);
    margin: 0 0 1.5rem;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-link {
    font-size: 0.82rem;
    color: rgba(240, 237, 230, 0.65);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--gold);
}

.footer-text {
    font-size: 0.82rem;
    color: rgba(240, 237, 230, 0.65);
}

.footer-link-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 0.82rem;
    color: rgba(240, 237, 230, 0.65);
    text-align: left;
    transition: color 0.3s ease;
}

.footer-link-btn:hover {
    color: var(--gold);
}

.footer-bottom {
    padding-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-legal {
    font-size: 0.7rem;
    color: rgba(240, 237, 230, 0.3);
    line-height: 1.65;
}

.footer-disclaimer {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: rgba(240, 237, 230, 0.35);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-family: var(--sans);
    font-size: 0.7rem;
    transition: color 0.3s ease;
}

.footer-disclaimer:hover {
    color: rgba(240, 237, 230, 0.6);
}

/* ===================================================
   DECORATIVE THREAD (per-section)
=================================================== */
.section-thread-core,
.section-thread {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.section-thread-core path,
.section-thread path {
    vector-effect: non-scaling-stroke;
    stroke: var(--dusty-coral);
    stroke-width: 88px;
    stroke-linecap: round;
    fill: none;
    opacity: 0.14;
}

.section-thread-core{
    filter: blur(12px);
}

.section-thread-core path {
    opacity: 0.72;
    stroke-width: 66px;
}


/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 960px) {
    #hero {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }

    .hero-photo {
        height: 55vw;
        min-height: 300px;
        padding: 2rem;
    }

    .hero-right {
        border-left: none;
        border-top: 1px solid rgba(26, 47, 46, 0.08);
        padding: 2.5rem 2rem 3rem;
        align-items: center;
        text-align: center;
    }

    .hero-sub {
        max-width: 100%;
    }

    .dot-trio {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-title {
        font-size: clamp(3.5rem, 14vw, 6.5rem);
    }

    #bio {
        grid-template-columns: 1fr;
        padding: 4.5rem 2rem;
        gap: 3rem;
    }

    .bio-social {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0 1.5rem;
    }

    .social-heading {
        width: 100%;
    }

    .social-link {
        border-bottom: none;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }

    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 320px;
    }

    #services,
    #testimonials,
    #calendar {
        padding: 4.5rem 2rem;
    }

    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand-col {
        grid-column: 1 / -1;
    }

    #footer {
        padding: 4rem 2rem 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

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

@media (max-width: 520px) {
    .hero-title {
        font-size: 3.2rem;
    }

    .bio-heading {
        font-size: 2rem;
    }

    .services-title,
    .testimonials-title,
    .calendar-title {
        font-size: 2rem;
    }

    .testimonial-card {
        padding: 2rem 1.5rem 1.5rem;
    }
}

/* ===================================================
   MODALS
=================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 800;
    background: rgba(15, 30, 29, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-panel {
    background: var(--cream);
    max-width: 700px;
    width: 100%;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateY(30px) scale(0.982);
    transition: transform 0.45s var(--ease);
}

.modal-overlay.open .modal-panel {
    transform: none;
}

/* Zero-height sticky wrapper so the button overlays the header without taking space */
.modal-x-wrap {
    position: sticky;
    top: 0;
    height: 0;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    pointer-events: none;
}

.modal-x {
    pointer-events: auto;
    margin-top: 0.6rem;
    margin-right: 0.6rem;
    width: 44px;
    height: 44px;
    background: rgba(240, 237, 230, 0.92);
    border: 1px solid rgba(26, 47, 46, 0.13);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.modal-x:hover {
    background: var(--teal-charcoal);
    border-color: var(--teal-charcoal);
}

.modal-x:hover svg {
    stroke: var(--cream);
}

.modal-x svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: var(--teal-charcoal);
    stroke-width: 2;
    stroke-linecap: round;
}

.modal-head {
    position: relative;
    height: clamp(80px, 22vh, 200px);
    background: var(--cream-warm);
    border-bottom: 1px solid rgba(26, 47, 46, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-head-word {
    position: absolute;
    font-family: var(--serif);
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 300;
    font-style: italic;
    color: rgba(26, 47, 46, 0.043);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.modal-head-art {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
}

.modal-head-art svg {
    height: clamp(44px, 11vh, 130px);
    width: auto;
}

.modal-body {
    padding: 2.8rem 3.5rem 3.5rem;
}

.modal-ey {
    font-family: var(--sans);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--teal);
    display: block;
    margin-bottom: 0.9rem;
}

.modal-ti {
    font-family: var(--serif);
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    font-weight: 300;
    font-style: italic;
    color: var(--teal-charcoal);
    line-height: 1.18;
    margin-bottom: 1.2rem;
}

.modal-intro {
    font-size: 0.9rem;
    line-height: 1.85;
    color: var(--text-mid);
    font-weight: 300;
    padding-bottom: 2.2rem;
    border-bottom: 1px solid rgba(26, 47, 46, 0.1);
}

.modal-secs {
    margin-top: 2rem;
}

.modal-sec {
    padding: 1.8rem 0;
    border-bottom: 1px solid rgba(26, 47, 46, 0.07);
}

.modal-sec:last-of-type {
    border-bottom: none;
}

.modal-sec-hd {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.modal-sec-ico {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--teal);
    opacity: 0.72;
}

.modal-sec-nm {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
    font-style: italic;
    color: var(--teal-charcoal);
}

.modal-sec-bd {
    padding-left: 0.85rem;
}

/* ========== WORKSHOPS ACCORDION ========== */
#modal-workshops .modal-intro {
    border-bottom: none;
}

#modal-workshops .modal-cta-row {
    border-top: none;
}

.modal-cta-split {
    display: flex;
    align-items: end;
    gap: 2rem;
    justify-content: center;
}

.modal-cta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    max-width: 220px;
    text-align: center;
}

.modal-cta-label {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.modal-cta-divider {
    width: 1px;
    height: 3rem;
    background: rgba(26, 47, 46, 0.12);
    flex-shrink: 0;
}

@media (max-width: 480px) {
    .modal-cta-split {
        flex-direction: column;
        align-items: center;
        gap: 1.8rem;
    }

    .modal-cta-divider {
        width: 3rem;
        height: 1px;
    }

    .modal-cta-item {
        max-width: none;
    }
}
#modal-workshops .modal-sec {
    border-top: 1px solid rgba(45, 140, 137, 0.13);
}

#modal-workshops .modal-sec:last-child {
    border-bottom: 1px solid rgba(45, 140, 137, 0.13);
}

#modal-workshops .modal-sec-hd {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font: inherit;
    color: inherit;
    padding: 0.85rem 0;
    margin-bottom: 0;
    transition: color 0.18s var(--ease);
}

#modal-workshops .modal-sec-hd:hover .modal-sec-nm {
    color: var(--teal);
}

#modal-workshops .modal-sec-hd:hover .modal-sec-ico {
    opacity: 1;
}

.ws-chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-left: auto;
    color: var(--text-muted);
    transition: transform 0.25s var(--ease), color 0.18s var(--ease);
}

#modal-workshops .modal-sec-hd[aria-expanded="true"] .ws-chevron {
    transform: rotate(180deg);
    color: var(--teal);
}

#modal-workshops .modal-sec-bd {
    overflow: hidden;
    height: 0;
    transition: height 0.3s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
    #modal-workshops .modal-sec-bd {
        transition: none;
    }
    .ws-chevron {
        transition: none;
    }
}

.modal-sec-tx {
    font-size: 0.86rem;
    line-height: 1.8;
    color: var(--text-mid);
    font-weight: 300;
    margin-bottom: 1rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.modal-tag {
    font-size: 0.67rem;
    font-weight: 400;
    letter-spacing: 0.07em;
    padding: 0.28rem 0.75rem;
    border: 1px solid rgba(26, 47, 46, 0.14);
    border-radius: 100px;
    color: var(--text-mid);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.modal-tag:hover {
    background: rgba(26, 47, 46, 0.04);
    border-color: rgba(26, 47, 46, 0.25);
}

.modal-workshop {
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(26,47,46,0.06);
}
.modal-workshop:last-child { border-bottom: none; }
.modal-ws-name {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 400;
    font-style: italic;
    color: var(--teal);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}
.modal-ws-name .modal-ws-badge {
    font-family: var(--sans);
    font-size: 0.58rem;
    font-weight: 500;
    font-style: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--teal);
    margin-left: 0.5rem;
    vertical-align: middle;
}
.modal-workshop .modal-sec-tx {
    margin-bottom: 0.7rem;
}
.modal-workshop .modal-tags {
    margin-top: 0.5rem;
}
.modal-ws-note {
    font-size: 0.78rem;
    font-style: italic;
    color: var(--text-muted);
    margin-top: 0.6rem;
    line-height: 1.6;
}

.modal-ph {
    padding: 1.2rem 1.6rem;
    background: rgba(228, 221, 210, 0.5);
    border: 1px dashed rgba(26, 47, 46, 0.15);
}

.modal-ph-lbl {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.3rem;
}

.modal-ph-tx {
    font-family: var(--serif);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-muted);
}

.modal-cta-row {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(26, 47, 46, 0.1);
    display: flex;
    justify-content: center;
}

.modal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.modal-list li {
    font-size: 0.86rem;
    line-height: 1.75;
    color: var(--text-mid);
    font-weight: 300;
    padding-left: 1.4rem;
    position: relative;
}

.modal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.58em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--teal);
    opacity: 0.55;
}

.modal-legal {
    font-size: 0.75rem;
    line-height: 1.72;
    color: var(--text-muted);
    font-weight: 300;
    padding: 1.2rem 1.5rem;
    border-left: 2px solid rgba(26, 47, 46, 0.12);
    background: rgba(26, 47, 46, 0.025);
    font-style: italic;
}

@media (max-width: 680px) {
    .modal-overlay {
        padding: 0;
        align-items: flex-end;
    }

    .modal-panel {
        max-height: 94vh;
        border-radius: 8px 8px 0 0;
        transform: translateY(40px);
    }

    .modal-body {
        padding: 2rem 1.5rem 2.5rem;
    }

    .modal-sec-bd {
        padding-left: 0;
    }
}

/* Landscape: keep header from eating the screen */
@media (max-height: 500px) {
    .modal-overlay {
        align-items: center;
        padding: 0.5rem;
    }

    .modal-panel {
        max-height: 98vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal { opacity: 1; transform: none; }

    html { scroll-behavior: auto; }
}

/* ========== KLARO CONSENT ========== */

/* --- Notice (banner) --- */
.klaro .cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: var(--teal-charcoal);
    color: var(--cream);
    font-family: var(--sans);
    font-size: 0.85rem;
    padding: 1.25rem 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border-top: 6px solid rgba(240, 237, 230, 0.1);
}

.klaro #id-cookie-notice {
    text-align: center;
    margin-bottom: 0.85rem;
}

.klaro .cookie-notice .cn-body {
    flex: 1;
    margin: 0;
}

.klaro .cookie-notice .cn-body p {
    margin: 0;
    color: rgba(240, 237, 230, 0.72);
    line-height: 1.55;
}

/* .cn-ok wraps the learn-more link + .cn-buttons */
.klaro .cookie-notice .cn-ok {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    flex-shrink: 0;
}

.klaro .cookie-notice .cn-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.klaro .cookie-notice .cm-btn.cm-btn-success {
    background: var(--teal);
    color: var(--cream);
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 3px;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s var(--ease);
}

.klaro .cookie-notice .cm-btn.cm-btn-success:hover {
    background: var(--teal-dark);
}

.klaro .cookie-notice .cm-btn.cm-btn-danger.cn-decline {
    background: transparent;
    color: rgba(240, 237, 230, 0.5);
    border: 1px solid rgba(240, 237, 230, 0.2);
    padding: 0.6rem 1.1rem;
    border-radius: 3px;
    font-family: var(--sans);
    font-size: 0.78rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.klaro .cookie-notice .cm-btn.cm-btn-danger.cn-decline:hover {
    color: rgba(240, 237, 230, 0.85);
    border-color: rgba(240, 237, 230, 0.45);
}

.klaro .cookie-notice .cm-link.cn-learn-more {
    color: rgba(240, 237, 230, 0.45);
    font-size: 0.78rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--sans);
    padding: 0;
    white-space: nowrap;
    transition: color 0.2s;
}

.klaro .cookie-notice .cm-link.cn-learn-more:hover {
    color: rgba(240, 237, 230, 0.75);
}

/* --- Modal --- */
.klaro .cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.klaro .cookie-modal .cm-bg {
    position: fixed;
    inset: 0;
    background: rgba(26, 47, 46, 0.65);
    backdrop-filter: blur(3px);
}

.klaro .cookie-modal .cm-modal.cm-klaro {
    position: relative;
    z-index: 1;
    background: var(--cream);
    border-radius: 4px;
    max-width: 560px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    font-family: var(--sans);
    color: var(--text-main);
    box-shadow: 0 24px 64px rgba(26, 47, 46, 0.28);
}

.klaro .cookie-modal .cm-header {
    background: var(--teal-charcoal);
    padding: 2rem 2rem 1.75rem;
    top: 0;
    z-index: 1;
}

/* Close button — Klaro renders it with class "hide"; we override that */
.klaro .cookie-modal .cm-header button.hide {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(240, 237, 230, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--cream);
    transition: background 0.2s;
}

.klaro .cookie-modal .cm-header button.hide:hover {
    background: rgba(240, 237, 230, 0.2);
}

.klaro .cookie-modal .cm-header button.hide svg line {
    stroke: var(--cream);
}

.klaro .cookie-modal .cm-header .title {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 4vw, 2rem);
    font-weight: 300;
    font-style: italic;
    color: var(--cream);
    margin: 0 0 0.5rem;
}

.klaro .cookie-modal .cm-header p {
    color: rgba(240, 237, 230, 0.62);
    font-size: 0.82rem;
    line-height: 1.55;
    margin: 0;
}

.klaro .cookie-modal .cm-body {
    padding: 1.5rem 2rem;
}

.klaro .cookie-modal .cm-purposes {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Purpose group (e.g. "Functional") — hide the top-level toggle, show services directly */
.klaro .cookie-modal .cm-purpose > .cm-list-label { display: none; }
.klaro .cookie-modal .cm-caret { display: none; }
.klaro .cookie-modal .cm-content { display: block !important; }
.klaro .cookie-modal .cm-purposes { list-style: none; padding: 0; margin: 0; }

/* Purpose-level input: hidden entirely (purpose toggle not shown) */
.klaro .cookie-modal .cm-purpose > .cm-list-input {
    display: none;
}

/* Each service row: position relative so the input overlay is contained here */
.klaro .cookie-modal .cm-service > div {
    position: relative;
    display: block;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(26, 47, 46, 0.08);
}

.klaro .cookie-modal .cm-service:last-child > div {
    border-bottom: none;
}

/*
 * Service-level input only: covers its own row as an invisible click target.
 * Scoped to .cm-service > div > input so the purpose-level input is unaffected.
 * Klaro's default CSS uses this same full-coverage pattern.
 */
.klaro .cookie-modal .cm-service > div > .cm-list-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

/* Label: flex row, title left, toggle right */
.klaro .cookie-modal .cm-list-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
}

/* Description sits below the label */
.klaro .cookie-modal .cm-service [id$="-description"] {
    margin-top: 0.3rem;
}

.klaro .cookie-modal .cm-list-title {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-main);
}

.klaro .cookie-modal .cm-list-description {
    font-size: 0.81rem;
    color: var(--text-mid);
    line-height: 1.55;
}

/* Hide the "purpose: Functional" line */
.klaro .cookie-modal p.purposes { display: none; }

/* Toggle switch — visual only, interaction handled by input above */
.klaro .cookie-modal .cm-switch {
    flex-shrink: 0;
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
}

/* Slider track — off state */
.klaro .cookie-modal .slider {
    position: absolute;
    inset: 0;
    background: rgba(26, 47, 46, 0.15);
    border-radius: 24px;
    transition: background 0.25s var(--ease);
}

/* Slider knob */
.klaro .cookie-modal .slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: transform 0.25s var(--ease);
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* Slider track — on state: driven by checkbox :checked, not by .active class */
.klaro .cookie-modal .cm-list-input:checked + .cm-list-label .slider {
    background: var(--teal);
}

.klaro .cookie-modal .cm-list-input:checked + .cm-list-label .slider::before {
    transform: translateX(18px);
}

/* Modal footer buttons */
.klaro .cookie-modal .cm-footer {
    padding: 1.25rem 2rem;
    border-top: 1px solid rgba(26, 47, 46, 0.08);
    bottom: 0;
    background: var(--cream);
}

.klaro .cookie-modal .cm-footer-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    flex-direction: column-reverse;
}

.klaro .cookie-modal .cm-btn {
    padding: 0.65rem 1.3rem;
    border-radius: 3px;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s var(--ease), color 0.2s, border-color 0.2s;
    border: none;
}

.klaro .cookie-modal .cm-btn.cm-btn-success.cm-btn-accept-all {
    background: var(--teal);
    color: var(--cream);
}

.klaro .cookie-modal .cm-btn.cm-btn-success.cm-btn-accept-all:hover {
    background: var(--teal-dark);
}

.klaro .cookie-modal .cm-btn.cm-btn-success-var {
    background: transparent;
    color: var(--teal);
    border: 1.5px solid var(--teal);
}

.klaro .cookie-modal .cm-btn.cm-btn-success-var:hover {
    background: var(--teal);
    color: var(--cream);
}

.klaro .cookie-modal .cm-btn.cm-btn-decline.cm-btn-danger {
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid rgba(26, 47, 46, 0.2);
}

.klaro .cookie-modal .cm-btn.cm-btn-decline.cm-btn-danger:hover {
    color: var(--text-main);
    border-color: rgba(26, 47, 46, 0.4);
}

.klaro .cm-powered-by { display: none; }

/* Stack banner on small screens */
@media (max-width: 600px) {
    .klaro .cookie-notice {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
    }

    .klaro .cookie-notice .cn-buttons {
        flex-wrap: wrap;
    }
}
