/* ==========================================================================
   UmrahCore — main stylesheet
   Tokens per Brand Guidelines v1.0. Always reference the token, never raw hex.
   60 · 30 · 10 — neutral surfaces lead, emerald structures, gold accents only.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
    /* Brand — emerald */
    --primary:       #0a4f3c;
    --primary-2:     #0c6049;   /* hover */
    --primary-soft:  #d9e9e0;   /* tints */
    --primary-deep:  #073a2c;   /* derived deep shade for gradients */

    /* Brand — gold */
    --gold:          #8a6420;   /* body-safe 6.5:1 */
    --gold-bright:   #a87a26;   /* focus */
    --gold-soft:     #f0e2bf;   /* badges */

    /* Surfaces — warm, desaturated; pure white avoided */
    --bg:            #f1ebdd;
    --paper:         #f8f3e6;
    --surface:       #fcfaf2;
    --surface-2:     #f5efe1;

    /* Ink scale */
    --ink:           #0d1714;   /* 16.8:1 */
    --ink-2:         #2c3833;   /* 11.4:1 */
    --ink-3:         #46524d;   /* 7.0:1  */
    --muted:         #5a6660;   /* 6.1:1  */

    /* Status & category */
    --danger:        #871616;
    --warn:          #8a6420;
    --info:          #1d4582;
    --violet:        #4f3279;   /* visa & special-process */
    --teal:          #0a5f5c;   /* hotel & transport */

    /* Soft tints for chips */
    --danger-soft:   #f2dcdc;
    --info-soft:     #dde6f2;
    --violet-soft:   #e6def2;
    --teal-soft:     #d8ebea;

    /* Type */
    --font-display:  "Fraunces", Georgia, serif;
    --font-body:     "DM Sans", system-ui, -apple-system, sans-serif;
    --font-mono:     "JetBrains Mono", ui-monospace, "SF Mono", monospace;

    /* Rhythm */
    --radius:        14px;
    --radius-sm:     9px;
    --radius-lg:     22px;
    --container:     1160px;
    --section-y:     clamp(4.25rem, 9vw, 7.5rem);
    --header-h:      74px;

    --shadow-sm:     0 1px 2px rgba(13, 23, 20, .06), 0 2px 8px rgba(13, 23, 20, .05);
    --shadow-md:     0 2px 6px rgba(13, 23, 20, .07), 0 12px 32px rgba(13, 23, 20, .09);
    --shadow-lg:     0 6px 16px rgba(13, 23, 20, .10), 0 28px 60px rgba(13, 23, 20, .14);

    --border:        1px solid rgba(13, 23, 20, .10);
    --border-strong: 1px solid rgba(13, 23, 20, .16);

    --ease:          cubic-bezier(.22, .8, .32, 1);
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--ink-2);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }
ul { padding: 0; margin: 0; list-style: none; }
p { margin: 0 0 1rem; }
strong { color: var(--ink); font-weight: 600; }

.mono, [data-count], .kpi__value {
    font-family: var(--font-mono);
    font-feature-settings: "tnum";
}

/* Gold 3px focus ring — never removed */
:focus-visible {
    outline: 3px solid var(--gold-bright);
    outline-offset: 3px;
    border-radius: 4px;
}

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

.sr-only {
    position: absolute; width: 1px; height: 1px;
    clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
    position: fixed; top: -60px; inset-inline-start: 16px; z-index: 200;
    padding: .6rem 1.1rem;
    background: var(--primary); color: var(--paper);
    border-radius: var(--radius-sm);
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: var(--paper); }

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

section { padding-block: var(--section-y); }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
.heading {
    font-family: var(--font-display);
    font-weight: 550;
    letter-spacing: -.02em;
    line-height: 1.12;
    color: var(--ink);
    margin: 0 0 1.1rem;
    font-variation-settings: "opsz" 100;
}
.heading em {
    font-style: italic;
    font-weight: 480;
    color: var(--gold);
}
h1.heading { font-size: clamp(2.35rem, 5.4vw, 3.7rem); }
h2.heading { font-size: clamp(1.85rem, 3.6vw, 2.6rem); }
h3.heading { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }

