/* ============================================================
   Bea's Plan B Afterschool Group — styles.css
   Design concept: "Where afternoons grow into something more."
   Editorial · handcrafted · warm · paper-tactile.
   Mobile-first, vanilla CSS using variables, Flexbox & Grid.
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
    /* Brand palette — warm, grounded, editorial */
    --c-paper:        #FBF6EC;   /* warm cream — primary background */
    --c-paper-2:      #F5EBD6;   /* deeper cream */
    --c-paper-3:      #ECE0C2;   /* card edge / borders */

    --c-forest:       #14532D;   /* deep grounding green */
    --c-forest-2:     #0E3D21;
    --c-leaf:         #2ECC71;   /* brand green from logo */
    --c-leaf-dark:    #1FA85B;
    --c-leaf-soft:    #D8F0DD;

    --c-sun:          #F4D03F;   /* brand yellow */
    --c-sun-dark:     #D9B82C;
    --c-sun-soft:     #FBE9A1;

    --c-clay:         #E76F51;   /* terracotta accent */
    --c-clay-soft:    #F8D9CD;

    --c-berry:        #C850C0;   /* magenta accent */
    --c-berry-soft:   #F4D9F2;

    --c-ink:          #1A1F1B;
    --c-ink-soft:     #4A524C;
    --c-mute:         #6E7670;
    --c-line:         #DFD4B8;

    /* Type */
    --ff-display: "Fraunces", "Cooper", Georgia, "Times New Roman", serif;
    --ff-body:    "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --ff-hand:    "Caveat", "Bradley Hand", cursive;

    --fs-base: 1.05rem;
    --lh-base: 1.65;

    /* Layout */
    --container: 1180px;
    --container-narrow: 900px;

    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --radius-xl: 40px;
    --radius-pill: 999px;

    --shadow-sm: 0 2px 0 rgba(20, 31, 27, .06);
    --shadow-md: 0 12px 28px -12px rgba(20, 31, 27, .25);
    --shadow-lift: 0 18px 38px -16px rgba(20, 31, 27, .35);

    /* Spacing scale */
    --s-1: 0.25rem;
    --s-2: 0.5rem;
    --s-3: 0.75rem;
    --s-4: 1rem;
    --s-5: 1.5rem;
    --s-6: 2rem;
    --s-7: 3rem;
    --s-8: 4.5rem;
    --s-9: 6rem;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--ff-body);
    font-size: var(--fs-base);
    line-height: var(--lh-base);
    color: var(--c-ink);
    background: var(--c-paper);

    /* subtle warm paper grain */
    background-image:
        radial-gradient(rgba(20, 31, 27, .035) 1px, transparent 1px),
        radial-gradient(rgba(20, 31, 27, .025) 1px, transparent 1px);
    background-size: 28px 28px, 14px 14px;
    background-position: 0 0, 7px 7px;
}

img { max-width: 100%; height: auto; display: block; }

a {
    color: var(--c-forest);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}
a:hover, a:focus { color: var(--c-clay); }

button { font: inherit; cursor: pointer; }

h1, h2, h3 {
    font-family: var(--ff-display);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0 0 var(--s-4);
    color: var(--c-ink);
}
h1 { font-size: clamp(2.4rem, 6vw + .5rem, 4.8rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 3.5vw + .5rem, 3.2rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }

p { margin: 0 0 var(--s-4); }

em { font-style: italic; color: var(--c-clay); font-family: var(--ff-display); }

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; top: -40px; left: 0;
    background: var(--c-forest); color: #fff; padding: 8px 12px;
    z-index: 100; border-radius: 0 0 8px 0;
    text-decoration: none;
}
.skip-link:focus { top: 0; }

:focus-visible {
    outline: 3px solid var(--c-sun);
    outline-offset: 3px;
    border-radius: 4px;
}

::selection {
    background: var(--c-sun);
    color: var(--c-ink);
}

