/*
 * Log Design Tokens — Black + Gold brand system
 * Loaded unconditionally before style.css on every page.
 *
 * Source of truth: website_reference/*.html :root blocks
 * (ink #050505–#555555 scale, gold #F0CC55/#D4AF37/#B8941E/#9A7B10,
 *  paper #FAFAFA, surface #F5F5F5, line #EEEEEE, Manrope/Inter/JetBrains Mono).
 *
 * Namespaces:
 *   --ink-* / --gold-* / --paper / --surface / --line   canonical reference tokens
 *   --sage-* / --plum-* / --blush-*                     back-compat aliases, remapped
 *                                                       onto the ink+gold ramps so the
 *                                                       100+ component stylesheets that
 *                                                       reference them repaint without
 *                                                       needing a rename pass
 *   --lc-* / --mr-*                                     legacy sets, likewise remapped
 */

:root {
    /* ── Legacy --lc-* tokens (remapped onto ink + gold) ────────── */
    --lc-primary: #B8941E;
    --lc-primary-hover: #9A7B10;
    --lc-primary-pale: #FDF7E3;
    --lc-primary-subtle: #F0CC55;
    --lc-secondary: #D4AF37;
    --lc-navy-darkest: #050505;
    --lc-navy-dark: #0A0A0A;
    --lc-navy-mid: #111111;
    --lc-navy-nav: #0A0A0A;
    --lc-text-dark: #0A0A0A;
    --lc-text-muted: #888888;
    --lc-text-light: rgba(255, 255, 255, .78);
    --lc-white: #ffffff;
    --lc-cream: #FAFAFA;
    --lc-overlay-92: rgba(5, 5, 5, .92);
    --lc-overlay-97: rgba(5, 5, 5, .97);
    --lc-overlay-98: rgba(5, 5, 5, .98);
    --lc-shadow-sm: 0 2px 12px rgba(10, 10, 10, .08);
    --lc-shadow-md: 0 8px 40px rgba(10, 10, 10, .13);
    --lc-shadow-lg: 0 20px 70px rgba(10, 10, 10, .18);
    --lc-shadow-header: 0 2px 12px rgba(0, 0, 0, .07);
    --lc-border: rgba(212, 175, 55, .12);
    --lc-border-mid: rgba(212, 175, 55, .20);
    --lc-border-header: #EEEEEE;
    --lc-radius: 4px;
    --lc-radius-md: 8px;
    --lc-radius-lg: 12px;
    --lc-radius-xl: 20px;
    --lc-radius-pill: 100px;
    --lc-font-display: 'Manrope', -apple-system, sans-serif;
    --lc-font-body: 'Inter', -apple-system, sans-serif;
    --lc-transition: .35s cubic-bezier(.4, 0, .2, 1);
    --lc-nav-height: 76px;
    --lc-nav-height-sm: 64px;
    --lc-container-max: 1200px;

    /* ════════════════════════════════════════════════════════════════
       LEGACY --mr-* SET (remapped onto ink + gold)
       The maroon/crimson ramps are retired; both now resolve to the
       ink scale so any stylesheet still naming them repaints correctly.
       ════════════════════════════════════════════════════════════════ */

    /* ── Was Set A: Maroon → ink scale ───────────────────────── */
    --mr-maroon-950: #050505;
    --mr-maroon-900: #0A0A0A;
    --mr-maroon-800: #111111;
    --mr-maroon-700: #1A1A1A;
    --mr-maroon-600: #333333;
    --mr-maroon-500: #555555;
    --mr-maroon-300: #888888;

    /* ── Was Set B: Crimson → gold accent ────────────────────── */
    --mr-crimson-deep: #9A7B10;
    --mr-crimson: #B8941E;
    --mr-crimson-light: #F0CC55;

    /* ── Gold accent ────────────────────────────────────────── */
    --mr-gold-700: #9A7B10;
    --mr-gold-600: #B8941E;
    --mr-gold-500: #D4AF37;
    --mr-gold-400: #F0CC55;
    --mr-gold: #D4AF37;
    --mr-gold-light: #F0CC55;
    --mr-gold-pale: #FDF7E3;

    /* ── Neutrals ───────────────────────────────────────────── */
    --mr-white: #ffffff;
    --mr-cream: #FAFAFA;
    --mr-cream-dark: #F5F5F5;
    --mr-cream-100: #FAFAFA;
    --mr-cream-50: #FFFFFF;
    --mr-tan-100: #F5F5F5;
    --mr-ink: #0A0A0A;
    --mr-ink-900: #0A0A0A;
    --mr-ink-800: #111111;
    --mr-ink-700: #1A1A1A;
    --mr-ink-mid: #333333;
    --mr-ink-soft: #888888;
    --mr-gray-600: #888888;
    --mr-gray-400: #CCCCCC;
    --mr-line: #EEEEEE;
    --mr-border: #EEEEEE;

    /* ── Shadows ────────────────────────────────────────────── */
    --mr-shadow-sm: 0 2px 12px rgba(10, 10, 10, .06);
    --mr-shadow-md: 0 14px 34px rgba(10, 10, 10, .10);
    --mr-shadow-lg: 0 24px 60px rgba(10, 10, 10, .20);

    /* ── Border Radius ──────────────────────────────────────── */
    --mr-radius-sm: 10px;
    --mr-radius-md: 18px;
    --mr-radius-lg: 26px;
    --mr-radius-pill: 999px;

    /* ── Typography ─────────────────────────────────────────── */
    --mr-display: 'Manrope', -apple-system, sans-serif;
    --mr-body: 'Inter', -apple-system, sans-serif;

    /* ── Motion ─────────────────────────────────────────────── */
    --mr-ease: cubic-bezier(.22, .61, .36, 1);

    /* ════════════════════════════════════════════════════════════════
       REFERENCE DESIGN SYSTEM TOKENS — black + gold
       Values lifted verbatim from website_reference/*.html :root.
       ════════════════════════════════════════════════════════════════ */

    /* ── Gold accent ramp ───────────────────────────────────── */
    --gold-400: #F0CC55;
    --gold-500: #D4AF37;
    --gold-600: #B8941E;
    --gold-700: #9A7B10;
    /* Pale gold wash used for hover fills on light surfaces */
    --gold-tint: #FDF7E3;

    /* ── Ink / text scale ───────────────────────────────────── */
    --ink-950: #050505;
    --ink-900: #0A0A0A;
    --ink-800: #111111;
    --ink-700: #1A1A1A;
    --ink-600: #333333;
    --ink-500: #555555;
    --ink-400: #555555;

    /* ── Surfaces ───────────────────────────────────────────── */
    --paper: #FAFAFA;
    --paper-50: #FFFFFF;
    --surface: #F5F5F5;
    --white: #ffffff;

    /* ── Lines / muted text ─────────────────────────────────── */
    --line: #EEEEEE;
    --line-gold: rgba(212, 175, 55, 0.25);
    --gray-mid: #888888;
    --gray-light: #CCCCCC;
    --gray-600: #888888;
    --gray-400: #CCCCCC;

    /* ── Dark-hero glass overlays ─────────────────────────────
       Translucent gold/white fills for kickers, pills, and badges
       sitting on a dark (--ink-950…--ink-900) hero background.
       Reusable across any dark-hero section, not page-specific. */
    --gold-glass-04: rgba(212, 175, 55, .04);
    --gold-glass-06: rgba(212, 175, 55, .06);
    --gold-glass-08: rgba(212, 175, 55, .08);
    --gold-glass-10: rgba(212, 175, 55, .10);
    --gold-glass-15: rgba(212, 175, 55, .15);
    --gold-glass-20: rgba(212, 175, 55, .20);
    --gold-glass-35: rgba(212, 175, 55, .35);
    --gold-glass-40: rgba(212, 175, 55, .40);
    --gold-glass-55: rgba(212, 175, 55, .55);
    --white-glass-06: rgba(255, 255, 255, .06);
    --white-glass-08: rgba(255, 255, 255, .08);
    --white-glass-10: rgba(255, 255, 255, .10);
    --white-glass-15: rgba(255, 255, 255, .15);
    --white-glass-25: rgba(255, 255, 255, .25);
    --white-glass-40: rgba(255, 255, 255, .40);
    --white-glass-50: rgba(255, 255, 255, .50);
    --white-glass-55: rgba(255, 255, 255, .55);
    --white-glass-68: rgba(255, 255, 255, .68);
    --white-glass-75: rgba(255, 255, 255, .75);
    --white-glass-80: rgba(255, 255, 255, .80);
    --white-glass-85: rgba(255, 255, 255, .85);
    --white-glass-95: rgba(255, 255, 255, .95);
    --ink-glass-20: rgba(10, 10, 10, .20);
    --ink-glass-25: rgba(10, 10, 10, .25);
    --ink-glass-32: rgba(10, 10, 10, .32);
    --ink-glass-35: rgba(10, 10, 10, .35);
    --ink-glass-75: rgba(5, 5, 5, .75);
    --shadow-gold-lg: 0 14px 32px rgba(212, 175, 55, .5);

    --max-width: 1340px;

    /* ── Shadows ────────────────────────────────────────────── */
    --shadow-sm: 0 2px 14px rgba(10, 10, 10, .07);
    --shadow-md: 0 16px 36px rgba(10, 10, 10, .13);
    --shadow-lg: 0 28px 64px rgba(10, 10, 10, .24);
    --shadow-gold: 0 8px 28px rgba(212, 175, 55, 0.35);

    /* ── Typography ─────────────────────────────────────────── */
    --mono: 'JetBrains Mono', monospace;

    /* ════════════════════════════════════════════════════════════════
       BACK-COMPAT ALIASES — "sage" / "plum" / "blush"
       These names predate the black+gold system and are referenced by
       100+ component stylesheets. Rather than rename every call site,
       each alias is remapped onto its equivalent ink or gold value so
       components repaint in place. Prefer --ink-* / --gold-* in new CSS.
       ════════════════════════════════════════════════════════════════ */

    /* Was the "sage" ramp — now gold accent + ink darks */
    --sage-50:  #FAFAFA;
    --sage-100: #F5F5F5;
    --sage-200: #EEEEEE;
    --sage-300: #F0CC55;
    --sage-400: #F0CC55;
    --sage-500: #D4AF37;
    --sage-600: #B8941E;
    --sage-700: #9A7B10;
    --sage-800: #0A0A0A;
    --sage-900: #050505;

    /* Was the "plum" ramp — now gold accent + ink darks */
    --plum-50:  #FFFFFF;
    --plum-100: #F5F5F5;
    --plum-500: #F0CC55;
    --plum-600: #D4AF37;
    --plum-700: #B8941E;
    --plum-800: #111111;
    --plum-900: #0A0A0A;
    --plum-950: #050505;

    /* Was the "blush" tinted surfaces */
    --blush-50: #FFFFFF;
    --blush-100: #F5F5F5;

    /* ── Third-party plugin theming hooks ───────────────────────
       WC Smart Sales Popup's marquee is the site's top ticker bar. Its
       stylesheet drives every visual from these custom properties (with
       pale-blue defaults baked in), so the bar is themed here rather than
       by editing plugin source, which an update would overwrite.
       Values mirror .ticker-bar / .ticker-track in the reference. */
    --wc-ssp-bar-bg: linear-gradient(90deg, #050505, #120e02 40%, #1a1303 60%, #0A0A0A);
    --wc-ssp-bar-height: 34px;
    --wc-ssp-text: rgba(255, 255, 255, .75);
    --wc-ssp-strong: #ffffff;
    --wc-ssp-sep: #D4AF37;
    --wc-ssp-dot: #D4AF37;
    --wc-ssp-font-size: 13px;
    --wc-ssp-speed: 34s;
}

/* assets/css/style.css (legacy token-remap layer, loads after this file) redefines
   --shadow-sm/md/lg at a bare :root selector, which wins at equal specificity by
   load order. Re-declaring under html:root here (0-0-1-1 beats 0-0-1-0) restores
   the real design-token values sitewide without touching the legacy file. */
html:root {
    --shadow-sm: 0 2px 14px rgba(10, 10, 10, .07);
    --shadow-md: 0 16px 36px rgba(10, 10, 10, .13);
    --shadow-lg: 0 28px 64px rgba(10, 10, 10, .24);

    /* Border radius */
    --r-sm: 10px;
    --r-md: 18px;
    --r-lg: 28px;
    --r-pill: 999px;

    /* Semantic */
    --danger: #c14a4a;
    --danger-light: #f3e1df;

    /* Typography */
    --display: 'Manrope', -apple-system, sans-serif;
    --body: 'Inter', -apple-system, sans-serif;

    /* Motion */
    --ease: cubic-bezier(.22, .61, .36, 1);

    /* Blocksy's main.min.css sets h1-h6{margin-block-end:calc(var(--has-theme-content-spacing,1)*(.3em+10px))} —
       the var is unset anywhere in our theme, so it falls back to 1 and adds ~21px of
       unintended bottom margin under every heading sitewide. Zeroing it here kills that
       extra space without touching the parent theme (var used for no other purpose in Blocksy). */
    --has-theme-content-spacing: 0;
}

/* ── Global typography ───────────────────────────────────────────── */
body {
    background: var(--paper) !important;
    color: var(--ink-900);
    font-family: var(--body, 'Inter', -apple-system, sans-serif);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--display, 'Playfair Display', Georgia, serif);
}

