/* ============================================================
   CIZARO — Premium Denim Re-platform Prototype
   Editorial Fashion House direction (Jev 0.52+0.48 synthesis)
   Arabic RTL primary · English LTR toggle · Mobile-first
   ============================================================ */

:root {
    /* Brand palette — deep indigo + crisp off-white */
    --ink: #10182b;
    --indigo: #1e2a4a;
    --indigo-deep: #141d33;
    --indigo-soft: #2c3d63;
    --paper: #f7f5f0;
    --paper-bright: #fbfaf7;
    --white: #ffffff;
    --sand: #e8e2d6;
    --denim-fade: #8fa3c8;
    --accent: #c8a96a; /* muted gold for premium accents */
    --accent-deep: #a8874a;
    --sale: #b3432b;
    --success: #2e7d5b;

    /* Typography */
    --font-display: 'Marcellus', 'Playfair Display', serif;
    --font-body: 'Cairo', 'Inter', sans-serif;

    /* Rhythm */
    --sp-1: 0.5rem;
    --sp-2: 1rem;
    --sp-3: 1.5rem;
    --sp-4: 2rem;
    --sp-5: 3rem;
    --sp-6: 4rem;
    --sp-7: 6rem;

    --r-sm: 2px;
    --r-md: 4px;
    --r-pill: 999px;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --t-fast: 160ms var(--ease);
    --t-med: 320ms var(--ease);

    --header-h: 64px;
    --bottombar-h: 64px;

    --shadow-1: 0 1px 2px rgba(16, 24, 43, 0.06);
    --shadow-2: 0 8px 30px rgba(16, 24, 43, 0.10);
    --shadow-3: 0 24px 70px rgba(16, 24, 43, 0.18);
}

/* ============ Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--paper);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

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

/* ============ Utilities ============ */
.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--sp-3); }

.eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.section-head { margin-bottom: var(--sp-4); }
.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--indigo);
    margin-top: var(--sp-1);
}
.section-head p { color: #5a6478; max-width: 56ch; margin-top: var(--sp-1); }

html[dir="ltr"] .section-head p { margin-left: 0; margin-right: auto; }

/* ============ Buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-1);
    padding: 0.9rem 1.9rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: var(--r-sm);
    transition: all var(--t-fast);
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--indigo);
    color: var(--paper);
}
.btn-primary:hover { background: var(--indigo-deep); box-shadow: var(--shadow-2); }

.btn-ghost {
    border: 1px solid currentColor;
    color: var(--indigo);
    background: transparent;
}
.btn-ghost:hover { background: var(--indigo); color: var(--paper); border-color: var(--indigo); }

.btn-light {
    background: var(--paper);
    color: var(--indigo);
}
.btn-light:hover { background: var(--white); box-shadow: var(--shadow-2); }

.btn-wa {
    background: #1fae54;
    color: #fff;
}
.btn-wa:hover { background: #189046; box-shadow: 0 8px 24px rgba(31, 174, 84, 0.35); }

/* ============ Announcement bar ============ */
.announce {
    background: var(--indigo-deep);
    color: var(--paper);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-align: center;
    padding: 0.55rem var(--sp-2);
}
.announce strong { color: var(--accent); font-weight: 700; }

/* ============ Header ============ */
.header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(247, 245, 240, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(30, 42, 74, 0.10);
    transition: box-shadow var(--t-med);
}
.header.scrolled { box-shadow: var(--shadow-2); }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    height: var(--header-h);
}

.logo { display: flex; flex-direction: column; line-height: 1; flex-shrink: 0; }
.logo-word {
    font-family: var(--font-display);
    font-size: 1.65rem;
    letter-spacing: 0.16em;
    color: var(--indigo);
}
.logo-sub {
    font-size: 0.55rem;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: var(--accent-deep);
    margin-top: 3px;
    font-weight: 700;
}

.nav { display: none; gap: var(--sp-1); }
.nav a {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #3c465e;
    padding: 0.5rem 0.75rem;
    border-radius: var(--r-sm);
    transition: color var(--t-fast);
    white-space: nowrap;
}
.nav a:hover, .nav a.active { color: var(--indigo); }