/* ---------- 3. Layout helpers ---------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--s-5);
}
.container.narrow { max-width: var(--container-narrow); }

.section {
    position: relative;
    padding: var(--s-8) 0;
    overflow: hidden;
}
@media (min-width: 768px) {
    .section { padding: var(--s-9) 0; }
}

.section-cream  { background: var(--c-paper-2); }
.section-forest {
    background: var(--c-forest);
    color: #F4F0E2;
}

/* Eyebrows / leads */
.section-eyebrow,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    font-family: var(--ff-body);
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 700;
    font-size: .78rem;
    color: var(--c-forest);
    margin: 0 0 var(--s-4);
}
.eyebrow-light { color: var(--c-sun); }
.eyebrow-mark {
    width: 16px; height: 16px;
    fill: var(--c-clay);
}
.eyebrow-light .eyebrow-mark { fill: var(--c-sun); }

.section-title { margin-bottom: var(--s-5); max-width: 18ch; }
.section-title-light { color: #FFF8E8; }
.section-lead {
    color: var(--c-ink-soft);
    max-width: 60ch;
    font-size: 1.1rem;
}
.lead-light { color: rgba(255, 248, 232, .8); }

.two-col {
    display: grid;
    gap: var(--s-7);
}
@media (min-width: 900px) {
    .two-col {
        grid-template-columns: 1.3fr 1fr;
        gap: var(--s-8);
        align-items: start;
    }
}

/* ---------- 4. Header / Nav ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(251, 246, 236, .9);
    backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid rgba(20, 31, 27, .08);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 72px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--s-3);
    text-decoration: none;
    color: var(--c-ink);
}
.brand-logo {
    height: 50px;
    width: auto;
    flex-shrink: 0;
    filter: brightness(0) saturate(100%) invert(24%) sepia(30%) saturate(1200%) hue-rotate(100deg) brightness(92%) contrast(95%);
}
.brand-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}
.brand-name {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: .02em;
    color: var(--c-ink);
}
.brand-tag {
    margin-top: 4px;
    font-family: var(--ff-body);
    font-weight: 600;
    font-size: .68rem;
    letter-spacing: .22em;
    color: var(--c-forest);
    text-transform: uppercase;
}
.brand:hover .brand-name { color: var(--c-forest); }

/* Hide wordmark on very small screens so logo + hamburger fit comfortably */
@media (max-width: 420px) {
    .brand-text { display: none; }
}

.site-nav { position: relative; }
.nav-list {
    list-style: none; padding: 0; margin: 0;
    display: none;
    flex-direction: column;
    gap: var(--s-2);
    position: absolute; right: 0; top: calc(100% + 12px);
    background: var(--c-paper);
    border: 1px solid var(--c-line);
    border-radius: var(--radius-md);
    padding: var(--s-4);
    box-shadow: var(--shadow-md);
    min-width: 220px;
}
.nav-list.is-open { display: flex; }
.nav-list a {
    text-decoration: none;
    color: var(--c-ink);
    font-weight: 600;
    font-size: .98rem;
    display: block;
    padding: var(--s-2) var(--s-3);
    border-radius: var(--radius-sm);
}
.nav-list a:hover { background: var(--c-sun-soft); color: var(--c-ink); }
.nav-cta {
    background: var(--c-forest);
    color: #FFF8E8 !important;
    padding: var(--s-2) var(--s-4) !important;
    border-radius: var(--radius-pill) !important;
}
.nav-cta:hover { background: var(--c-clay); color: #fff !important; }

.nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    background: transparent; border: 0; padding: 8px;
}
.nav-toggle-bar {
    width: 26px; height: 2px; background: var(--c-ink);
    display: block; border-radius: 2px;
}

@media (min-width: 860px) {
    .nav-toggle { display: none; }
    .nav-list {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        position: static;
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0;
        gap: var(--s-3);
        min-width: 0;
    }
}

/* ---------- 5. Hero ---------- */
.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(var(--s-5), 4vw, var(--s-7)) 0 var(--s-8);
}
.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(var(--s-6), 6vw, var(--s-8));
    align-items: center;
}
.hero-copy { min-width: 0; max-width: 60ch; }

.hero-media {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--s-6);
    justify-self: center;
    width: 100%;
    max-width: 520px;
}