.eyebrow {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 .9rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.eyebrow::before {
    content: "";
    width: 26px; height: 2px;
    background: var(--gold-bright);
    border-radius: 2px;
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::after {
    content: "";
    width: 26px; height: 2px;
    background: var(--gold-bright);
    border-radius: 2px;
}

.lede {
    font-size: 1.14rem;
    color: var(--ink-3);
    max-width: 46rem;
}

.section-head { max-width: 46rem; margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after { content: ""; width: 26px; height: 2px; background: var(--gold-bright); border-radius: 2px; }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .82rem 1.6rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    font: 600 .95rem/1 var(--font-body);
    letter-spacing: .01em;
    cursor: pointer;
    transition: background-color .22s var(--ease), color .22s var(--ease),
                border-color .22s var(--ease), transform .22s var(--ease),
                box-shadow .22s var(--ease);
    will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sm { padding: .58rem 1.15rem; font-size: .88rem; }
.btn--lg { padding: 1rem 2.1rem; font-size: 1.02rem; }

.btn--primary { background: var(--primary); color: var(--paper); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--primary-2); color: var(--paper); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--gold { background: var(--gold-bright); color: #fffdf5; box-shadow: var(--shadow-sm); }
.btn--gold:hover { background: var(--gold); color: #fffdf5; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn--ghost { background: transparent; color: var(--primary); border-color: rgba(10, 79, 60, .38); }
.btn--ghost:hover { border-color: var(--primary); background: var(--primary-soft); transform: translateY(-2px); }

.btn--ghost-light { background: transparent; color: var(--paper); border-color: rgba(248, 243, 230, .45); }
.btn--ghost-light:hover { color: var(--paper); border-color: var(--paper); background: rgba(248, 243, 230, .10); transform: translateY(-2px); }

/* --------------------------------------------------------------------------
   5. Logo lockup & khatim mark
   -------------------------------------------------------------------------- */
.lockup { display: inline-flex; align-items: center; gap: .7rem; }
.lockup__text { display: flex; flex-direction: column; line-height: 1; }
.lockup__word {
    font-family: var(--font-display);
    font-weight: 620;
    font-size: 1.42rem;
    letter-spacing: -.02em;
}
.lockup__umrah { color: var(--ink); }
.lockup__core  { color: var(--gold); }
.lockup--reversed .lockup__umrah { color: var(--paper); }
.lockup--reversed .lockup__core  { color: var(--gold-soft); }
.lockup__tagline {
    margin-top: .42rem;
    font: 600 .58rem/1 var(--font-body);
    letter-spacing: .17em;
    text-transform: uppercase;
    color: var(--muted);
}
.lockup--reversed .lockup__tagline { color: rgba(248, 243, 230, .65); }

/* --------------------------------------------------------------------------
   6. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-scrolled {
    border-bottom-color: rgba(13, 23, 20, .08);
    box-shadow: 0 4px 24px rgba(13, 23, 20, .06);
}
.site-header__inner {
    height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.site-header__brand:focus-visible { outline-offset: 6px; }

.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav__list { display: flex; align-items: center; gap: .25rem; }
.site-nav__link {
    position: relative;
    display: inline-block;
    padding: .55rem .8rem;
    font-size: .93rem;
    font-weight: 500;
    color: var(--ink-2);
    border-radius: var(--radius-sm);
    transition: color .2s var(--ease), background-color .2s var(--ease);
}
.site-nav__link::after {
    content: "";
    position: absolute; left: .8rem; right: .8rem; bottom: .3rem;
    height: 2px; background: var(--gold-bright);
    transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
}
.site-nav__link:hover { color: var(--primary); background: rgba(10, 79, 60, .05); }
.site-nav__link:hover::after,
.site-nav__link.is-current::after { transform: scaleX(1); }
.site-nav__link.is-current { color: var(--primary); font-weight: 600; }

/* Nav dropdown (e.g. Catalog) — native <details>, same pattern as lang-switch */
.nav-dropdown { position: relative; }
.nav-dropdown__trigger {
    display: inline-flex; align-items: center; gap: .3rem;
    cursor: pointer; user-select: none; list-style: none;
}
.nav-dropdown__trigger::-webkit-details-marker { display: none; }
.nav-dropdown__chevron { transition: transform .2s var(--ease); }
.nav-dropdown[open] .nav-dropdown__chevron { transform: rotate(180deg); }
.nav-dropdown__menu {
    position: absolute; top: calc(100% + 8px); inset-inline-start: 0;
    min-width: 230px;
    background: var(--surface);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .4rem;
    z-index: 60;
    list-style: none;
}
.nav-dropdown__menu li + li { margin-top: .1rem; }
.nav-dropdown__menu a {
    display: flex; align-items: center; gap: .55rem;
    padding: .55rem .6rem;
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    font-size: .9rem;
}
.nav-dropdown__menu a:hover { background: var(--primary-soft); color: var(--primary); }
.nav-dropdown__menu .icon { flex: none; color: var(--muted); }

/* Language switcher — native <details>, same pattern as the FAQ accordions */
.lang-switch { position: relative; }
.lang-switch__button {
    display: flex; align-items: center; gap: .35rem;
    padding: .5rem .7rem;
    font: 600 .8rem/1 var(--font-body);
    color: var(--ink-2);
    border-radius: var(--radius-sm);
    cursor: pointer;
    list-style: none;
    user-select: none;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang-switch__button::-webkit-details-marker { display: none; }
.lang-switch__button:hover { color: var(--primary); background: rgba(10, 79, 60, .05); }
.lang-switch__current { letter-spacing: .04em; }
.lang-switch__chevron { transition: transform .2s var(--ease); }
.lang-switch[open] .lang-switch__chevron { transform: rotate(180deg); }
.lang-switch__menu {
    position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
    min-width: 190px;
    background: var(--surface);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: .4rem;
    z-index: 60;
    list-style: none;
}
.lang-switch__menu li + li { margin-top: .1rem; }
.lang-switch__menu a {
    display: flex; align-items: baseline; justify-content: space-between; gap: .6rem;
    padding: .5rem .6rem;
    border-radius: var(--radius-sm);
    color: var(--ink-2);
    font-size: .9rem;
}
.lang-switch__menu a:hover { background: var(--primary-soft); color: var(--primary); }
.lang-switch__menu a.is-current { color: var(--primary); font-weight: 600; background: var(--primary-soft); }
.lang-switch__english { font-size: .74rem; color: var(--muted); }
@media (max-width: 1100px) {
    .lang-switch { order: -1; margin-inline-end: auto; }
    .lang-switch__menu { inset-inline-start: 0; inset-inline-end: auto; }
}

.nav-toggle {
    display: none;
    background: none; border: 0; padding: .5rem;
    color: var(--ink); cursor: pointer;
    border-radius: var(--radius-sm);
}
.nav-toggle__close { display: none; }
body.nav-open .nav-toggle__open  { display: none; }
body.nav-open .nav-toggle__close { display: block; }

@media (max-width: 1100px) {
    .nav-toggle { display: block; }
    .site-nav {
        /* Note: the header's backdrop-filter makes it the containing block
           for fixed descendants, so we anchor the drawer absolutely to the
           (sticky) header instead — same visual result, correct geometry. */
        position: absolute; top: 100%; inset-inline-end: 0;
        height: calc(100vh - var(--header-h));
        height: calc(100dvh - var(--header-h));
        width: min(340px, 88vw);
        flex-direction: column; align-items: stretch; gap: .4rem;
        padding: 1.6rem 1.4rem 2rem;
        background: var(--paper);
        border-inline-start: var(--border);
        box-shadow: var(--shadow-lg);
        transform: translateX(105%);
        transition: transform .34s var(--ease);
        overflow-y: auto;
    }
    body.nav-open .site-nav { transform: translateX(0); }
    .site-nav__list { flex-direction: column; align-items: stretch; gap: .15rem; }
    .site-nav__link { display: block; padding: .85rem 1rem; font-size: 1.02rem; }
    .site-nav__link::after { display: none; }
    .site-nav__link.is-current { background: var(--primary-soft); }
    .nav-dropdown__trigger { justify-content: space-between; width: 100%; }
    .nav-dropdown__menu {
        position: static; box-shadow: none; border: 0; background: transparent;
        padding: .1rem 0 .3rem 1rem;
    }
    .site-nav__cta { margin-top: 1rem; }
    body.nav-open { overflow: hidden; }
}

/* --------------------------------------------------------------------------
   7. Khatim pattern & ambient decoration
   -------------------------------------------------------------------------- */
.khatim { flex: none; }

/* Repeating khatim outline — the geometric texture behind emerald bands */
.pattern-khatim {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='96' viewBox='0 0 100 100'%3E%3Cpolygon fill='none' stroke='%23f8f3e6' stroke-width='1.4' points='50,10 61.1,21.1 76.8,21.1 76.8,36.9 87.9,48 76.8,59.1 76.8,74.9 61.1,74.9 50,86 38.9,74.9 23.2,74.9 23.2,59.1 12.1,48 23.2,36.9 23.2,21.1 38.9,21.1'/%3E%3C/svg%3E");
    background-size: 96px 96px;
}

.hero__pattern,
.page-hero__pattern,
.cta-band__pattern {
    position: absolute; inset: 0;
    opacity: .07;
    pointer-events: none;
    mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 30%, transparent 85%);
}

/* Floating stars (hero atmosphere) */
.float-star {
    position: absolute;
    opacity: .16;
    animation: floatDrift 11s ease-in-out infinite;
    pointer-events: none;
}
.float-star:nth-child(2) { animation-duration: 14s; animation-delay: -4s; }
.float-star:nth-child(3) { animation-duration: 17s; animation-delay: -8s; }
@keyframes floatDrift {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50%      { transform: translate3d(0, -22px, 0) rotate(9deg); }
}

/* --------------------------------------------------------------------------
   8. Home hero
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    overflow: clip;
    padding: 0;
    background:
        radial-gradient(90rem 42rem at 78% -18%, rgba(168, 122, 38, .22), transparent 55%),
        radial-gradient(70rem 50rem at -12% 108%, rgba(12, 96, 73, .55), transparent 60%),
        linear-gradient(168deg, var(--primary-deep) 0%, var(--primary) 58%, #0b5a44 100%);
    color: var(--paper);
}
.hero__pattern { position: absolute; inset: 0; }
.hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: center;
    gap: clamp(2.5rem, 6vw, 5rem);
    padding-block: clamp(5rem, 10vw, 8.5rem) clamp(4rem, 8vw, 6.5rem);
}
.hero__eyebrow { color: var(--gold-soft); }
.hero__eyebrow::before { background: var(--gold-soft); }
.hero__title { color: var(--paper); margin-bottom: 1.4rem; }
.hero__title em { color: var(--gold-soft); }
.hero__lede {
    font-size: 1.16rem;
    line-height: 1.7;
    color: rgba(248, 243, 230, .84);
    max-width: 34rem;
    margin-bottom: 2.1rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.4rem; }
.hero__meta {
    display: flex; flex-wrap: wrap; gap: 1.6rem;
    font-size: .84rem;
    color: rgba(248, 243, 230, .68);
}
.hero__meta span { display: inline-flex; align-items: center; gap: .5rem; }
.hero__meta .icon { color: var(--gold-soft); }

/* Hero visual — animated khatim geometry with an operations card */
.hero__visual { position: relative; min-height: 380px; display: grid; place-items: center; }
.hero-geo { position: absolute; inset: 0; display: grid; place-items: center; }
.hero-geo svg { width: min(430px, 84%); height: auto; overflow: visible; }
.hero-geo .sq { transform-origin: 50% 50%; }
.hero-geo .sq--a { animation: sqSpinA 46s linear infinite; }
.hero-geo .sq--b { animation: sqSpinB 46s linear infinite; }
@keyframes sqSpinA { from { transform: rotate(0deg); }  to { transform: rotate(360deg); } }
@keyframes sqSpinB { from { transform: rotate(45deg); } to { transform: rotate(405deg); } }
.hero-geo .core { animation: corePulse 3.6s ease-in-out infinite; transform-origin: 50% 50%; }
@keyframes corePulse { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.18); } }

.hero-card {
    position: relative;
    width: min(330px, 100%);
    background: var(--surface);
    color: var(--ink-2);
    border-radius: var(--radius-lg);
    padding: 1.3rem 1.4rem 1.4rem;
    box-shadow: var(--shadow-lg);
    border: var(--border);
    transform: rotate(-1.2deg);
    animation: cardFloat 7s ease-in-out infinite;
}
@keyframes cardFloat {
    0%, 100% { transform: rotate(-1.2deg) translateY(0); }
    50%      { transform: rotate(-1.2deg) translateY(-10px); }
}
.hero-card__head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 1rem;
}
.hero-card__label {
    font: 600 .68rem/1 var(--font-body);
    letter-spacing: .13em; text-transform: uppercase;
    color: var(--muted); margin: 0;
}
.hero-card__value {
    font-family: var(--font-display);
    font-size: 2.1rem; font-weight: 560; letter-spacing: -.02em;
    color: var(--ink); margin: 0 0 .15rem;
}
.hero-card__value .mono { font-size: inherit; }
.hero-card__foot { font-size: .8rem; color: var(--muted); margin: 0 0 1.05rem; }
.hero-card__rows { display: grid; gap: .55rem; }
.hero-card__row {
    display: flex; align-items: center; justify-content: space-between; gap: .8rem;
    padding: .55rem .7rem;
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    font-size: .84rem;
}
.hero-card__row .mono { font-size: .8rem; color: var(--ink-3); }

/* --------------------------------------------------------------------------
   9. Interior page hero
   -------------------------------------------------------------------------- */
.page-hero {
    position: relative;
    overflow: clip;
    background:
        radial-gradient(60rem 30rem at 85% -30%, rgba(168, 122, 38, .18), transparent 60%),
        linear-gradient(165deg, var(--primary-deep), var(--primary) 70%);
    color: var(--paper);
    padding-block: clamp(4rem, 8vw, 6.2rem) clamp(3.2rem, 6vw, 4.8rem);
}
.page-hero__inner { position: relative; max-width: 52rem; }
.page-hero__eyebrow { color: var(--gold-soft); }
.page-hero__eyebrow::before { background: var(--gold-soft); }
.page-hero__title { color: var(--paper); }
.page-hero__title em { color: var(--gold-soft); }
.page-hero__lede { font-size: 1.13rem; color: rgba(248, 243, 230, .82); max-width: 44rem; margin: 0; }

/* --------------------------------------------------------------------------
   10. Cards & grids
   -------------------------------------------------------------------------- */
.grid { display: grid; gap: 1.4rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1100px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px)  { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
    display: block;
    background: var(--surface);
    border: var(--border);
    border-radius: var(--radius);
    padding: 1.7rem 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
a.card { color: inherit; }
.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(10, 79, 60, .22);
}

.card__icon {
    display: inline-grid; place-items: center;
    width: 46px; height: 46px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary);
    margin-bottom: 1.05rem;
    transition: background-color .28s var(--ease), color .28s var(--ease), transform .28s var(--ease);
}
.card:hover .card__icon { background: var(--primary); color: var(--gold-soft); transform: scale(1.06); }

.card__title {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 560;
    letter-spacing: -.01em;
    color: var(--ink);
    margin: 0 0 .5rem;
}
.card__text { font-size: .92rem; color: var(--ink-3); margin: 0; }
.card__more {
    display: inline-flex; align-items: center; gap: .4rem;
    margin-top: 1rem;
    font: 600 .82rem/1 var(--font-body);
    color: var(--gold);
    transition: gap .22s var(--ease);
}
.card:hover .card__more { gap: .65rem; color: var(--gold-bright); }

/* --------------------------------------------------------------------------
   11. KPI cards
   -------------------------------------------------------------------------- */
.kpi-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}
@media (max-width: 880px) { .kpi-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .kpi-strip { grid-template-columns: 1fr; } }

