/* ==========================================================================
   V bodláčí — "beech forest" design system (SPECIFICATION.md §25.1)
   Order: fonts → tokens → base → buttons → headings → sections → hero →
   cards → services → about → courses → steps → FAQ → tables → forms →
   testimonials → contact → feedback → footer → topbar → back-to-top →
   reveal → utilities → responsive → legacy shim (temporary)
   ========================================================================== */

/* ---------- self-hosted fonts (latin + latin-ext, SIL OFL) ---------- */

@font-face {
    font-family: "Lora";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/lora-latin-600.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Lora";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/lora-latin-ext-600.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Lora";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/lora-latin-400italic.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Lora";
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/lora-latin-ext-400italic.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Caveat";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/caveat-latin-600.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Caveat";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("/fonts/caveat-latin-ext-600.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400 700; /* variable font */
    font-display: swap;
    src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Source Sans 3";
    font-style: normal;
    font-weight: 400 700; /* variable font */
    font-display: swap;
    src: url("/fonts/source-sans-3-latin-ext.woff2") format("woff2");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- design tokens ---------- */

:root {
    --bark: #3b3a2c;
    --moss: #4a5a38;
    --moss-dark: #3d4a2d;
    --cream: #fbf8ee;
    --leaf: #b0db72;
    --leaf-tint: #edf4dd;
    --gold: #ffcd3c;
    --gold-deep: #d99f00;
    --amber: #ff9234;
    --honey-tint: #fcf3d4;
    --thistle: #8e76a3;
    --muted: #5c5a48;
    --line: #e3dcc6;
    --card-bg: #fffefa;
    --shadow-soft: 0 1px 2px rgba(59, 58, 44, 0.06), 0 10px 30px rgba(59, 58, 44, 0.10);
    --shadow-lift: 0 2px 4px rgba(59, 58, 44, 0.08), 0 18px 44px rgba(59, 58, 44, 0.16);
    --font-display: "Lora", "Palatino Linotype", Georgia, serif;
    --font-script: "Caveat", "Segoe Script", cursive;
    --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

/* ---------- base ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--bark);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.18;
    margin: 0;
    color: var(--moss);
    text-wrap: balance;
}

p {
    color: var(--muted);
    line-height: 1.7;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

/* site.js hides filtered course cards via the `hidden` attribute; flex/grid
   display on cards would otherwise override the UA [hidden] rule */
[hidden] {
    display: none !important;
}

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

.shell {
    min-height: 100vh;
}

.main-content {
    display: block;
}

.wrap {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.4rem;
}

.hidden-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------- buttons ---------- */

.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.78rem 1.7rem;
    border: 1.5px solid transparent;
    background: transparent;
    color: var(--bark);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-sm {
    padding: 0.55rem 1.25rem;
    font-size: 0.95rem;
}

.btn-gold {
    background: var(--gold);
    color: var(--bark);
    border-color: rgba(217, 159, 0, 0.55);
    box-shadow: 0 6px 18px rgba(217, 159, 0, 0.28);
}

.btn-gold:hover {
    background: #ffd65e;
    color: var(--bark);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(217, 159, 0, 0.36);
}

.btn-moss {
    background: var(--moss);
    color: var(--cream);
    border-color: var(--moss-dark);
}

.btn-moss:hover {
    background: var(--moss-dark);
    color: var(--cream);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(61, 74, 45, 0.3);
}

.btn-ghost-light {
    background: rgba(251, 248, 238, 0.12);
    color: var(--cream);
    border-color: rgba(251, 248, 238, 0.65);
    backdrop-filter: blur(3px);
}

.btn-ghost-light:hover {
    background: rgba(251, 248, 238, 0.24);
    color: var(--cream);
    transform: translateY(-2px);
}

.btn-outline {
    background: var(--card-bg);
    color: var(--bark);
    border-color: var(--line);
}

.btn-outline:hover {
    background: var(--cream);
    border-color: var(--muted);
    transform: translateY(-2px);
}

.link-arrow {
    font-weight: 700;
    color: var(--moss);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s ease, color 0.2s ease;
}

.link-arrow::after {
    content: "→";
}

.link-arrow:hover {
    color: var(--moss-dark);
    gap: 0.65rem;
}

/* stretches a card's main link over the whole card surface */
.link-arrow.stretched::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* text-like secondary button (admin "Upravit výchozí text", logout) */
.link-button {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    border-radius: 999px;
    padding: 0.35rem 0.95rem;
    border: 1.5px solid var(--line);
    background: var(--card-bg);
    color: var(--bark);
    cursor: pointer;
}

.link-button:hover {
    border-color: var(--muted);
}

/* ---------- kicker + headings ---------- */

.kicker {
    font-family: var(--font-script);
    font-weight: 600;
    font-size: clamp(1.35rem, 2.6vw, 1.6rem);
    color: var(--moss);
    display: block;
    margin-bottom: 0.3rem;
}

.section-head {
    margin-bottom: 2.4rem;
}

.section-head h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.5rem);
}

.section-head.centered {
    text-align: center;
}

.section-head .lede {
    max-width: 640px;
    margin-top: 0.8rem;
}

.centered .lede {
    margin-left: auto;
    margin-right: auto;
}

.divider {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    max-width: 380px;
    margin: 0 auto 2.2rem;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--line);
}

