/* =========================================================
   Buratino Mokyklėlė — main stylesheet
   ========================================================= */

/* ----- Self-hosted fonts (variable, woff2) ----- */
@font-face {
    font-family: "Newsreader";
    src: url("../fonts/newsreader-variable.woff2") format("woff2-variations"),
         url("../fonts/newsreader-variable.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Newsreader";
    src: url("../fonts/newsreader-variable-italic.woff2") format("woff2-variations"),
         url("../fonts/newsreader-variable-italic.woff2") format("woff2");
    font-weight: 200 800;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url("../fonts/dm-sans-variable.woff2") format("woff2-variations"),
         url("../fonts/dm-sans-variable.woff2") format("woff2");
    font-weight: 100 1000;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "DM Sans";
    src: url("../fonts/dm-sans-variable-italic.woff2") format("woff2-variations"),
         url("../fonts/dm-sans-variable-italic.woff2") format("woff2");
    font-weight: 100 1000;
    font-style: italic;
    font-display: swap;
}

:root {
    /* Palette — clean white base with brand accents */
    --bg: #FFFFFF;
    --bg-soft: #F7F7F4;
    --bg-deep: #EFEFEA;
    --paper: #FFFFFF;

    --ink: #1F2A2E;
    --ink-soft: #4F5A5E;
    --ink-mute: #8A8F90;
    --line: #E8E8E2;

    --primary: #09B0DA;       /* turquoise (logo blob) */
    --primary-dark: #0788AB;
    --primary-soft: #CEEDF7;

    --secondary: #6A2367;     /* deep purple */
    --secondary-soft: #E8D6E7;

    --accent: #E0E237;        /* lime yellow (logo squiggle) */
    --accent-soft: #F4F5BB;

    --coral: #F58A4F;
    --plum: #6A2367;
    --leaf: #8ABC5B;

    /* Type */
    --font-display: "Newsreader", "Times New Roman", Georgia, serif;
    --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Spacing & radii */
    --container: 1240px;
    --container-narrow: 820px;
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 32px;
    --radius-pill: 999px;

    /* Shadows */
    --shadow-sm: 0 6px 16px -8px rgba(31, 42, 46, 0.10);
    --shadow: 0 20px 50px -20px rgba(31, 42, 46, 0.18);
    --shadow-lg: 0 40px 80px -30px rgba(31, 42, 46, 0.25);

    /* Motion */
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================================================
   Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--primary); }
button { font: inherit; cursor: pointer; }
ul, ol { padding: 0; margin: 0; list-style: none; }
p { margin: 0 0 1em; }

::selection { background: var(--primary); color: var(--paper); }

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 0 .5em;
    font-weight: 500;
}
h1 { font-size: clamp(2.4rem, 5vw + .5rem, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3vw + .5rem, 3rem); }
h3 { font-size: clamp(1.3rem, 1.5vw + .4rem, 1.6rem); }

/* Screen reader only */
.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden; clip: rect(1px,1px,1px,1px);
    white-space: nowrap;
}
.skip-link {
    position: absolute; left: -9999px; top: 0;
    padding: 12px 18px; background: var(--ink); color: var(--paper);
    z-index: 10000; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* =========================================================
   Layout helpers
   ========================================================= */
.container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 15px;
}
.container--narrow { max-width: var(--container-narrow); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: "";
    width: 28px;
    height: 1.5px;
    background: var(--primary);
    border-radius: 2px;
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head .eyebrow { justify-content: center; }
.section-title {
    font-size: clamp(2rem, 3.4vw + .5rem, 3.4rem);
    margin-bottom: .4em;
    font-weight: 500;
}
.section-lead {
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 580px;
    margin: 0 auto;
}

/* =========================================================
   Buttons
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 500;
    letter-spacing: .01em;
    border: 1.5px solid transparent;
    border-radius: var(--radius-pill);
    transition: all .25s var(--ease);
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
}
.btn--primary {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.btn--primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--paper);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -12px rgba(214, 120, 73, 0.55);
}
.btn--primary svg { transition: transform .3s var(--ease); }
.btn--primary:hover svg { transform: translateX(4px); }

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

.btn--lg { padding: 18px 34px; font-size: 1.02rem; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.site-header.is-scrolled {
    border-color: rgba(31, 42, 46, 0.06);
    box-shadow: 0 6px 16px -10px rgba(31, 42, 46, 0.08);
}
.site-header__inner {
    max-width: none;
    margin: 0 auto;
    padding: 16px 15px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__logo { display: block; height: 56px; width: auto; max-width: 220px; }
.brand__mark { display: inline-block; flex-shrink: 0; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -0.01em;
    font-weight: 500;
}
.brand__tag {
    font-size: .72rem;
    color: var(--ink-soft);
    margin-top: 4px;
    letter-spacing: .06em;
}

.site-nav { display: flex; align-items: center; justify-content: center; }
.primary-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}
.primary-menu li a {
    display: inline-flex;
    padding: 10px 16px;
    font-size: .96rem;
    color: var(--ink);
    font-weight: 400;
    border-radius: var(--radius-pill);
    transition: background .2s var(--ease), color .2s var(--ease);
}
.primary-menu li a:hover,
.primary-menu .current-menu-item > a {
    background: var(--bg-soft);
    color: var(--primary);
}

.site-header__meta {
    display: flex;
    align-items: center;
    gap: 14px;
}

.site-header__phone {
    padding: 10px 18px;
    font-size: .9rem;
}
.site-header__phone svg { color: var(--primary); }

.lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: var(--bg-soft);
    border-radius: var(--radius-pill);
    list-style: none;
}
.lang-switcher__item a {
    display: inline-block;
    padding: 6px 10px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--ink-soft);
    border-radius: var(--radius-pill);
    transition: all .2s var(--ease);
}
.lang-switcher__item.is-current a,
.lang-switcher__item a:hover {
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 0;
    padding: 0;
    border-radius: 50%;
    margin-left: auto;
    transition: background .2s var(--ease);
}
.nav-toggle:hover { background: var(--bg-soft); }
.nav-toggle__bars {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 100%;
}
.nav-toggle__bars span {
    display: block;
    width: 22px;
    height: 1.8px;
    background: var(--ink);
    border-radius: 2px;
    transition: all .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* =========================================================
   Geometric shapes (decorative)
   ========================================================= */
.shape {
    position: absolute;
    pointer-events: none;
    will-change: transform;
}
.shape--circle {
    border-radius: 50%;
    background: var(--primary-soft);
}
.shape--dot {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: var(--accent);
}
.shape--blob { color: var(--secondary-soft); }
.shape--arch { color: var(--primary); opacity: 0.4; }
.shape--cross { color: var(--accent); opacity: 0.5; }

@keyframes float-a {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-22px) rotate(8deg); }
}
@keyframes float-b {
    0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
    50% { transform: translateY(18px) translateX(-10px) rotate(-6deg); }
}
@keyframes float-c {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(15deg) scale(1.08); }
}
@keyframes float-d {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(14px); }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    padding: 80px 0 120px;
    overflow: hidden;
}
.hero__shapes { position: absolute; inset: 0; }
.shape--1 {
    width: 380px; height: 380px;
    top: -120px; right: -80px;
    background: var(--secondary-soft);
    animation: float-a 9s ease-in-out infinite;
}
.shape--2 {
    width: 260px; height: 260px;
    bottom: 60px; left: -60px;
    animation: float-b 11s ease-in-out infinite;
}
.shape--3 {
    width: 140px; height: 140px;
    top: 50%; left: 6%;
    animation: float-c 13s ease-in-out infinite;
}
.shape--4 {
    width: 20px; height: 20px;
    top: 24%; right: 10%;
    animation: float-d 6s ease-in-out infinite;
}
.shape--5 {
    width: 28px; height: 28px;
    bottom: 22%; right: 18%;
    animation: float-c 8s ease-in-out infinite;
}