.kpi {
    background: var(--surface);
    border: var(--border);
    border-inline-start: 3px solid var(--gold-bright);
    border-radius: var(--radius);
    padding: 1.25rem 1.35rem 1.15rem;
    box-shadow: var(--shadow-sm);
}
.kpi__label {
    font: 600 .68rem/1.3 var(--font-body);
    letter-spacing: .13em; text-transform: uppercase;
    color: var(--muted); margin: 0 0 .55rem;
}
.kpi__value {
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: -.02em;
    margin: 0;
    line-height: 1.05;
}
.kpi__foot { font-size: .8rem; color: var(--muted); margin: .45rem 0 0; }

/* --------------------------------------------------------------------------
   12. Chips — status & category per brand §07
   -------------------------------------------------------------------------- */
.chip {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .32rem .8rem;
    border-radius: 999px;
    font: 600 .75rem/1.2 var(--font-body);
    letter-spacing: .02em;
    white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip--primary { background: var(--primary-soft); color: var(--primary); }
.chip--gold    { background: var(--gold-soft);    color: var(--gold); }
.chip--violet  { background: var(--violet-soft);  color: var(--violet); }
.chip--teal    { background: var(--teal-soft);    color: var(--teal); }
.chip--info    { background: var(--info-soft);    color: var(--info); }
.chip--danger  { background: var(--danger-soft);  color: var(--danger); }
.chip-row { display: flex; flex-wrap: wrap; gap: .55rem; }

/* --------------------------------------------------------------------------
   13. Check list
   -------------------------------------------------------------------------- */
.check-list { display: grid; gap: .7rem; }
.check-item { display: flex; gap: .7rem; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.check-item__icon { flex: none; margin-top: .22rem; color: var(--primary); background: var(--primary-soft); border-radius: 50%; padding: 2px; width: 20px; height: 20px; }

/* --------------------------------------------------------------------------
   14. Split feature rows (image/panel + copy)
   -------------------------------------------------------------------------- */
.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2.2rem, 5vw, 4.5rem);
    align-items: center;
}
.split--reverse > .split__media { order: 2; }
@media (max-width: 880px) {
    .split { grid-template-columns: 1fr; }
    .split--reverse > .split__media { order: 0; }
}

