@charset "UTF-8";
/* ============================================================================
   ROOMA — COMPONENT LAYER  (public site only)
   Loaded after rooma-core.css. Contains every UI component of the public
   site: header, drawer, bottom nav, buttons, cards, hero, sliders, gallery,
   accordion, tabs, timeline, forms, footer, news, lightbox.
   ========================================================================= */

/* ══════════════════════════════════════════════════════════════════════════
   1. SCROLL PROGRESS
   ══════════════════════════════════════════════════════════════════════════ */
.scroll-progress {
    position: fixed;
    inset-block-start: 0;
    inset-inline: 0;
    height: 3px;
    z-index: var(--z-progress);
    pointer-events: none;
    background: transparent;
}
.scroll-progress__bar {
    height: 100%;
    width: 100%;
    transform: scaleX(0);
    transform-origin: right center; /* RTL: grows right → left */
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--secondary) 100%);
    box-shadow: 0 0 10px rgba(232,168,56,.5);
    will-change: transform;
}
[dir="ltr"] .scroll-progress__bar { transform-origin: left center; }

/* ══════════════════════════════════════════════════════════════════════════
   2. TOP BAR
   ══════════════════════════════════════════════════════════════════════════ */
.topbar {
    position: relative;
    z-index: calc(var(--z-header) + 1);
    background: var(--ink-night);
    color: rgba(255,255,255,.86);
    font-size: var(--text-xs);
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    min-height: 38px;
    padding-block: .3rem;
}
.topbar__group { display: flex; align-items: center; gap: var(--space-md); flex-wrap: wrap; }
.topbar__item {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: rgba(255,255,255,.86);
    white-space: nowrap;
    transition: color var(--t-fast), opacity var(--t-fast);
}
.topbar__item svg { width: 14px; height: 14px; flex-shrink: 0; opacity: .85; fill: none; stroke: currentColor; }
a.topbar__item:hover { color: #fff; }
a.topbar__item:hover svg { opacity: 1; }

.topbar__socials { display: flex; align-items: center; gap: .35rem; }
.topbar__social {
    display: grid;
    place-items: center;
    width: 28px; height: 28px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.85);
    transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.topbar__social svg { width: 14px; height: 14px; fill: currentColor; }
.topbar__social:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}
.topbar__marquee { flex: 1; text-align: center; font-weight: 500; }

/* Phones: keep only the essentials so the bar stays one clean line */
@media (max-width: 767px) {
    .topbar { font-size: var(--text-2xs); }
    .topbar__inner { justify-content: center; min-height: 34px; }
    .topbar__item--hours,
    .topbar__item--email { display: none; }
    .topbar__socials { display: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   3. HEADER  — adaptive / shrink-on-scroll / hide-on-scroll-down
   ══════════════════════════════════════════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: var(--z-header);
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid transparent;
    transition:
        background var(--t-base),
        box-shadow var(--t-base),
        border-color var(--t-base),
        transform .38s var(--ease-out-soft);
    will-change: transform;
}
/* Fallback for browsers without color-mix */
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
    .site-header { background: rgba(255,255,255,.85); }
    [data-theme="dark"] .site-header { background: rgba(20,37,30,.85); }
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    min-height: var(--header-h);
    transition: min-height var(--t-base);
}

/* Condensed state after scrolling past the fold */
.site-header.is-stuck {
    background: color-mix(in srgb, var(--surface) 94%, transparent);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
    .site-header.is-stuck { background: rgba(255,255,255,.96); }
    [data-theme="dark"] .site-header.is-stuck { background: rgba(20,37,30,.97); }
}
.site-header.is-stuck .site-header__inner { min-height: 54px; }
.site-header.is-stuck .brand__mark { width: 34px; height: 34px; }
.site-header.is-stuck .brand__name { font-size: var(--text-md); }

/* Auto-hide when scrolling down, reveal instantly on scroll up */
.site-header.is-hidden { transform: translateY(-102%); }

/* ── Brand ── */
.brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    color: var(--ink);
    flex-shrink: 0;
    min-width: 0;
}
.brand:hover { color: var(--ink); }
.brand__mark {
    width: 40px; height: 40px;
    flex-shrink: 0;
    transition: width var(--t-base), height var(--t-base), transform var(--t-slow);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__logo {
    width: auto;
    height: 40px;
    max-width: 150px;
    object-fit: contain;
    transition: height var(--t-base);
}
.site-header.is-stuck .brand__logo { height: 34px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand__name {
    font-family: var(--font-display);
    font-size: var(--text-lg);
    font-weight: 800;
    background: var(--grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transition: font-size var(--t-base);
    white-space: nowrap;
}
.brand__tag {
    font-size: var(--text-2xs);
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}
@media (max-width: 420px) { .brand__tag { display: none; } }

/* ── Desktop nav ── */
.nav {
    display: none;
    align-items: center;
    gap: .15rem;
    position: relative;
}
@media (min-width: 992px) { .nav { display: flex; } }

.nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem .8rem;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    transition: color var(--t-fast), background var(--t-fast);
}
.nav__link svg {
    width: 17px; height: 17px;
    fill: none; stroke: currentColor; stroke-width: 2;
    opacity: .7;
    transition: opacity var(--t-fast), transform var(--t-base);
}
.nav__link:hover { color: var(--primary-dark); }
.nav__link:hover svg { opacity: 1; transform: translateY(-1px); }
.nav__link.is-active { color: var(--primary-dark); }
.nav__link.is-active svg { opacity: 1; }

/* Sliding "pill" indicator that follows the active/hovered link */
.nav__pill {
    position: absolute;
    z-index: -1;
    top: 50%;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--primary-faint);
    box-shadow: inset 0 0 0 1px rgba(61,139,99,.18);
    transform: translateY(-50%);
    transition:
        inset-inline-start .38s var(--ease-spring),
        width .38s var(--ease-spring),
        opacity var(--t-base);
    opacity: 0;
    pointer-events: none;
}
.nav__pill.is-ready { opacity: 1; }

/* ── Header actions ── */
.header-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-shrink: 0;
}

.icon-btn {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
    -webkit-tap-highlight-color: transparent;
}
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.icon-btn:hover {
    background: var(--primary-faint);
    border-color: var(--primary-light);
    color: var(--primary-dark);
}
.icon-btn:active { transform: scale(.94); }

/* Theme toggle: sun/moon crossfade */
.theme-toggle__moon,
.theme-toggle__sun { transition: opacity var(--t-base), transform var(--t-base); }
.theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun  { display: block; }

/* Hamburger — animated to an X */
.burger { display: grid; }
@media (min-width: 992px) { .burger { display: none; } }
.burger__box { position: relative; width: 20px; height: 14px; }
.burger__line {
    position: absolute;
    inset-inline: 0;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .34s var(--ease-spring), opacity .2s var(--ease-in-out), width .34s var(--ease-spring);
}
.burger__line:nth-child(1) { top: 0; }
.burger__line:nth-child(2) { top: 6px; width: 74%; }
.burger__line:nth-child(3) { top: 12px; }
.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.burger[aria-expanded="true"] .burger__line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════════════════
   4. MOBILE DRAWER
   ══════════════════════════════════════════════════════════════════════════ */
.drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay);
    background: rgba(19,48,38,.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base), visibility var(--t-base);
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
    position: fixed;
    inset-block: 0;
    inset-inline-end: 0;                 /* RTL → slides from the right */
    z-index: var(--z-drawer);
    width: min(86vw, 340px);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-inline-start: 1px solid var(--border);
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);          /* off-screen toward inline-end */
    transition: transform .42s var(--ease-out-soft);
    overscroll-behavior: contain;
    visibility: hidden;
}
[dir="rtl"] .drawer { transform: translateX(100%); }
[dir="ltr"] .drawer { transform: translateX(-100%); }
.drawer.is-open { transform: translateX(0); visibility: visible; }

.drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--border);
    background: var(--grad-soft);
    flex-shrink: 0;
}
.drawer__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: var(--space-md) var(--space-md) var(--space-xl);
}
.drawer__nav { display: flex; flex-direction: column; gap: .2rem; }