.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}
.hero__content { position: relative; z-index: 2; }
.hero__title {
    font-size: clamp(2.6rem, 5.5vw + .5rem, 5.4rem);
    line-height: 1.02;
    margin-bottom: .35em;
    font-weight: 500;
}
.hero__accent {
    position: relative;
    display: inline-block;
    font-style: italic;
    color: var(--primary);
    font-weight: 500;
    z-index: 1;
    white-space: nowrap;
    padding: 0 0.2em;
}
.hero__accent-bg {
    position: absolute;
    inset: 10% 0 6% 0;
    background: var(--accent-soft);
    border-radius: var(--radius-pill);
    z-index: -1;
    transform: skewX(-4deg);
    animation: hi-light 1.2s var(--ease-out) .8s both;
}
@keyframes hi-light {
    0% { transform: skewX(-4deg) scaleX(0); transform-origin: left; }
    100% { transform: skewX(-4deg) scaleX(1); transform-origin: left; }
}
.hero__text {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 520px;
    margin-bottom: 2rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 3rem; }
.hero__facts {
    display: flex;
    gap: 48px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}
.hero__facts li { display: flex; flex-direction: column; gap: 2px; }
.hero__facts strong {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--primary);
    font-weight: 500;
    line-height: 1;
}
.hero__facts span {
    font-size: .82rem;
    color: var(--ink-soft);
    letter-spacing: .03em;
}

/* Hero visual */
.hero__visual {
    position: relative;
    z-index: 2;
    aspect-ratio: 4 / 5;
    max-width: 480px;
    margin-left: auto;
    /* Always visible (overrides .reveal initial state for above-the-fold content) */
    opacity: 1 !important;
    transform: none !important;
}
.hero__photo-frame {
    position: relative;
    width: 100%;
    height: 100%;
}
.hero__photo {
    position: absolute;
    inset: 0;
    border-radius: 50% 50% 46% 54% / 60% 40% 60% 40%;
    background-color: var(--primary-soft);
    box-shadow: var(--shadow-lg);
    animation: blob-morph 14s ease-in-out infinite;
    overflow: hidden;
}
.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
@keyframes blob-morph {
    0%, 100% { border-radius: 50% 50% 46% 54% / 60% 40% 60% 40%; }
    33% { border-radius: 46% 54% 50% 50% / 40% 60% 40% 60%; }
    66% { border-radius: 54% 46% 60% 40% / 50% 50% 46% 54%; }
}
.hero__photo-dot {
    position: absolute;
    width: 80px; height: 80px;
    background: var(--accent);
    border-radius: 50%;
    top: -20px; left: -30px;
    box-shadow: 0 20px 40px -10px rgba(232, 181, 71, 0.55);
    animation: float-a 7s ease-in-out infinite;
}
.hero__photo-ring {
    position: absolute;
    width: 120px; height: 120px;
    border: 3px dashed var(--secondary);
    border-radius: 50%;
    bottom: -30px; right: -30px;
    opacity: 0.45;
    animation: spin 28s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.hero__badge {
    position: absolute;
    bottom: 20px; left: -40px;
    width: 120px; height: 120px;
    background: var(--paper);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    color: var(--ink);
    animation: spin 20s linear infinite reverse;
}

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    width: 24px; height: 40px;
    border: 1.5px solid var(--ink-soft);
    border-radius: 14px;
    opacity: .5;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}
.hero__scroll span {
    width: 3px; height: 8px;
    background: var(--ink-soft);
    border-radius: 2px;
    animation: scroll-bounce 1.6s ease-in-out infinite;
}
@keyframes scroll-bounce {
    0%, 20% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(16px); opacity: 0; }
}

/* =========================================================
   Marquee stripe
   ========================================================= */
.stripe {
    background: var(--ink);
    color: var(--bg);
    padding: 22px 0;
    overflow: hidden;
}
.stripe__track { overflow: hidden; }
.stripe__inner {
    display: flex;
    align-items: center;
    gap: 22px;
    width: max-content;
    animation: marquee 38s linear infinite;
    white-space: nowrap;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.stripe__item {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    font-style: italic;
    font-weight: 500;
    color: var(--bg);
}
.stripe__dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* =========================================================
   Programs section
   ========================================================= */
.programs { padding: 120px 0; }
.programs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.program-card {
    position: relative;
    padding: 40px 32px 36px;
    background: var(--paper);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    transition: all .35s var(--ease);
    overflow: hidden;
}
.program-card::after {
    content: "";
    position: absolute;
    inset: auto -30% -50% auto;
    width: 280px; height: 280px;
    background: var(--bg-soft);
    border-radius: 50%;
    transition: transform .5s var(--ease);
    transform: scale(0);
    z-index: 0;
}
.program-card > * { position: relative; z-index: 1; }
.program-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: var(--shadow);
}
.program-card:hover::after { transform: scale(1); }

.program-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px; height: 70px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--radius);
    margin-bottom: 24px;
    transition: transform .35s var(--ease);
}
.program-card:hover .program-card__icon {
    transform: rotate(-6deg) scale(1.05);
}
.program-card--alt .program-card__icon {
    background: var(--secondary-soft);
    color: var(--secondary);
}
.program-card:nth-child(3) .program-card__icon {
    background: var(--accent-soft);
    color: var(--primary-dark);
}

.program-card__title {
    font-size: 1.6rem;
    margin-bottom: 6px;
}
.program-card__age {
    font-size: .82rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--secondary);
    font-weight: 500;
    margin-bottom: 16px;
}
.program-card__text {
    color: var(--ink-soft);
    font-size: .98rem;
    margin-bottom: 24px;
}
.program-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .92rem;
    font-weight: 500;
    color: var(--ink);
    padding-bottom: 4px;
    border-bottom: 1.5px solid var(--ink);
    transition: gap .25s var(--ease), color .25s var(--ease);
}
.program-card__link:hover {
    color: var(--primary);
    border-color: var(--primary);
    gap: 12px;
}

/* =========================================================
   About band
   ========================================================= */