.panel {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--primary-deep), var(--primary));
    padding: clamp(1.6rem, 3.5vw, 2.6rem);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.panel .pattern-khatim { position: absolute; inset: 0; opacity: .06; }
.panel__inner { position: relative; }

/* Mini mock UI blocks used inside panels */
.mock {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 1.1rem 1.2rem;
    font-size: .84rem;
    color: var(--ink-2);
}
.mock + .mock { margin-top: .9rem; }
.mock__title {
    font: 600 .66rem/1 var(--font-body);
    letter-spacing: .13em; text-transform: uppercase;
    color: var(--muted); margin: 0 0 .75rem;
}
.mock__row {
    display: flex; align-items: center; justify-content: space-between; gap: .8rem;
    padding: .5rem .65rem;
    border-radius: var(--radius-sm);
    background: var(--surface-2);
}
.mock__row + .mock__row { margin-top: .45rem; }
.mock__row .mono { font-size: .78rem; color: var(--ink-3); }

/* Progress ladder (visa states) */
.ladder { display: grid; gap: .4rem; }
.ladder__step {
    display: flex; align-items: center; gap: .7rem;
    font-size: .82rem; color: var(--ink-3);
}
.ladder__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary-soft); border: 2px solid var(--primary); flex: none; }
.ladder__step.is-done .ladder__dot { background: var(--primary); }
.ladder__step.is-active { color: var(--ink); font-weight: 600; }
.ladder__step.is-active .ladder__dot { border-color: var(--gold-bright); background: var(--gold-soft); }