.drawer__link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem .9rem;
    border-radius: var(--radius-md);
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--text);
    /* Staggered entrance driven by --i set inline in the markup */
    opacity: 0;
    transform: translateX(18px);
    transition: background var(--t-fast), color var(--t-fast);
}
.drawer.is-open .drawer__link {
    animation: drawerItemIn .45s var(--ease-out-soft) forwards;
    animation-delay: calc(80ms + var(--i, 0) * 45ms);
}
@keyframes drawerItemIn {
    to { opacity: 1; transform: translateX(0); }
}
.drawer__link svg {
    width: 20px; height: 20px;
    flex-shrink: 0;
    fill: none; stroke: currentColor; stroke-width: 2;
    color: var(--primary);
    opacity: .9;
}
.drawer__link:hover { background: var(--surface-2); color: var(--primary-dark); }
.drawer__link.is-active {
    background: var(--primary-faint);
    color: var(--primary-dark);
    box-shadow: inset 0 0 0 1px rgba(61,139,99,.2);
}
.drawer__link-arrow { margin-inline-start: auto; opacity: .3; width: 16px; height: 16px; }

.drawer__divider {
    height: 1px;
    background: var(--border);
    margin: var(--space-md) .5rem;
}
.drawer__section-title {
    font-size: var(--text-2xs);
    font-weight: 700;
    color: var(--text-faint);
    letter-spacing: .06em;
    padding: 0 .9rem;
    margin-bottom: .4rem;
}
.drawer__foot {
    display: grid;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg) calc(var(--space-lg) + env(safe-area-inset-bottom));
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    flex-shrink: 0;
}
.drawer__contact {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: var(--text-sm);
    color: var(--text-muted);
}
.drawer__contact svg { width: 15px; height: 15px; color: var(--primary); fill: none; stroke: currentColor; stroke-width: 2; }
.drawer__socials { display: flex; gap: .45rem; }
.drawer__social {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: var(--radius-full);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--t-fast);
}
.drawer__social svg { width: 16px; height: 16px; fill: currentColor; }
.drawer__social:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════════════════════════
   6. BUTTONS
   ══════════════════════════════════════════════════════════════════════════ */
.btn {
    --btn-py: .7rem;
    --btn-px: 1.3rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: var(--btn-py) var(--btn-px);
    border: 1px solid transparent;
    border-radius: var(--radius-full);
    font-family: var(--font-base);
    font-size: var(--text-sm);
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform var(--t-fast),
        box-shadow var(--t-base),
        background var(--t-base),
        color var(--t-base),
        border-color var(--t-base);
    /* Long Persian labels must be allowed to wrap on narrow phones */
    text-wrap: balance;
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* Shine sweep */
.btn::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: -30%; bottom: -30%;
    width: 40%;
    inset-inline-start: -60%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.42), transparent);
    transform: skewX(-18deg);
    transition: inset-inline-start .7s var(--ease-out-soft);
    pointer-events: none;
}
.btn:hover::after { inset-inline-start: 130%; }

.btn-primary {
    background: var(--grad-primary);
    color: #fff;
    box-shadow: var(--shadow-green);
}
.btn-primary:hover { color: #fff; box-shadow: 0 14px 34px rgba(61,139,99,.38); transform: translateY(-2px); }

.btn-secondary {
    background: var(--grad-earth);
    color: #fff;
    box-shadow: var(--shadow-clay);
}
.btn-secondary:hover { color: #fff; box-shadow: 0 14px 34px rgba(196,114,74,.38); transform: translateY(-2px); }

.btn-outline {
    background: transparent;
    border-color: var(--border-strong);
    color: var(--text);
}
.btn-outline:hover {
    background: var(--primary-faint);
    border-color: var(--primary);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { background: var(--surface-2); color: var(--primary-dark); border-color: var(--primary-light); transform: translateY(-2px); }

/* On dark photo/ink backgrounds */
.btn-light { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.32); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-light:hover { background: rgba(255,255,255,.24); color: #fff; transform: translateY(-2px); }

.btn-sm { --btn-py: .5rem; --btn-px: 1rem; font-size: var(--text-xs); }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { --btn-py: .9rem; --btn-px: 1.75rem; font-size: var(--text-md); }
.btn-lg svg { width: 19px; height: 19px; }
.btn-block { width: 100%; }

/* ══════════════════════════════════════════════════════════════════════════
   7. BADGES / PILLS / CHIPS
   ══════════════════════════════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .28rem .7rem;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; }
.badge-primary   { background: var(--primary-faint);   color: var(--primary-dark); }
.badge-secondary { background: var(--secondary-faint); color: var(--secondary-dark); }
.badge-accent    { background: var(--accent-light);    color: var(--accent-dark); }
.badge-info      { background: rgba(91,141,184,.14);   color: var(--info); }
.badge-success   { background: var(--primary-faint);   color: var(--primary-dark); }
.badge-warning   { background: var(--accent-light);    color: var(--accent-dark); }
.badge-danger    { background: rgba(200,90,90,.12);    color: var(--danger); }
.badge-light     { background: rgba(255,255,255,.18);  color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.badge-outline   { background: transparent; box-shadow: inset 0 0 0 1px var(--border-strong); color: var(--text-muted); }

/* Eyebrow label above section titles */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .35rem .85rem;
    border-radius: var(--radius-full);
    background: var(--primary-faint);
    color: var(--primary-dark);
    font-size: var(--text-xs);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(61,139,99,.16);
}
.eyebrow svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.eyebrow-clay { background: var(--secondary-faint); color: var(--secondary-dark); box-shadow: inset 0 0 0 1px rgba(196,114,74,.18); }
.eyebrow-light { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }

/* ══════════════════════════════════════════════════════════════════════════
   8. SECTION HEADER
   ══════════════════════════════════════════════════════════════════════════ */
.section-head {
    max-width: 46rem;
    margin-inline: auto;
    margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 3rem);
    text-align: center;
}
.section-head__title {
    font-size: var(--text-3xl);
    margin-block: .6rem .5rem;
    color: var(--ink);
}
.section-head__sub {
    font-size: var(--text-md);
    color: var(--text-muted);
    line-height: var(--leading-body);
    margin: 0;
}
/* Hand-drawn underline that draws itself when revealed */
.section-head__title .u-mark {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}
.section-head__title .u-mark::after {
    content: '';
    position: absolute;
    inset-inline: -2px;
    bottom: -.1em;
    height: .34em;
    border-radius: var(--radius-full);
    background: linear-gradient(90deg, rgba(232,168,56,.55), rgba(196,114,74,.4));
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform .8s var(--ease-out-soft) .15s;
    z-index: -1;
}
.section-head.is-revealed .section-head__title .u-mark::after,
.is-revealed .section-head__title .u-mark::after { transform: scaleX(1); }
/* No-JS / reduced-motion: show it immediately */
html:not(.js-reveal) .section-head__title .u-mark::after { transform: scaleX(1); }

.section-head--start { text-align: start; margin-inline: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   9. CARD BASE
   ══════════════════════════════════════════════════════════════════════════ */
.card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--t-base),
        box-shadow var(--t-base),
        border-color var(--t-base);
    overflow: hidden;
    isolation: isolate;
}
.card-pad { padding: clamp(1.1rem, .9rem + .8vw, 1.75rem); }

/* Interactive lift — only where a pointer can hover */
@media (hover: hover) and (pointer: fine) {
    .card-hover:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
        border-color: var(--primary-light);
    }
}
/* Touch feedback */
@media (hover: none) {
    .card-hover:active { transform: scale(.99); }
}

/* Glow that follows the cursor (JS sets --mx/--my) */
.card-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0;
    background: radial-gradient(
        360px circle at var(--mx, 50%) var(--my, 50%),
        rgba(61,139,99,.10),
        transparent 60%);
    transition: opacity var(--t-base);
    pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
    .card-glow:hover::before { opacity: 1; }
}

/* ══════════════════════════════════════════════════════════════════════════
   10. HERO
   ══════════════════════════════════════════════════════════════════════════ */