.header-actions { display: flex; align-items: center; gap: var(--sp-1); }

.lang-toggle {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--indigo);
    border: 1px solid rgba(30, 42, 74, 0.25);
    border-radius: var(--r-pill);
    padding: 0.35rem 0.9rem;
    transition: all var(--t-fast);
}
.lang-toggle:hover { background: var(--indigo); color: var(--paper); }

.icon-btn {
    position: relative;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--indigo);
    transition: background var(--t-fast);
}
.icon-btn:hover { background: rgba(30, 42, 74, 0.08); }
.icon-btn svg { width: 21px; height: 21px; }

.badge {
    position: absolute;
    top: 2px;
    inset-inline-start: 24px;
    background: var(--accent);
    color: var(--indigo-deep);
    font-size: 0.62rem;
    font-weight: 800;
    min-width: 17px;
    height: 17px;
    border-radius: var(--r-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--paper);
}
.badge.bump { animation: bump 0.3s var(--ease); }
@keyframes bump { 50% { transform: scale(1.45); } }

.burger { display: flex; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; }
.burger span {
    width: 20px; height: 2px; background: var(--indigo);
    transition: all var(--t-med); border-radius: 2px;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ Hero — editorial ============ */
.hero {
    position: relative;
    background: var(--indigo);
    color: var(--paper);
    overflow: hidden;
}
.hero-media { position: relative; height: 72vh; min-height: 460px; }
.hero-media video,
.hero-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 22%;
    opacity: 0.88;
}
.hero-media::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(16, 24, 43, 0.88) 0%, rgba(16, 24, 43, 0.25) 42%, rgba(16, 24, 43, 0.18) 100%);
}
.hero-content {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding-bottom: var(--sp-5);
}
.hero .eyebrow { color: var(--accent); }
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 7vw, 5rem);
    font-weight: 400;
    line-height: 1.06;
    margin: var(--sp-2) 0;
    max-width: 14ch;
}
.hero p {
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    color: rgba(247, 245, 240, 0.85);
    max-width: 48ch;
    margin-bottom: var(--sp-4);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.hero-strip {
    background: var(--indigo-deep);
    color: var(--paper);
    display: flex;
    overflow: hidden;
}
.hero-strip > div {
    flex: 1;
    padding: var(--sp-2) var(--sp-3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-inline-start: 1px solid rgba(247, 245, 240, 0.12);
}
.hero-strip svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }

/* ============ Product rail ============ */
.rail-section { padding: var(--sp-6) 0 var(--sp-5); }

.rail-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--sp-2);
    margin-bottom: var(--sp-4);
    flex-wrap: wrap;
}
.rail-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 400;
    color: var(--indigo);
}
.rail-head .eyebrow { display: block; margin-bottom: var(--sp-1); }

.rail {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
}

.pcard {
    background: var(--white);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-1);
    transition: box-shadow var(--t-med), transform var(--t-med);
    display: flex;
    flex-direction: column;
}
.pcard:hover { box-shadow: var(--shadow-3); transform: translateY(-4px); }

.pcard-media {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--sand);
}
.pcard-media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease);
}
.pcard:hover .pcard-media img { transform: scale(1.05); }