/* ---------- sections + curves ---------- */

.section {
    width: 100%;
    padding: clamp(3.4rem, 8vw, 5.5rem) 0;
}

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

.section-white {
    background: #fffdf6;
}

.section-leaf {
    background: var(--leaf-tint);
}

.section-honey {
    background: var(--honey-tint);
    position: relative;
    overflow: hidden;
}

.section-moss {
    background: linear-gradient(175deg, var(--moss) 0%, var(--moss-dark) 100%);
    color: #f2efdf;
}

.section-snug {
    padding-top: 2.5rem;
}

.curve {
    display: block;
    width: 100%;
    height: clamp(26px, 5vw, 58px);
    margin-bottom: -1px;
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    min-height: clamp(520px, 86vh, 780px);
    background-image:
        linear-gradient(180deg, rgba(30, 35, 20, 0.10) 30%, rgba(30, 35, 20, 0.72) 88%),
        var(--photo-src);
    background-size: cover;
    background-position: center 30%;
    display: flex;
    align-items: flex-end;
}

.hero-small {
    min-height: clamp(340px, 56vh, 560px);
}

.hero-inner {
    width: 100%;
    padding-bottom: clamp(4rem, 10vh, 7rem);
    color: var(--cream);
}

.hero-small .hero-inner {
    padding-bottom: clamp(3.4rem, 8vh, 5.5rem);
}

.hero-script {
    font-family: var(--font-script);
    font-weight: 600;
    font-size: clamp(1.5rem, 3.4vw, 2.1rem);
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.2rem;
}

.hero h1 {
    color: var(--cream);
    font-size: clamp(3.1rem, 9vw, 5.8rem);
    letter-spacing: 0.01em;
    text-shadow: 0 2px 24px rgba(20, 24, 12, 0.35);
}

.hero-small h1 {
    font-size: clamp(2.3rem, 6vw, 3.8rem);
}

.hero-tagline {
    color: rgba(251, 248, 238, 0.93);
    font-size: clamp(1.08rem, 2.4vw, 1.3rem);
    max-width: 620px;
    margin: 0.9rem 0 0;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.8rem;
}

.hero-curve {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    width: 100%;
    height: clamp(30px, 6vw, 64px);
    display: block;
}

/* back link in normal flow (admin pages without hero) */
.page-back-link {
    position: relative;
    z-index: 2;
    margin: 1.2rem 0 0 max(1.4rem, calc((100vw - 1140px) / 2));
}

/* overlaid on photo heroes */
.hero .page-back-link {
    position: absolute;
    top: 1.1rem;
    left: max(1.4rem, calc((100vw - 1140px) / 2));
    margin: 0;
}

/* ---------- cards ---------- */