.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--ink-night);
}
/* Slides are stacked in a single grid cell. Every slide therefore
   contributes to the container height (unlike absolute positioning, which
   would collapse it to zero) while still overlapping for the crossfade. */
.hero__viewport {
    position: relative;
    display: grid;
    grid-template-areas: "stack";
    isolation: isolate;
}
.hero__slide {
    grid-area: stack;
    position: relative;
    min-width: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s var(--ease-in-out), visibility 1s;
}
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

.hero__media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Slow Ken-Burns drift; paused when the slide is inactive */
    transform: scale(1.06);
    transition: transform 1.2s var(--ease-out-soft);
    will-change: transform;
}
.hero__slide.is-active .hero__img { animation: kenBurns 18s ease-out forwards; }
@keyframes kenBurns {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to   { transform: scale(1.15) translate3d(-1.5%, -1.5%, 0); }
}

.hero__scrim {
    position: absolute;
    inset: 0;
    background: var(--grad-hero);
}

.hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Fluid, never taller than the viewport minus the header */
    min-height: clamp(420px, 58vw, 620px);
    padding-block: clamp(3rem, 2rem + 8vw, 6rem) clamp(3.25rem, 2rem + 5vw, 4rem);
}
/* Phones: a portrait-friendly hero that still leaves the dots clear */
@media (max-width: 767px) {
    .hero__inner {
        min-height: min(74svh, 500px);
        padding-block: 2.5rem 3.5rem;
    }
    .hero__title { font-size: var(--text-3xl); }
    .hero__sub {
        font-size: var(--text-sm);
        line-height: var(--leading-snug);
        margin-bottom: var(--space-md);
    }
}
.hero__content { max-width: 44rem; color: #fff; }

.hero__title {
    font-size: var(--text-5xl);
    color: #fff;
    margin-block: .7rem .6rem;
    text-shadow: 0 2px 24px rgba(0,0,0,.4);
    /* Persian headlines wrap unpredictably — allow it, never clip */
    overflow-wrap: break-word;
}
.hero__sub {
    font-size: var(--text-lg);
    line-height: var(--leading-snug);
    color: rgba(255,255,255,.93);
    max-width: 36rem;
    margin-bottom: var(--space-lg);
    text-shadow: 0 1px 12px rgba(0,0,0,.35);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.hero__actions .btn { flex: 0 1 auto; }
@media (max-width: 420px) {
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { width: 100%; }
}

/* Slide text entrance */
.hero__slide.is-active .hero__anim {
    animation: heroIn .9s var(--ease-out-soft) both;
}
.hero__slide.is-active .hero__anim:nth-child(1) { animation-delay: .1s; }
.hero__slide.is-active .hero__anim:nth-child(2) { animation-delay: .22s; }
.hero__slide.is-active .hero__anim:nth-child(3) { animation-delay: .34s; }
.hero__slide.is-active .hero__anim:nth-child(4) { animation-delay: .46s; }
@keyframes heroIn {
    from { opacity: 0; transform: translate3d(0, 26px, 0); }
    to   { opacity: 1; transform: none; }
}

/* Controls */
.hero__nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    transform: translateY(-50%);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: var(--radius-full);
    background: rgba(0,0,0,.28);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast), opacity var(--t-fast);
    opacity: .8;
}
.hero__nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.hero__nav:hover { background: rgba(0,0,0,.5); opacity: 1; }
.hero__nav:active { transform: translateY(-50%) scale(.92); }
.hero__nav--prev { inset-inline-start: var(--gutter); }
.hero__nav--next { inset-inline-end: var(--gutter); }
/* On phones the arrows would sit on top of the caption text — swipe and the
   dots are the primary controls there, so the arrows are hidden instead. */
@media (max-width: 767px) {
    .hero__nav { display: none; }
}

.hero__dots {
    position: absolute;
    z-index: 4;
    bottom: clamp(1rem, .6rem + 1.4vw, 1.6rem);
    inset-inline-start: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: .45rem;
}
.hero__dot {
    width: 9px; height: 9px;
    border: 0;
    padding: 0;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.42);
    cursor: pointer;
    transition: width var(--t-base), background var(--t-base);
    position: relative;
}
/* Expand the touch target without changing layout */
.hero__dot::before {
    content: '';
    position: absolute;
    inset: -10px;
}
.hero__dot.is-active {
    width: 28px;
    background: #fff;
}

.hero__playpause {
    position: absolute;
    z-index: 4;
    top: clamp(.8rem, .5rem + 1vw, 1.2rem);
    inset-inline-start: clamp(.8rem, .5rem + 1vw, 1.2rem);
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: var(--radius-full);
    background: rgba(0,0,0,.3);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: #fff;
    cursor: pointer;
    opacity: .7;
    transition: opacity var(--t-fast), background var(--t-fast);
}
.hero__playpause:hover { opacity: 1; }
.hero__playpause svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.hero__playpause .i-play { display: none; }
.hero__playpause[aria-pressed="false"] .i-play { display: block; }
.hero__playpause[aria-pressed="false"] .i-pause { display: none; }

/* Scroll cue */
.hero__cue {
    position: absolute;
    z-index: 4;
    bottom: clamp(2.6rem, 2rem + 2vw, 3.4rem);
    inset-inline-end: var(--gutter);
    display: none;
    align-items: center;
    gap: .5rem;
    color: rgba(255,255,255,.8);
    font-size: var(--text-xs);
    font-weight: 600;
}
@media (min-width: 992px) { .hero__cue { display: flex; } }
.hero__cue-track {
    width: 22px; height: 34px;
    border: 2px solid rgba(255,255,255,.5);
    border-radius: var(--radius-full);
    position: relative;
}
.hero__cue-track::after {
    content: '';
    position: absolute;
    inset-inline-start: 50%;
    top: 6px;
    width: 3px; height: 7px;
    border-radius: 2px;
    background: #fff;
    transform: translateX(-50%);
    animation: cueScroll 1.8s var(--ease-in-out) infinite;
}
@keyframes cueScroll {
    0%, 100% { transform: translate(-50%, 0); opacity: 1; }
    50%      { transform: translate(-50%, 12px); opacity: .3; }
}

/* Hero fallback (no slides in DB) */
.hero--fallback { background: var(--grad-forest); }
.hero--fallback .hero__inner { justify-content: center; text-align: center; }
.hero--fallback .hero__content { margin-inline: auto; }
.hero--fallback .hero__actions { justify-content: center; }

/* ══════════════════════════════════════════════════════════════════════════
   11. INNER PAGE HERO
   ══════════════════════════════════════════════════════════════════════════ */
.page-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--grad-forest);
    color: #fff;
    padding-block: clamp(2.25rem, 1.5rem + 4vw, 4.25rem);
}
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(160deg, rgba(19,48,38,.9), rgba(37,87,62,.82));
}
/* Decorative arcs */
.page-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: 34vmax; height: 34vmax;
    border-radius: 50%;
    inset-inline-end: -12vmax;
    top: -16vmax;
    background: radial-gradient(circle, rgba(232,168,56,.2), transparent 65%);
    pointer-events: none;
}
.page-hero__inner { position: relative; text-align: center; }
.page-hero__title {
    font-size: var(--text-4xl);
    color: #fff;
    margin-block: .5rem .55rem;
    text-shadow: 0 2px 18px rgba(0,0,0,.28);
}
.page-hero__sub {
    font-size: var(--text-md);
    color: rgba(255,255,255,.9);
    max-width: 42rem;
    margin-inline: auto;
    line-height: var(--leading-body);
}