.about-band {
    padding: 120px 0;
    background: var(--bg-soft);
    position: relative;
}
.about-band__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.photo-stack {
    position: relative;
    aspect-ratio: 5 / 6;
}
.photo-stack__shape {
    position: absolute;
    inset: 8% 8% 4% 4%;
    background: var(--accent);
    border-radius: var(--radius-lg);
    transform: rotate(-3deg);
    z-index: 0;
}
.photo-stack__main {
    position: absolute;
    inset: 0;
    background-color: var(--primary-soft);
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    z-index: 1;
    transition: transform .5s var(--ease);
}
.photo-stack:hover .photo-stack__main {
    transform: rotate(-1deg);
}
.photo-stack__small {
    position: absolute;
    right: -10%;
    bottom: -8%;
    width: 50%;
    aspect-ratio: 4 / 5;
    background-color: var(--secondary-soft);
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 2;
    border: 6px solid var(--bg-soft);
}

.about-band__content h2 { margin-bottom: 1rem; }
.about-band__content p { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 2rem; }

.checklist {
    display: grid;
    gap: 14px;
    margin: 0 0 2rem;
}
.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 1rem;
    color: var(--ink);
}
.checklist svg {
    flex-shrink: 0;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 5px;
    border-radius: 50%;
    box-sizing: content-box;
    margin-top: 2px;
}

/* =========================================================
   Locations
   ========================================================= */
.locations { padding: 120px 0; }
.locations__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.location-card {
    position: relative;
    padding: 40px 32px;
    background: var(--paper);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    transition: all .35s var(--ease);
    overflow: hidden;
}
.location-card:nth-child(2) {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.location-card:nth-child(2) h3 { color: var(--paper); }
.location-card:nth-child(2) .location-card__addr { color: rgba(250,246,238,0.7); }
.location-card:nth-child(2) .location-card__link { color: var(--accent); border-bottom-color: var(--accent); }
.location-card:nth-child(2) .location-card__num { color: var(--accent); }

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

.location-card__num {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: .1em;
    display: block;
    margin-bottom: 24px;
    font-weight: 500;
}
.location-card h3 {
    font-size: 1.7rem;
    margin-bottom: 8px;
}
.location-card__addr {
    font-size: .98rem;
    color: var(--ink-soft);
    margin-bottom: 28px;
}
.location-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
    font-weight: 500;
    color: var(--ink);
    padding-bottom: 3px;
    border-bottom: 1.5px solid var(--ink);
    transition: gap .25s var(--ease);
}
.location-card__link:hover { gap: 12px; }
.location-card__link::after { content: "→"; }

/* =========================================================
   CTA
   ========================================================= */
.cta {
    position: relative;
    padding: 140px 0;
    background: var(--ink);
    color: var(--paper);
    overflow: hidden;
    text-align: center;
}
.cta__shape {
    position: absolute;
    inset: -10% -10% auto -10%;
    color: var(--primary);
    z-index: 0;
    opacity: 0.4;
}
.cta__inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta__title {
    color: var(--paper);
    font-size: clamp(2.2rem, 4vw + .5rem, 3.6rem);
    margin-bottom: 1rem;
    font-weight: 500;
}
.cta__title em {
    font-style: italic;
    color: var(--accent);
}
.cta__text {
    color: rgba(250,246,238,0.78);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}
.cta__btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta .btn--primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--paper);
}
.cta .btn--primary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--ink);
}
.cta .btn--ghost {
    color: var(--paper);
    border-color: rgba(250,246,238,0.4);
}
.cta .btn--ghost:hover {
    background: var(--paper);
    color: var(--ink);
    border-color: var(--paper);
}

/* =========================================================
   Page Hero (inner pages)
   ========================================================= */
.page-hero {
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
}
.page-hero--small { padding: 80px 0 60px; }
.page-hero__shapes { position: absolute; inset: 0; pointer-events: none; }
.shape--ph1 {
    width: 260px; height: 260px;
    top: -60px; right: -40px;
    background: var(--accent-soft);
    border-radius: 50%;
    animation: float-a 10s ease-in-out infinite;
}
.shape--ph2 {
    width: 180px; height: 180px;
    bottom: -40px; left: -20px;
    color: var(--secondary-soft);
    animation: float-b 12s ease-in-out infinite;
}
.shape--ph3 {
    width: 16px; height: 16px;
    top: 30%; right: 12%;
    animation: float-d 7s ease-in-out infinite;
}
.page-hero__title {
    font-size: clamp(2.4rem, 5vw + .5rem, 4.4rem);
    max-width: 880px;
    font-weight: 500;
}
.page-hero__title em {
    font-style: italic;
    color: var(--primary);
}
.page-hero__lead {
    font-size: 1.2rem;
    color: var(--ink-soft);
    max-width: 640px;
    margin-top: 1rem;
}

/* Breadcrumbs */
.breadcrumbs {
    font-size: .85rem;
    color: var(--ink-mute);
    margin-bottom: 1.5rem;
}
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .breadcrumb_last { color: var(--ink); }

/* =========================================================
   Page content / prose
   ========================================================= */
.page-content { padding: 60px 0 140px; position: relative; }
.prose {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--ink);
}
.prose h2 {
    font-size: clamp(1.6rem, 2vw + .5rem, 2.2rem);
    margin: 2.5em 0 .6em;
}
.prose h3 {
    font-size: 1.35rem;
    margin: 2em 0 .5em;
}
.prose p { margin: 0 0 1.2em; color: var(--ink-soft); }
.prose ul, .prose ol {
    margin: 0 0 1.5em;
    padding-left: 0;
    list-style: none;
}
.prose ul li, .prose ol li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 12px;
    color: var(--ink-soft);
}
.prose ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 18px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}
.prose ol { counter-reset: prose-counter; }
.prose ol li { counter-increment: prose-counter; }
.prose ol li::before {
    content: counter(prose-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-display);
    color: var(--primary);
    font-weight: 500;
    font-size: .95rem;
}
.prose blockquote {
    margin: 2em 0;
    padding: 1.5em 1.5em 1.5em 2em;
    background: var(--bg-soft);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--ink);
    font-weight: 500;
}
.prose a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}
.prose img {
    border-radius: var(--radius);
    margin: 2em 0;
}
.single-thumb {
    margin: 0 0 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.single-thumb img { width: 100%; height: auto; display: block; }

/* =========================================================
   Values grid (About page)
   ========================================================= */
.values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 4rem;
}
.value-card {
    padding: 32px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: all .3s var(--ease);
}
.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.value-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px; height: 56px;
    background: var(--accent-soft);
    color: var(--primary-dark);
    border-radius: var(--radius);
    margin-bottom: 18px;
}
.value-card:nth-child(2n) .value-card__icon { background: var(--secondary-soft); color: var(--secondary); }
.value-card h3 { font-size: 1.3rem; margin-bottom: .35em; }
.value-card p { color: var(--ink-soft); margin: 0; font-size: .98rem; }

/* =========================================================
   Contact page
   ========================================================= */
.contact-section { padding: 60px 0 140px; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    margin-bottom: 80px;
}
.contact-info__title {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}
.contact-item:last-of-type { border-bottom: 0; }
.contact-item__icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.contact-item__label {
    display: block;
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink-mute);
    margin-bottom: 4px;
}
.contact-item__value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--ink);
    font-weight: 500;
}
.contact-item__value:hover { color: var(--primary); }

.contact-hours {
    margin-top: 2.5rem;
    padding: 28px;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
}
.contact-hours h3 { font-size: 1.2rem; margin-bottom: .8em; }
.contact-hours p { margin: 4px 0; color: var(--ink-soft); }
.contact-hours strong { color: var(--ink); margin-right: 4px; }