/* --------------------------------------------------------------------------
   15. Tier diagram — Master → Reseller → Agent
   -------------------------------------------------------------------------- */
.tiers { display: grid; gap: 0; justify-items: center; }
.tier {
    width: min(560px, 100%);
    background: var(--surface);
    border: var(--border);
    border-radius: var(--radius);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex; gap: 1.1rem; align-items: flex-start;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tier--master   { border-top: 3px solid var(--primary); }
.tier--reseller { border-top: 3px solid var(--gold-bright); width: min(500px, 94%); }
.tier--agent    { border-top: 3px solid var(--teal); width: min(440px, 88%); }
.tier__badge {
    flex: none;
    display: grid; place-items: center;
    width: 44px; height: 44px; border-radius: 12px;
    background: var(--primary-soft); color: var(--primary);
}
.tier--reseller .tier__badge { background: var(--gold-soft); color: var(--gold); }
.tier--agent    .tier__badge { background: var(--teal-soft); color: var(--teal); }
.tier__name { font-family: var(--font-display); font-weight: 580; font-size: 1.08rem; color: var(--ink); margin: 0 0 .3rem; }
.tier__text { font-size: .88rem; color: var(--ink-3); margin: 0; }
.tier-link {
    width: 2px; height: 34px;
    background: linear-gradient(var(--gold-bright), rgba(168, 122, 38, .25));
    position: relative;
}
.tier-link::after {
    content: "";
    position: absolute; bottom: -1px; left: 50%;
    width: 8px; height: 8px;
    border-right: 2px solid var(--gold-bright);
    border-bottom: 2px solid var(--gold-bright);
    transform: translateX(-50%) rotate(45deg);
}

/* --------------------------------------------------------------------------
   16. Module sections (features page)
   -------------------------------------------------------------------------- */

/* Two-column shell: sticky index sidebar + scrolling content */
.features-layout { padding-block: clamp(2.4rem, 5vw, 3.6rem); }
.features-layout__inner {
    display: grid;
    grid-template-columns: minmax(200px, 244px) minmax(0, 1fr);
    gap: clamp(1.6rem, 4vw, 3.4rem);
    align-items: start;
}

.module { padding-block: clamp(2.2rem, 4vw, 3rem); }
.module + .module { border-top: var(--border); }
.module__head { display: flex; gap: 1.3rem; align-items: flex-start; margin-bottom: 2rem; max-width: 52rem; }
.module__num {
    font-family: var(--font-mono);
    font-size: .82rem;
    color: var(--gold);
    background: var(--gold-soft);
    padding: .4rem .65rem;
    border-radius: var(--radius-sm);
    margin-top: .35rem;
    flex: none;
}
.module__title { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-bottom: .55rem; }
.module__intro { color: var(--ink-3); margin: 0; }
.module__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(216px, 1fr)); gap: 1.1rem; }

.mini-card {
    background: var(--surface);
    border: var(--border);
    border-radius: var(--radius);
    padding: 1.25rem 1.3rem;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(10, 79, 60, .2); }
.mini-card__title {
    display: flex; align-items: center; gap: .55rem;
    font: 600 .97rem/1.35 var(--font-body);
    color: var(--ink); margin: 0 0 .45rem;
}
.mini-card__title::before {
    content: "";
    flex: none;
    width: 8px; height: 8px;
    background: var(--gold-bright);
    transform: rotate(45deg);
}
.mini-card__text { font-size: .88rem; color: var(--ink-3); margin: 0; }