/* Breadcrumb */
.crumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: .4rem;
    font-size: var(--text-xs);
    font-weight: 600;
}
.crumbs a { color: rgba(255,255,255,.82); }
.crumbs a:hover { color: #fff; }
.crumbs__sep { opacity: .5; }
.crumbs__current { color: var(--accent-light); }

/* On-page (light background) breadcrumb variant */
.crumbs--page { justify-content: flex-start; margin-bottom: var(--space-md); }
.crumbs--page a { color: var(--text-muted); }
.crumbs--page a:hover { color: var(--primary-dark); }
.crumbs--page .crumbs__current { color: var(--primary-dark); }

/* ══════════════════════════════════════════════════════════════════════════
   12. TRUST STRIP
   ══════════════════════════════════════════════════════════════════════════ */
.trust {
    position: relative;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-xs);
}
.trust__grid {
    display: grid;
    /* 2 columns on phones (never a lonely orphan), 4 from tablet up */
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
}
@media (min-width: 768px) { .trust__grid { grid-template-columns: repeat(4, 1fr); } }

.trust__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: clamp(.85rem, .7rem + .6vw, 1.15rem) .6rem;
    background: var(--surface);
    text-align: start;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--text);
    transition: background var(--t-fast);
}
.trust__item:hover { background: var(--surface-2); }
.trust__icon {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    background: var(--primary-faint);
    color: var(--primary);
}
.trust__icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.trust__item:nth-child(2) .trust__icon { background: var(--secondary-faint); color: var(--secondary); }
.trust__item:nth-child(3) .trust__icon { background: var(--accent-light); color: var(--accent-dark); }
.trust__item:nth-child(4) .trust__icon { background: rgba(212,160,160,.2); color: var(--rose-400); }
@media (max-width: 480px) {
    .trust__item { flex-direction: column; text-align: center; gap: .4rem; font-size: var(--text-2xs); }
}

/* ══════════════════════════════════════════════════════════════════════════
   13. FEATURE / SERVICE CARDS
   ══════════════════════════════════════════════════════════════════════════ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: clamp(.85rem, .7rem + .8vw, 1.5rem);
}
.feature {
    padding: clamp(1.15rem, .95rem + .9vw, 1.85rem);
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
/* Top accent bar that draws in on hover */
.feature::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: var(--grad-primary);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform var(--t-slow);
}
@media (hover: hover) { .feature:hover::after { transform: scaleX(1); } }

.feature__icon {
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    border-radius: var(--radius-md);
    background: var(--primary-faint);
    color: var(--primary);
    margin-bottom: .3rem;
    transition: transform var(--t-base), background var(--t-base);
}
.feature__icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; }
@media (hover: hover) {
    .feature:hover .feature__icon { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
}
.feature:nth-child(2n) .feature__icon { background: var(--secondary-faint); color: var(--secondary); }
.feature:nth-child(3n) .feature__icon { background: var(--accent-light); color: var(--accent-dark); }
.feature:nth-child(5n) .feature__icon { background: rgba(91,141,184,.14); color: var(--info); }

.feature__title { font-size: var(--text-lg); color: var(--ink); }
.feature__text {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-body);
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   14. STATS
   ══════════════════════════════════════════════════════════════════════════ */
.stats {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--grad-forest);
    color: #fff;
}
/* Subtle moving stripe texture */
.stats::before {
    content: '';
    position: absolute;
    inset: -50%;
    z-index: -1;
    opacity: .09;
    background-image: repeating-linear-gradient(
        115deg,
        rgba(255,255,255,.7) 0 1px,
        transparent 1px 22px);
    animation: stripeDrift 26s linear infinite;
}
@keyframes stripeDrift {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-22%, 0, 0); }
}
.stats::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset-inline-start: -8vmax;
    bottom: -14vmax;
    width: 32vmax; height: 32vmax;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,168,56,.22), transparent 65%);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1rem, .8rem + 1vw, 2rem);
}
@media (min-width: 768px) { .stats__grid { grid-template-columns: repeat(4, 1fr); } }

.stat { text-align: center; }
.stat__icon {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    margin-inline: auto;
    margin-bottom: .5rem;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,.12);
    color: #fff;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.stat__icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.stat__num {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 800;
    line-height: 1.1;
    color: #fff;
    font-variant-numeric: tabular-nums;
    display: block;
}
.stat__label {
    font-size: var(--text-sm);
    color: rgba(255,255,255,.82);
    font-weight: 500;
    margin-top: .15rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   15. CLASS CARDS (age groups)
   ══════════════════════════════════════════════════════════════════════════ */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: clamp(1rem, .8rem + 1vw, 1.75rem);
}
.class-card { display: flex; flex-direction: column; }
.class-card__head {
    position: relative;
    display: grid;
    place-items: center;
    padding: clamp(1.4rem, 1.1rem + 1.4vw, 2.25rem) 1rem;
    overflow: hidden;
}
.class-card__head--green { background: linear-gradient(140deg, var(--green-100), var(--green-50)); }
.class-card__head--clay  { background: linear-gradient(140deg, var(--clay-100), var(--clay-50)); }
.class-card__head--sky   { background: linear-gradient(140deg, var(--sky-200), #EDF4F9); }
[data-theme="dark"] .class-card__head--green { background: linear-gradient(140deg, rgba(95,180,137,.2), rgba(95,180,137,.07)); }
[data-theme="dark"] .class-card__head--clay  { background: linear-gradient(140deg, rgba(219,144,104,.2), rgba(219,144,104,.07)); }
[data-theme="dark"] .class-card__head--sky   { background: linear-gradient(140deg, rgba(127,174,210,.2), rgba(127,174,210,.07)); }

/* Dotted texture inside the card head */
.class-card__head::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18'%3E%3Ccircle cx='2' cy='2' r='1.2' fill='%23ffffff' opacity='.6'/%3E%3C/svg%3E");
    background-size: 18px 18px;
}
.class-card__icon { position: relative; }
.class-card__icon svg { width: 46px; height: 46px; fill: none; stroke-width: 1.6; }
.class-card__head--green .class-card__icon { color: var(--green-500); }
.class-card__head--clay  .class-card__icon { color: var(--clay-500); }
.class-card__head--sky   .class-card__icon { color: var(--sky-500); }
@media (hover: hover) {
    .class-card:hover .class-card__icon { animation: iconBob 1.1s var(--ease-in-out); }
}
@keyframes iconBob {
    0%, 100% { transform: translateY(0) rotate(0); }
    30%      { transform: translateY(-7px) rotate(-7deg); }
    60%      { transform: translateY(-2px) rotate(4deg); }
}

.class-card__body {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: clamp(1.1rem, .9rem + .8vw, 1.6rem);
    flex: 1;
}
.class-card__title { font-size: var(--text-xl); color: var(--ink); }
.class-card__text { font-size: var(--text-sm); color: var(--text-muted); margin: 0; }
.class-card__list { display: grid; gap: .45rem; margin-top: .3rem; }
.class-card__list li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text);
}
.class-card__list svg {
    width: 17px; height: 17px;
    flex-shrink: 0;
    margin-top: .22em;
    color: var(--primary);
    fill: none; stroke: currentColor; stroke-width: 2.4;
}
.class-card__foot {
    margin-top: auto;
    padding-top: var(--space-md);
}

/* Capacity meter */
.meter { margin-top: .3rem; }
.meter__head {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    font-size: var(--text-xs);
    font-weight: 700;
    margin-bottom: .35rem;
}
.meter__track {
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--surface-sunken);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
}
.meter__fill {
    height: 100%;
    border-radius: var(--radius-full);
    background: var(--grad-earth);
    width: 0;
    transition: width 1.4s var(--ease-out-soft);
}
.meter__fill--green { background: var(--grad-primary); }
/* No-JS fallback: honour the inline --w immediately */
html:not(.js-reveal) .meter__fill { width: var(--w, 0); }

/* ══════════════════════════════════════════════════════════════════════════
   16. ABOUT / SPLIT SECTION
   ══════════════════════════════════════════════════════════════════════════ */
.split {
    display: grid;
    gap: clamp(1.5rem, 1.2rem + 2vw, 3.25rem);
    align-items: center;
}
@media (min-width: 992px) {
    .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .split--wide-start { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
    .split--wide-end   { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
}
/* Grid children must be shrinkable or long Persian words force overflow */
.split > * { min-width: 0; }

.split__content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); }
.split__title { font-size: var(--text-3xl); color: var(--ink); }
.split__text { font-size: var(--text-md); color: var(--text-muted); line-height: var(--leading-body); margin: 0; }