/* Overlapping image collage */
.hero-collage {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 4;
    margin: 0 auto;
}
.hero-tile {
    position: absolute;
    margin: 0;
    background: var(--c-paper);
    border: 3px solid var(--c-forest);
    border-radius: 18px;
    box-shadow: 8px 8px 0 var(--c-forest);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.hero-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-tile:hover {
    transform: translate(-2px, -2px) rotate(0deg);
    box-shadow: 10px 10px 0 var(--c-forest);
    z-index: 10;
}

/* Tile 1 — square (Tools) */
.hero-tile-1 {
    top: 0;
    left: 0;
    width: 52%;
    aspect-ratio: 1 / 1;
    transform: rotate(-3deg);
    z-index: 1;
}
/* Tile 2 — landscape rectangle (Gardening) */
.hero-tile-2 {
    top: 5%;
    right: 0;
    width: 52%;
    aspect-ratio: 4 / 3;
    transform: rotate(4deg);
    z-index: 3;
    background: var(--c-sun-soft, var(--c-paper));
}
/* Tile 3 — landscape rectangle (Fixing) */
.hero-tile-3 {
    bottom: 0;
    left: 18%;
    width: 52%;
    aspect-ratio: 4 / 3;
    transform: rotate(-1.5deg);
    z-index: 2;
    background: var(--c-leaf-soft, var(--c-paper));
}

@media (max-width: 600px) {
    .hero-collage { max-width: 360px; }
    .hero-tile { border-width: 2px; box-shadow: 5px 5px 0 var(--c-forest); }
}

@media (min-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    }
    .hero-media { justify-self: end; }
}

.hero-title {
    margin-bottom: var(--s-5);
    color: var(--c-forest);
}

.underlined {
    position: relative;
    display: inline-block;
    color: var(--c-clay);
    white-space: nowrap;
}
.underline-svg {
    position: absolute;
    left: 0; right: 0; bottom: -.18em;
    width: 100%;
    height: auto;
    color: var(--c-sun);
    overflow: visible;
}

.hero-lead {
    font-size: clamp(1.05rem, 1.4vw + .4rem, 1.3rem);
    color: var(--c-ink-soft);
    max-width: 60ch;
    line-height: 1.55;
}
.hero-lead strong { color: var(--c-ink); }

.hero-cta-row {
    display: flex; flex-wrap: wrap; gap: var(--s-4);
    margin: var(--s-5) 0 0;
}
.hero-location {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .95rem;
    font-weight: 600;
    color: var(--c-forest);
    padding: .55rem 1.1rem;
    border: 2px solid var(--c-forest);
    border-radius: 999px;
    background: #fff;
    box-shadow: 2px 2px 0 var(--c-forest);
}
.hero-location svg {
    width: 1.1em;
    height: 1.1em;
    fill: var(--c-clay);
    flex-shrink: 0;
}

.hero-pills {
    list-style: none; padding: 0; margin: var(--s-5) 0 0;
    display: flex; flex-wrap: wrap; gap: var(--s-3);
}
.hero-pills li {
    background: #ffffff;
    border: 2px solid var(--c-forest);
    padding: .55rem 1.1rem .55rem .9rem;
    border-radius: var(--radius-pill);
    font-size: .95rem;
    font-weight: 700;
    color: var(--c-forest);
    box-shadow: 3px 3px 0 var(--c-forest);
    display: inline-flex; align-items: center; gap: var(--s-2);
    transition: transform .12s ease, box-shadow .12s ease;
}
.hero-pills li:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0 var(--c-forest);
}
.hero-pills li strong { font-weight: 800; color: var(--c-forest); }
/* Accent pill — 'Apply' style in orange */
.hero-pills li.pill-apply {
    background: var(--c-clay);
    color: #ffffff;
    border-color: var(--c-forest);
}
.hero-pills li.pill-apply strong { color: #ffffff; }
.hero-pills li.pill-apply .pill-icon { color: #ffffff; }

/* Ages pill — filled green */
.hero-pills li.pill-age {
    background: var(--c-leaf);
    color: var(--c-forest);
    border-color: var(--c-forest);
}
.hero-pills li.pill-age strong { color: var(--c-forest); }

/* Pill SVG icon (replaces colored dot) */
.pill-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--c-forest);
}
.pill-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.pill-dot-leaf  { background: var(--c-leaf); }
.pill-dot-sun   { background: var(--c-sun); }
.pill-dot-clay  { background: var(--c-clay); }
.pill-dot-berry { background: var(--c-berry); }