/* Blocksy's own compiled CSS sets a:hover to its theme accent color, which
   bleeds onto any anchor a component doesn't already give its own hover
   color to (plain page-content links, etc.). Reset to inherit as the sitewide
   default — any component's own more specific ".foo a:hover" rule still
   wins on specificity and keeps its intentional hover color unaffected. */
a:hover {
    color: inherit;
}

/* ── Icon utility class ──────────────────────────────────────────── */
.icon {
    width: 1em;
    height: 1em;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    display: inline-block;
}

/* ── Scroll-reveal animation base styles ─────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .7s cubic-bezier(.22, .61, .36, 1);
}

.reveal.visible,
.reveal.in {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity .7s var(--mr-ease), transform .7s var(--mr-ease);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity .7s var(--mr-ease), transform .7s var(--mr-ease);
}

.reveal-left.visible,
.reveal-left.in,
.reveal-right.visible,
.reveal-right.in {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(.92);
    transition: opacity .7s var(--mr-ease), transform .7s var(--mr-ease);
}

.reveal-scale.visible,
.reveal-scale.in {
    opacity: 1;
    transform: scale(1);
}

/* ── Section helper classes ──────────────────────────────────────── */
.section {
    padding: 88px 24px;
}

.section-tan {
    background: var(--surface);
}