.card {
    position: relative;
    background: var(--card-bg);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
    display: flex;
    flex-direction: column;
}

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

.card-photo-frame {
    position: relative;
}

.card-photo-clip {
    overflow: hidden;
    border-radius: 18px 18px 0 0;
}

/* works both as <img src> (object-fit) and as a background div (--photo-src) */
.card-photo {
    display: block;
    width: 100%;
    height: 215px;
    object-fit: cover;
    background-image: var(--photo-src);
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
}

.card:hover .card-photo {
    transform: scale(1.045);
}

/* placeholder crop/filter tuning for the shared title image; remove the
   modifiers once final per-slot photography is delivered */
.photo-breath {
    background-position: 15% 40%;
}

.photo-horses {
    background-position: 85% 55%;
    filter: saturate(1.08);
}

.photo-vet {
    background-position: 50% 75%;
    filter: sepia(0.18) saturate(0.95);
}

.card-body {
    padding: 1.4rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

.card-body h3 {
    font-size: 1.5rem;
}

.card-body p {
    margin: 0;
    flex: 1;
}

.card-pad {
    padding: 1.6rem 1.7rem;
    display: block;
}

.card-pad h2 {
    font-size: 1.35rem;
    margin-bottom: 0.7rem;
}

.split-2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.5rem, 4vw, 3rem);
}

/* ---------- service cards ---------- */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.6rem;
}

.service-kicker {
    font-family: var(--font-script);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--gold-deep);
    line-height: 1;
}

.card-body .link-arrow {
    margin-top: 0.4rem;
}

/* ---------- about ---------- */

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(2rem, 6vw, 4.5rem);
    align-items: center;
}

.about-photo-wrap {
    position: relative;
}

.about-photo {
    width: min(100%, 420px);
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    display: block;
    background-image: var(--photo-src);
    background-size: 190%;
    background-position: 42% 18%; /* placeholder crop for the shared title image */
    border-radius: 999px 999px 22px 22px;
    box-shadow: var(--shadow-soft);
}

.about-thistle {
    position: absolute;
    width: 130px;
    height: 220px;
    right: -12px;
    bottom: -30px;
    color: var(--moss);
    opacity: 0.16;
    pointer-events: none;
}

.about-quote {
    font-family: var(--font-script);
    font-weight: 600;
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    color: var(--moss);
    margin: 1.4rem 0 0.2rem;
}

.about-signature {
    font-family: var(--font-script);
    font-weight: 600;
    font-size: 1.7rem;
    color: var(--gold-deep);
    margin-top: 1.2rem;
}

.about-text p + p {
    margin-top: 0.9rem;
}

/* ---------- courses ---------- */

.courses-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pill {
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--moss);
    border-radius: 999px;
    padding: 0.42rem 1.1rem;
    background: transparent;
    color: var(--moss);
    transition: background 0.2s ease, color 0.2s ease;
}

.pill:hover {
    background: rgba(74, 90, 56, 0.10);
}

.pill.active {
    background: var(--moss);
    color: var(--cream);
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.6rem;
}

.course-card-photo {
    height: 180px;
}

.date-block {
    position: absolute;
    left: 14px;
    bottom: -24px;
    background: var(--card-bg);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    text-align: center;
    padding: 0.5rem 0.9rem 0.45rem;
    line-height: 1.05;
}

.date-block .day {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--moss);
    display: block;
}

.date-block .month {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--gold-deep);
    text-transform: uppercase;
    white-space: nowrap;
}

.type-chip {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.22rem 0.75rem;
    backdrop-filter: blur(2px);
}

.chip-breathwork {
    background: rgba(255, 205, 60, 0.92);
    color: #5a4200;
}

.chip-kone {
    background: rgba(176, 219, 114, 0.92);
    color: #2e3d14;
}

.course-body {
    padding-top: 1.9rem; /* clears the overhanging date block */
}

.course-place {
    font-size: 0.95rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.course-place svg {
    width: 14px;
    height: 14px;
    flex: none;
}

.course-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    flex-wrap: wrap;
    margin-top: 0.9rem;
}