.hero-handnote {
    margin-top: 0;
    font-family: var(--ff-hand);
    font-size: 1.4rem;
    color: var(--c-forest);
    display: inline-flex; align-items: center; gap: var(--s-3);
    transform: rotate(-1.5deg);
    text-align: center;
}
.hand-arrow {
    width: 60px; height: 30px;
    color: var(--c-clay);
    display: inline-block;
    transform: rotate(8deg);
}
.hand-arrow svg { width: 100%; height: 100%; }

/* Decorative floating shapes */
.float-shape {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    opacity: .85;
}
.float-leaf {
    width: 220px; height: 220px;
    top: -40px; right: -40px;
    background: var(--c-leaf);
    border-radius: 70% 30% 60% 40% / 50% 60% 40% 50%;
    opacity: .55;
    animation: drift 14s ease-in-out infinite alternate;
}
.float-sun {
    width: 140px; height: 140px;
    bottom: 10%; left: -30px;
    background: var(--c-sun);
    border-radius: 50%;
    box-shadow: inset 0 -8px 0 rgba(20, 31, 27, .08);
    opacity: .9;
    animation: drift 18s ease-in-out infinite alternate-reverse;
}
.float-berry {
    width: 90px; height: 90px;
    top: 38%; right: 8%;
    background: var(--c-clay);
    border-radius: 40% 60% 60% 40% / 50% 40% 60% 50%;
    opacity: .35;
    animation: drift 22s ease-in-out infinite alternate;
}
.float-leaf-2 {
    width: 180px; height: 180px;
    top: -30px; left: -30px;
    background: var(--c-leaf-soft);
    border-radius: 60% 40% 50% 50% / 40% 60% 50% 50%;
    opacity: .7;
}
.float-sun-2 {
    width: 120px; height: 120px;
    bottom: 60px; right: -20px;
    background: var(--c-sun-soft);
    border-radius: 50%;
    opacity: .8;
}

@keyframes drift {
    0%   { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(20px, -16px) rotate(8deg); }
}

@media (max-width: 700px) {
    .float-leaf  { width: 140px; height: 140px; }
    .float-sun   { width: 100px; height: 100px; }
    .float-berry { display: none; }
}

/* Short-screen laptops (e.g. 1366×768 with browser chrome) */
@media (min-width: 900px) and (max-height: 760px) {
    .hero {
        padding-top: var(--s-4);
        padding-bottom: var(--s-5);
    }
    .hero-title {
        font-size: clamp(4rem, 5vw, 5rem);
        margin-bottom: var(--s-5);
    }
    .hero-lead {
        font-size: 1.2rem;
    }
    .hero-cta-row {
        margin: var(--s-6) 0 var(--s-5);
    }
    .hero-pills {
        margin-top: var(--s-5);
    }
    .hero-media {
        max-width: 500px;
        gap: var(--s-6);
    }
}

