/*
Theme Name: Birotex
Theme URI: https://heptalex.ro
Author: HeptaLex
Author URI: https://heptalex.ro
Description: Catalog Birotex cu estetică militară: textile, broderie și accesorii. Fără coș de cumpărături, ofertare prin WhatsApp.
Version: 2.0.0
Requires PHP: 8.1
License: Proprietary
Text Domain: birotex
*/

/* ==========================================================================
   Fonts (self-hosted)
   ========================================================================== */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/source-sans-3-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/source-sans-3-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ==========================================================================
   Tokens: one warm neutral family, olive support, brass for action only
   ========================================================================== */
:root {
    /* Light (default): white surfaces. Dark mode below flips every surface to black. */
    color-scheme: light dark;
    --ink: #ffffff;            /* "stage" surfaces: hero, configurator, flipbook, page heads */
    --ink-2: #f4f2ee;          /* footer */
    --ink-3: #ebe8e2;
    --paper: #ffffff;
    --bone: #f4f2ee;
    --text: #15171c;
    --text-2: #4a4e5a;
    --on-ink: #15171c;
    --on-ink-2: #545a66;
    --fg-rgb: 21 23 28;        /* foreground as channels, for tints */
    --rule: rgba(21, 23, 28, 0.14);
    --rule-ink: rgba(21, 23, 28, 0.14);
    --olive: #b3262c;          /* labels: Birotex red, darkened for contrast */
    --brass: #d9262e;          /* action: Birotex red */
    --brass-hi: #ec3a41;
    --brass-ink: #ffffff;
    --accent: #b3262c;         /* accents on stage surfaces */
    --red-ink: #7e171a;        /* ink-stained red field */
    --glow-blue: rgba(36, 66, 140, 0.08);
    --glow-red: rgba(232, 70, 58, 0.10);
    --panel-bg: rgba(21, 23, 28, 0.025);
    --card-bg: #ffffff;

    --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

    --wrap: 1240px;
    --gutter: clamp(20px, 5vw, 64px);
    --radius: 2px;
    --header-h: 64px;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --section-y: clamp(72px, 10vw, 136px);
}