.pcard-tag {
    position: absolute;
    top: var(--sp-2);
    inset-inline-start: var(--sp-2);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.3rem 0.65rem;
    border-radius: var(--r-sm);
}
.pcard-tag.fit { background: var(--paper); color: var(--indigo); }
.pcard-tag.offer { background: var(--sale); color: #fff; }

.pcard-body { padding: var(--sp-2) var(--sp-2) var(--sp-3); display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.pcard-fit { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-deep); }
.pcard-name { font-size: 0.95rem; font-weight: 700; color: var(--ink); line-height: 1.4; }
.pcard-price { display: flex; align-items: baseline; gap: 0.5rem; margin-top: 0.2rem; }
.price-now { font-size: 1.05rem; font-weight: 800; color: var(--indigo); }
.price-was { font-size: 0.8rem; color: #98a0b3; text-decoration: line-through; }
.price-off { font-size: 0.68rem; font-weight: 800; color: var(--sale); letter-spacing: 0.04em; }

.pcard-add {
    margin-top: auto;
    padding-top: var(--sp-2);
}
.pcard-add button {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--indigo);
    color: var(--indigo);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--r-sm);
    transition: all var(--t-fast);
}
.pcard-add button:hover:not(:disabled) { background: var(--indigo); color: var(--paper); }
.pcard-add button.added { background: var(--success); border-color: var(--success); color: #fff; }
.pcard-add button:disabled {
    border-color: rgba(30, 42, 74, 0.25);
    color: rgba(30, 42, 74, 0.45);
    cursor: not-allowed;
}

/* Size picker (F-03) */
.size-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.45rem;
    flex-wrap: wrap;
}
.size-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #5a6478;
    flex-shrink: 0;
}
.size-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.size-picker button {
    min-width: 34px;
    height: 30px;
    padding: 0 6px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid rgba(30, 42, 74, 0.22);
    border-radius: var(--r-sm);
    color: var(--indigo);
    background: var(--white);
    transition: all var(--t-fast);
}
.size-picker button:hover { border-color: var(--indigo); }
.size-picker button.active {
    background: var(--indigo);
    color: var(--paper);
    border-color: var(--indigo);
}

/* ============ Editorial split sections ============ */
.split {
    display: grid;
    grid-template-columns: 1fr;
    background: var(--white);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--shadow-1);
    margin-bottom: var(--sp-4);
}
.split-media { position: relative; min-height: 300px; overflow: hidden; }
.split-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.split-body {
    padding: var(--sp-5) var(--sp-4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: var(--sp-2);
}
.split-body h3 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 400;
    color: var(--indigo);
    line-height: 1.15;
}
.split-body p { color: #4a5468; max-width: 46ch; }
.split-body .btn { align-self: flex-start; margin-top: var(--sp-1); }

/* ============ Fit / Shade filter chips ============ */
.chips-section { padding: var(--sp-5) 0; }
.chips-row { display: flex; flex-wrap: wrap; gap: var(--sp-1); }
.chip {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    border: 1px solid rgba(30, 42, 74, 0.22);
    border-radius: var(--r-pill);
    color: var(--indigo);
    background: var(--paper-bright);
    transition: all var(--t-fast);
}
.chip:hover, .chip.active {
    background: var(--indigo);
    color: var(--paper);
    border-color: var(--indigo);
}

/* ============ Marquee ============ */
.marquee {
    background: var(--indigo);
    color: var(--paper);
    padding: var(--sp-3) 0;
    overflow: hidden;
    white-space: nowrap;
}
.marquee-track {
    display: inline-flex;
    gap: var(--sp-5);
    animation: marquee 26s linear infinite;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.4vw, 1.6rem);
    letter-spacing: 0.14em;
}
.marquee-track span { display: inline-flex; align-items: center; gap: var(--sp-5); }
.marquee-track span::after { content: '◆'; font-size: 0.55em; color: var(--accent); }
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}
html[dir="ltr"] .marquee-track { animation-name: marqueeLtr; }
@keyframes marqueeLtr {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ============ Testimonial / trust ============ */
.trust { padding: var(--sp-6) 0; background: var(--paper-bright); }
.trust-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
.tcard {
    background: var(--white);
    padding: var(--sp-4);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-1);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}