.loc-item {
    padding: 28px 32px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    position: relative;
    transition: all .3s var(--ease);
}
.loc-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary);
}
.loc-item__num {
    position: absolute;
    top: 28px;
    right: 32px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 500;
}
.loc-item h3 { font-size: 1.4rem; margin-bottom: 4px; }
.loc-item p { margin: 0; color: var(--ink-soft); }

/* =========================================================
   Posts (blog grid)
   ========================================================= */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.post-card {
    background: var(--paper);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    transition: all .3s var(--ease);
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card__thumb {
    display: block;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--bg-soft);
}
.post-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .post-card__thumb img { transform: scale(1.04); }
.post-card__body { padding: 26px 28px 30px; }
.post-card__date { font-size: .8rem; color: var(--ink-mute); letter-spacing: .05em; }
.post-card__title { font-size: 1.4rem; margin: 8px 0 12px; }
.post-card__title a:hover { color: var(--primary); }
.post-card__excerpt { color: var(--ink-soft); font-size: .96rem; margin-bottom: 16px; }
.post-card__link { font-weight: 500; color: var(--ink); border-bottom: 1.5px solid var(--ink); padding-bottom: 2px; }
.post-card__link:hover { color: var(--primary); border-color: var(--primary); }

.pagination-wrap { margin-top: 60px; text-align: center; }
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px; height: 40px;
    padding: 0 14px;
    margin: 0 4px;
    border-radius: var(--radius-pill);
    background: var(--paper);
    border: 1px solid var(--line);
    font-size: .95rem;
}
.page-numbers.current { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.page-numbers:hover:not(.current) { background: var(--bg-soft); }

/* =========================================================
   404
   ========================================================= */
.error-404 {
    position: relative;
    padding: 140px 0;
    text-align: center;
    overflow: hidden;
}
.error-404__shapes { position: absolute; inset: 0; pointer-events: none; }
.shape--e1 {
    width: 360px; height: 360px;
    top: -80px; right: -80px;
    color: var(--primary-soft);
    animation: float-a 10s ease-in-out infinite;
}
.shape--e2 {
    width: 220px; height: 220px;
    bottom: -60px; left: -60px;
    background: var(--secondary-soft);
    border-radius: 50%;
    animation: float-b 12s ease-in-out infinite;
}
.error-404__title {
    font-size: clamp(3rem, 7vw, 6rem);
    margin-bottom: .4em;
    font-weight: 500;
}
.error-404__text {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 540px;
    margin: 0 auto 2rem;
}

/* =========================================================
   Search form
   ========================================================= */
.search-form {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
    max-width: 580px;
}
.search-form__input {
    flex: 1;
    padding: 14px 22px;
    font: inherit;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    color: var(--ink);
}
.search-form__input:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-color: var(--primary);
}
.search-form__btn {
    padding: 14px 24px;
    background: var(--ink);
    color: var(--paper);
    border: 0;
    border-radius: var(--radius-pill);
    font-weight: 500;
    transition: background .2s var(--ease);
}
.search-form__btn:hover { background: var(--primary); }

.empty { color: var(--ink-soft); padding: 40px 0; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer {
    position: relative;
    padding: 80px 0 40px;
    background: var(--bg-soft);
    overflow: hidden;
}
.footer-shape {
    position: absolute;
    top: 0; left: 0; right: 0;
    transform: translateY(-99%);
    line-height: 0;
}
.site-footer__inner { max-width: none; margin: 0 auto; padding: 0 15px; position: relative; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--line);
}
.footer-col--brand { max-width: 320px; }
.brand--footer { margin-bottom: 16px; }
.brand--footer .brand__logo { height: 64px; max-width: 260px; }
.footer-tagline {
    color: var(--ink-soft);
    font-size: .98rem;
    margin: 0 0 1.4rem;
}
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 500;
    font-size: .95rem;
}
.social-link svg { color: var(--primary); }
.social-link:hover { color: var(--primary); }

.footer-heading {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 1.2rem;
    font-weight: 500;
}
.footer-list li {
    margin-bottom: 14px;
    font-size: .96rem;
    color: var(--ink-soft);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.footer-list strong {
    color: var(--ink);
    font-weight: 500;
    font-size: .9rem;
}
.footer-list--contact li a { color: var(--ink); font-weight: 500; }
.footer-list--contact li a:hover { color: var(--primary); }

.footer-bottom {
    padding-top: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}
.footer-copyright { font-size: .85rem; color: var(--ink-mute); margin: 0; }
.footer-menu {
    display: flex;
    gap: 24px;
    font-size: .85rem;
}
.footer-menu a { color: var(--ink-soft); }
.footer-menu a:hover { color: var(--primary); }

/* =========================================================
   Reveal animations
   ========================================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* Founders photo (Apie mus) */
.founders {
    margin: 2.5em 0 3em;
    text-align: center;
}
.founders img {
    width: 100%;
    max-width: 680px;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    margin: 0 auto;
}
.founders figcaption {
    margin-top: 1em;
    color: var(--ink-soft);
    font-style: italic;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
}
.founders__signoff {
    margin: 2em 0 !important;
    text-align: right;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 500;
}
.prose__lead {
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--ink);
    margin: 0 0 1.8em !important;
    font-family: var(--font-display);
    font-weight: 500;
}

/* =========================================================
   Maps (Contact page)
   ========================================================= */
.maps {
    padding: 60px 0 120px;
    background: var(--bg-soft);
}
.maps__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.map-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .3s var(--ease);
}
.map-card:hover { box-shadow: var(--shadow); }
.map-card__head { padding: 26px 28px 18px; }
.map-card__num {
    font-family: var(--font-display);
    font-size: .92rem;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: .1em;
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}
.map-card__title { font-size: 1.5rem; margin: 0 0 6px; }
.map-card__addr { color: var(--ink-soft); margin: 0; font-size: .96rem; }
.map-card__embed {
    aspect-ratio: 4 / 3;
    background: var(--bg-soft);
    overflow: hidden;
}
.map-card__embed iframe { display: block; }
.map-card__link {
    padding: 16px 28px 22px;
    color: var(--ink);
    font-weight: 500;
    font-size: .92rem;
    text-decoration: none;
    border-top: 1px solid var(--line);
    margin-top: auto;
    transition: color .25s var(--ease), background .25s var(--ease);
}
.map-card__link:hover { color: var(--primary); background: var(--bg-soft); }