.course-price {
    font-weight: 700;
    color: var(--bark);
}

.courses-empty {
    color: var(--muted);
    font-style: italic;
}

/* ---------- steps (Jak setkání probíhá) ---------- */

.step-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.6rem;
}

.step-card {
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 1.6rem 1.7rem;
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--moss);
    color: var(--cream);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.25rem;
    margin-bottom: 0.9rem;
}

.step-card h3 {
    font-size: 1.25rem;
}

.step-card p {
    margin: 0.5rem 0 0;
}

/* ---------- FAQ ---------- */

.faq-list {
    display: grid;
    gap: 0.75rem;
    max-width: 860px;
}

.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1rem 1.2rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--bark);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--moss);
    border-bottom: 2px solid var(--moss);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-right: 3px;
}

.faq-item[open] summary::after {
    transform: rotate(225deg);
}

.faq-item p {
    margin: 0.8rem 0 0;
}

/* animated expand/collapse where supported (interpolate-size + ::details-content);
   other browsers toggle instantly, which is fine */
.faq-item {
    interpolate-size: allow-keywords;
}

.faq-item::details-content {
    opacity: 0;
    block-size: 0;
    overflow-y: clip;
    transition: content-visibility 0.3s allow-discrete, opacity 0.3s ease, block-size 0.3s ease;
}

.faq-item[open]::details-content {
    opacity: 1;
    block-size: auto;
}

/* ---------- info table ---------- */

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table th,
.info-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.info-table th {
    width: 34%;
    color: var(--muted);
    font-weight: 600;
}

/* ---------- forms ---------- */

.form-grid {
    display: grid;
    gap: 0.85rem;
}

.form-grid input[type="text"],
.form-grid input[type="email"],
.form-grid input[type="password"],
.form-grid input[type="number"],
.form-grid input[type="date"],
.form-grid select,
.form-grid textarea,
.modal textarea {
    width: 100%;
    font: inherit;
    color: var(--bark);
    background: var(--card-bg);
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.modal textarea:focus {
    outline: none;
    border-color: var(--moss);
    box-shadow: 0 0 0 3px rgba(74, 90, 56, 0.18);
}

.form-grid textarea,
.modal textarea {
    min-height: 130px;
    resize: vertical;
}

.form-grid .btn {
    justify-self: start;
}

.form-card {
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 1.7rem 1.8rem;
    max-width: 720px;
}

.registration-form {
    max-width: 720px;
}

.pref-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.pref {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    border: 1.5px solid var(--line);
    background: var(--card-bg);
    border-radius: 999px;
    padding: 0.42rem 1rem;
    font-weight: 600;
    color: var(--muted);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
    user-select: none;
}

.pref input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* check/cross indicator driven by the selection state */
.pref::before {
    content: "✕";
    font-size: 0.8em;
    font-weight: 700;
    line-height: 1;
    color: var(--muted);
    opacity: 0.55;
}

.pref:has(input:checked) {
    border-color: var(--moss);
    color: var(--moss);
    background: var(--leaf-tint);
}

.pref:has(input:checked)::before {
    content: "✓";
    color: var(--moss);
    opacity: 1;
}

.pref:has(input:focus-visible) {
    outline: 3px solid var(--thistle);
    outline-offset: 2px;
}

.contact-note {
    font-family: var(--font-script);
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--gold-deep);
    margin-top: 1rem;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-row input {
    width: auto;
    accent-color: var(--moss);
}

.field-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.field-error {
    color: #8f1724;
    font-size: 0.9rem;
}

/* ---------- testimonials (moss band) ---------- */

.section-moss .section-head h2 {
    color: #f6f3e4;
}

.section-moss .kicker {
    color: var(--leaf);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.6rem, 4vw, 3rem);
}

.testimonial blockquote {
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 1.18rem;
    line-height: 1.65;
    color: #f2efdf;
}

.testimonial .quote-mark {
    font-family: var(--font-display);
    font-size: 4rem;
    line-height: 0.6;
    color: var(--gold);
    display: block;
    margin-bottom: 0.9rem;
}