/* Media frame with layered decoration */
.split__media { position: relative; }
.frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--surface-2);
}
.frame img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 1s var(--ease-out-soft);
}
@media (hover: hover) { .frame:hover img { transform: scale(1.05); } }

/* Offset colour plate behind the frame */
.split__media::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset-inline-end: -14px;
    top: -14px;
    width: 62%;
    height: 62%;
    border-radius: var(--radius-xl);
    background: var(--grad-earth);
    opacity: .18;
}
.split__media::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset-inline-start: -16px;
    bottom: -16px;
    width: 46%;
    height: 46%;
    border-radius: var(--radius-xl);
    background: var(--grad-primary);
    opacity: .14;
}

/* Floating stat chip over the image */
.frame__chip {
    position: absolute;
    inset-inline-start: clamp(.7rem, .5rem + 1vw, 1.15rem);
    bottom: clamp(.7rem, .5rem + 1vw, 1.15rem);
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem .9rem;
    border-radius: var(--radius-md);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
    .frame__chip { background: rgba(255,255,255,.94); }
    [data-theme="dark"] .frame__chip { background: rgba(20,37,30,.94); }
}
.frame__chip-icon {
    display: grid; place-items: center;
    width: 34px; height: 34px;
    border-radius: var(--radius-sm);
    background: var(--primary-faint);
    color: var(--primary);
    flex-shrink: 0;
}
.frame__chip-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.frame__chip-num { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 800; color: var(--ink); line-height: 1.1; }
.frame__chip-label { font-size: var(--text-2xs); color: var(--text-muted); }

/* Bullet list with check icons */
.check-list { display: grid; gap: .65rem; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: var(--text-sm);
    color: var(--text);
    line-height: var(--leading-snug);
}
.check-list svg {
    width: 19px; height: 19px;
    flex-shrink: 0;
    margin-top: .18em;
    color: var(--primary);
    fill: none; stroke: currentColor; stroke-width: 2.4;
}

/* ══════════════════════════════════════════════════════════════════════════
   17. PILLARS (numbered dark cards)
   ══════════════════════════════════════════════════════════════════════════ */
.pillars {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    background: var(--ink-night);
    color: #fff;
    padding: clamp(1.6rem, 1.2rem + 2.4vw, 3.25rem);
    box-shadow: var(--shadow-xl);
}
.pillars::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset-inline-end: -10vmax;
    top: -12vmax;
    width: 30vmax; height: 30vmax;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,168,56,.2), transparent 65%);
}
.pillars__head { text-align: center; margin-bottom: clamp(1.5rem, 1.2rem + 1.6vw, 2.5rem); }
.pillars__title { font-size: var(--text-3xl); color: #fff; margin-bottom: .4rem; }
.pillars__sub { color: rgba(255,255,255,.78); font-size: var(--text-md); }

.pillars__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: clamp(.9rem, .75rem + .8vw, 1.5rem);
}
.pillar {
    position: relative;
    padding: clamp(1.1rem, .9rem + .8vw, 1.6rem);
    border-radius: var(--radius-lg);
    background: var(--ink-night-2);
    border: 1px solid rgba(255,255,255,.09);
    overflow: hidden;
    transition: transform var(--t-base), border-color var(--t-base), background var(--t-base);
}
@media (hover: hover) {
    .pillar:hover { transform: translateY(-5px); border-color: rgba(232,168,56,.34); background: #234A3A; }
}
.pillar__num {
    font-family: var(--font-display);
    font-size: var(--text-4xl);
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    opacity: .95;
    margin-bottom: .35rem;
}
.pillar__title { font-size: var(--text-lg); color: #fff; margin-bottom: .45rem; }
.pillar__text { font-size: var(--text-sm); color: rgba(255,255,255,.82); line-height: var(--leading-body); margin: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   18. TESTIMONIALS
   ══════════════════════════════════════════════════════════════════════════ */
.testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: clamp(1rem, .8rem + 1vw, 1.65rem);
}
.quote {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: clamp(1.2rem, 1rem + .9vw, 1.85rem);
}
/* Big decorative quote glyph */
.quote::before {
    content: '”';
    position: absolute;
    z-index: -1;
    top: -.35em;
    inset-inline-start: .3em;
    font-family: var(--font-display);
    font-size: 8rem;
    line-height: 1;
    color: var(--primary);
    opacity: .07;
    pointer-events: none;
}
.quote__stars { display: flex; gap: .12rem; color: var(--accent); }
.quote__stars svg { width: 16px; height: 16px; fill: currentColor; stroke: none; }
.quote__text {
    font-size: var(--text-md);
    line-height: var(--leading-body);
    color: var(--text);
    margin: 0;
    flex: 1;
}
.quote__author { display: flex; align-items: center; gap: .7rem; padding-top: var(--space-sm); border-top: 1px solid var(--border); }
.quote__avatar {
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    flex-shrink: 0;
    border-radius: var(--radius-full);
    background: var(--grad-primary);
    color: #fff;
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 800;
}
.quote:nth-child(2n) .quote__avatar { background: var(--grad-earth); }
.quote:nth-child(3n) .quote__avatar { background: linear-gradient(135deg, var(--sky-500), var(--sky-400)); }
.quote__name { font-size: var(--text-sm); font-weight: 700; color: var(--ink); }
.quote__role { font-size: var(--text-xs); color: var(--text-muted); }

/* ══════════════════════════════════════════════════════════════════════════
   19. GALLERY + LIGHTBOX
   ══════════════════════════════════════════════════════════════════════════ */
.gallery-filters {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: .45rem;
    margin-bottom: var(--space-lg);
    /* Horizontal scroll on phones instead of a broken wrap */
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: .25rem;
    scroll-snap-type: x proximity;
}
.gallery-filters::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .gallery-filters { flex-wrap: wrap; justify-content: center; overflow: visible; } }

.chip {
    flex-shrink: 0;
    scroll-snap-align: start;
    padding: .48rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--surface);
    color: var(--text-muted);
    font-size: var(--text-xs);
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: all var(--t-fast);
    -webkit-tap-highlight-color: transparent;
}
.chip:hover { border-color: var(--primary-light); color: var(--primary-dark); }
.chip.is-active {
    background: var(--grad-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-green);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(.5rem, .4rem + .5vw, .9rem);
}
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .gallery { grid-template-columns: repeat(4, 1fr); } }

.gallery__item {
    position: relative;
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-2);
    cursor: zoom-in;
    aspect-ratio: 1 / 1;
    box-shadow: var(--shadow-xs);
    transition: transform var(--t-base), box-shadow var(--t-base), opacity var(--t-base);
}
/* Feature the first tile on larger screens */
@media (min-width: 640px) {
    .gallery__item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: 1 / 1; }
}
.gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .7s var(--ease-out-soft);
}
@media (hover: hover) {
    .gallery__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
    .gallery__item:hover img { transform: scale(1.08); }
}
.gallery__cap {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 1.6rem .7rem .55rem;
    background: linear-gradient(to top, rgba(19,48,38,.86), transparent);
    color: #fff;
    font-size: var(--text-xs);
    font-weight: 600;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity var(--t-base), transform var(--t-base);
}
@media (hover: hover) {
    .gallery__item:hover .gallery__cap { opacity: 1; transform: none; }
}
@media (hover: none) { .gallery__cap { opacity: 1; transform: none; } }