@media (max-width: 960px) {
    .maps__grid { grid-template-columns: 1fr; }
    .maps { padding: 50px 0 80px; }
}

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
.testimonial-card {
    position: relative;
    padding: 36px 32px;
    margin: 0;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.testimonial-card__quote {
    color: var(--primary);
    opacity: 0.85;
    margin-bottom: 18px;
}
.testimonial-card__text {
    margin: 0 0 24px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1.55;
    color: var(--ink);
    font-weight: 500;
}
.testimonial-card__text p { margin: 0; }
.testimonial-card__author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.testimonial-card__author strong {
    font-weight: 500;
    color: var(--ink);
    font-size: .98rem;
}
.testimonial-card__author span {
    color: var(--ink-soft);
    font-size: .85rem;
}

@media (max-width: 600px) {
    .testimonials { padding: 70px 0; }
    .testimonial-card { padding: 28px 24px; }
    .testimonial-card__text { font-size: 1.02rem; }
}

/* =========================================================
   Gallery
   ========================================================= */
.gallery {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}
.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.gallery__item {
    margin: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-soft);
    position: relative;
    cursor: pointer;
}
.gallery__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(31, 42, 46, 0.35));
    opacity: 0;
    transition: opacity .35s var(--ease);
    pointer-events: none;
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item img,
.gallery__item .gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease);
    display: block;
}
.gallery__item:hover img,
.gallery__item:hover .gallery__img { transform: scale(1.06); }

@media (max-width: 960px) {
    .gallery { padding: 70px 0; }
    .gallery__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .gallery__grid { grid-template-columns: 1fr; gap: 14px; }
}

/* =========================================================
   FAQ (DUK)
   ========================================================= */
.faq {
    padding: 100px 0 120px;
    background: var(--bg-soft);
    position: relative;
    overflow: hidden;
}
.faq__shapes { position: absolute; inset: 0; pointer-events: none; }
.shape--fq1 {
    width: 200px; height: 200px;
    top: 8%; right: -50px;
    background: var(--accent-soft);
    border-radius: 50%;
    animation: float-a 11s ease-in-out infinite;
}
.shape--fq2 {
    width: 140px; height: 140px;
    bottom: 10%; left: -40px;
    background: var(--primary-soft);
    border-radius: 50%;
    opacity: .7;
    animation: float-b 13s ease-in-out infinite;
}
.faq__head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
    position: relative;
}
.faq__head .eyebrow { justify-content: center; }
.faq__title {
    font-size: clamp(1.9rem, 3vw + .5rem, 2.8rem);
    margin-bottom: .4em;
    font-weight: 500;
}
.faq__lead {
    color: var(--ink-soft);
    font-size: 1.05rem;
}

.faq__list {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
}

.faq-item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq-item[open] {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}
.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 26px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ink);
    list-style: none;
    transition: color .2s var(--ease);
    font-weight: 500;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1;
    transition: transform .3s var(--ease), background .25s var(--ease);
}
.faq-item[open] summary::after {
    content: "−";
    background: var(--primary);
    color: var(--paper);
    transform: rotate(180deg);
}
.faq-item summary:hover { color: var(--primary); }
.faq-item summary:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 4px;
    border-radius: var(--radius);
}
.faq-item__answer {
    padding: 0 26px 24px;
    color: var(--ink-soft);
    line-height: 1.7;
    font-size: 1rem;
}
.faq-item__answer p { margin: 0 0 .8em; }
.faq-item__answer p:last-child { margin-bottom: 0; }
.faq-item__answer a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* =========================================================
   Inner page layout components
   ========================================================= */

/* Two-column layout: main content + sticky sidebar */
.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 60px;
    align-items: start;
    max-width: 1280px;
    margin: 0 auto;
}
.page-main {
    min-width: 0;
}
.page-main > .prose {
    max-width: none;
}
.page-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    width: 100%;
}

/* Prose wrapper - kept for backward compat, narrow centered */
.prose-wrap {
    max-width: var(--container-narrow);
    margin: 0 auto;
}

/* Sidebar cards */
.sidebar-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 26px;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.sidebar-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.sidebar-card__eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: .6em;
}
.sidebar-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--ink);
    margin: 0 0 .8em;
    font-weight: 500;
    line-height: 1.25;
}
.sidebar-card dl {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0;
}
.sidebar-card dl > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--line);
}
.sidebar-card dl > div:last-child { border-bottom: none; padding-bottom: 0; }
.sidebar-card dt {
    font-size: .85rem;
    color: var(--ink-soft);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.sidebar-card dd {
    margin: 0;
    color: var(--ink);
    font-weight: 600;
    text-align: right;
    font-size: .98rem;
}

.sidebar-card--primary { background: var(--primary-soft); border-color: transparent; }
.sidebar-card--secondary { background: var(--secondary-soft); border-color: transparent; }
.sidebar-card--accent { background: var(--accent-soft); border-color: transparent; }
.sidebar-card--ink {
    background: var(--ink);
    border-color: transparent;
    color: var(--paper);
}
.sidebar-card--ink .sidebar-card__eyebrow { color: var(--accent); }
.sidebar-card--ink .sidebar-card__title { color: var(--paper); }
.sidebar-card--ink p { color: rgba(255,255,255,.85); margin: 0 0 1em; }
.sidebar-card--ink p:last-of-type { margin-bottom: 1.5em; }

.sidebar-card__photo {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 5;
    margin: 0;
}
.sidebar-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1s var(--ease);
}
.sidebar-card__photo:hover img { transform: scale(1.05); }
.sidebar-card--photo {
    padding: 0;
    overflow: hidden;
}
.sidebar-card--photo figcaption {
    padding: 16px 22px;
    font-size: .88rem;
    color: var(--ink-soft);
    font-style: italic;
}

.sidebar-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    background: var(--paper);
    color: var(--ink);
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    transition: transform .25s var(--ease);
}
.sidebar-card__btn:hover { transform: translateX(4px); }
.sidebar-card--ink .sidebar-card__btn { background: var(--accent); }

/* Pull quote - editorial styled quote spanning content width */
.pull-quote {
    margin: 60px 0;
    padding: 40px 50px;
    border-left: 5px solid var(--primary);
    background: var(--bg-soft);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 1.5vw + .4rem, 1.6rem);
    line-height: 1.4;
    color: var(--ink);
    font-style: italic;
    position: relative;
}
.pull-quote::before {
    content: "\201C";
    position: absolute;
    top: -10px;
    left: 30px;
    font-size: 5rem;
    color: var(--primary);
    line-height: 1;
    font-family: Georgia, serif;
}
.pull-quote cite {
    display: block;
    margin-top: 1em;
    font-size: .9rem;
    color: var(--ink-soft);
    font-style: normal;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Visual schedule timeline */
.schedule-timeline {
    margin: 40px 0;
    position: relative;
}
.schedule-timeline::before {
    content: "";
    position: absolute;
    left: 70px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    opacity: .25;
}
.timeline-item {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 28px;
    padding: 14px 0;
    position: relative;
    align-items: start;
}
.timeline-item__time {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--primary);
    padding-right: 24px;
    text-align: right;
    position: relative;
    line-height: 1.3;
}
.timeline-item__time::after {
    content: "";
    position: absolute;
    right: -7px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--paper);
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 4px var(--bg);
}
.timeline-item__content h4 {
    margin: 0 0 .3em;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
}
.timeline-item__content p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.55;
    font-size: .96rem;
}