.testimonial .author {
    font-family: var(--font-script);
    font-weight: 600;
    font-size: 1.45rem;
    color: var(--leaf);
    margin-top: 1rem;
    display: block;
}

/* ---------- contact + newsletter ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    position: relative;
    z-index: 1;
}

.contact-grid .form-grid {
    margin-top: 1.4rem;
}

.contact-intro {
    margin: 0.8rem 0 0;
}

.honey-thistle {
    position: absolute;
    right: -30px;
    bottom: -50px;
    width: 260px;
    height: 440px;
    color: var(--gold-deep);
    opacity: 0.10;
    pointer-events: none;
}

/* ---------- flash (dialog with JS, plain top bar without) ---------- */

.flash {
    max-width: 1140px;
    border-radius: 14px;
    padding: 0.85rem 1.2rem;
    margin: 1rem auto;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.flash-text {
    margin: 0;
    color: inherit;
}

.flash-close {
    display: none;
}

.flash-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.flash-icon svg {
    width: 15px;
    height: 15px;
}

.flash-success {
    background: var(--leaf-tint);
    color: var(--moss-dark);
}

.flash-success .flash-icon {
    background: rgba(176, 219, 114, 0.55);
    color: var(--moss-dark);
}

.flash-error {
    background: #f9e3de;
    color: #8f1724;
}

.flash-error .flash-icon {
    background: rgba(143, 23, 36, 0.12);
    color: #8f1724;
}

.flash-info {
    background: var(--honey-tint);
    color: var(--bark);
}

.flash-info .flash-icon {
    background: rgba(217, 159, 0, 0.18);
    color: var(--gold-deep);
}

.js .flash-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(59, 58, 44, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.4rem;
}

.js .flash-overlay .flash {
    position: relative;
    flex-direction: column;
    text-align: center;
    gap: 0.9rem;
    margin: 0;
    width: min(100%, 460px);
    background: var(--card-bg);
    color: var(--bark);
    border-radius: 18px;
    box-shadow: var(--shadow-lift);
    padding: 2.2rem 2.4rem 2rem;
    animation: flash-pop 0.25s ease;
}

.js .flash-overlay .flash-icon {
    width: 52px;
    height: 52px;
}

.js .flash-overlay .flash-icon svg {
    width: 24px;
    height: 24px;
}

.js .flash-overlay .flash-text {
    font-size: 1.05rem;
    line-height: 1.55;
}

.js .flash-overlay .flash-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0.7rem;
    right: 0.7rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.js .flash-overlay .flash-close:hover {
    background: var(--cream);
    color: var(--bark);
}

@keyframes flash-pop {
    from {
        opacity: 0;
        scale: 0.94;
    }

    to {
        opacity: 1;
        scale: 1;
    }
}

.status-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 0.3rem 0.85rem;
    font-size: 0.85rem;
    margin-bottom: 0.7rem;
    font-weight: 700;
}

.status-published {
    background: rgba(176, 219, 114, 0.92);
    color: #2e3d14;
}

.status-draft {
    background: rgba(251, 248, 238, 0.95);
    color: var(--bark);
    border: 1px solid var(--line);
}

.status-canceled {
    background: #f3d9d3;
    color: #7f2a2a;
}

.notice-canceled {
    background: #f9e3de;
    color: #8f1724;
    border-radius: 14px;
    padding: 0.9rem 1.2rem;
    max-width: 720px;
}

/* ---------- footer ---------- */