/* Filtering state */
.gallery__item.is-filtered {
    opacity: 0;
    transform: scale(.92);
    pointer-events: none;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: var(--z-lightbox);
    display: grid;
    place-items: center;
    padding: var(--gutter);
    background: rgba(8,18,14,.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--t-base), visibility var(--t-base);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__figure {
    max-width: min(92vw, 1100px);
    max-height: 84vh;
    transform: scale(.94);
    transition: transform .4s var(--ease-out-soft);
    text-align: center;
}
.lightbox.is-open .lightbox__figure { transform: scale(1); }
.lightbox__img {
    max-width: 100%;
    max-height: 76vh;
    width: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    margin-inline: auto;
}
.lightbox__cap { margin-top: .7rem; color: rgba(255,255,255,.88); font-size: var(--text-sm); font-weight: 600; }
.lightbox__btn {
    position: absolute;
    display: grid;
    place-items: center;
    width: 46px; height: 46px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.1);
    color: #fff;
    cursor: pointer;
    transition: background var(--t-fast), transform var(--t-fast);
}
.lightbox__btn:hover { background: rgba(255,255,255,.22); }
.lightbox__btn:active { transform: scale(.92); }
.lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.lightbox__close { top: var(--gutter); inset-inline-end: var(--gutter); }
.lightbox__prev { top: 50%; inset-inline-start: var(--gutter); transform: translateY(-50%); }
.lightbox__next { top: 50%; inset-inline-end: var(--gutter); transform: translateY(-50%); }
.lightbox__prev:active, .lightbox__next:active { transform: translateY(-50%) scale(.92); }
@media (max-width: 640px) {
    .lightbox__btn { width: 40px; height: 40px; }
    .lightbox__prev { inset-inline-start: .4rem; }
    .lightbox__next { inset-inline-end: .4rem; }
}

/* ══════════════════════════════════════════════════════════════════════════
   20. FAQ ACCORDION
   ══════════════════════════════════════════════════════════════════════════ */
.faq { display: grid; gap: .6rem; }
.faq__item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--t-base), box-shadow var(--t-base);
}
.faq__item[open] { border-color: var(--primary-light); box-shadow: var(--shadow-sm); }
.faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: clamp(.85rem, .75rem + .4vw, 1.15rem) clamp(.9rem, .8rem + .5vw, 1.3rem);
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    transition: background var(--t-fast), color var(--t-fast);
    -webkit-tap-highlight-color: transparent;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: var(--surface-2); color: var(--primary-dark); }
.faq__item[open] .faq__q { color: var(--primary-dark); }
.faq__q svg {
    width: 20px; height: 20px;
    flex-shrink: 0;
    color: var(--primary);
    fill: none; stroke: currentColor; stroke-width: 2.4;
    transition: transform var(--t-base);
}
.faq__item[open] .faq__q svg { transform: rotate(180deg); }
.faq__a {
    padding: 0 clamp(.9rem, .8rem + .5vw, 1.3rem) clamp(.9rem, .8rem + .5vw, 1.25rem);
    font-size: var(--text-sm);
    line-height: var(--leading-body);
    color: var(--text-muted);
}
.faq__a a { font-weight: 700; }
/* Smooth open animation */
.faq__item[open] .faq__a { animation: faqOpen .34s var(--ease-out-soft); }
@keyframes faqOpen {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   21. TABS
   ══════════════════════════════════════════════════════════════════════════ */
.tabs {
    position: relative;
    display: flex;
    gap: .3rem;
    margin-bottom: var(--space-xl);
    padding-bottom: .3rem;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
}
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 768px) { .tabs { justify-content: center; overflow: visible; } }

.tab {
    position: relative;
    flex-shrink: 0;
    scroll-snap-align: center;
    padding: .65rem 1.1rem;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: var(--text-sm);
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    transition: color var(--t-fast), background var(--t-fast);
    -webkit-tap-highlight-color: transparent;
}
.tab:hover { color: var(--primary-dark); background: var(--surface-2); }
.tab.is-active { color: var(--primary-dark); }
.tab.is-active::after {
    content: '';
    position: absolute;
    inset-inline: .5rem;
    bottom: -.3rem;
    height: 3px;
    border-radius: var(--radius-full);
    background: var(--grad-primary);
}
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: panelIn .45s var(--ease-out-soft); }
@keyframes panelIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════════════════════════
   22. TIMELINE
   ══════════════════════════════════════════════════════════════════════════ */
.timeline {
    position: relative;
    padding-inline-start: 1.85rem;
}
.timeline::before {
    content: '';
    position: absolute;
    inset-inline-start: 6px;
    top: .4rem;
    bottom: .4rem;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary));
    opacity: .35;
}
.timeline__item { position: relative; padding-bottom: var(--space-lg); }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
    content: '';
    position: absolute;
    inset-inline-start: calc(-1.85rem + 1px);
    top: .5rem;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--primary);
    box-shadow: 0 0 0 4px var(--primary-faint);
    transition: transform var(--t-base), background var(--t-base);
}
@media (hover: hover) {
    .timeline__item:hover::before { transform: scale(1.25); background: var(--primary); }
}
.timeline__time {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 800;
    color: var(--primary-dark);
    background: var(--primary-faint);
    padding: .18rem .6rem;
    border-radius: var(--radius-full);
    margin-bottom: .3rem;
}
.timeline__title { font-size: var(--text-md); font-weight: 700; color: var(--ink); font-family: var(--font-base); line-height: var(--leading-snug); }
.timeline__desc { font-size: var(--text-sm); color: var(--text-muted); margin-top: .2rem; line-height: var(--leading-body); }

/* ══════════════════════════════════════════════════════════════════════════
   23. NEWS
   ══════════════════════════════════════════════════════════════════════════ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: clamp(1rem, .8rem + 1vw, 1.65rem);
}
.news-card { display: flex; flex-direction: column; }
.news-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: var(--surface-2);
    flex-shrink: 0;
}
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out-soft); }
@media (hover: hover) { .news-card:hover .news-card__media img { transform: scale(1.06); } }
.news-card__cat {
    position: absolute;
    top: .6rem;
    inset-inline-start: .6rem;
    z-index: 2;
}
.news-card__body {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    padding: clamp(1rem, .85rem + .6vw, 1.4rem);
    flex: 1;
}
.news-card__date {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: var(--text-xs);
    color: var(--text-faint);
    font-weight: 600;
}
.news-card__date svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.news-card__title {
    font-size: var(--text-lg);
    color: var(--ink);
    font-family: var(--font-base);
    font-weight: 700;
    line-height: var(--leading-snug);
    /* Keep card heights even */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card:hover .news-card__title { color: var(--primary-dark); }
.news-card__excerpt {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: var(--leading-body);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card__more {
    margin-top: auto;
    padding-top: var(--space-sm);
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--primary-dark);
}
.news-card__more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; transition: transform var(--t-base); }
.news-card:hover .news-card__more svg { transform: translateX(-4px); }
[dir="ltr"] .news-card:hover .news-card__more svg { transform: translateX(4px); }

/* Single news article */
.article { max-width: 52rem; margin-inline: auto; }
.article__head { margin-bottom: var(--space-lg); }
.article__title { font-size: var(--text-3xl); color: var(--ink); margin-block: .5rem .6rem; }
.article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-md); font-size: var(--text-xs); color: var(--text-muted); font-weight: 600; }
.article__meta-item { display: inline-flex; align-items: center; gap: .35rem; }
.article__meta-item svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.article__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-md);
}
.article__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article__body {
    font-size: var(--text-md);
    line-height: var(--leading-loose);
    color: var(--text);
}
.article__body p { margin-bottom: var(--space-md); }
.article__body h2, .article__body h3 { margin-block: var(--space-lg) var(--space-sm); }
.article__body ul, .article__body ol { margin: 0 0 var(--space-md); padding-inline-start: 1.25rem; }
.article__body ul li { list-style: disc; margin-bottom: .35rem; }
.article__body ol li { list-style: decimal; margin-bottom: .35rem; }
.article__body img { border-radius: var(--radius-md); margin-block: var(--space-md); }
.article__body blockquote {
    margin: var(--space-lg) 0;
    padding: var(--space-md) var(--space-lg);
    border-inline-start: 4px solid var(--primary);
    background: var(--surface-2);
    border-radius: var(--radius-md);
    color: var(--text-muted);
}

/* Share row */
.share { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: 1px solid var(--border); }
.share__label { font-size: var(--text-sm); font-weight: 700; color: var(--text-muted); }
.share__btn {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: var(--radius-full);
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: all var(--t-fast);
    cursor: pointer;
}
.share__btn svg { width: 17px; height: 17px; fill: currentColor; }
.share__btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════════════════════════
   24. PAGINATION
   ══════════════════════════════════════════════════════════════════════════ */