/* Stats / numbers row */
.page-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
    margin: 0 0 80px;
}
.page-stat {
    text-align: center;
    padding: 40px 28px;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.page-stat:nth-child(2) { background: var(--primary-soft); border-color: transparent; }
.page-stat:nth-child(3) { background: var(--secondary-soft); border-color: transparent; }
.page-stat:nth-child(4) { background: var(--accent-soft); border-color: transparent; }
.page-stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.page-stat__num {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 3vw + .6rem, 3.2rem);
    color: var(--ink);
    line-height: 1;
    margin: 0 0 .35em;
    display: block;
    font-weight: 500;
}
.page-stat__label {
    color: var(--ink);
    font-weight: 600;
    margin: 0 0 .3em;
    font-size: 1.02rem;
}
.page-stat__desc {
    color: var(--ink-soft);
    font-size: .92rem;
    line-height: 1.5;
    margin: 0;
}

/* Feature panel - photo + text */
.page-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin: 80px 0;
    padding: 40px;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}
.page-feature--reverse .page-feature__media { order: 2; }
.page-feature--primary { background: var(--primary-soft); }
.page-feature--secondary { background: var(--secondary-soft); }
.page-feature--accent { background: var(--accent-soft); }
.page-feature__media {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow);
}
.page-feature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 1.2s var(--ease);
}
.page-feature:hover .page-feature__media img { transform: scale(1.04); }
.page-feature__body h2 {
    margin-top: 0;
    margin-bottom: .6em;
    font-size: clamp(1.6rem, 2vw + .4rem, 2.2rem);
    color: var(--ink);
    font-weight: 500;
}
.page-feature__body p {
    color: var(--ink-soft);
    line-height: 1.7;
    margin: 0 0 1em;
    font-size: 1.05rem;
}
.page-feature__body p:last-child { margin-bottom: 0; }
.page-feature__eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--primary);
    margin-bottom: 1em;
    font-weight: 600;
}

/* Info cards grid */
.page-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin: 60px 0;
}
.page-info-card {
    padding: 36px 30px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
    position: relative;
}
.page-info-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.page-info-card__icon {
    width: 52px;
    height: 52px;
    background: var(--primary-soft);
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 18px;
    font-size: 1.4rem;
    transition: background .35s var(--ease);
}
.page-info-card:hover .page-info-card__icon {
    background: var(--primary);
    color: var(--paper);
}
.page-info-card__title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--ink);
    margin: 0 0 .5em;
    font-weight: 500;
}
.page-info-card__text {
    color: var(--ink-soft);
    line-height: 1.6;
    margin: 0;
    font-size: .98rem;
}

/* Section heading inside pages */
.page-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}
.page-section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw + .4rem, 2.6rem);
    color: var(--ink);
    margin: 0 0 .4em;
    font-weight: 500;
}
.page-section-head p {
    color: var(--ink-soft);
    font-size: 1.08rem;
    margin: 0;
}

/* Section block spacing */
.page-block { margin: 80px 0; }
.page-block:first-child { margin-top: 0; }
.page-block:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
    .page-layout { grid-template-columns: 1fr; gap: 40px; }
    .page-sidebar { position: static; top: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .page-main > .prose { max-width: none; }
}
@media (max-width: 900px) {
    .page-feature {
        grid-template-columns: 1fr;
        gap: 36px;
        padding: 32px 28px;
        margin: 60px 0;
    }
    .page-feature--reverse .page-feature__media { order: -1; }
    .page-stats { margin: 0 0 60px; gap: 16px; }
    .page-stat { padding: 30px 22px; }
    .page-info-grid { margin: 40px 0; }
    .page-info-card { padding: 28px 24px; }
    .page-block { margin: 60px 0; }
    .pull-quote { padding: 30px 28px; margin: 40px 0; }
    .timeline-item { grid-template-columns: 90px 1fr; gap: 18px; }
    .schedule-timeline::before { left: 48px; }
    .timeline-item__time { padding-right: 16px; font-size: .96rem; }
    .timeline-item__time::after { width: 11px; height: 11px; right: -5px; }
}