/* ---------- 6. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: 0.95rem 1.6rem;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    font-family: var(--ff-body);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: transform .18s cubic-bezier(.2, .8, .2, 1),
                background-color .18s ease,
                color .18s ease,
                border-color .18s ease,
                box-shadow .18s ease;
    line-height: 1.2;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--c-forest);
    color: #FFF8E8;
    border-color: var(--c-forest);
    box-shadow: 0 4px 0 var(--c-forest-2);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--c-clay);
    border-color: var(--c-clay);
    color: #fff;
    box-shadow: 0 6px 0 #B5573D;
}

.btn-link {
    background: transparent;
    color: var(--c-forest);
    padding: .95rem .25rem;
    border-bottom: 2px solid var(--c-forest);
    border-radius: 0;
}
.btn-link:hover {
    color: var(--c-clay);
    border-color: var(--c-clay);
    transform: translateY(0);
}
.btn-arrow { display: inline-block; transition: transform .18s ease; }
.btn-link:hover .btn-arrow { transform: translateY(3px); }

.btn-large { padding: 1.1rem 2rem; font-size: 1.08rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn[disabled]:hover { transform: none; }

/* ---------- 7. Marquee strip ---------- */
.marquee {
    background: var(--c-clay);
    color: #FFF8E8;
    overflow: hidden;
    border-top: 2px solid var(--c-forest);
    border-bottom: 2px solid var(--c-forest);
    padding: var(--s-3) 0;
    transform: rotate(-1deg);
    margin: var(--s-5) -2vw;
}
.marquee-track {
    display: flex;
    gap: var(--s-5);
    align-items: center;
    white-space: nowrap;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: .04em;
    animation: marquee 28s linear infinite;
}
.marquee-track span { display: inline-block; }
.marquee-dot { color: var(--c-sun); }

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---------- 8. Philosophy / Values ---------- */
.word-highlight {
    display: inline-block;
    background: var(--c-sun);
    color: var(--c-ink);
    padding: 0 .25em;
    border-radius: 8px;
    transform: rotate(-1deg);
    box-shadow: 4px 4px 0 var(--c-clay);
}
.word-highlight-clay {
    background: var(--c-clay);
    color: #FFF8E8;
    box-shadow: 4px 4px 0 var(--c-sun);
}

.values-grid {
    list-style: none;
    padding: 0;
    margin: var(--s-7) 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-5);
    counter-reset: vnum;
}
@media (min-width: 700px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px){ .values-grid { grid-template-columns: repeat(4, 1fr); } }

.value {
    background: rgba(255, 248, 232, .06);
    border: 1.5px solid rgba(255, 248, 232, .15);
    padding: var(--s-6) var(--s-5) var(--s-5);
    border-radius: var(--radius-lg);
    position: relative;
    transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.value:hover {
    transform: translateY(-4px);
    background: rgba(255, 248, 232, .1);
    border-color: var(--c-sun);
}
.value-num {
    font-family: var(--ff-display);
    font-weight: 800;
    font-size: 2.4rem;
    color: var(--c-sun);
    line-height: 1;
    display: block;
    margin-bottom: var(--s-3);
    letter-spacing: -.04em;
}
.value-title {
    color: #FFF8E8;
    font-size: 1.4rem;
    margin: 0 0 var(--s-3);
}
.value p {
    color: rgba(255, 248, 232, .8);
    font-size: .98rem;
    margin: 0;
}

/* ---------- 8b. Educative Project ---------- */
.edu-pillars {
    list-style: none;
    padding: 0;
    margin: var(--s-7) 0 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-5);
}
@media (min-width: 700px) { .edu-pillars { grid-template-columns: repeat(3, 1fr); gap: var(--s-6); } }

.edu-pillar {
    background: #fff;
    border: 2px solid var(--c-line);
    border-radius: var(--radius-md);
    padding: var(--s-5) var(--s-5) var(--s-6);
}
.edu-pillar h3 {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0 0 var(--s-3);
    color: var(--c-forest);
}
.edu-pillar p {
    margin: 0;
    color: var(--c-ink-soft);
    font-size: .95rem;
    line-height: 1.6;
}

/* ---------- 9. Services (sticker cards) ---------- */
.service-grid {
    list-style: none;
    padding: 0;
    margin: var(--s-7) 0 var(--s-5);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-5);
}
@media (min-width: 640px) { .service-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-6); } }
@media (min-width: 900px) { .service-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px){ .service-grid { grid-template-columns: repeat(6, 1fr); } }

.service {
    position: relative;
    background: #fff;
    border: 2px solid var(--c-ink);
    border-radius: var(--radius-lg);
    padding: var(--s-6) var(--s-5) var(--s-5);
    box-shadow: 6px 6px 0 var(--c-ink);
    transition: transform .25s cubic-bezier(.2, .8, .2, 1),
                box-shadow .25s ease;
}
.service:nth-child(1) { transform: rotate(-1.5deg); }
.service:nth-child(2) { transform: rotate(1deg); }
.service:nth-child(3) { transform: rotate(-1deg); }
.service:nth-child(4) { transform: rotate(1.5deg); }
.service:hover {
    transform: rotate(0) translateY(-4px);
    box-shadow: 10px 10px 0 var(--c-ink);
}