@media (prefers-color-scheme: dark) {
    :root {
        --ink: #000000;
        --ink-2: #000000;
        --ink-3: #1a1a1d;
        --paper: #0b0b0c;
        --bone: #141416;
        --text: #f3f0ea;
        --text-2: #b4b4ba;
        --on-ink: #f5f0e8;
        --on-ink-2: #b9b9bf;
        --fg-rgb: 245 240 232;
        --rule: rgb(var(--fg-rgb) / 0.14);
        --rule-ink: rgb(var(--fg-rgb) / 0.16);
        --olive: #ff6b70;
        --accent: #f39a4a;
        --glow-blue: rgba(36, 66, 140, 0.42);
        --glow-red: rgba(232, 70, 58, 0.20);
        --panel-bg: rgba(255, 255, 255, 0.03);
        --card-bg: #ffffff;
    }
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0;
    background: var(--paper);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.hero, .section, .page-hero, .cfg, .book, .site-footer, .card, .faq-item { transition: background-color 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1; letter-spacing: 0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main:focus { outline: none; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brass); color: var(--brass-ink); padding: 10px 14px; font-weight: 600; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ==========================================================================
   Buttons and links
   ========================================================================== */
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 0 24px;
    font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.04em; text-transform: uppercase;
    border: 1px solid transparent; border-radius: var(--radius);
    cursor: pointer; white-space: nowrap;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .icon { width: 1.25em; height: 1.25em; }
.btn-brass { background: var(--brass); color: var(--brass-ink); }
.btn-brass:hover { background: var(--brass-hi); }
.btn-ghost { color: var(--on-ink); padding: 0 8px; }
.btn-ghost .icon { transition: transform 0.2s var(--ease); }
.btn-ghost:hover .icon { transform: translateX(4px); }
.btn-ghost:hover { color: var(--on-ink); }
.btn-line { border-color: rgb(var(--fg-rgb) / 0.5); color: var(--on-ink); }
.btn-line:hover { border-color: var(--on-ink); background: rgb(var(--fg-rgb) / 0.06); }
.btn-ink { background: var(--text); color: var(--paper); }
.btn-ink:hover { background: var(--brass); color: #fff; }
.btn-line-dark { border-color: var(--rule); color: var(--text); }
.btn-line-dark:hover { border-color: var(--text); }
.btn-block { width: 100%; }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
    font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.04em; text-transform: uppercase;
    border-bottom: 1px solid currentColor;
}
.link-arrow .icon { transition: transform 0.2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ==========================================================================
   Header: the Birotex tricolour band
   ========================================================================== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    color: var(--text);
    background: #fbfaf7 url("images/band.webp") center / 100% 100% no-repeat;
    box-shadow: 0 6px 18px rgba(12, 19, 34, 0.18);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header-inner {
    height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 0 var(--gutter);
    max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
}
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 26px; width: auto; }
.nav { display: none; align-items: center; gap: 28px; }
.nav a { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.06em; text-transform: uppercase; color: #283048; padding: 8px 0; transition: color 0.2s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--brass); }
.nav .nav-cta { color: #fff; background: var(--brass); padding: 9px 18px; border-radius: var(--radius); }
.nav .nav-cta:hover { color: #fff; background: var(--brass-hi); }
.site-header.is-open { box-shadow: none; }
.lang { display: inline-flex; align-items: center; }
.header-mobile { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
    display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 2px;
    background: none; border: 0; cursor: pointer;
    font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: #283048;
}
.menu-toggle-bars { position: relative; width: 22px; height: 12px; }
.menu-toggle-bars span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform 0.25s var(--ease), top 0.25s var(--ease); }
.menu-toggle-bars span:first-child { top: 0; }
.menu-toggle-bars span:last-child { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:first-child { top: 5px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:last-child { top: 5px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: var(--ink);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
    font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 10vw, 3rem); text-transform: uppercase; line-height: 1.1;
    padding: 12px 0; border-bottom: 1px solid var(--rule-ink); color: var(--on-ink);
}
.mobile-menu-foot { display: grid; gap: 16px; padding-top: 32px; }
.mobile-menu-tel { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; color: var(--on-ink-2); }
.menu-open { overflow: hidden; }

@media (min-width: 960px) {
    :root { --header-h: 84px; }
    .nav { display: flex; }
    .header-mobile, .mobile-menu { display: none !important; }
    .brand img { height: 34px; }
}
@media (min-width: 1280px) { .nav { gap: 34px; } }

/* ==========================================================================
   Home: opening frame (exactly one viewport)
   ========================================================================== */
.hero {
    position: relative;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    overflow: hidden;
    background: var(--ink);
    color: var(--on-ink);
    isolation: isolate;
}
.hero-glow {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(ellipse 60% 55% at 74% 44%, var(--glow-red) 0%, rgba(232, 70, 58, 0.06) 42%, transparent 70%),
        radial-gradient(ellipse 90% 70% at 70% 110%, var(--glow-blue) 0%, transparent 70%);
}
.hero-inner {
    height: 100%;
    display: grid;
    grid-template-rows: 1fr auto;
    padding: 16px var(--gutter) calc(clamp(24px, 5vh, 64px) + env(safe-area-inset-bottom));
    max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto;
}
.hero-anchor {
    grid-row: 1; position: relative; min-height: 0;
    display: flex; align-items: center; justify-content: center;
}
.hero-copy { grid-row: 2; position: relative; z-index: 1; }
.hero-patch, .hero-coin {
    position: absolute; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.55));
    transition: transform 0.6s var(--ease);
    will-change: transform;
}
.hero-patch { width: auto; height: 86%; max-height: 520px; left: 50%; top: 50%; transform: translate(-58%, -52%) rotate(-6deg); }
.hero-coin { width: auto; height: 54%; max-height: 320px; left: 50%; top: 50%; transform: translate(4%, -8%) rotate(8deg); }
.hero-title {
    font-size: clamp(2.75rem, min(12.5vw, 7.4vh), 7rem);
    line-height: 1;
    text-transform: uppercase;
    max-width: 12ch;
    text-wrap: balance;
}
.hero-lead {
    margin-top: clamp(12px, 2.2vh, 24px);
    max-width: 34rem;
    font-size: clamp(1rem, min(1.6vw, 2.2vh), 1.1875rem);
    color: var(--on-ink-2);
}
.hero .actions { margin-top: clamp(26px, 4.8vh, 58px); }
.hero-note {
    margin-top: clamp(18px, 3.2vh, 36px);
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 0.9375rem; color: var(--on-ink-2);
}
.hero-note a { color: var(--on-ink); border-bottom: 1px solid var(--rule-ink); }
.hero-note .icon { color: var(--accent); }
@media (max-width: 599px) {
    .hero-lead { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
    .hero .btn-ghost { padding: 0 4px; }
}
@media (min-width: 900px) {
    .hero-inner { grid-template-columns: 6fr 5fr; grid-template-rows: 1fr; align-items: center; column-gap: 48px; padding-top: 24px; padding-bottom: 48px; }
    .hero-copy { grid-row: 1; grid-column: 1; }
    .hero-anchor { grid-row: 1; grid-column: 2; height: 100%; }
    .hero-patch { height: auto; width: 88%; max-height: none; max-width: 520px; }
    .hero-coin { height: auto; width: 52%; max-height: none; max-width: 300px; transform: translate(10%, 2%) rotate(8deg); }
    .hero-glow { background:
        radial-gradient(ellipse 45% 60% at 74% 50%, var(--glow-red) 0%, rgba(232, 70, 58, 0.06) 45%, transparent 72%),
        radial-gradient(ellipse 80% 70% at 80% 110%, var(--glow-blue) 0%, transparent 70%); }
}
@media (min-width: 900px) and (max-height: 760px) {
    .hero-title { font-size: clamp(2.75rem, 9vh, 5rem); }
    .hero-note { display: none; }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: var(--section-y) 0; }
.section-tight { padding-top: clamp(32px, 5vw, 56px); }
.section-paper { background: var(--paper); }
.section-bone { background: var(--bone); }
.section-ink { background: var(--ink); color: var(--on-ink); }

.h2 { font-size: clamp(2.25rem, 5vw, 3.75rem); text-transform: uppercase; line-height: 0.95; text-wrap: balance; }
.h3 { font-size: clamp(1.5rem, 3vw, 2rem); text-transform: uppercase; line-height: 1; }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 36rem; }
.section-ink .lead { color: var(--on-ink-2); }
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); flex-wrap: wrap; }

/* Split: image + statement + product lines */
.split { display: grid; gap: clamp(40px, 6vw, 96px); }
.split-media { position: relative; overflow: hidden; background: #fff; aspect-ratio: 1 / 1; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy .h2 { max-width: 16ch; }
.split-copy .lead { margin-top: 24px; }
@media (min-width: 900px) {
    .split { grid-template-columns: 7fr 5fr; align-items: start; }
    .split-media { position: sticky; top: calc(var(--header-h) + 32px); }
}

.lines { margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--rule); }
.line {
    display: grid; grid-template-columns: 1fr auto; column-gap: 24px; row-gap: 6px;
    padding: 24px 0; border-bottom: 1px solid var(--rule);
    transition: padding-left 0.3s var(--ease);
}
.line-name { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); text-transform: uppercase; line-height: 1; }
.line-desc { grid-column: 1; color: var(--text-2); font-size: 1rem; max-width: 34rem; }
.line-arrow { grid-row: 1 / span 2; grid-column: 2; align-self: center; color: var(--olive); transition: transform 0.3s var(--ease), color 0.3s var(--ease); }
.line-arrow .icon { width: 28px; height: 28px; }
.line:hover { padding-left: 12px; }
.line:hover .line-arrow { transform: translateX(6px); color: var(--text); }