.tcard .stars { color: var(--accent); letter-spacing: 0.2em; font-size: 0.9rem; }
.tcard blockquote { font-size: 0.95rem; color: #3c465e; line-height: 1.8; }
.tcard cite { font-size: 0.78rem; font-weight: 700; color: var(--indigo); font-style: normal; letter-spacing: 0.04em; }

/* ============ Stores / CTA ============ */
.cta {
    background: var(--indigo);
    color: var(--paper);
    padding: var(--sp-7) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta::before {
    content: '';
    position: absolute;
    width: 640px; height: 640px;
    border: 1px solid rgba(200, 169, 106, 0.18);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.cta h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 400;
    margin-bottom: var(--sp-2);
}
.cta p { color: rgba(247, 245, 240, 0.75); max-width: 52ch; margin: 0 auto var(--sp-4); }
.cta .hero-cta { justify-content: center; }

/* ============ Footer ============ */
.footer { background: var(--ink); color: #aab3c7; padding: var(--sp-6) 0 var(--sp-3); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.footer .logo-word { color: var(--paper); }
.footer h4 {
    color: var(--paper);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: var(--sp-2);
    font-weight: 700;
}
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.85rem; transition: color var(--t-fast); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: var(--sp-3);
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    justify-content: space-between;
    font-size: 0.75rem;
}

/* ============ Cart drawer ============ */
.overlay {
    position: fixed; inset: 0;
    background: rgba(16, 24, 43, 0.55);
    z-index: 300;
    opacity: 0; visibility: hidden;
    transition: all var(--t-med);
}
.overlay.active { opacity: 1; visibility: visible; }

.drawer {
    position: fixed;
    top: 0; bottom: 0;
    inset-inline-start: 0;
    width: min(420px, 100%);
    background: var(--paper-bright);
    z-index: 400;
    transition: transform var(--t-med);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-3);
}
html[dir="rtl"] .drawer { transform: translateX(105%); }
html[dir="ltr"] .drawer { transform: translateX(-105%); }
html[dir="rtl"] .drawer.active,
html[dir="ltr"] .drawer.active,
.drawer.active { transform: translateX(0); }

.drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--sp-3);
    border-bottom: 1px solid rgba(30, 42, 74, 0.12);
}
.drawer-head h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; color: var(--indigo); }
.drawer-close { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--indigo); transition: background var(--t-fast); }
.drawer-close:hover { background: rgba(30, 42, 74, 0.08); }

.drawer-items { flex: 1; overflow-y: auto; padding: var(--sp-2) var(--sp-3); }

