/* ============================================================
   Gassi — Premium School Uniforms
   Professional dark-gold theme
   ============================================================ */

:root {
    /* Light is the default theme. Dark overrides these below. */
    color-scheme: light;

    --bg: #fbfaf7;
    --bg-alt: #f2efe8;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --border: rgba(20, 16, 10, 0.10);
    --border-strong: rgba(20, 16, 10, 0.18);

    /* Brand gold, split by job:
       --gold       text gold, clears 4.5:1 on all light surfaces (5.31 worst)
       --gold-light emphasis gold for headings, prices and figures
       --gold-fill  a SURFACE that always carries --on-gold text
       Never paint text with --gold-fill; #C9A227 is 2.3:1 on white. */
    --gold: #75601c;
    --gold-light: #6b5518;
    --gold-dark: #5c4a13;
    --gold-fill: #c9a227;
    --gold-fill-hover: #d9b23a;

    --wa-green: #1faa59;
    --wa-fill: #1faa59;
    --on-gold: #14100a;
    --media-bg: #f2efe8;
    --badge-text: #efd48b;
    --badge-danger: #ff9d94;
    --card-shadow: 0 1px 2px rgba(20, 16, 10, 0.05);
    --danger: #b4342a;
    --danger-text: #9c2b22;

    --text: #171a21;
    --text-muted: #4c5464;
    --text-faint: #5f6675;

    /* Surfaces and tints, so a theme is a token swap rather than a rewrite. */
    --header-bg: rgba(251, 250, 247, 0.94);
    --menu-bg: rgba(251, 250, 247, 0.98);
    --surface-sunken: rgba(20, 16, 10, 0.035);
    --gold-tint: rgba(138, 109, 31, 0.07);
    --gold-tint-soft: rgba(138, 109, 31, 0.10);
    --gold-tint-hover: rgba(138, 109, 31, 0.10);
    --gold-border: rgba(138, 109, 31, 0.32);
    --gold-border-hover: rgba(138, 109, 31, 0.45);
    --gold-border-strong: rgba(138, 109, 31, 0.5);
    --wa-tint: rgba(18, 140, 74, 0.07);
    --wa-tint-hover: rgba(18, 140, 74, 0.12);
    --wa-border: rgba(18, 140, 74, 0.3);
    --store-accent: #1d5f96;
    --store-tint: rgba(29, 95, 150, 0.07);
    --store-border: rgba(29, 95, 150, 0.28);
    --overlay-badge: rgba(23, 26, 33, 0.82);
    --overlay-scrim: rgba(23, 26, 33, 0.55);
    --overlay-control: rgba(255, 255, 255, 0.94);
    --shadow-fab: 0 8px 20px rgba(20, 16, 10, 0.18);

    --font-heading: "Literata", Georgia, "Times New Roman", serif;
    --font-body: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    --radius: 18px;
    --radius-sm: 12px;
    --container: 1180px;
    --header-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.section { padding: 110px 0; position: relative; }
.section:nth-of-type(even) { background: var(--bg-alt); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------- Hero entrance (pure CSS: no JS dependency) ---------- */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: none; }
}
.hero-anim { animation: heroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) both; }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-fill); flex-shrink: 0; }
.hero-badge.hero-anim   { animation-delay: 0.05s; }
.hero-title.hero-anim   { animation-delay: 0.15s; }
.hero-subtitle.hero-anim{ animation-delay: 0.25s; }
.hero-cta.hero-anim     { animation-delay: 0.35s; }
.hero-trust.hero-anim   { animation-delay: 0.45s; }

/* ---------- Typography ---------- */
.section-label {
    display: inline-block;
    color: var(--gold);
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.76rem;
    margin-bottom: 12px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.01em;
}
.section-desc { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; margin: 18px auto 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 64px; }