.faq__cta {
    text-align: center;
    margin-top: 70px;
    padding: 56px 36px;
    background: linear-gradient(135deg, var(--secondary-soft) 0%, var(--primary-soft) 100%);
    border-radius: var(--radius-lg);
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    border-top: none;
    position: relative;
    overflow: hidden;
}
.faq__cta::before {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: var(--accent-soft);
    border-radius: 50%;
    opacity: .5;
}
.faq__cta::after {
    content: "";
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 100px;
    height: 100px;
    background: var(--paper);
    border-radius: 50%;
    opacity: .4;
}
.faq__cta-inner { position: relative; z-index: 1; }
.faq__cta-icon {
    width: 70px;
    height: 70px;
    background: var(--paper);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    margin: 0 auto 22px;
    box-shadow: var(--shadow);
}
.faq__cta-icon svg { width: 32px; height: 32px; }
.faq__cta h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2vw + .4rem, 2rem);
    color: var(--ink);
    margin: 0 0 14px;
    font-weight: 500;
}
.faq__cta p {
    color: var(--ink-soft);
    margin: 0 0 28px;
    font-size: 1.08rem;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.faq__cta .faq__cta-actions {
    display: inline-flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 0;
}

@media (max-width: 600px) {
    .faq__cta { padding: 44px 22px; margin-top: 50px; }
}

/* Internal page CTA mini-banner */
.page-cta {
    margin: 60px 0;
    padding: 40px 36px;
    background: var(--primary-soft);
    border-radius: var(--radius-lg);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.page-cta__text {
    flex: 1;
    min-width: 260px;
}
.page-cta__text h3 {
    font-size: 1.5rem;
    margin: 0 0 .3em;
    color: var(--ink);
}
.page-cta__text p { margin: 0; color: var(--ink-soft); }
.page-cta--alt { background: var(--secondary-soft); }
.page-cta--accent { background: var(--accent-soft); }

@media (max-width: 600px) {
    .faq { padding: 70px 0 80px; }
    .faq-item summary { padding: 18px 20px; font-size: 1.05rem; gap: 16px; }
    .faq-item__answer { padding: 0 20px 20px; }
    .page-cta { padding: 28px 24px; }
}


@media (max-width: 1100px) {
    .hero__inner { gap: 60px; }
    .hero__visual { max-width: 400px; }
}

@media (max-width: 960px) {
    .site-header__inner { grid-template-columns: 1fr auto; gap: 16px; }
    .site-nav {
        order: 3;
        grid-column: 1 / -1;
    }
    .nav-toggle { display: inline-flex; }
    .primary-menu {
        position: fixed;
        inset: 76px 0 0;
        background: var(--bg);
        flex-direction: column;
        align-items: stretch;
        padding: 32px 28px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform .35s var(--ease);
        overflow-y: auto;
    }
    .primary-menu.is-open { transform: translateX(0); }
    .primary-menu li a {
        padding: 16px 18px;
        font-size: 1.1rem;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
    }
    .primary-menu li:last-child a { border-bottom: 0; }

    .site-header__meta .site-header__phone span { display: none; }
    .site-header__phone { padding: 10px; }

    .hero { padding: 60px 0 100px; }
    .hero__inner { grid-template-columns: 1fr; gap: 60px; }
    .hero__visual { max-width: 360px; margin: 0 auto; }
    .hero__facts { gap: 28px; }
    .hero__badge { width: 90px; height: 90px; bottom: 10px; left: -10px; }
    .hero__badge svg { width: 90px; height: 90px; }
    .hero__scroll { display: none; }

    .programs, .locations, .about-band { padding: 80px 0; }
    .programs__grid, .locations__grid, .post-grid { grid-template-columns: 1fr; }

    .about-band__grid { grid-template-columns: 1fr; gap: 60px; }
    .photo-stack { max-width: 480px; margin: 0 auto; }

    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .values { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer-col--brand { grid-column: 1 / -1; max-width: 100%; }

    .section-head { margin-bottom: 44px; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .container { padding: 0 20px; }

    .hero__facts { flex-wrap: wrap; gap: 22px; }
    .hero__facts strong { font-size: 1.8rem; }

    .program-card, .location-card, .loc-item { padding: 28px 24px; }
    .value-card { padding: 24px; }

    .cta { padding: 100px 0; }
    .stripe__item { font-size: 1.1rem; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Print */
@media print {
    .site-header, .site-footer, .hero__shapes, .cta, .nav-toggle { display: none !important; }
    body { background: #fff; color: #000; }
}

/* =========================================================
   News / Blog system
   ========================================================= */

/* News listing grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin: 40px 0 60px;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.news-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
    display: flex;
    flex-direction: column;
}
.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-soft);
}

.news-card__link {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.news-card__media {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-soft);
    position: relative;
}
.news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .8s var(--ease);
}
.news-card:hover .news-card__img { transform: scale(1.06); }

.news-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    opacity: .5;
    background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
}

.news-card__body {
    padding: 26px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.news-card__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
    font-size: .82rem;
    color: var(--ink-soft);
    font-family: var(--font-body);
    flex-wrap: wrap;
}
.news-card__date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-soft);
}
.news-card__cat {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-soft);
    color: var(--ink);
    border-radius: var(--radius-pill);
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.news-card__title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    line-height: 1.3;
    font-weight: 500;
    color: var(--ink);
    margin: 0 0 .6em;
    transition: color .25s var(--ease);
}
.news-card:hover .news-card__title { color: var(--primary); }

.news-card__excerpt {
    font-size: .96rem;
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0 0 18px;
    flex: 1;
}

.news-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--primary);
    transition: gap .25s var(--ease);
    margin-top: auto;
}
.news-card:hover .news-card__more { gap: 12px; }

/* Pagination */
.news-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 50px 0 20px;
    flex-wrap: wrap;
}
.news-pagination a,
.news-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.news-pagination a:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary);
}
.news-pagination .current {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

/* Empty state */
.news-empty {
    text-align: center;
    padding: 100px 20px;
    max-width: 540px;
    margin: 0 auto;
}
.news-empty__icon {
    color: var(--primary);
    opacity: .35;
    margin-bottom: 22px;
}
.news-empty h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    color: var(--ink);
    margin: 0 0 .5em;
    font-weight: 500;
}
.news-empty p {
    color: var(--ink-soft);
    line-height: 1.7;
    margin: 0 0 28px;
}

/* ============== Single post styles ============== */

.page-hero--post .page-hero__title {
    font-size: clamp(1.8rem, 3vw + .8rem, 2.8rem);
    max-width: 900px;
}

.post-hero__meta {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.post-hero__meta .eyebrow {
    margin-bottom: 0;
}
.post-hero__date,
.post-hero__cat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: .9rem;
    color: var(--ink-soft);
}
.post-hero__cat {
    padding: 6px 14px;
    background: var(--accent-soft);
    border-radius: var(--radius-pill);
    color: var(--ink);
    font-weight: 600;
}

.single-thumb {
    margin: 0 0 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
}
.single-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Tags */
.post-tags {
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.post-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-soft);
    color: var(--ink-soft);
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 500;
    transition: background .25s var(--ease), color .25s var(--ease);
}
.post-tag:hover { background: var(--primary-soft); color: var(--primary); }

/* Prev/Next navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 50px;
    padding-top: 36px;
    border-top: 1px solid var(--line);
}
.post-nav__link {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 22px 24px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
    min-height: 100px;
    justify-content: center;
}
.post-nav__link:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.post-nav__link--next { text-align: right; align-items: flex-end; }
.post-nav__arrow {
    color: var(--primary);
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1;
}
.post-nav__label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-soft);
    font-weight: 600;
}
.post-nav__title {
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1.35;
    color: var(--ink);
    font-weight: 500;
}

/* ============== Front-page news section ============== */

.news-section {
    padding: 100px 0;
    background: var(--bg-soft);
    position: relative;
    overflow: hidden;
}
.news-section__shapes {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.news-section .container {
    position: relative;
    z-index: 1;
}
.news-section .news-grid {
    margin-top: 50px;
    margin-bottom: 40px;
}
.news-section__footer {
    text-align: center;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .news-grid { grid-template-columns: 1fr; gap: 24px; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav__link--next { text-align: left; align-items: flex-start; }
    .news-card__body { padding: 22px 24px 24px; }
    .news-card__title { font-size: 1.15rem; }
    .news-pagination a,
    .news-pagination span { min-width: 38px; height: 38px; padding: 0 10px; font-size: .9rem; }
}

/* =========================================================
   404 enhanced page
   ========================================================= */
.error-404__code {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(4rem, 12vw + 2rem, 8rem);
    font-weight: 500;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    opacity: .85;
    letter-spacing: -.02em;
}
.error-404__search {
    max-width: 580px;
    margin: 40px auto 36px;
}
.error-404__search-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: var(--radius-pill);
    padding: 8px 8px 8px 20px;
    transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.error-404__search-inner:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 6px var(--primary-soft);
}
.error-404__search-inner svg { color: var(--ink-soft); flex-shrink: 0; }
.error-404__search input[type="search"] {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--ink);
    outline: none;
    padding: 8px 0;
    min-width: 0;
}
.error-404__search input[type="search"]::placeholder { color: var(--ink-soft); }
.error-404__search button { white-space: nowrap; padding: 12px 24px; }

.error-404__actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.error-404__help {
    padding: 80px 0 100px;
    background: var(--bg-soft);
}
.error-404__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin: 40px auto 0;
    max-width: 1280px;
}
.error-404__link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px 26px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.error-404__link:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}
.error-404__link-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-soft);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 4px;
    transition: background .3s var(--ease), color .3s var(--ease);
}
.error-404__link:hover .error-404__link-icon { background: var(--primary); color: var(--paper); }
.error-404__link h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--ink);
    margin: 0;
    font-weight: 500;
    line-height: 1.3;
}
.error-404__link p {
    color: var(--ink-soft);
    margin: 0;
    font-size: .9rem;
    line-height: 1.5;
}

/* =========================================================
   Related posts (single.php)
   ========================================================= */