.citem {
    display: flex; gap: var(--sp-2);
    padding: var(--sp-2) 0;
    border-bottom: 1px solid rgba(30, 42, 74, 0.08);
}
.citem-img { width: 64px; height: 82px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; background: var(--sand); }
.citem-img img { width: 100%; height: 100%; object-fit: cover; }
.citem-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.citem-name { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.citem-meta { font-size: 0.72rem; color: #7a8398; }
.citem-price { font-size: 0.85rem; font-weight: 800; color: var(--indigo); }
.citem-row { display: flex; align-items: center; justify-content: space-between; margin-top: 0.35rem; }
.qty {
    display: inline-flex; align-items: center;
    border: 1px solid rgba(30, 42, 74, 0.2);
    border-radius: var(--r-sm);
    overflow: hidden;
}
.qty button { width: 30px; height: 30px; font-size: 1rem; color: var(--indigo); transition: background var(--t-fast); }
.qty button:hover { background: rgba(30, 42, 74, 0.07); }
.qty span { min-width: 28px; text-align: center; font-size: 0.85rem; font-weight: 700; }
.citem-remove { font-size: 0.7rem; color: #98a0b3; text-decoration: underline; transition: color var(--t-fast); }
.citem-remove:hover { color: var(--sale); }

.drawer-empty { text-align: center; padding: var(--sp-6) var(--sp-3); color: #7a8398; }
.drawer-empty svg { width: 40px; height: 40px; margin: 0 auto var(--sp-2); color: var(--denim-fade); }

.drawer-foot { padding: var(--sp-3); border-top: 1px solid rgba(30, 42, 74, 0.12); background: var(--white); }
.drawer-total { display: flex; justify-content: space-between; font-size: 0.95rem; margin-bottom: 0.4rem; }
.drawer-total strong { font-size: 1.25rem; color: var(--indigo); }
.drawer-note { font-size: 0.72rem; color: #7a8398; margin-bottom: var(--sp-2); }
.drawer-foot .btn { width: 100%; }

/* ============ Checkout modal ============ */
.modal {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -46%) scale(0.96);
    width: min(560px, calc(100% - 2rem));
    max-height: 88vh;
    background: var(--paper-bright);
    border-radius: var(--r-md);
    z-index: 500;
    opacity: 0; visibility: hidden;
    transition: all var(--t-med);
    display: flex; flex-direction: column;
    box-shadow: var(--shadow-3);
}
.modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }

.modal-head { padding: var(--sp-3); border-bottom: 1px solid rgba(30, 42, 74, 0.12); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; color: var(--indigo); }
.modal-body { padding: var(--sp-3); overflow-y: auto; }

.osummary {
    background: var(--white);
    border: 1px solid rgba(30, 42, 74, 0.1);
    border-radius: var(--r-sm);
    padding: var(--sp-2) var(--sp-3);
    margin-bottom: var(--sp-3);
    font-size: 0.85rem;
}
.osummary-row { display: flex; justify-content: space-between; padding: 0.3rem 0; color: #4a5468; }
.osummary-total { border-top: 1px solid rgba(30, 42, 74, 0.15); margin-top: 0.4rem; padding-top: 0.6rem; font-weight: 800; color: var(--indigo); }

.field { margin-bottom: var(--sp-2); }
.field label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--indigo); margin-bottom: 0.4rem; letter-spacing: 0.03em; }
.field input, .field select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(30, 42, 74, 0.22);
    border-radius: var(--r-sm);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--white);
    color: var(--ink);
    transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field input:focus, .field select:focus {
    outline: none;
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px rgba(30, 42, 74, 0.12);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }

.modal .btn-wa { width: 100%; font-size: 0.95rem; padding: 1.05rem; }
.modal-note { text-align: center; font-size: 0.72rem; color: #7a8398; margin-top: var(--sp-2); }

/* ============ Sticky bottom bar (mobile) ============ */
.bottombar {
    position: fixed;
    bottom: 0; inset-inline: 0;
    height: var(--bottombar-h);
    background: rgba(16, 24, 43, 0.97);
    backdrop-filter: blur(10px);
    z-index: 150;
    display: flex;
    align-items: stretch;
}
.bb-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(247, 245, 240, 0.75);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    position: relative;
    transition: color var(--t-fast);
}
.bb-btn svg { width: 20px; height: 20px; }
.bb-btn.active, .bb-btn:hover { color: var(--paper); }
.bb-btn .badge { top: 4px; inset-inline-start: 50%; border-color: var(--ink); }

/* ============ Toast ============ */
.toast {
    position: fixed;
    bottom: calc(var(--bottombar-h) + 20px);
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: var(--ink);
    color: var(--paper);
    padding: 0.8rem 1.4rem;
    border-radius: var(--r-pill);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 600;
    opacity: 0; visibility: hidden;
    transition: all var(--t-med);
    box-shadow: var(--shadow-2);
    white-space: nowrap;
}
.toast.active { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.reveal.in { opacity: 1; transform: none; }

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

/* ============ Responsive ============ */
@media (min-width: 768px) {
    .rail { grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
    .trust-grid { grid-template-columns: repeat(3, 1fr); }
    .split { grid-template-columns: 1fr 1fr; }
    .split-media { min-height: 420px; }
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .field-row { grid-template-columns: 1fr 1fr; }
    .hero-media { height: 78vh; }
}

@media (min-width: 1024px) {
    .nav { display: flex; }
    .burger { display: none; }
    .rail { grid-template-columns: repeat(4, 1fr); }
    .bottombar { display: none; }
    .toast { bottom: 32px; }
    .hero-media { height: 86vh; }
    .hero-content { padding-bottom: var(--sp-6); }
}

/* Mobile nav sheet */
@media (max-width: 1023px) {
    .mobile-nav {
        position: fixed;
        top: calc(var(--header-h));
        inset-inline: 0;
        bottom: 0;
        background: var(--paper-bright);
        z-index: 190;
        padding: var(--sp-4) var(--sp-3) calc(var(--bottombar-h) + var(--sp-4));
        transform: translateY(-102%);
        transition: transform var(--t-med);
        overflow-y: auto;
    }
    .mobile-nav.active { transform: translateY(0); }
    .mobile-nav a {
        display: block;
        font-size: 1.4rem;
        font-family: var(--font-display);
        color: var(--indigo);
        padding: var(--sp-2) 0;
        border-bottom: 1px solid rgba(30, 42, 74, 0.08);
    }
    body { padding-bottom: var(--bottombar-h); }
}

/* Small phones */
@media (max-width: 400px) {
    .rail { grid-template-columns: 1fr; }
    .hero-cta .btn { width: 100%; }
}