.gold-text { color: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.93rem;
    letter-spacing: 0.01em;
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
    white-space: nowrap;
}
.btn .icon { width: 20px; height: 20px; }
.btn-gold {
    background: var(--gold-fill);
    color: var(--on-gold);
}
.btn-gold:hover { background: var(--gold-fill-hover); }
.btn-outline {
    border: 1px solid var(--border-strong);
    color: var(--text);
    background: transparent;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

/* ---------- Header ---------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--header-h);
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s;
}
.site-header.scrolled {
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 44px; height: 44px; border-radius: 12px; }
.brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.14em;
    color: var(--gold);
}

.main-nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
    position: relative;
    padding: 10px 14px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    border-radius: 3px;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--gold-light); }
.nav-link.active::after {
    content: "";
    position: absolute;
    left: 14px; right: 14px; bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold-fill);
}

.btn-nav-cta { padding: 10px 22px; font-size: 0.88rem; margin-left: 10px; }

.header-actions { display: flex; align-items: center; gap: 14px; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 auto;
    width: 36px; height: 36px;
    border: 1px solid var(--border-strong);
    border-radius: 3px;
    background: transparent;
    color: var(--text);
    transition: border-color .18s, color .18s;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.theme-toggle:active { transform: translateY(1px); }
/* Show the action, not the current state: light theme offers the moon. */
.theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }

.lang-switcher {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    background: var(--surface-sunken);
}
.lang-btn {
    padding: 7px 13px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    transition: background 0.2s, color 0.2s;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active { background: var(--gold-fill); color: var(--on-gold); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 40px) 0 80px;
    overflow: hidden;
}

.hero-inner { text-align: center; max-width: 880px; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 3px;
    background: var(--gold-tint);
    border: 1px solid var(--gold-border);
    color: var(--gold-light);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: 28px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 6vw, 4.4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 26px;
}
.hero-title span { display: block; }

.hero-subtitle {
    color: var(--text-muted);
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    max-width: 680px;
    margin: 0 auto 38px;
    font-weight: 300;
}

.hero-cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 16px; margin-bottom: 64px; }

.hero-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 820px;
    margin: 0 auto;
}
.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0;
    background: none;
    border: 0;
    font-size: 0.86rem;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: var(--text-muted);
}
.trust-item .icon { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

/* ---------- About ---------- */
.about-copy { max-width: 780px; margin: 0 auto 64px; text-align: center; }
.about-copy p { color: var(--text-muted); font-size: 1.06rem; margin-bottom: 18px; font-weight: 300; }

.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--gold-border-hover); background: var(--bg-card-hover); }
.feature-icon {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--gold-tint-soft);
    color: var(--gold);
    margin-bottom: 20px;
}
.feature-icon .icon { width: 26px; height: 26px; }
.feature-card h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; font-weight: 300; }

/* ---------- Collections ---------- */
.collection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.collection-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px 26px;
    transition: transform 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.collection-card:hover { transform: translateY(-4px); border-color: var(--gold-border-hover); background: var(--bg-card-hover); }
.collection-icon {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: var(--gold-tint-soft);
    color: var(--gold);
    margin-bottom: 20px;
}
.collection-icon .icon { width: 26px; height: 26px; }
.collection-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.collection-card > p { color: var(--text-muted); font-size: 0.9rem; font-weight: 300; margin-bottom: 20px; flex-grow: 1; }

.item-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 24px; }
.item-list li {
    position: relative;
    padding-left: 18px;
    color: var(--text-muted);
    font-size: 0.88rem;
}
.item-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    width: 6px; height: 6px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--gold-fill);
    opacity: 0.7;
}

.card-link {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    color: var(--gold-light);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.25s, color 0.25s;
}
.card-link::after { content: "→"; transition: transform 0.25s; }
.card-link:hover { gap: 12px; color: var(--gold); }
.card-link:hover::after { transform: translateX(3px); }

.collections-note { text-align: center; color: var(--text-faint); font-size: 0.85rem; font-style: italic; margin-top: 48px; }

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.process-step {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 26px 30px;
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.process-step:hover { transform: translateY(-4px); border-color: var(--gold-border-hover); background: var(--bg-card-hover); }
.step-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 18px;
}
.process-step h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 10px; }
.process-step p { color: var(--text-muted); font-size: 0.9rem; font-weight: 300; }