.service-leaf  { background: var(--c-leaf-soft); }
.service-sun   { background: var(--c-sun-soft); }
.service-clay  { background: var(--c-clay-soft); }
.service-berry { background: var(--c-berry-soft); }

.service-time {
    display: inline-block;
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: .95rem;
    background: var(--c-ink);
    color: var(--c-paper);
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    margin-bottom: var(--s-4);
    letter-spacing: .04em;
}
.service-icon {
    width: 56px; height: 56px;
    color: var(--c-ink);
    margin-bottom: var(--s-3);
}
.service-icon svg { width: 100%; height: 100%; }

.service h3 {
    margin: 0 0 var(--s-2);
    color: var(--c-ink);
}
.service p {
    color: var(--c-ink-soft);
    font-size: .96rem;
    margin: 0;
    line-height: 1.55;
}

.service-foot {
    text-align: center;
    font-family: var(--ff-display);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--c-forest);
    max-width: 60ch;
    margin: var(--s-6) auto 0;
}

/* ---------- 10. About / Manifesto ---------- */
.manifesto p {
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--c-ink-soft);
    max-width: 56ch;
}
.manifesto strong { color: var(--c-forest); }
.signature {
    font-family: var(--ff-hand);
    font-size: 2rem;
    color: var(--c-clay);
    margin-top: var(--s-5) !important;
}

.card {
    background: #fff;
    border: 2px solid var(--c-ink);
    border-radius: var(--radius-lg);
    padding: var(--s-6);
    box-shadow: 8px 8px 0 var(--c-ink);
}
.card h3 {
    margin: 0 0 var(--s-3);
    color: var(--c-ink);
}
.card-sticker {
    background: var(--c-sun);
    transform: rotate(2deg);
    transition: transform .25s ease;
    align-self: start;
    position: sticky;
    top: 100px;
}
.card-sticker:hover { transform: rotate(0); }
.card-intro { font-size: .98rem; margin-bottom: var(--s-4); }
.card-foot {
    margin-top: var(--s-4);
    font-size: .9rem;
    font-style: italic;
    color: var(--c-ink-soft);
    border-top: 1.5px dashed rgba(20, 31, 27, .25);
    padding-top: var(--s-3);
}

.check-list { list-style: none; padding: 0; margin: 0 0 var(--s-3); }
.check-list li {
    padding-left: 1.8rem; position: relative;
    margin-bottom: var(--s-2);
    font-weight: 500;
}
.check-list li::before {
    content: "";
    position: absolute; left: 0; top: 0.45em;
    width: 14px; height: 14px;
    background: var(--c-clay);
    border-radius: 50%;
    border: 2px solid var(--c-ink);
}

/* ---------- 11. Details grid ---------- */
.details-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-4);
    margin: var(--s-6) 0 var(--s-7);
}
@media (min-width: 600px) { .details-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px){ .details-grid { grid-template-columns: repeat(5, 1fr); } }

.details-card {
    background: var(--c-paper);
    border: 2px solid var(--c-ink);
    border-radius: var(--radius-md);
    padding: var(--s-5);
    box-shadow: 4px 4px 0 var(--c-ink);
    transition: transform .2s ease, box-shadow .2s ease;
}
.details-card:hover {
    transform: translateY(-3px);
    box-shadow: 6px 8px 0 var(--c-ink);
}
.details-tag {
    display: inline-block;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--c-clay);
    margin-bottom: var(--s-3);
}
.details-time {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.1;
    color: var(--c-forest);
    margin: 0 0 var(--s-2);
    letter-spacing: -.02em;
}
.details-meta {
    margin: 0;
    color: var(--c-ink-soft);
    font-size: .94rem;
}