.footer {
    background: var(--moss-dark);
    color: rgba(251, 248, 238, 0.88);
    padding: 3.2rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer a {
    color: rgba(251, 248, 238, 0.88);
    text-decoration: none;
}

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

.footer p {
    color: inherit;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 1fr) minmax(160px, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.footer-brand {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.7rem;
    color: var(--cream);
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.footer-brand-mark {
    width: 24px;
    height: 40px;
    color: var(--leaf);
}

.footer-tag {
    margin: 0.7rem 0 0;
    color: rgba(251, 248, 238, 0.62);
    font-size: 0.96rem;
    max-width: 300px;
}

.footer h4 {
    margin: 0 0 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--leaf);
}

.footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    font-size: 0.96rem;
}

.footer-bottom {
    margin-top: 2.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(251, 248, 238, 0.16);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: rgba(251, 248, 238, 0.55);
    position: relative;
    z-index: 1;
}

.footer-admin {
    border: 1px solid rgba(251, 248, 238, 0.3);
    border-radius: 999px;
    padding: 0.3rem 0.95rem;
    font-size: 0.85rem;
}

.footer-thistle {
    position: absolute;
    right: 4%;
    top: -40px;
    width: 210px;
    height: 360px;
    color: var(--cream);
    opacity: 0.06;
    pointer-events: none;
}

/* ---------- admin topbar (shown on public pages too when signed in) ---------- */

.topbar {
    background: var(--moss-dark);
    color: var(--cream);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem max(1.4rem, calc((100vw - 1140px) / 2));
}

.brand {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
}

.brand-admin {
    font-size: 1.15rem;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.topbar .admin-link,
.topbar .link-button {
    background: rgba(251, 248, 238, 0.10);
    color: var(--cream);
    border: 1.5px solid rgba(251, 248, 238, 0.55);
    border-radius: 999px;
    padding: 0.35rem 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.topbar .admin-link:hover,
.topbar .link-button:hover {
    background: rgba(251, 248, 238, 0.22);
    border-color: rgba(251, 248, 238, 0.75);
}

/* admin login link outside the topbar (public footer) */
.admin-link {
    text-decoration: none;
}

/* ---------- back to top ---------- */

.back-to-top {
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: var(--moss);
    color: var(--cream);
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow-lift);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease;
    z-index: 50;
}

.back-to-top.visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.back-to-top:hover {
    background: var(--moss-dark);
}

/* ---------- reveal on scroll (scoped to html.js so content is never
   hidden without JavaScript; uses `translate` so it cannot fight the
   `transform`-based hover lifts) ---------- */

.js .reveal {
    opacity: 0;
    translate: 0 22px;
    transition: opacity 0.6s ease, translate 0.6s ease;
}

.js .reveal.in {
    opacity: 1;
    translate: none;
}

.js .reveal-d1 {
    transition-delay: 0.08s;
}

.js .reveal-d2 {
    transition-delay: 0.16s;
}

/* cards are revealed AND hover-animated: .reveal's transition shorthand would
   otherwise drop the transform/box-shadow transitions entirely, so list all
   four properties (reveal delays must not delay the hover response) */
.js .card.reveal {
    transition: opacity 0.6s ease, translate 0.6s ease, transform 0.45s ease, box-shadow 0.45s ease;
}

.js .card.reveal-d1 {
    transition-delay: 0.08s, 0.08s, 0s, 0s;
}

.js .card.reveal-d2 {
    transition-delay: 0.16s, 0.16s, 0s, 0s;
}

/* ---------- utilities ---------- */

.muted {
    color: var(--muted);
}

/* narrow readable column for legal/utility pages */
.prose {
    max-width: 720px;
}

.prose h1 {
    font-size: clamp(1.9rem, 3.6vw, 2.5rem);
    margin-bottom: 1rem;
}

.prose p + p {
    margin-top: 0.9rem;
}

.prose .btn {
    margin-top: 1.4rem;
}

.thistle-mini {
    width: 22px;
    height: 37px;
    flex: none;
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .js .reveal {
        opacity: 1;
        translate: none;
        transition: none;
    }

    .card,
    .card-photo,
    .btn,
    .back-to-top,
    .link-arrow {
        transition: none;
    }

    .faq-item::details-content {
        transition: none;
    }

    .js .flash-overlay .flash {
        animation: none;
    }
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
    .about-grid,
    .contact-grid,
    .split-2 {
        grid-template-columns: 1fr;
    }

    .about-photo-wrap {
        order: -1;
    }

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

    .courses-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .brand {
        font-size: 1.35rem;
    }
}