/* ---------- Contact ---------- */
/* Flex rather than grid: five cards in a two-column grid left an empty cell
   beside the office card. Wrapping flex rows stretch to fill instead. */
.contact-grid { display: flex; flex-wrap: wrap; gap: 20px; max-width: 860px; margin: 0 auto; }
.contact-grid > * { flex: 1 1 240px; }
.contact-card {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
a.contact-card:hover { transform: translateY(-4px); border-color: var(--gold-border-hover); background: var(--bg-card-hover); }
.contact-card > .icon { width: 30px; height: 30px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.contact-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 4px; }
.contact-card p { color: var(--text-muted); font-weight: 300; }
.contact-note { color: var(--text-faint); font-size: 0.8rem; }

.contact-whatsapp {
    flex-basis: 100%;
    background: var(--wa-tint);
    border-color: var(--wa-border);
    align-items: center;
}
.contact-whatsapp > .icon { width: 42px; height: 42px; color: var(--wa-green); }
.contact-whatsapp:hover { border-color: var(--wa-green); background: var(--wa-tint-hover); }
.contact-whatsapp h3 { font-size: 1.25rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 44px; margin-bottom: 56px; }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; font-weight: 300; margin-top: 18px; max-width: 340px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--gold-light); margin-bottom: 6px; }
.footer-col a, .footer-col span { color: var(--text-muted); font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .feature-grid, .collection-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-trust { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Between the inline nav and the hamburger there is not enough room for the
   header CTA next to the theme toggle. Drop the CTA here rather than switch a
   laptop to a hamburger menu — the floating WhatsApp button still offers the
   same action, and in menu mode the CTA returns inside the overlay. */
@media (max-width: 1250px) and (min-width: 941px) {
    .btn-nav-cta { display: none; }
}

@media (max-width: 940px) {
    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 20px 24px 28px;
        background: var(--menu-bg);
        border-bottom: 1px solid var(--border);
        transform: translateY(-120%);
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        visibility: hidden;
    }
    .main-nav.open { transform: translateY(0); visibility: visible; }
    .nav-link { padding: 14px; font-size: 1rem; text-align: center; }
    .nav-link.active::after { display: none; }
    .btn-nav-cta { margin: 8px 0 0; justify-content: center; }
    .nav-toggle { display: flex; }
    .lang-switcher { border-color: var(--border-strong); }
    .lang-btn { padding: 6px 9px; font-size: 0.72rem; }
    .header-inner { gap: 10px; }
    .brand-name { font-size: 1.1rem; letter-spacing: 0.1em; }
    .brand-logo { width: 36px; height: 36px; }
    .header-actions { gap: 8px; }
}

@media (max-width: 640px) {
    .section { padding: 80px 0; }
    .feature-grid, .collection-grid, .process-grid { grid-template-columns: 1fr; }
    .hero-trust { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .brand-name { font-size: 1.15rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .hero-anim { animation: none; opacity: 1; transform: none; }
}

/* ---------- Stats ---------- */
.stats { background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { text-align: center; padding: 34px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.stat-value { font-family: var(--font-heading); font-size: 2.6rem; font-weight: 800; color: var(--gold-light); }
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 6px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.gallery-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: transform 0.3s, border-color 0.3s; }
.gallery-item:hover { transform: translateY(-4px); border-color: var(--gold-border-hover); }
.gallery-item .gallery-thumb { height: 220px; background: var(--bg-alt); }
.gallery-item img { width: 100%; height: 220px; object-fit: cover; }
.gallery-placeholder { width: 100%; height: 220px; display: grid; place-items: center; background: var(--bg-card); color: var(--gold); }
.gallery-placeholder svg { width: 40px; height: 40px; }
.gallery-meta { padding: 14px 16px; }
.gallery-meta h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.gallery-meta p { color: var(--text-muted); font-size: 0.8rem; }

/* ---------- Floating WhatsApp ---------- */
.floating-wa { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 56px; height: 56px; border-radius: 50%; background: var(--wa-fill); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-fab); transition: transform 0.25s; }
.floating-wa:hover { transform: scale(1.08); }
.floating-wa svg { width: 28px; height: 28px; }

/* ---------- Contact form ---------- */
.contact-form-card { flex-basis: 100%; align-items: stretch; }
.wa-form { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.wa-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wa-form .form-row > .field { min-width: 0; }
.wa-form .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wa-form label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.wa-form input, .wa-form textarea {
    width: 100%; min-width: 0; box-sizing: border-box;
    background: var(--bg-alt); border: 1px solid var(--border-strong); border-radius: 10px;
    padding: 12px 14px; color: var(--text); font-family: inherit; font-size: 0.95rem;
    outline: none; resize: vertical;
}
.wa-form input:focus, .wa-form textarea:focus { border-color: var(--gold); }
.wa-form input[aria-invalid="true"], .wa-form textarea[aria-invalid="true"] { border-color: var(--danger); }
.wa-form .btn { align-self: flex-start; white-space: normal; text-align: left; }
.field-error { font-size: .78rem; color: var(--danger-text); margin-top: 2px; }
.field-error:empty { display: none; }
.form-noscript {
    font-size: .82rem; color: var(--text-muted);
    border: 1px dashed var(--border-strong); border-radius: 10px; padding: 12px 14px;
}

@media (max-width: 1024px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-value { font-size: 2rem; }
    .wa-form .form-row { grid-template-columns: 1fr; }
    /* 16px keeps iOS Safari from force-zooming the page on focus. */
    .wa-form input, .wa-form textarea { font-size: 1rem; }
    .floating-wa { width: 50px; height: 50px; right: 16px; bottom: 16px; }
}

.contact-grid > * { min-width: 0; }

/* ---------- Divisions (two businesses) ---------- */
.divisions { background: var(--bg-alt); }
.division-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.division-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 38px 34px 32px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    transition: transform 0.35s cubic-bezier(0.22,1,0.36,1), border-color 0.35s, background 0.35s;
    overflow: hidden;
}
.division-card:hover { transform: translateY(-4px); border-color: var(--gold-border-strong); }

.division-tag {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--gold-border);
    background: var(--gold-tint);
    padding: 3px 10px;
    border-radius: 3px;
    margin-bottom: 20px;
}
.division-card h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.division-card > p { color: var(--text-muted); font-size: 0.97rem; font-weight: 300; margin-bottom: 22px; }
.division-list { display: flex; flex-direction: column; gap: 9px; margin-bottom: 26px; }
.division-list li { position: relative; padding-left: 20px; color: var(--text-muted); font-size: 0.9rem; }
.division-list li::before {
    content: ""; position: absolute; left: 0; top: 0.62em;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--gold-fill); opacity: 0.75;
}
.division-cta {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--gold-light);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.division-cta::after { content: "→"; transition: transform 0.25s; }
.division-card:hover .division-cta::after { transform: translateX(4px); }
.division-store .division-tag { color: var(--store-accent); border-color: var(--store-border); background: var(--store-tint); }
.division-store .division-list li::before { background: #60a5fa; }
.division-store .division-cta { color: var(--store-accent); }

/* ---------- Store teaser ---------- */
.store-teaser { background: var(--bg); }
.store-split { display: grid; grid-template-columns: 0.85fr 1fr; gap: 54px; align-items: center; }
.store-visual {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--media-bg);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.store-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.section-desc-left { color: var(--text-muted); font-size: 1.02rem; font-weight: 300; margin: 18px 0 28px; max-width: 520px; }
.store-facts { display: grid; gap: 16px; margin-bottom: 30px; }
.store-fact { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.sf-label { color: var(--text-faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; }
.sf-value { color: var(--text); font-size: 0.95rem; }
.sf-value a:hover { color: var(--gold-light); }
.store-actions { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 1024px) {
    .division-grid { grid-template-columns: 1fr; }
    .store-split { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 640px) {
    .division-card { padding: 28px 22px; }
    .store-fact { grid-template-columns: 1fr; gap: 3px; }
}

/* ---------- Client segments ---------- */
.segments { background: var(--bg); }
.segment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.segment-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px 26px;
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.segment-card:hover { transform: translateY(-4px); border-color: var(--gold-border-hover); background: var(--bg-card-hover); }
.segment-icon {
    width: 50px; height: 50px;
    display: grid; place-items: center;
    border-radius: 13px;
    background: var(--gold-tint-soft);
    color: var(--gold);
    margin-bottom: 18px;
}
.segment-icon svg { width: 24px; height: 24px; }
.segment-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 9px; }
.segment-card p { color: var(--text-muted); font-size: 0.89rem; font-weight: 300; line-height: 1.6; }
.segment-tag {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-tint-soft);
    border: 1px solid var(--gold-border);
    border-radius: 3px;
    padding: 3px 10px;
}

@media (max-width: 1024px) { .segment-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .segment-grid { grid-template-columns: 1fr; } }

/* Small clarifier under a stat figure */
.stat-note { font-size: .75rem; color: var(--text-muted); margin-top: 4px; }

/* ---------- Accessibility utilities ---------- */
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: 12px; top: -60px; z-index: 200;
    padding: 10px 16px; border-radius: 3px;
    background: var(--gold-fill); color: var(--on-gold);
    font-weight: 600; font-size: .9rem;
    transition: top .18s ease;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Resilience: text growth and long strings ---------- */
.contact-card > div { min-width: 0; }
.contact-card p, .contact-note { overflow-wrap: break-word; }
.section-title, .hero-title { text-wrap: balance; }
.division-card p, .segment-card p, .about-copy p, .process-step p { text-wrap: pretty; }

/* ---------- Phone refinements (iPhone SE/13/14, Galaxy S/A) ---------- */
/* Header compaction: four controls (theme, language, cart, menu) must fit 320px.
   Shared by both pages — keep it here, not in shop.css. */
@media (max-width: 480px) {
    .header-inner { gap: 8px; }
    .brand-name { display: none; }
    .brand-logo { width: 38px; height: 38px; }
    .header-actions { gap: 6px; margin-left: auto; }
    .theme-toggle { width: 36px; height: 36px; }
    .nav-toggle { width: 36px; }
    .lang-switcher { border: 0; gap: 2px; }
    .lang-btn { padding: 7px 8px; font-size: .74rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section { padding: 64px 0; }
    .hero { min-height: auto; padding: 96px 0 64px; }
    .hero-title { font-size: clamp(1.9rem, 9vw, 2.6rem); line-height: 1.14; }
    .hero-subtitle { font-size: 0.98rem; }
    .section-title { font-size: clamp(1.45rem, 6.5vw, 1.9rem); }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .stat-value { font-size: 1.5rem; }
    .contact-card { padding: 16px; }
    .collection-card, .feature-card, .process-step { padding: 18px; }
    .btn { width: 100%; justify-content: center; }
    .header-actions .btn { width: auto; }
    #gallery .gallery-item { width: 100%; }
    table, .table-wrap { max-width: 100%; }
    img, video, iframe { max-width: 100%; height: auto; }
}

/* ---------- Press feedback ---------- */
/* No control on the site had an :active state, so taps felt dead. */
.btn:active { transform: translateY(1px); }
.nav-link:active { color: var(--gold-light); }
.footer-col a:active, .site-footer .brand:active { color: var(--gold-light); }

@media (prefers-reduced-motion: reduce) {
    .btn:active { transform: none; filter: brightness(0.92); }
}

/* ---------- Client trust strip ---------- */
.clients { background: var(--bg); padding: 56px 0 64px; }
.clients-title {
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: center;
    color: var(--text-muted);
    margin: 0 0 28px;
}
.client-strip {
    overflow: hidden;
    /* Fade the track into the page instead of cutting it off. */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.client-track {
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    margin: 0;
    padding: 0;
    list-style: none;
    animation: clientScroll 46s linear infinite;
}
.client-track li { flex: 0 0 auto; }
.client-track img {
    display: block;
    width: 150px; height: 75px;
    border-radius: 3px;
    background: #fff;
}
/* Content marquee: it shows more clients than fit, so the motion carries meaning.
   It stops the moment anyone reaches for it. */
.client-strip:hover .client-track,
.client-strip:focus-within .client-track { animation-play-state: paused; }
@keyframes clientScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(calc(-50% - 7px)); }
}
@media (prefers-reduced-motion: reduce) {
    .client-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
    .client-track li[aria-hidden="true"] { display: none; }
    .client-strip { mask-image: none; -webkit-mask-image: none; }
}
@media (max-width: 480px) {
    .client-track img { width: 112px; height: 56px; }
    .client-track { gap: 10px; }
}

/* ==========================================================================
   Theme system
   Light is the default and lives on :root. Dark is opt-in via
   [data-theme="dark"] on <html>, or ?theme=dark on the URL.
   Every surface, border, tint and text tone resolves from tokens, so a theme
   never needs a component-level override.

   Naming note: in the light theme the *emphasis* gold (--gold-light) is
   darker than --gold, not lighter. The name describes its role — the
   tone used on top of the base gold — not its luminance.
   ========================================================================== */
:root[data-theme="dark"] {
    color-scheme: dark;

    --bg: #0a101f;
    --bg-alt: #0d1526;
    --bg-card: #111a2e;
    --bg-card-hover: #16213a;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);

    --gold: #d4af37;
    --gold-light: #e8c76a;
    --gold-dark: #a8872a;
    --gold-fill: #d4af37;
    --gold-fill-hover: #e8c76a;

    --wa-green: #25d366;
    --wa-fill: #25d366;
    --media-bg: #f3f4f6;
    --badge-text: #e8c76a;
    --badge-danger: #e08a8a;
    --danger: #e0736a;
    --danger-text: #f0a49e;

    --text: #e8ebf4;
    --text-muted: #9aa6bd;
    --text-faint: #7a85a0;

    --header-bg: rgba(10, 16, 31, 0.92);
    --menu-bg: rgba(10, 16, 31, 0.97);
    --surface-sunken: rgba(255, 255, 255, 0.03);
    --gold-tint: rgba(212, 175, 55, 0.08);
    --gold-tint-soft: rgba(212, 175, 55, 0.1);
    --gold-border: rgba(212, 175, 55, 0.25);
    --gold-border-hover: rgba(212, 175, 55, 0.35);
    --gold-border-strong: rgba(212, 175, 55, 0.4);
    --wa-tint: rgba(37, 211, 102, 0.08);
    --wa-tint-hover: rgba(37, 211, 102, 0.1);
    --wa-border: rgba(37, 211, 102, 0.3);
    --store-accent: #8fd3ff;
    --store-tint: rgba(96, 165, 250, 0.08);
    --store-border: rgba(96, 165, 250, 0.3);
    --overlay-badge: rgba(10, 16, 31, 0.86);
    --overlay-scrim: rgba(4, 8, 18, 0.76);
    --overlay-control: rgba(10, 16, 31, 0.9);
    --shadow-fab: 0 8px 20px rgba(0, 0, 0, 0.45);
    --card-shadow: none;
}

/* Cards elevate only on light, where white needs a hairline to sit on paper. */
.product-card,
.division-card,
.feature-card,
.collection-card,
.segment-card,
.process-step,
.contact-card,
.stat { box-shadow: var(--card-shadow); }

/* Client chips keep a hairline in both themes. */
.client-track img { border: 1px solid var(--border); }

/* Photography keeps its own light backdrop; never recolour or vignette it. */
.pc-media,
.pm-gallery { background: var(--media-bg); }