/* Product cards */
.grid-cards { display: grid; gap: clamp(28px, 3vw, 40px) clamp(14px, 2vw, 28px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) {
    .grid-cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid-cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.card { display: flex; flex-direction: column; }
.card-media { position: relative; display: block; overflow: hidden; background: #fff; aspect-ratio: 1 / 1; box-shadow: inset 0 0 0 1px var(--rule); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-media-empty { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.card-media-empty img { width: 45%; height: auto; opacity: 0.35; }
.card-badge {
    position: absolute; top: 12px; left: 12px;
    background: var(--paper); color: var(--text);
    font-family: var(--font-display); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 4px 10px; border-radius: var(--radius);
}
.card-body { padding-top: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { font-size: 0.875rem; color: var(--text-2); }
.card-title { font-size: clamp(1.125rem, 1.7vw, 1.375rem); font-weight: 600; text-transform: uppercase; line-height: 1.05; letter-spacing: 0.01em; }
.card-title a:hover { color: var(--olive); }
.card-meta { margin-top: auto; padding-top: 6px; display: flex; font-size: 0.9375rem; }
.card-ask { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--text); }
.card-ask .icon { transition: transform 0.2s var(--ease); }
.card-ask:hover .icon { transform: translateX(4px); }
@media (max-width: 599px) { .card-ask { min-height: 40px; } }
.proof { margin-top: clamp(40px, 5vw, 64px); padding-top: 24px; border-top: 1px solid var(--rule); color: var(--text-2); max-width: 46rem; }

/* Process */
.process { display: grid; gap: clamp(40px, 5vw, 64px); }
.steps { display: grid; gap: 0; counter-reset: none; }
.step { padding: 28px 0; border-top: 1px solid var(--rule-ink); }
.step-label { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.step-title { margin-top: 12px; font-size: clamp(1.75rem, 3vw, 2.25rem); text-transform: uppercase; }
.step p:last-child { margin-top: 12px; color: var(--on-ink-2); max-width: 30rem; }
@media (min-width: 900px) {
    .process { grid-template-columns: 4fr 8fr; align-items: start; }
    .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
    .step { padding-top: 32px; }
}

/* CTA band */
.cta-band { background: var(--red-ink); color: #f5f0e8; padding: clamp(80px, 11vw, 144px) 0; }
.cta-band-inner { display: grid; gap: 28px; }
.cta-band-title { font-size: clamp(2.5rem, 5.5vw, 4.5rem); text-transform: uppercase; line-height: 0.95; max-width: 14ch; text-wrap: balance; }
.cta-band-lead { max-width: 32rem; color: var(--on-ink-2); font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); }
.cta-band .actions { margin-top: 28px; }
@media (min-width: 900px) { .cta-band-inner { grid-template-columns: 7fr 5fr; align-items: end; column-gap: 64px; } }

/* ==========================================================================
   Inner pages
   ========================================================================== */
.page-hero {
    position: relative; overflow: hidden;
    background: var(--ink); color: var(--on-ink);
    isolation: isolate;
}
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: radial-gradient(ellipse 50% 90% at 88% 0%, rgba(232, 70, 58, 0.14) 0%, transparent 70%);
}
.page-hero-inner { padding-top: calc(clamp(40px, 7vw, 88px)); padding-bottom: clamp(40px, 6vw, 72px); }
.page-title { font-size: clamp(3rem, 9vw, 6.5rem); text-transform: uppercase; line-height: 0.95; text-wrap: balance; max-width: 16ch; }
.page-lead { margin-top: 20px; max-width: 38rem; color: var(--on-ink-2); font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 20px; font-size: 0.9375rem; color: var(--on-ink-2); }
.crumbs a { padding: 6px 0; }
.crumbs a:hover { color: var(--on-ink); }
.crumbs [aria-current] { color: var(--on-ink); }
.crumbs-dark { color: var(--text-2); }
.crumbs-dark a:hover, .crumbs-dark [aria-current] { color: var(--text); }

/* Catalog filter */
.filter {
    display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none;
    margin: 0 calc(-1 * var(--gutter)) clamp(32px, 4vw, 48px); padding: 0 var(--gutter);
    border-bottom: 1px solid var(--rule);
}
.filter::-webkit-scrollbar { display: none; }
.filter a {
    flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 52px;
    font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.filter a:hover { color: var(--text); }
.filter a[aria-current="page"] { color: var(--text); border-color: var(--text); }
.filter-count { font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600; color: var(--text-2); }
@media (min-width: 900px) { .filter { margin-left: 0; margin-right: 0; padding: 0; } }

.pager { margin-top: 56px; }
.pager .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pager .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); font-weight: 600; }
.pager .page-numbers.current { background: var(--text); color: var(--paper); border-color: var(--text); }
.pager .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.empty { max-width: 32rem; padding: 48px 0; }
.empty p { margin: 16px 0 28px; color: var(--text-2); }

/* Single product */
.product { padding: calc(var(--header-h) * 0 + 32px) 0 var(--section-y); }
.product-grid { display: grid; gap: clamp(32px, 5vw, 80px); margin-top: 8px; }
.product-media { position: relative; background: #fff; aspect-ratio: 1 / 1; overflow: hidden; box-shadow: inset 0 0 0 1px var(--rule); }
.product-media-col { display: grid; gap: 16px; align-content: start; }
.sku { font-size: 0.9375rem; color: var(--text-2); }
.product-media img { width: 100%; height: 100%; object-fit: cover; }
.product-info { display: flex; flex-direction: column; gap: 20px; }
.product-title { font-size: clamp(2.5rem, 5.5vw, 4.25rem); text-transform: uppercase; line-height: 0.93; text-wrap: balance; }
.prose { color: var(--text-2); max-width: 38rem; }
.prose p + p, .prose ul, .prose ol { margin-top: 1em; }
.prose ul { list-style: disc; padding-left: 1.25em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; color: var(--text); }
.prose h2, .prose h3 { color: var(--text); text-transform: uppercase; margin: 1.4em 0 0.5em; font-size: 1.5rem; }
.prose-page { margin-top: 48px; }
.ask { margin-top: 12px; padding: 28px; background: var(--ink-2); color: var(--on-ink); display: grid; gap: 14px; }
.ask-title { font-family: var(--font-display); font-weight: 700; font-size: 1.75rem; text-transform: uppercase; line-height: 1; }
.ask-text { color: var(--on-ink-2); }
.ask-alt { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.ask-alt a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--on-ink); }
.ask-alt a:hover { color: var(--accent); }
@media (min-width: 900px) {
    .product-grid { grid-template-columns: 7fr 5fr; align-items: start; }
    .product-media-col { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* Contact */
.contact-grid { display: grid; gap: clamp(48px, 6vw, 96px); }
.channels { margin-top: 32px; border-top: 1px solid var(--rule); }
.channels li { padding: 24px 0; border-bottom: 1px solid var(--rule); }
.channel-label { font-family: var(--font-display); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); }
.channel-value { display: inline-block; margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 4vw, 2.75rem); line-height: 1.05; text-transform: uppercase; overflow-wrap: anywhere; }
.channel-value-sm { font-size: clamp(1.25rem, 2.6vw, 1.75rem); text-transform: none; font-family: var(--font-body); font-weight: 600; }
.channel-value:hover { color: var(--olive); }
.channel-note { margin-top: 6px; color: var(--text-2); font-size: 1rem; }
.brief { background: var(--ink-2); color: var(--on-ink); padding: clamp(28px, 4vw, 44px); display: grid; gap: 16px; align-content: start; }
.checks { display: grid; gap: 12px; margin: 8px 0 12px; }
.checks li { position: relative; padding-left: 28px; color: var(--on-ink-2); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.brief .btn-line-dark { border-color: rgb(var(--fg-rgb) / 0.5); color: var(--on-ink); }
.brief .btn-line-dark:hover { border-color: var(--on-ink); }
@media (min-width: 900px) {
    .contact-grid { grid-template-columns: 7fr 5fr; align-items: start; }
    .brief { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* Despre */
.statement { display: grid; gap: 32px; }
.statement .h2 { max-width: 12ch; }
.statement-body { display: grid; gap: 20px; max-width: 40rem; }
.statement-body p:not(.lead) { color: var(--text-2); }
@media (min-width: 900px) { .statement { grid-template-columns: 6fr 6fr; align-items: start; } }

.two-col { display: grid; gap: 32px; }
.rows { border-top: 1px solid var(--rule); }
.rows li { padding: 24px 0; border-bottom: 1px solid var(--rule); display: grid; gap: 6px; }
.row-title { font-size: clamp(1.5rem, 2.6vw, 2rem); text-transform: uppercase; }
.rows p { color: var(--text-2); }
@media (min-width: 900px) { .two-col { grid-template-columns: 5fr 7fr; } }

.page-plain { padding-top: 40px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink-2); color: var(--on-ink-2); padding: clamp(56px, 8vw, 96px) 0 0; font-size: 1rem; }
.footer-grid { display: grid; gap: 40px; }
.footer-brand img { height: 30px; width: auto; }
.footer-brand p { margin-top: 20px; max-width: 22rem; }
.footer-h { font-size: 1.125rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-ink); font-weight: 600; margin-bottom: 14px; }
.footer-list { display: grid; gap: 2px; }
.footer-list a { display: inline-block; padding: 7px 0; transition: color 0.2s var(--ease); }
.footer-list a:hover { color: var(--on-ink); }
.footer-bottom { margin-top: 56px; padding-top: 24px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule-ink); font-size: 0.875rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 4fr 3fr 3fr 2fr; } }

/* Floating WhatsApp: appears only once the hero CTA has scrolled away */
.wa-float {
    position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
    display: inline-flex; align-items: center; gap: 10px;
    height: 56px; padding: 0 18px;
    background: var(--ink); color: var(--on-ink);
    border: 1px solid rgba(232, 70, 58, 0.6); border-radius: 999px;
    font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.06em; text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    opacity: 0; transform: translateY(16px); pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.2s var(--ease);
}
.wa-float .icon { width: 24px; height: 24px; color: var(--accent); }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { background: var(--ink-3); }
.wa-float:active { transform: scale(0.97); }
@media (max-width: 599px) { .wa-float span { display: none; } .wa-float { width: 56px; padding: 0; justify-content: center; } }

/* ==========================================================================
   Process on light background + configurator teaser
   ========================================================================== */
.process-light .step { border-top-color: var(--rule); }
.process-light .step-label { color: var(--olive); }
.process-light .step p:last-child { color: var(--text-2); }
.eyebrow-light { color: var(--accent); }
.teaser { overflow: hidden; }
.teaser-grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
.teaser .lead { margin-top: 20px; }
.teaser .actions { margin-top: 32px; }
.teaser .h2 { margin-top: 14px; max-width: 15ch; }
.teaser-media { display: block; border-radius: var(--radius); overflow: hidden; background: radial-gradient(ellipse at 50% 45%, var(--ink-3) 0%, var(--ink) 70%); }
.teaser-media img { width: 100%; height: auto; transition: transform 0.8s var(--ease); }
.teaser-media:hover img { transform: scale(1.02); }
@media (min-width: 900px) { .teaser-grid { grid-template-columns: 5fr 7fr; } }

/* ==========================================================================
   Embroidery configurator
   ========================================================================== */
.cfg {
    position: relative; isolation: isolate;
    background: var(--ink); color: var(--on-ink);
    display: grid;
}
.cfg-glow {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(ellipse 55% 60% at 50% 42%, rgba(232, 70, 58, 0.16) 0%, rgba(232, 70, 58, 0.04) 45%, transparent 72%),
        radial-gradient(ellipse 90% 60% at 50% 105%, var(--glow-blue) 0%, transparent 70%);
}
.cfg-stage { position: relative; height: 58vh; height: 58svh; min-height: 340px; touch-action: none; }
.cfg-stage canvas { display: block; width: 100%; height: 100%; cursor: grab; outline: none; }
.cfg-stage canvas:active { cursor: grabbing; }
.cfg-loading { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; transition: opacity 0.4s var(--ease); }
.cfg-loading span { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(243, 154, 74, 0.25); border-top-color: var(--accent); animation: cfg-spin 0.9s linear infinite; }
@keyframes cfg-spin { to { transform: rotate(360deg); } }
.cfg.is-ready .cfg-loading { opacity: 0; }
.cfg-stage-ui { position: absolute; left: 0; right: 0; bottom: 16px; display: flex; align-items: center; justify-content: center; gap: 12px; pointer-events: none; }
.cfg-arrow {
    pointer-events: auto; width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center; cursor: pointer;
    background: rgb(var(--fg-rgb) / 0.06); border: 1px solid rgb(var(--fg-rgb) / 0.5); color: var(--on-ink);
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.cfg-arrow:hover { background: rgb(var(--fg-rgb) / 0.14); border-color: var(--on-ink); }
.cfg-arrow:active { transform: scale(0.94); }
.cfg-arrow[data-step="-1"] .icon { transform: rotate(180deg); }
.cfg-hint { order: 1; font-size: 0.875rem; color: var(--on-ink-2); padding: 0 8px; }
.cfg-arrow[data-step="1"] { order: 2; }
.cfg-flash {
    position: absolute; left: 50%; top: 16px; transform: translate(-50%, -8px); opacity: 0;
    background: var(--paper); color: var(--text); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; font-size: 0.9375rem;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); pointer-events: none; max-width: calc(100% - 32px); text-align: center;
}
.cfg-flash.is-on { opacity: 1; transform: translate(-50%, 0); }
.cfg-credit { position: absolute; right: 12px; top: 10px; margin: 0; font-size: 0.7rem; line-height: 1.3; color: rgb(var(--fg-rgb) / 0.75); text-align: right; max-width: 60%; }
.cfg-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.cfg-credit a:hover { color: var(--paper); }

.cfg-panel { padding: 28px var(--gutter) calc(24px + env(safe-area-inset-bottom)); display: grid; gap: 28px; align-content: start; }
.cfg-title { font-size: clamp(2.25rem, 6vw, 3.5rem); text-transform: uppercase; line-height: 0.95; margin-top: 10px; text-wrap: balance; }
.cfg-label { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-ink-2); margin-bottom: 12px; display: flex; justify-content: space-between; }
.cfg-count { color: var(--accent); letter-spacing: 0.04em; }
.cfg-garments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cfg-chip {
    min-height: 48px; cursor: pointer; border-radius: var(--radius);
    background: transparent; border: 1px solid rgb(var(--fg-rgb) / 0.5); color: var(--on-ink-2);
    font-family: var(--font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: 0.06em; text-transform: uppercase;
    transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.cfg-chip:hover { border-color: var(--on-ink); color: var(--on-ink); }
.cfg-chip[aria-pressed="true"] { background: var(--on-ink); color: var(--ink); border-color: var(--on-ink); }
.cfg-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.cfg-swatch {
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
    background: var(--sw); border: 2px solid rgb(var(--fg-rgb) / 0.5);
    box-shadow: inset 0 0 0 3px var(--ink);
    transition: border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.cfg-swatch:hover { transform: scale(1.06); }
.cfg-swatch[aria-pressed="true"] { border-color: var(--accent); }
.cfg-list { display: grid; gap: 8px; }
.cfg-list:empty { display: none; }
.cfg-item {
    display: grid; grid-template-columns: 44px 1fr auto 40px; align-items: center; gap: 12px;
    padding: 8px 8px 8px 10px; background: rgb(var(--fg-rgb) / 0.05); border: 1px solid rgb(var(--fg-rgb) / 0.1); border-radius: var(--radius);
}
.cfg-item img { width: 44px; height: 44px; object-fit: contain; }
.cfg-item-name { font-weight: 600; font-size: 0.9375rem; line-height: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfg-item-zone select {
    min-height: 40px; max-width: 148px; padding: 0 28px 0 10px; border-radius: var(--radius);
    background: var(--ink-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bcb5a4' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px;
    color: var(--on-ink); border: 1px solid rgb(var(--fg-rgb) / 0.5); font: inherit; font-size: 0.875rem; appearance: none; -webkit-appearance: none; cursor: pointer;
}
.cfg-item-remove { width: 40px; height: 40px; border: 0; background: none; color: var(--on-ink-2); font-size: 1.5rem; line-height: 1; cursor: pointer; border-radius: var(--radius); }
.cfg-item-remove:hover { color: var(--on-ink); background: rgb(var(--fg-rgb) / 0.08); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cfg-help { font-size: 0.9375rem; color: var(--on-ink-2); margin: 14px 0 12px; }
.cfg.has-badges .cfg-help { margin-top: 16px; }
.cfg-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cfg-badge {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
    aspect-ratio: 1 / 1.08; padding: 8px 4px 6px; cursor: pointer; border-radius: var(--radius);
    background: rgb(var(--fg-rgb) / 0.04); border: 1px solid rgb(var(--fg-rgb) / 0.1); color: var(--on-ink-2);
    font-size: 0.6875rem; line-height: 1.15; text-align: center;
    transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.cfg-badge img { width: 70%; height: auto; aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4)); transition: transform 0.3s var(--ease); }
.cfg-badge span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfg-badge:hover { background: rgb(var(--fg-rgb) / 0.09); border-color: rgba(232, 70, 58, 0.6); color: var(--on-ink); }
.cfg-badge:hover img { transform: scale(1.07) rotate(-3deg); }
.cfg-badge:active { transform: scale(0.96); }
.cfg-upload { border-style: dashed; border-color: rgba(243, 154, 74, 0.6); color: var(--accent); }
.cfg-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cfg-upload-plus { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.cfg-upload:focus-within { outline: 2px solid var(--brass); outline-offset: 2px; }
.cfg-cta { display: grid; gap: 4px; position: sticky; bottom: 0; padding: 12px 0 calc(8px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, var(--ink) 75%, transparent); z-index: 2; }
.cfg-snapshot { min-height: 44px; background: none; border: 0; color: var(--on-ink-2); font: inherit; font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cfg-snapshot:hover { color: var(--on-ink); }
.page-personalizeaza .wa-float { display: none; }

@media (min-width: 600px) { .cfg-badges { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px) {
    .cfg { grid-template-columns: minmax(0, 1fr) 440px; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); }
    .admin-bar .cfg { height: calc(100dvh - var(--header-h) - 32px); }
    .cfg-stage { height: 100%; }
    .cfg-panel { overflow-y: auto; padding: 36px 36px 0; border-left: 1px solid var(--rule-ink); background: var(--panel-bg); scrollbar-width: thin; scrollbar-color: rgb(var(--fg-rgb) / 0.2) transparent; }
    .cfg-stage-ui { bottom: 28px; }
    .cfg-badges { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1440px) { .cfg { grid-template-columns: minmax(0, 1fr) 480px; } }

/* ==========================================================================
   Reveal on scroll (progressive: content is visible without JS)
   ========================================================================== */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

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

/* WordPress core helpers */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 0.875rem; color: var(--text-2); }

/* Buttons on the red field */
.cta-band .btn-brass { background: #fff; color: var(--red-ink); }
.cta-band .btn-brass:hover { background: var(--paper); }
.cta-band .cta-band-lead { color: rgba(255, 240, 232, 0.86); }
/* Mobile menu sits under the band */
.mobile-menu { background: var(--ink); }

/* Floating WhatsApp sits above the chatbot bubble */
.has-chatbot .wa-float { bottom: calc(max(16px, env(safe-area-inset-bottom)) + 76px); }

/* ==========================================================================
   Catalog flipbook
   ========================================================================== */
.section-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.page-hero-tail { background: var(--ink); padding-bottom: 28px; margin-top: -8px; }
.link-arrow-light { color: var(--on-ink); }
.link-arrow-light:hover { color: var(--accent); }
.book { background: var(--ink); color: var(--on-ink); padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 5vw, 64px); position: relative; isolation: isolate; }
.book::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(232, 70, 58, 0.12) 0%, transparent 70%); }
.book-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: clamp(20px, 3vw, 36px); }
.book-title { font-size: clamp(2.25rem, 6vw, 4rem); text-transform: uppercase; line-height: 0.95; margin-top: 8px; }
.book-stage { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.book-flip { margin: 0 auto; }
.book-page { background: #fff; overflow: hidden; }
.book-page img { width: 100%; height: 100%; object-fit: contain; display: block; background: #fff; }
.book-page img[data-src] { visibility: hidden; }
.book-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 24px; }
.book-controls .cfg-arrow[data-book="prev"] .icon { transform: rotate(180deg); }
.book-count { min-width: 96px; text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 1.125rem; letter-spacing: 0.06em; color: var(--on-ink); }
.book-fs { margin-left: 8px; min-height: 44px; background: none; border: 0; color: var(--on-ink-2); text-decoration: underline; text-underline-offset: 3px; font: inherit; font-size: 0.9375rem; cursor: pointer; }
.book-fs:hover { color: var(--on-ink); }
.book:fullscreen { display: flex; flex-direction: column; justify-content: center; overflow: auto; }
.book:fullscreen .book-head, .book:fullscreen .book-thumbs { display: none; }
.book-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 20px var(--gutter) 4px; margin-top: 12px; scrollbar-width: thin; scrollbar-color: rgb(var(--fg-rgb) / 0.25) transparent; }
.book-thumb { flex: none; width: 72px; height: 72px; padding: 0; border: 2px solid transparent; background: #fff; cursor: pointer; border-radius: var(--radius); opacity: 0.7; transition: opacity 0.2s var(--ease), border-color 0.2s var(--ease); }
.book-thumb img { width: 100%; height: 100%; object-fit: contain; }
.book-thumb:hover { opacity: 1; }
.book-thumb[aria-current="true"] { border-color: var(--accent); opacity: 1; }

/* FAQ (answer-first, mirrored in FAQPage schema) */
.faq-grid { display: grid; gap: clamp(28px, 4vw, 56px); }
.faq-head .lead { margin-top: 12px; }
.faq-list { margin: 0; display: grid; gap: 0; }
.faq-item { padding: 22px 0; border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-q { margin: 0 0 8px; font-family: var(--font-display, "Barlow Condensed", sans-serif); font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.2; color: var(--text); }
.faq-a { margin: 0; color: var(--text-2); max-width: 68ch; }
.faq-a .link-arrow { white-space: nowrap; }
@media (min-width: 960px) {
    .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); align-items: start; }
    .faq-head { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* Services line inside the hero: between the H1 and the lead */
.hero-services { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: clamp(20px, 3.6vh, 44px) 0 0; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.2; font-size: clamp(1rem, 1.45vw, 1.3rem); color: var(--on-ink); }
.hero-services span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.hero-services span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brass); flex: none; }
.hero-services + .hero-lead { margin-top: clamp(18px, 3.2vh, 38px); }

/* Favorite products slide (fade) */
.fav-slider { background: var(--card-bg); }
.fav-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s var(--ease); display: block; }
.fav-slide.is-active { opacity: 1; z-index: 1; }
.fav-slide img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.fav-name { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 18px 14px; font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1rem; line-height: 1.15; color: #15171c; background: linear-gradient(0deg, rgba(255,255,255,0.95) 55%, rgba(255,255,255,0)); }
.fav-slider > img { width: 100%; height: 100%; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .fav-slide { transition: none; } }

/* Upload notice (shown when the visitor picks their own image) */
.cfg-upload-note { margin: -8px 0 4px; padding: 10px 12px; border-left: 3px solid var(--brass); background: rgb(var(--fg-rgb) / 0.05); color: var(--on-ink); font-size: 0.9rem; line-height: 1.45; }
.cfg-upload-note.is-on { animation: cfg-note-in 0.35s var(--ease); }
@keyframes cfg-note-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Language dropdown with flags (header bar is always light) */
.lang-dd { position: relative; }
.lang-dd > summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; cursor: pointer; padding: 8px 10px; border-radius: var(--radius); color: #15171c; font-family: var(--font-display); font-weight: 700; font-size: 0.9375rem; letter-spacing: 0.08em; user-select: none; transition: background-color 0.2s var(--ease); }
.lang-dd > summary::-webkit-details-marker { display: none; }
.lang-dd > summary:hover, .lang-dd[open] > summary { background: rgba(21, 23, 28, 0.07); }
.lang-caret { width: 12px; height: 12px; transition: transform 0.2s var(--ease); }
.lang-dd[open] .lang-caret { transform: rotate(180deg); }
.flag { width: 22px; height: 15px; flex: none; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); overflow: hidden; display: block; }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 196px; padding: 6px; background: #fff; color: #15171c; border-radius: 6px; box-shadow: 0 18px 40px rgba(12, 19, 34, 0.22), 0 0 0 1px rgba(21, 23, 28, 0.08); z-index: 60; animation: lang-in 0.16s var(--ease); }
.lang-menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 4px; font-family: var(--font-body); font-size: 0.975rem; font-weight: 600; color: #15171c; letter-spacing: 0; text-transform: none; }
.lang-menu a .lang-code { margin-left: auto; font-family: var(--font-display); font-size: 0.8125rem; letter-spacing: 0.08em; color: #6b7080; }
.lang-menu a:hover { background: #f4f2ee; }
.lang-menu a[aria-current] { background: #fbeaea; }
.lang-menu a[aria-current] .lang-code { color: var(--brass); }
@keyframes lang-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-color-scheme: dark) {
    .lang-menu { background: #16161a; color: #f3f0ea; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08); }
    .lang-menu a { color: #f3f0ea; }
    .lang-menu a:hover { background: #222227; }
    .lang-menu a[aria-current] { background: #3a1416; }
    .lang-menu a .lang-code { color: #9a9aa2; }
}

/* Phones: keep the patch large; the hero may grow past the screen on short devices */
@media (max-width: 899px) {
    .hero { height: auto; min-height: calc(100vh - var(--header-h)); min-height: calc(100dvh - var(--header-h)); }
    .hero-inner { min-height: inherit; }
    .hero-anchor { min-height: clamp(210px, 38vh, 440px); }
}

/* Contrast: the red CTA band is red in both themes, so its text stays light */
.cta-band { --on-ink: #f5f0e8; --on-ink-2: rgba(255, 240, 232, 0.86); --fg-rgb: 245 240 232; --rule-ink: rgba(245, 240, 232, 0.3); }
.cta-band .btn-line { color: #f5f0e8; border-color: rgba(245, 240, 232, 0.6); }

/* Favorites slide: pause/play (WCAG 2.2.2) */
.fav-toggle { position: absolute; top: 12px; right: 12px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(21, 23, 28, 0.78); color: #fff; cursor: pointer; transition: background-color 0.2s var(--ease); }
.fav-toggle:hover { background: #15171c; }
.fav-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.fav-toggle .fav-ico-play { display: none; }
.fav-toggle[aria-pressed="true"] .fav-ico-play { display: block; }
.fav-toggle[aria-pressed="true"] .fav-ico-pause { display: none; }
@media (prefers-reduced-motion: reduce) { .fav-toggle { display: none; } }

/* ==========================================================================
   Product gallery (Amazon-style)
   ========================================================================== */
.pg { display: grid; gap: 12px; }
.pg-stage { position: relative; background: #fff; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(21, 23, 28, 0.08); }
.pg-track { position: absolute; inset: 0; }
.pg-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), visibility 0s linear 0.25s; }
.pg-slide.is-active { opacity: 1; visibility: visible; transition: opacity 0.25s var(--ease); }
.pg-slide img { width: 100%; height: 100%; object-fit: contain; padding: 3%; transition: transform 0.12s ease-out; will-change: transform; }
.pg-stage.is-zooming { cursor: zoom-out; }
.pg-stage.is-zooming .pg-slide.is-active img { transform: scale(2.4); transform-origin: var(--zx, 50%) var(--zy, 50%); transition: transform 0.18s ease-out; }
.pg-expand { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: #15171c; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15); cursor: pointer; }
.pg-expand svg { width: 20px; height: 20px; }
.pg-expand:hover { background: #fff; color: var(--brass); }
.pg-count { position: absolute; left: 12px; bottom: 14px; z-index: 2; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(21, 23, 28, 0.72); color: #fff; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.pg-hint { margin: 0; font-size: 0.875rem; color: var(--text-2); text-align: center; }
.pg-thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.pg-thumbs::-webkit-scrollbar { display: none; }
.pg-thumb { flex: none; width: 64px; height: 64px; padding: 3px; background: #fff; border: 1px solid rgb(var(--fg-rgb) / 0.5); border-radius: 6px; cursor: pointer; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.pg-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pg-thumb:hover { border-color: var(--brass); }
.pg-thumb[aria-pressed="true"] { border-color: var(--brass); box-shadow: 0 0 0 2px var(--brass); }
@media (hover: none), (pointer: coarse) { .pg-hint { display: none; } }

/* phones/tablets: swipe through the photos, thumbs underneath */
@media (max-width: 899px) {
    .pg-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
    .pg-track::-webkit-scrollbar { display: none; }
    .pg-slide { position: relative; flex: 0 0 100%; opacity: 1; visibility: visible; scroll-snap-align: center; }
    .pg-thumbs { order: 2; }
}
/* desktop: vertical thumbs on the left */
@media (min-width: 900px) {
    .pg.has-thumbs { grid-template-columns: 72px minmax(0, 1fr); align-items: start; }
    .pg.has-thumbs .pg-thumbs { flex-direction: column; max-height: min(78vh, 640px); overflow-y: auto; overflow-x: hidden; }
    .pg.has-thumbs .pg-hint { grid-column: 2; }
    .pg-stage { cursor: zoom-in; }
}

/* full-screen view */
.pg-lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; color: #15171c; }
.pg-lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
.pg-lightbox[open] { display: grid; place-items: center; }
.pg-lightbox img { max-width: 94vw; max-height: 88dvh; object-fit: contain; }
.pg-lb-close, .pg-lb-nav { position: absolute; border: 0; background: rgba(21, 23, 28, 0.06); color: #15171c; cursor: pointer; display: grid; place-items: center; border-radius: 50%; font-size: 2rem; line-height: 1; width: 52px; height: 52px; }
.pg-lb-close { top: 16px; right: 16px; }
.pg-lb-nav { top: 50%; transform: translateY(-50%); }
.pg-lb-prev { left: 16px; } .pg-lb-next { right: 16px; }
.pg-lb-close:hover, .pg-lb-nav:hover { background: rgba(21, 23, 28, 0.14); }
.pg-lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 0.9375rem; color: #4a4e5a; }

/* colour tiles */
.pcolors { display: grid; gap: 10px; }
.pcolors-label { margin: 0; color: var(--text-2); }
.pcolors-label strong { color: var(--text); }
.pcolors-list { display: flex; flex-wrap: wrap; gap: 10px; }
.pcolor { display: grid; justify-items: center; gap: 4px; width: 84px; padding: 6px 6px 8px; background: var(--paper); border: 1px solid rgb(var(--fg-rgb) / 0.5); border-radius: 8px; cursor: pointer; color: var(--text); font-size: 0.8125rem; line-height: 1.2; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease); }
.pcolor img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 4px; }
.pcolor:hover { border-color: var(--brass); }
.pcolor[aria-pressed="true"] { border-color: var(--brass); box-shadow: 0 0 0 2px var(--brass); }

/* Image protection (deterrent): no drag, no long-press save, no selection */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.pg-stage, .book-stage, .fav-slider, .card-media, .product-media, .teaser-media { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