.section-dark {
    background: linear-gradient(160deg, var(--ink-950), var(--ink-900));
    color: #fff;
}

.section-maroon {
    background: linear-gradient(120deg, var(--ink-800), var(--ink-700));
    color: #fff;
}

.section-blush {
    background: var(--paper);
}

/* Warm black→bronze wash used for the dark feature bands. Stops match the
   reference gradient in website_reference/*.html verbatim. */
.section-deep {
    background: linear-gradient(135deg, #050505 0%, #0d0b06 28%, #1a1306 50%, #241a07 72%, #050505 100%);
    color: #fff;
}

/* ── Marquee animation (dir-right) ───────────────────────────────── */
.marquee-track.dir-right {
    animation: marqueeRight var(--speed, 38s) linear infinite;
}

@keyframes marqueeRight {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

/* ── Eyebrow + headline shared styles ────────────────────────────── */
/* Reference sets eyebrows in the mono face at 10.5px/.14em uppercase. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-bottom: 16px;
}

.eyebrow::before {
    content: '';
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold-500);
    display: inline-block;
}

/* On the dark bands the deeper gold loses contrast — step up to gold-400. */
.on-deep .eyebrow {
    color: var(--gold-400);
}

h2.headline {
    font-family: var(--mr-display);
    font-weight: 600;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.08;
    letter-spacing: -.02em;
    color: var(--ink-900);
    margin-block-end: 0;
}

.on-deep h2.headline {
    color: #fff;
}

/* Reference renders emphasised heading words as flat gold — no gradient fill
   and no shimmer. Deeper gold on light surfaces, lighter gold on the dark bands. */
h2.headline em {
    font-style: italic;
    font-weight: 700;
    color: var(--gold-600);
}

.on-deep h2.headline em {
    color: var(--gold-400);
}

p.section-sub {
    color: var(--gray-600);
    font-size: 15px;
    /* No auto horizontal centering by default — it was silently centering
       this element's own box inside left-aligned head columns (Trending,
       Arrivals, Categories, Health Library, …), drifting it out of line
       with the eyebrow/headline siblings above it. Sections that want it
       centered opt in via .center-head, or their own inline margin. */
    margin: 12px 0 0;
    max-width: 560px;
}

.on-deep p.section-sub {
    color: rgba(255, 255, 255, .62);
}

.center-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.center-head p.section-sub {
    margin: 12px auto 0;
}

.dark-pill-btn {
    background: var(--ink-900);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    padding: 13px 22px;
    border-radius: var(--mr-r-pill, 999px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all .25s var(--mr-ease);
    text-decoration: none;
}

/* Gold fills carry dark text in this system, never white — matches .btn-gold
   in the reference (background gold-500, color ink-900). */
.dark-pill-btn:hover {
    background: var(--gold-500);
    color: var(--ink-900);
    transform: translateY(-2px);
}

.dark-pill-btn .icon {
    width: 14px;
    height: 14px;
}

/* ── Wrap utility (scoped to homepage blocks) ──────────────────── */
.log-homepage .wrap {
    max-width: var(--mr-content, 1280px);
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Gutter-wide layout ──────────────────────────────────────────── */
.gutter-wide {
    padding-left: 0;
    padding-right: 0;
}

.gutter-wide .wrap {
    padding-left: 88px;
    padding-right: 88px;
}

.gutter-wide .marquee-wrap,
.gutter-wide .tag-marquee-wrap {
    margin-left: 88px;
    margin-right: 88px;
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width:1020px) {

    .stats-grid,
    .numbers-grid,
    .icon4-grid,
    .ship-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gutter-wide .wrap {
        padding-left: 24px;
        padding-right: 24px;
    }

    .gutter-wide .marquee-wrap,
    .gutter-wide .tag-marquee-wrap {
        margin-left: 24px;
        margin-right: 24px;
    }
}

@media (max-width:760px) {
    .section {
        padding: 60px 18px;
    }

    .stats-grid,
    .numbers-grid,
    .icon4-grid,
    .ship-grid {
        grid-template-columns: 1fr;
    }

    .log-homepage .wrap,
    .marquee-wrap,
    .tag-marquee-wrap {
        padding: 0 18px;
    }

    .marquee-track.dir-left,
    .marquee-track.dir-right {
        animation-duration: calc(var(--speed, 38s) * .65);
    }
}