/* Details info */
.details-info {
    margin-top: var(--s-7);
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-6);
}
@media (min-width: 700px) { .details-info { grid-template-columns: repeat(3, 1fr); } }

.details-block h3 {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0 0 var(--s-3);
    color: var(--c-forest);
}
.details-block p {
    margin: 0 0 var(--s-3);
    font-size: .95rem;
    color: var(--c-ink-soft);
    line-height: 1.6;
}
.details-note {
    font-size: .88rem !important;
    font-style: italic;
    color: var(--c-mute) !important;
}

/* CTA strip */
.cta-strip {
    margin-top: var(--s-6);
    padding: var(--s-6);
    background: var(--c-forest);
    color: #FFF8E8;
    border-radius: var(--radius-lg);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--s-4);
    box-shadow: 6px 6px 0 var(--c-clay);
}
.cta-strip p {
    margin: 0;
    font-family: var(--ff-display);
    font-size: 1.4rem;
    font-weight: 600;
    max-width: 28ch;
}
.cta-strip .btn-primary {
    background: var(--c-sun);
    color: var(--c-ink);
    border-color: var(--c-sun);
    box-shadow: 0 4px 0 var(--c-sun-dark);
}
.cta-strip .btn-primary:hover {
    background: var(--c-clay);
    border-color: var(--c-clay);
    color: #fff;
    box-shadow: 0 6px 0 #B5573D;
}

/* ---------- 12. Form ---------- */
.form-section-wrap {
    position: relative;
}

/* Centered intro */
.form-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--s-6);
}
.form-badge {
    display: inline-block;
    background: var(--c-clay);
    border: 2px solid var(--c-forest);
    padding: .45rem 1.3rem;
    border-radius: var(--radius-pill);
    font-weight: 800;
    font-size: .92rem;
    color: #fff;
    transform: rotate(2deg);
    margin-bottom: var(--s-4);
}

/* Form card wrapper */
.form-card {
    background: #fff;
    border-radius: var(--radius-lg, 24px);
    padding: clamp(var(--s-5), 4vw, var(--s-7));
    border: 2px solid var(--c-forest);
    box-shadow: 8px 8px 0 var(--c-forest);
    position: relative;
    z-index: 2;
}

.form { position: relative; }

/* Section dividers */
.section-divider {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    margin: var(--s-6) 0 var(--s-4);
    color: var(--c-forest);
}
.section-divider:first-child {
    margin-top: 0;
}
.section-divider::after {
    content: "";
    flex-grow: 1;
    height: 2px;
    background: var(--c-forest);
    opacity: .15;
}
.section-divider h3 {
    margin: 0;
    font-family: var(--ff-display);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--c-forest);
    white-space: nowrap;
}

/* Icon box */
.icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    border: 2px solid var(--c-forest);
    background: var(--c-leaf);
    box-shadow: 3px 3px 0 var(--c-forest);
    color: var(--c-forest);
}
.icon-box-accent {
    background: var(--c-clay);
    color: #fff;
}
.form-icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Form rows */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--s-4);
}
@media (min-width: 640px) {
    .form-row { grid-template-columns: 1fr 1fr; }
}
.form-group { margin-bottom: var(--s-4); }
.form-group:last-child { margin-bottom: 0; }
.form-group label {
    display: block;
    font-weight: 800;
    margin-bottom: .45rem;
    color: var(--c-forest);
    font-size: .95rem;
}
.req { color: var(--c-clay); margin-left: 2px; font-weight: 700; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: .9rem 1rem;
    font: inherit;
    font-size: 1rem;
    color: var(--c-ink);
    background: var(--c-paper);
    border: 2px solid var(--c-forest);
    border-radius: 12px;
    transition: box-shadow .15s ease, background .15s ease;
}
textarea { resize: vertical; min-height: 90px; }
select { cursor: pointer; }

input:focus, textarea:focus, select:focus {
    outline: none;
    background: #fff;
    box-shadow: 4px 4px 0 var(--c-leaf);
}