.pagination { margin-top: var(--space-xl); }
.pagination-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: .35rem;
}
.pagination-link {
    display: grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    padding-inline: .7rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: var(--text-sm);
    font-weight: 700;
    transition: all var(--t-fast);
}
.pagination-link:hover { border-color: var(--primary); color: var(--primary-dark); background: var(--primary-faint); }
.pagination-link.is-current {
    background: var(--grad-primary);
    border-color: transparent;
    color: #fff;
    box-shadow: var(--shadow-green);
}
.pagination-link.is-disabled { opacity: .4; pointer-events: none; }
.pagination-ellipsis { padding-inline: .3rem; color: var(--text-faint); }

/* ══════════════════════════════════════════════════════════════════════════
   25. FORMS
   ══════════════════════════════════════════════════════════════════════════ */
.field { display: grid; gap: .35rem; }
.field__label {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--ink);
}
.field__req { color: var(--danger); }
.field__hint { font-size: var(--text-xs); color: var(--text-faint); }

.form-control {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-family: inherit;
    /* 16px min on mobile prevents iOS Safari auto-zoom on focus */
    font-size: max(16px, var(--text-sm));
    line-height: 1.6;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
    appearance: none;
}
@media (min-width: 768px) { .form-control { font-size: var(--text-sm); } }
.form-control::placeholder { color: var(--text-faint); }
.form-control:hover { border-color: var(--border-strong); }
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: var(--ring);
}
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235F7269' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left .8rem center;
    background-size: 16px;
    padding-inline-start: 2.2rem;
}
[dir="ltr"] select.form-control { background-position: right .8rem center; }
[data-theme="dark"] select.form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239BB0A6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.form-grid { display: grid; gap: var(--space-md); }
.form-row { display: grid; gap: var(--space-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }

.alert {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .85rem 1rem;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: var(--leading-snug);
    border: 1px solid transparent;
}
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: .1em; fill: none; stroke: currentColor; stroke-width: 2; }
.alert-success { background: var(--primary-faint); color: var(--primary-dark); border-color: var(--primary-light); }
.alert-danger  { background: rgba(200,90,90,.1); color: var(--danger); border-color: rgba(200,90,90,.4); }
.alert-info    { background: rgba(91,141,184,.1); color: var(--info); border-color: rgba(91,141,184,.35); }
.alert-warning { background: var(--accent-light); color: var(--accent-dark); border-color: var(--accent); }

/* ══════════════════════════════════════════════════════════════════════════
   26. CTA BANNER
   ══════════════════════════════════════════════════════════════════════════ */
.cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--grad-forest);
    color: #fff;
    padding-block: clamp(2.5rem, 1.8rem + 4vw, 4.5rem);
}
.cta::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: -50%;
    opacity: .1;
    background-image: repeating-linear-gradient(65deg, rgba(255,255,255,.6) 0 1px, transparent 1px 26px);
    animation: stripeDrift 32s linear infinite reverse;
}
.cta::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset-inline-end: -10vmax;
    bottom: -14vmax;
    width: 34vmax; height: 34vmax;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232,168,56,.22), transparent 65%);
}
.cta__inner { position: relative; text-align: center; max-width: 46rem; margin-inline: auto; }
.cta__title { font-size: var(--text-3xl); color: #fff; margin-block: .6rem .6rem; }
.cta__text { font-size: var(--text-md); color: rgba(255,255,255,.9); line-height: var(--leading-body); margin-bottom: var(--space-lg); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); }
@media (max-width: 480px) {
    .cta__actions { flex-direction: column; }
    .cta__actions .btn { width: 100%; }
}
/* Mascot */
.cta__mascot {
    position: absolute;
    bottom: -6px;
    inset-inline-start: clamp(.5rem, 2vw, 3rem);
    width: clamp(70px, 9vw, 120px);
    opacity: .9;
    pointer-events: none;
    animation: mascotBob 4s var(--ease-in-out) infinite;
}
@keyframes mascotBob {
    0%, 100% { transform: translateY(0) rotate(-2deg); }
    50%      { transform: translateY(-10px) rotate(3deg); }
}
@media (max-width: 900px) { .cta__mascot { display: none; } }

/* ══════════════════════════════════════════════════════════════════════════
   27. NEWSLETTER
   ══════════════════════════════════════════════════════════════════════════ */
.newsletter {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: clamp(1.5rem, 1.2rem + 2vw, 3rem);
    text-align: center;
}
.newsletter::before {
    content: '';
    position: absolute;
    inset-inline-end: -8vmax;
    top: -10vmax;
    width: 24vmax; height: 24vmax;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-faint), transparent 68%);
    pointer-events: none;
}
.newsletter__icon {
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    margin-inline: auto;
    margin-bottom: var(--space-sm);
    border-radius: var(--radius-lg);
    background: var(--grad-primary);
    color: #fff;
    box-shadow: var(--shadow-green);
}
.newsletter__icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2; }
.newsletter__title { font-size: var(--text-2xl); color: var(--ink); margin-bottom: .4rem; }
.newsletter__text { font-size: var(--text-sm); color: var(--text-muted); max-width: 34rem; margin-inline: auto; margin-bottom: var(--space-lg); }
.newsletter__form {
    display: grid;
    gap: .6rem;
    max-width: 40rem;
    margin-inline: auto;
}
@media (min-width: 640px) {
    .newsletter__form { grid-template-columns: 1fr 1fr auto; align-items: center; }
}
.newsletter__toast {
    margin-top: var(--space-md);
    font-size: var(--text-sm);
    font-weight: 700;
    border-radius: var(--radius-sm);
    padding: .7rem 1rem;
    display: none;
}
.newsletter__toast.is-success { display: block; background: var(--primary-faint); color: var(--primary-dark); }
.newsletter__toast.is-error   { display: block; background: rgba(200,90,90,.12); color: var(--danger); }

/* ══════════════════════════════════════════════════════════════════════════
   28. TEAM
   ══════════════════════════════════════════════════════════════════════════ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: clamp(.9rem, .75rem + .8vw, 1.5rem);
}
.person { text-align: center; padding: clamp(1.1rem, .9rem + .8vw, 1.6rem); }
.person__photo {
    position: relative;
    width: clamp(88px, 22vw, 110px);
    aspect-ratio: 1;
    margin-inline: auto;
    margin-bottom: var(--space-sm);
    border-radius: var(--radius-full);
    overflow: hidden;
    background: var(--primary-faint);
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--primary-faint);
    transition: box-shadow var(--t-base), transform var(--t-base);
}
@media (hover: hover) {
    .person:hover .person__photo { transform: translateY(-4px); box-shadow: 0 0 0 3px var(--surface), 0 0 0 7px var(--primary-light); }
}
.person__photo img { width: 100%; height: 100%; object-fit: cover; }
.person__initials {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--primary-dark);
}
.person:nth-child(2n) .person__photo { background: var(--secondary-faint); box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--secondary-faint); }
.person:nth-child(2n) .person__initials { color: var(--secondary-dark); }
.person:nth-child(3n) .person__photo { background: var(--accent-light); box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--accent-light); }
.person:nth-child(3n) .person__initials { color: var(--accent-dark); }
.person__name { font-size: var(--text-md); font-family: var(--font-base); font-weight: 700; color: var(--ink); margin-bottom: .3rem; }
.person__role { margin-bottom: .45rem; }
.person__bio { font-size: var(--text-xs); color: var(--text-muted); line-height: var(--leading-body); margin: 0; }

/* ══════════════════════════════════════════════════════════════════════════
   29. INFO / CONTACT CARDS
   ══════════════════════════════════════════════════════════════════════════ */