.related-posts {
    margin: 70px 0 30px;
    padding-top: 50px;
    border-top: 1px solid var(--line);
}
.related-posts__head {
    margin-bottom: 30px;
}
.related-posts__head h2 {
    font-family: var(--font-display);
    font-size: 1.7rem;
    color: var(--ink);
    margin: 0;
    font-weight: 500;
}
.related-posts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
@media (max-width: 768px) {
    .related-posts__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   HTML Sitemap
   ========================================================= */
.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin: 40px 0 60px;
}
.sitemap-section {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 30px 32px;
    transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.sitemap-section:hover {
    border-color: var(--primary-soft);
    transform: translateY(-2px);
}
.sitemap-section__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--ink);
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary);
    font-weight: 500;
}
.sitemap-section__title svg { color: var(--primary); }
.sitemap-section__all {
    margin-left: auto;
    font-size: .82rem;
    font-family: var(--font-body);
    color: var(--ink-soft);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 600;
    transition: color .2s var(--ease);
}
.sitemap-section__all:hover { color: var(--primary); }

.sitemap-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.sitemap-list li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    padding: 4px 0;
    line-height: 1.4;
}
.sitemap-list a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    transition: color .2s var(--ease);
    flex-shrink: 0;
}
.sitemap-list a:hover { color: var(--primary); text-decoration: underline; }
.sitemap-list__meta {
    font-size: .82rem;
    color: var(--ink-soft);
    font-family: var(--font-body);
}
.sitemap-list--tags {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}
.sitemap-list--tags li {
    background: var(--bg-soft);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    margin: 0;
}
.sitemap-list--tags .sitemap-list__meta {
    background: var(--primary);
    color: var(--paper);
    padding: 1px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
}

/* =========================================================
   Cookie consent banner (GDPR)
   ========================================================= */
.cookie-consent {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 99999;
    max-width: 720px;
    margin: 0 auto;
    background: var(--paper);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0,0,0,.18);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .35s var(--ease), transform .35s var(--ease);
    border: 1px solid var(--line);
}
.cookie-consent.is-visible { opacity: 1; transform: translateY(0); }
.cookie-consent__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 18px 22px;
}
.cookie-consent__icon {
    color: var(--primary);
    flex-shrink: 0;
}
.cookie-consent__text strong {
    display: block;
    margin-bottom: 2px;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
}
.cookie-consent__text p {
    margin: 0;
    font-size: .88rem;
    color: var(--ink-soft);
    line-height: 1.5;
}
.cookie-consent__text a {
    color: var(--primary);
    text-decoration: underline;
}
.cookie-consent__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.cookie-consent__btn {
    padding: 10px 18px;
    font-size: .9rem;
    white-space: nowrap;
}
@media (max-width: 640px) {
    .cookie-consent__inner {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px 20px;
    }
    .cookie-consent__icon { display: none; }
    .cookie-consent__actions { width: 100%; }
    .cookie-consent__actions .cookie-consent__btn { flex: 1; }
}

/* =========================================================
   Mobile sticky CTA bar (only on mobile)
   ========================================================= */
.mobile-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--paper);
    border-top: 1px solid var(--line);
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    z-index: 9998;
    box-shadow: 0 -4px 16px rgba(0,0,0,.08);
    transform: translateY(100%);
    transition: transform .35s var(--ease);
}
.mobile-cta-bar.is-visible { transform: translateY(0); }
.mobile-cta-bar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 12px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: .95rem;
    transition: transform .15s var(--ease);
}
.mobile-cta-bar__btn:active { transform: scale(.97); }
.mobile-cta-bar__btn--primary {
    background: var(--ink);
    color: var(--paper);
}
.mobile-cta-bar__btn--secondary {
    background: var(--accent);
    color: var(--ink);
}
@media (max-width: 768px) {
    .mobile-cta-bar { display: grid; }
    body { padding-bottom: 75px; }
}

/* =========================================================
   Open day banner (top of page)
   ========================================================= */
.open-day-banner {
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--secondary, var(--primary)));
    color: var(--paper);
    z-index: 50;
    animation: bannerSlide .5s var(--ease);
    overflow: hidden;
}
.open-day-banner.is-closing {
    animation: bannerClose .3s var(--ease) forwards;
}
@keyframes bannerSlide {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes bannerClose {
    to { transform: translateY(-100%); opacity: 0; }
}
.open-day-banner__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 12px 60px 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.open-day-banner__icon {
    flex-shrink: 0;
    color: var(--paper);
    opacity: .95;
}
.open-day-banner__text {
    margin: 0;
    font-size: .96rem;
    line-height: 1.4;
    font-weight: 500;
}
.open-day-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--paper);
    color: var(--ink);
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: .88rem;
    transition: transform .2s var(--ease), background .2s var(--ease);
    white-space: nowrap;
}
.open-day-banner__btn:hover {
    transform: translateX(3px);
    background: var(--accent);
}
.open-day-banner__close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: none;
    color: var(--paper);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s var(--ease);
}
.open-day-banner__close:hover { background: rgba(255,255,255,.3); }
@media (max-width: 640px) {
    .open-day-banner__inner { padding: 10px 50px 10px 16px; flex-direction: column; gap: 8px; }
    .open-day-banner__text { font-size: .88rem; text-align: center; }
}

/* =========================================================
   Back to top button
   ========================================================= */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 95px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--paper);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 20px rgba(0,0,0,.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(.85);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s, background .2s var(--ease);
    z-index: 9990;
}
.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}
.back-to-top:hover {
    background: var(--primary);
    transform: translateY(-3px) scale(1.05);
}
@media (max-width: 768px) {
    .back-to-top { right: 14px; bottom: 88px; width: 42px; height: 42px; }
}
@media (min-width: 769px) {
    .back-to-top { bottom: 30px; }
}

/* =========================================================
   Privacy Policy page
   ========================================================= */
.privacy-meta {
    background: var(--bg-soft);
    padding: 14px 20px;
    border-radius: var(--radius);
    font-size: .92rem;
    color: var(--ink-soft);
    margin-bottom: 30px;
    border-left: 3px solid var(--primary);
}
.privacy-meta strong { color: var(--ink); }

.privacy-card {
    background: var(--bg-soft);
    border-radius: var(--radius);
    padding: 22px 26px;
    margin: 16px 0 28px;
    border-left: 4px solid var(--primary);
}
.privacy-card p {
    margin: 6px 0;
    line-height: 1.55;
}
.privacy-card p:first-child { margin-top: 0; }
.privacy-card p:last-child { margin-bottom: 0; }
.privacy-card a { color: var(--primary); }

.privacy-table-wrap {
    margin: 18px 0 28px;
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}
.privacy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .92rem;
    background: var(--paper);
}
.privacy-table thead {
    background: var(--primary-soft);
}
.privacy-table th {
    text-align: left;
    padding: 14px 16px;
    font-weight: 600;
    color: var(--ink);
    font-family: var(--font-display);
    border-bottom: 2px solid var(--primary);
}
.privacy-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    line-height: 1.5;
}
.privacy-table tr:last-child td { border-bottom: none; }
.privacy-table code {
    background: var(--bg-soft);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .85rem;
    color: var(--primary);
    font-family: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
}

.privacy-toc {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
    counter-reset: privacy-toc;
}
.privacy-toc li {
    padding: 8px 0;
    font-size: .92rem;
    color: var(--ink-soft);
    border-bottom: 1px solid var(--line);
    line-height: 1.4;
}
.privacy-toc li:last-child { border-bottom: none; }

@media (max-width: 768px) {
    .privacy-table { font-size: .85rem; }
    .privacy-table th, .privacy-table td { padding: 10px 12px; }
}