/* Sticky vertical index (sidebar) */
.module-nav {
    position: sticky;
    top: calc(var(--header-h) + 1.1rem);
    align-self: start;
    max-height: calc(100vh - var(--header-h) - 2rem);
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: thin;
}
.module-nav::-webkit-scrollbar { width: 6px; }
.module-nav::-webkit-scrollbar-thumb { background: rgba(13, 23, 20, .14); border-radius: 3px; }
.module-nav__label {
    margin: 0 0 .6rem;
    padding-inline-start: .2rem;
    font: 600 .68rem/1 var(--font-body);
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.module-nav__list { display: flex; flex-direction: column; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.module-nav__link {
    display: flex; align-items: baseline; gap: .55rem;
    padding: .5rem .7rem;
    border-radius: var(--radius-sm);
    border-inline-start: 2px solid transparent;
    font: 500 .86rem/1.35 var(--font-body);
    color: var(--ink-3);
    transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.module-nav__link .mono { flex: none; color: var(--gold); font-weight: 600; font-size: .78rem; }
.module-nav__link:hover { background: var(--primary-soft); color: var(--primary); }
.module-nav__link.is-active {
    background: var(--primary-soft);
    color: var(--primary);
    font-weight: 600;
    border-inline-start-color: var(--primary);
}
.module-nav__link.is-active .mono { color: var(--primary); }

/* Below 900px: collapse to one column, index becomes a horizontal scroller */
@media (max-width: 900px) {
    .features-layout { padding-block: 0; }
    .features-layout__inner { display: block; }
    .module-nav {
        position: sticky; top: var(--header-h); z-index: 60;
        max-height: none; overflow-y: visible; overflow-x: auto;
        margin-inline: calc(50% - 50vw);
        padding-inline: max(1.25rem, calc(50vw - var(--container) / 2));
        background: color-mix(in srgb, var(--bg) 94%, transparent);
        backdrop-filter: blur(10px);
        border-block: var(--border);
        box-shadow: 0 6px 16px -12px rgba(20, 30, 25, .25);
        -ms-overflow-style: none; scrollbar-width: none;
    }
    .module-nav::-webkit-scrollbar { display: none; height: 0; }
    .module-nav__label { display: none; }
    .module-nav__list { flex-direction: row; gap: .45rem; padding-block: .6rem; width: max-content; }
    .module-nav__link {
        border: 1px solid rgba(13, 23, 20, .12);
        border-radius: 999px;
        white-space: nowrap;
        background: var(--paper);
        font-size: .8rem;
    }
    .module-nav__link .module-nav__name::before { content: "· "; color: var(--muted); }
    .module-nav__link.is-active {
        background: var(--primary); color: var(--paper); border-color: var(--primary);
    }
    .module-nav__link.is-active .mono { color: var(--paper); opacity: .85; }
    .module-nav__link.is-active .module-nav__name::before { color: rgba(248, 243, 230, .6); }
    .module-list { padding-top: clamp(1.6rem, 5vw, 2.4rem); }
    .module { padding-block: clamp(1.8rem, 5vw, 2.4rem); }
}

/* --------------------------------------------------------------------------
   17. Timeline (roadmap)
   -------------------------------------------------------------------------- */
.timeline { position: relative; max-width: 46rem; margin-inline: auto; padding-inline-start: 2.2rem; }
.timeline::before {
    content: "";
    position: absolute; inset-inline-start: 9px; top: 8px; bottom: 8px;
    width: 2px;
    background: linear-gradient(var(--primary), var(--gold-bright));
    border-radius: 2px;
}
.timeline__item { position: relative; padding-bottom: 2rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
    position: absolute; inset-inline-start: -2.2rem; top: .35rem;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--primary);
}
.timeline__item[data-phase="phase-3"] .timeline__dot { border-color: var(--gold-bright); }
.timeline__phase {
    display: inline-block;
    font: 600 .68rem/1 var(--font-mono);
    letter-spacing: .08em; text-transform: uppercase;
    color: var(--violet);
    background: var(--violet-soft);
    padding: .32rem .6rem;
    border-radius: 999px;
    margin-bottom: .55rem;
}
.timeline__item[data-phase="phase-3"] .timeline__phase { color: var(--gold); background: var(--gold-soft); }
.timeline__title { font-family: var(--font-display); font-size: 1.14rem; font-weight: 570; color: var(--ink); margin: 0 0 .3rem; }
.timeline__text { font-size: .92rem; color: var(--ink-3); margin: 0; }

/* --------------------------------------------------------------------------
   18. Pricing
   -------------------------------------------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; align-items: stretch; }
.pricing-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .pricing-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 880px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } .pricing-grid--4 { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

.price-card__setup { font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 0 0 .55rem; }
.price-card--featured .price-card__setup { color: rgba(248, 243, 230, .68); }

.price-card {
    position: relative;
    display: flex; flex-direction: column;
    background: var(--surface);
    border: var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem 1.8rem;
    box-shadow: var(--shadow-sm);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.price-card--featured {
    background: linear-gradient(165deg, var(--primary-deep), var(--primary));
    color: rgba(248, 243, 230, .85);
    border-color: transparent;
    box-shadow: var(--shadow-lg);
}
.price-card__flag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--gold-bright); color: #fffdf5;
    font: 600 .68rem/1 var(--font-body);
    letter-spacing: .12em; text-transform: uppercase;
    padding: .45rem .95rem;
    border-radius: 999px;
    white-space: nowrap;
}
.price-card__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 580; color: var(--ink); margin: 0 0 .35rem; }
.price-card--featured .price-card__name { color: var(--paper); }
.price-card__for { font-size: .86rem; color: var(--muted); margin: 0 0 1.3rem; }
.price-card--featured .price-card__for { color: rgba(248, 243, 230, .7); }
.price-card__price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 520; letter-spacing: -.02em; color: var(--ink); margin: 0 0 1.1rem; }
.price-card__per {
    display: block;
    font-family: var(--font-body);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .02em;
    color: var(--ink-3);
    margin-top: .3rem;
}
.price-card--featured .price-card__per { color: rgba(248, 243, 230, .75); }
.price-card--featured .price-card__price { color: var(--gold-soft); }
.price-card__basis { font-size: .8rem; color: var(--muted); margin: 0 0 1.5rem; }
.price-card--featured .price-card__basis { color: rgba(248, 243, 230, .62); }
.price-card .check-list { margin-bottom: 1.8rem; flex: 1; }
.price-card--featured .check-item { color: rgba(248, 243, 230, .88); }
.price-card--featured .check-item__icon { background: rgba(248, 243, 230, .14); color: var(--gold-soft); }

/* --------------------------------------------------------------------------
   19. Testimonials & partner logos
   -------------------------------------------------------------------------- */
.quote-card {
    background: var(--surface);
    border: var(--border);
    border-radius: var(--radius);
    padding: 1.8rem 1.7rem;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: 1.2rem;
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.quote-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.quote-card__mark { color: var(--gold-bright); font-family: var(--font-display); font-size: 2.6rem; line-height: .5; margin-top: .8rem; }
.quote-card__text { font-size: .98rem; color: var(--ink-2); font-style: italic; font-family: var(--font-display); font-weight: 420; margin: 0; flex: 1; }
.quote-card__who { display: flex; align-items: center; gap: .85rem; }
.quote-card__avatar {
    width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--primary); color: var(--gold-soft);
    font: 600 .85rem/1 var(--font-body);
    letter-spacing: .04em;
    flex: none;
}
.quote-card__name { font-weight: 600; font-size: .9rem; color: var(--ink); margin: 0; }
.quote-card__role { font-size: .78rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------------------
   20. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.accordion {
    background: var(--surface);
    border: var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .25s var(--ease);
    overflow: hidden;
}
.accordion + .accordion { margin-top: .85rem; }
.accordion[open] { box-shadow: var(--shadow-md); }
.accordion__summary {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1.15rem 1.4rem;
    cursor: pointer;
    list-style: none;
    font: 600 1rem/1.4 var(--font-body);
    color: var(--ink);
    transition: color .2s var(--ease);
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary:hover { color: var(--primary); }
.accordion__chevron { flex: none; color: var(--gold); transition: transform .3s var(--ease); }
.accordion[open] .accordion__chevron { transform: rotate(180deg); }
.accordion__body { padding: 0 1.4rem 1.3rem; color: var(--ink-3); font-size: .95rem; }
.accordion__body p { margin: 0; }

/* --------------------------------------------------------------------------
   21. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
    position: relative;
    overflow: clip;
    background:
        radial-gradient(60rem 30rem at 15% 120%, rgba(168, 122, 38, .22), transparent 60%),
        linear-gradient(160deg, var(--primary-deep), var(--primary) 75%);
    color: var(--paper);
    text-align: center;
}
.cta-band__inner { position: relative; max-width: 44rem; display: grid; justify-items: center; }
.cta-band__mark { margin-bottom: 1.4rem; filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .25)); }
.cta-band__title { color: var(--paper); }
.cta-band__title em { color: var(--gold-soft); }
.cta-band__text { color: rgba(248, 243, 230, .82); font-size: 1.08rem; max-width: 36rem; margin-bottom: 1.9rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }

/* --------------------------------------------------------------------------
   22. Forms & contact
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: .4rem; }
.field--full { grid-column: 1 / -1; }
.field__label,
.field > label {
    font: 600 .72rem/1.3 var(--font-body);
    letter-spacing: .12em; text-transform: uppercase;
    color: var(--ink-3);
}
.field__input,
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: .8rem 1rem;
    font: 400 .96rem/1.4 var(--font-body);
    color: var(--ink);
    background: var(--surface);
    border: var(--border-strong);
    border-radius: var(--radius-sm);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field textarea { resize: vertical; min-height: 130px; }
.field__input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: 3px solid var(--gold-bright);
    outline-offset: 0;
    border-color: var(--gold-bright);
}
.field__hint { font-size: .78rem; color: var(--muted); }
.field.has-error .field__input,
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }
.field__error { font-size: .8rem; color: var(--danger); }

.notice {
    display: flex; gap: .8rem; align-items: flex-start;
    padding: 1rem 1.2rem;
    border-radius: var(--radius);
    font-size: .93rem;
    margin-bottom: 1.6rem;
}
.notice--success { background: var(--primary-soft); color: var(--primary); border: 1px solid rgba(10, 79, 60, .25); }
.notice--error   { background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(135, 22, 22, .25); }

.contact-aside {
    height: fit-content;
    position: sticky; top: calc(var(--header-h) + 24px);
}
.contact-aside__item { display: flex; gap: .85rem; align-items: flex-start; padding-block: .8rem; }
.contact-aside__item + .contact-aside__item { border-top: var(--border); }
.contact-aside__item .icon { flex: none; color: var(--gold); margin-top: .15rem; }
.contact-aside__item p { margin: 0; font-size: .9rem; }
.contact-aside__item .label { font-weight: 600; color: var(--ink); }

.newsletter { display: flex; gap: .6rem; margin-top: .9rem; }
.newsletter__input {
    flex: 1;
    min-width: 0;
    padding: .62rem .95rem;
    font: 400 .9rem/1.3 var(--font-body);
    color: var(--paper);
    background: rgba(248, 243, 230, .09);
    border: 1px solid rgba(248, 243, 230, .28);
    border-radius: 999px;
}
.newsletter__input::placeholder { color: rgba(248, 243, 230, .5); }
.newsletter__done { color: var(--gold-soft); font-size: .85rem; margin: .8rem 0 0; }
@media (max-width: 480px) { .newsletter { flex-direction: column; } }

/* --------------------------------------------------------------------------
   23. Footer
   -------------------------------------------------------------------------- */
.site-footer {
    background: linear-gradient(180deg, var(--primary-deep), #052a20);
    color: rgba(248, 243, 230, .74);
    padding-block: clamp(3.2rem, 6vw, 4.6rem) 1.8rem;
    font-size: .9rem;
}
.site-footer a { color: rgba(248, 243, 230, .74); transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--gold-soft); }
.site-footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    padding-bottom: 2.6rem;
    border-bottom: 1px solid rgba(248, 243, 230, .12);
    margin-bottom: 2.6rem;
}
@media (max-width: 780px) { .site-footer__top { grid-template-columns: 1fr; } }
.site-footer__blurb { margin: 1.2rem 0 0; max-width: 30rem; }
.site-footer__news-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 560; color: var(--paper); margin: 0 0 .35rem; }
.site-footer__news-text { margin: 0; font-size: .88rem; }

.site-footer__cols {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    padding-bottom: 2.4rem;
}
@media (max-width: 880px) { .site-footer__cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .site-footer__cols { grid-template-columns: 1fr; } }
.site-footer__col-title {
    font: 600 .7rem/1 var(--font-body);
    letter-spacing: .14em; text-transform: uppercase;
    color: var(--gold-soft);
    margin: 0 0 1rem;
}
.site-footer__col li + li { margin-top: .55rem; }
.site-footer__address {
    color: rgba(248, 243, 230, .74);
    font-size: .85rem;
    line-height: 1.45;
    max-width: 15rem;
}

.site-footer__base {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(248, 243, 230, .12);
    font-size: .8rem;
    color: rgba(248, 243, 230, .5);
}
.site-footer__base p { margin: 0; }
.site-footer__legal { display: flex; gap: 1rem; }
.site-footer__legal a { color: rgba(248, 243, 230, .5); text-decoration: none; }
.site-footer__legal a:hover, .site-footer__legal a:focus-visible { color: var(--paper); text-decoration: underline; }

/* --------------------------------------------------------------------------
   24. Scroll reveal & motion
   -------------------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Parallax layers move via JS transform — declare will-change sparingly */
[data-parallax] { will-change: transform; }

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

/* --------------------------------------------------------------------------
   25. Responsive — brand breakpoints 1100 · 880 · 780 · 760 · 680 · 480
   -------------------------------------------------------------------------- */
@media (max-width: 880px) {
    .hero__inner { grid-template-columns: 1fr; }
    .hero__visual { min-height: 320px; margin-top: 1rem; }
}
@media (max-width: 780px) {
    :root { --header-h: 66px; }
}
@media (max-width: 480px) {
    body { font-size: .98rem; }
    .hero__actions .btn { width: 100%; }
    .cta-band__actions { width: 100%; }
    .cta-band__actions .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   26. Utility
   -------------------------------------------------------------------------- */
.section--paper   { background: var(--paper); }
.section--surface { background: var(--surface-2); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.actions-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 1.8rem; }

/* ---------------------------------------------------------------------------
   27. Late additions — eyebrow tone variants & section lede
--------------------------------------------------------------------------- */
.eyebrow--gold  { color: var(--gold); }
.eyebrow--gold::before  { background: var(--gold-bright); }
.eyebrow--teal  { color: var(--teal); }
.eyebrow--teal::before  { background: var(--teal); }
.eyebrow--primary { color: var(--primary); }

.section-lede {
    max-width: 44rem;
    margin: 0 auto;
    color: var(--ink-3);
    font-size: 1.05rem;
}
.text-center .section-lede { margin-inline: auto; }

.container--narrow { max-width: 52rem; }
.legal-updated {
    font-size: .78rem; letter-spacing: .04em; text-transform: uppercase;
    color: var(--muted); margin: 0 0 2.4rem;
}
.legal-section { margin-bottom: 2.2rem; }
.legal-section p { color: var(--ink-2); margin: 0 0 .9rem; line-height: 1.65; }
.legal-section p:last-child { margin-bottom: 0; }

.pricing-note {
    max-width: 46rem;
    margin: 2.4rem auto 0;
    text-align: center;
    color: var(--ink-3);
    font-size: .95rem;
}

.accordion-group { display: grid; gap: .8rem; }

.about-mark {
    display: inline-grid;
    place-items: center;
    padding: 3rem;
    background: var(--surface);
    border: var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.faq-group + .faq-group { margin-top: 3rem; }
.faq-group .eyebrow { margin-bottom: 1rem; }

/* Contact page layout */
.contact-layout {
    display: grid;
    grid-template-columns: 1.5fr .9fr;
    gap: 2.6rem;
    align-items: start;
}
.contact-form {
    background: var(--surface);
    border: var(--border);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    box-shadow: var(--shadow-sm);
}
.contact-card {
    background: var(--surface);
    border: var(--border);
    border-radius: var(--radius);
    padding: 1.7rem 1.6rem;
    box-shadow: var(--shadow-sm);
}
.contact-card + .contact-card { margin-top: 1.2rem; }
.contact-card__title {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 570;
    margin: .9rem 0 .8rem;
}
.contact-card .check-list { margin: 0; }
.contact-line {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 .6rem;
    font-size: .93rem;
    color: var(--ink-2);
}
.contact-line:last-child { margin-bottom: 0; }
.contact-line svg { color: var(--gold); flex: none; }
.contact-line a { color: var(--primary); text-decoration: none; }
.contact-line a:hover { text-decoration: underline; }

.field__optional {
    font-size: .72rem;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-inline-start: .35rem;
}
.form-privacy { margin: .8rem 0 0; font-size: .8rem; color: var(--ink-3); }

@media (max-width: 880px) {
    .contact-layout { grid-template-columns: 1fr; }
    .contact-form { padding: 1.5rem; }
}

/* Admin bar on the mail-settings page */
.admin-bar {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1.6rem;
    padding-bottom: 1.2rem;
    border-bottom: var(--border);
}
.contact-form code.mono {
    background: var(--surface-2);
    padding: .1em .4em;
    border-radius: 4px;
    font-size: .85em;
}

/* --------------------------------------------------------------------------
   RTL & locale typography overrides
   Logical properties (inline-start/end) handle most of the mirroring above
   automatically. The handful of things logical properties can't express —
   transform angles, gradient directions, transform-origin keywords — are
   flipped explicitly here, scoped to [dir="rtl"].
   -------------------------------------------------------------------------- */
[dir="rtl"] .site-nav__link::after { transform-origin: right; }

@media (max-width: 1100px) {
    [dir="rtl"] .site-nav { transform: translateX(-105%); }
    [dir="rtl"] body.nav-open .site-nav { transform: translateX(0); }
}

/* Fraunces/DM Sans have no Arabic or Bengali glyphs — browsers would silently
   fall back to a generic system font per-glyph, which is functional but not
   on-brand. Load a matching pair for those scripts instead (see head.php for
   the conditional <link> tags — only visitors in these locales pay for it). */
body[data-locale="ar"], body[data-locale="ur"] {
    --font-display: "Noto Naskh Arabic", "Fraunces", Georgia, serif;
    --font-body:    "Noto Sans Arabic", "DM Sans", system-ui, sans-serif;
}
body[data-locale="bn"] {
    --font-display: "Noto Serif Bengali", "Fraunces", Georgia, serif;
    --font-body:    "Noto Sans Bengali", "DM Sans", system-ui, sans-serif;
}

/* Numerals and codes (booking IDs, currency, dates) stay left-to-right and
   in Western digits even inside RTL body text — this is the universal
   convention in Arabic/Urdu business software and keeps JetBrains Mono
   figures readable and unambiguous either way. */
[dir="rtl"] .mono { direction: ltr; unicode-bidi: isolate; display: inline-block; }