.info-card { padding: clamp(1.2rem, 1rem + .9vw, 1.85rem); }
.info-card__head { display: flex; align-items: center; gap: .65rem; margin-bottom: var(--space-md); }
.info-card__icon {
    display: grid; place-items: center;
    width: 42px; height: 42px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    background: var(--primary-faint);
    color: var(--primary);
}
.info-card__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; }
.info-card__icon--clay { background: var(--secondary-faint); color: var(--secondary); }
.info-card__icon--accent { background: var(--accent-light); color: var(--accent-dark); }
.info-card__title { font-size: var(--text-lg); font-family: var(--font-base); font-weight: 700; color: var(--ink); }
.info-card__text { font-size: var(--text-sm); color: var(--text-muted); line-height: var(--leading-body); margin: 0; }

.map-frame {
    width: 100%;
    height: clamp(200px, 34vw, 280px);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-top: var(--space-md);
    background: var(--surface-2);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* Hours table */
.hours { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.hours tr { border-bottom: 1px solid var(--border); }
.hours tr:last-child { border-bottom: 0; }
.hours th, .hours td { padding: .65rem .2rem; text-align: start; }
.hours th { font-weight: 600; color: var(--text); }
.hours td { text-align: end; font-weight: 700; color: var(--primary-dark); font-variant-numeric: tabular-nums; }
.hours .is-closed { color: var(--danger); }

/* ══════════════════════════════════════════════════════════════════════════
   30. EMPTY STATE
   ══════════════════════════════════════════════════════════════════════════ */
.empty { text-align: center; padding-block: var(--space-2xl); }
.empty__art { width: clamp(96px, 26vw, 140px); margin-inline: auto; margin-bottom: var(--space-md); opacity: .9; }
.empty__title { font-size: var(--text-2xl); color: var(--ink); margin-bottom: .5rem; }
.empty__text { font-size: var(--text-sm); color: var(--text-muted); margin-bottom: var(--space-lg); }

/* ══════════════════════════════════════════════════════════════════════════
   31. FOOTER
   ══════════════════════════════════════════════════════════════════════════ */
.site-footer {
    position: relative;
    background: var(--ink-night);
    color: rgba(255,255,255,.78);
    padding-top: clamp(2.25rem, 1.7rem + 3vw, 3.75rem);
    font-size: var(--text-sm);
    overflow: hidden;
    isolation: isolate;
}
.site-footer::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset-inline-start: -10vmax;
    top: -12vmax;
    width: 28vmax; height: 28vmax;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(61,139,99,.28), transparent 66%);
}
.site-footer__grid {
    display: grid;
    gap: clamp(1.5rem, 1.2rem + 1.6vw, 2.75rem);
    padding-bottom: clamp(1.75rem, 1.4rem + 1.6vw, 2.75rem);
}
@media (min-width: 700px)  { .site-footer__grid { grid-template-columns: 1.4fr 1fr; } }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.6fr .9fr .9fr 1.2fr; } }

.site-footer__title {
    font-family: var(--font-base);
    font-size: var(--text-md);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: .5rem;
}
.site-footer__title::after {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    bottom: 0;
    width: 28px; height: 2px;
    border-radius: 2px;
    background: var(--accent);
}
.site-footer__brand { display: flex; align-items: center; gap: .6rem; margin-bottom: var(--space-sm); }
.site-footer__brand-name { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; color: #fff; }
.site-footer__about { line-height: var(--leading-body); margin-bottom: var(--space-md); color: rgba(255,255,255,.72); }
.site-footer__tagline {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--accent-light);
}

.site-footer__nav { display: grid; gap: .55rem; }
.site-footer__nav a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: rgba(255,255,255,.75);
    transition: color var(--t-fast), transform var(--t-fast);
}
.site-footer__nav a::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--primary-light);
    opacity: .6;
    transition: opacity var(--t-fast), transform var(--t-fast);
}
.site-footer__nav a:hover { color: #fff; transform: translateX(-4px); }
[dir="ltr"] .site-footer__nav a:hover { transform: translateX(4px); }
.site-footer__nav a:hover::before { opacity: 1; transform: scale(1.4); }

.site-footer__contacts { display: grid; gap: .7rem; }
.site-footer__contact { display: flex; align-items: flex-start; gap: .55rem; color: rgba(255,255,255,.75); line-height: var(--leading-snug); }
.site-footer__contact svg {
    width: 17px; height: 17px;
    flex-shrink: 0;
    margin-top: .2em;
    color: var(--primary-light);
    fill: none; stroke: currentColor; stroke-width: 2;
}
a.site-footer__contact:hover { color: #fff; }

.site-footer__socials { display: flex; gap: .5rem; margin-top: var(--space-md); }
.site-footer__social {
    display: grid; place-items: center;
    width: 38px; height: 38px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,.08);
    color: rgba(255,255,255,.82);
    transition: all var(--t-fast);
}
.site-footer__social svg { width: 17px; height: 17px; fill: currentColor; }
.site-footer__social:hover { background: var(--primary); color: #fff; transform: translateY(-3px); box-shadow: var(--shadow-green); }

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    padding-block: var(--space-md);
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: var(--text-xs);
    color: rgba(255,255,255,.6);
}
@media (max-width: 600px) { .site-footer__bottom { justify-content: center; text-align: center; } }
.site-footer__credit-name { color: var(--accent-light); font-weight: 700; }

/* ══════════════════════════════════════════════════════════════════════════
   32. BACK TO TOP
   ══════════════════════════════════════════════════════════════════════════ */
.to-top {
    position: fixed;
    z-index: calc(var(--z-header) - 1);
    inset-inline-end: clamp(.75rem, 2vw, 1.5rem);
    bottom: calc(.75rem + env(safe-area-inset-bottom));
    display: grid;
    place-items: center;
    width: 44px; height: 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: color-mix(in srgb, var(--surface) 92%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--primary-dark);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(.9);
    transition: opacity var(--t-base), transform var(--t-base), visibility var(--t-base), background var(--t-base);
}
@supports not (background: color-mix(in srgb, red 50%, transparent)) {
    .to-top { background: rgba(255,255,255,.94); }
    [data-theme="dark"] .to-top { background: rgba(20,37,30,.94); }
}
@media (min-width: 992px) { .to-top { bottom: clamp(1rem, 2.5vw, 2rem); } }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; }

/* Progress ring around the button — must trace the button's circle exactly,
   so it needs higher specificity than `.to-top svg` (which sizes the icon). */
.to-top svg.to-top__ring {
    position: absolute;
    inset: -1px;
    width: calc(100% + 2px);
    height: calc(100% + 2px);
    transform: rotate(-90deg);
    pointer-events: none;
}
.to-top svg.to-top__ring circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    opacity: .8;
    transition: stroke-dashoffset .1s linear;
}

/* ══════════════════════════════════════════════════════════════════════════
   33. CMS PAGE CONTENT
   ══════════════════════════════════════════════════════════════════════════ */
.prose {
    font-size: var(--text-md);
    line-height: var(--leading-loose);
    color: var(--text);
    max-width: 52rem;
}
.prose > * + * { margin-top: var(--space-md); }
.prose h2 { font-size: var(--text-2xl); margin-top: var(--space-xl); }
.prose h3 { font-size: var(--text-xl); margin-top: var(--space-lg); }
.prose a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.prose ul li { list-style: disc; margin-inline-start: 1.25rem; }
.prose ol li { list-style: decimal; margin-inline-start: 1.25rem; }

/* ══════════════════════════════════════════════════════════════════════════
   34. PAGE TRANSITION
   ══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
    html.page-entering .site-main { animation: pageIn .5s var(--ease-out-soft) both; }
    @keyframes pageIn {
        from { opacity: 0; transform: translateY(10px); }
        to   { opacity: 1; transform: none; }
    }
    html.page-leaving body { opacity: .35; transition: opacity .16s ease-out; }
}

/* ══════════════════════════════════════════════════════════════════════════
   35. PRINT
   ══════════════════════════════════════════════════════════════════════════ */
@media print {
    .topbar, .site-header, .drawer, .drawer-overlay,
    .to-top, .scroll-progress, .bg-canvas, .cta, .newsletter,
    .hero__nav, .hero__dots, .hero__playpause, .hero__cue { display: none !important; }
    body { background: #fff; color: #000; padding: 0; }
    .section { padding-block: 1rem; page-break-inside: avoid; }
    a { text-decoration: underline; }
}