/* Field-level validation errors */
.form-group .field-error,
.checkbox-group + .field-error {
    font-size: .85rem;
    color: #C0392B !important;
    margin: .35rem 0 0;
    min-height: 0;
    font-weight: 600;
    display: none;
}
.form-group .field-error:not(:empty),
.checkbox-group + .field-error:not(:empty) {
    display: block;
}

input[aria-invalid="true"],
textarea[aria-invalid="true"],
select[aria-invalid="true"] {
    border-color: #C0392B;
    box-shadow: 3px 3px 0 #C0392B;
}

/* GDPR checkboxes */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: var(--s-3);
    margin-bottom: var(--s-3);
    background: var(--c-paper);
    padding: var(--s-4);
    border-radius: 16px;
    border: 2px solid var(--c-forest);
    cursor: pointer;
    transition: background .15s ease;
}
.checkbox-group:hover {
    background: var(--c-leaf-soft, var(--c-leaf));
}
.checkbox-group input[type="checkbox"] {
    width: 1.4rem;
    height: 1.4rem;
    margin-top: .2rem;
    cursor: pointer;
    accent-color: var(--c-clay);
    flex-shrink: 0;
}
.checkbox-group label {
    margin: 0;
    cursor: pointer;
    width: 100%;
    font-weight: normal;
}
.checkbox-group strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--c-forest);
    margin-bottom: .25rem;
}
.checkbox-group small {
    display: block;
    color: var(--c-ink-soft);
    font-size: .92rem;
    line-height: 1.5;
}

/* Submit button */
.btn-submit {
    width: 100%;
    justify-content: center;
    margin-top: var(--s-6);
    padding: 1.2rem;
    font-size: 1.15rem;
}
.loader { display: none; margin-left: 8px; }

/* Form message */
.form-message {
    margin-top: var(--s-4);
    padding: var(--s-4);
    border-radius: 12px;
    border: 2px solid var(--c-forest);
    display: none;
    font-weight: 700;
    text-align: center;
}
.form-message.is-success { display: block; background: var(--c-leaf-soft, var(--c-leaf)); color: var(--c-forest); }
.form-message.is-error { display: block; background: #ffb3b3; color: #900000; }

/* Honeypot */
.honeypot {
    position: absolute; left: -9999px; top: auto;
    width: 1px; height: 1px; overflow: hidden;
}

/* ---------- 13. Footer ---------- */
.site-footer {
    background: var(--c-forest);
    color: rgba(255, 248, 232, .8);
    padding: var(--s-5) 0 var(--s-4);
    margin-top: 0;
    position: relative;
}
.site-footer a { color: #FFF8E8; }
.site-footer a:hover { color: var(--c-sun); }

.footer-inner {
    display: flex; flex-wrap: wrap; gap: var(--s-5);
    justify-content: space-between; align-items: flex-end;
    padding-top: var(--s-4);
}
.footer-tag {
    font-family: var(--ff-display);
    font-weight: 700;
    font-size: 1.4rem;
    color: #FFF8E8;
    margin: 0 0 var(--s-2);
}
.footer-mantra {
    font-family: var(--ff-hand);
    font-size: 1.5rem;
    color: var(--c-sun);
    margin: 0;
    transform: rotate(-1.5deg);
    display: inline-block;
}
.footer-meta { text-align: right; }
.footer-meta p { margin: 10px 0 var(--s-2); }
.footer-copy { 
    font-size: .85rem; color: rgba(255, 248, 232, .55); 
}

.footer-socials {
    display: flex;
    gap: var(--s-3);
    margin-top: var(--s-3);
    justify-content: flex-end;
}
.footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 2px solid rgba(255, 248, 232, .3);
    border-radius: 50%;
    transition: border-color .15s ease, background .15s ease;
}
.footer-socials a:hover {
    border-color: var(--c-sun);
    background: rgba(255, 248, 232, .1);
}
.footer-socials svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@media (max-width: 640px) {
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .footer-meta { text-align: left; }
    .footer-socials { justify-content: flex-start; }
}

/* ---------- 14. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
    .marquee { transform: none; }
    .float-shape { animation: none !important; }
    .service { transform: none !important; }
    .word-highlight, .word-highlight-clay { transform: none; }
}
