/* ============================================================
   TRNCH BRAND: Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syncopate:wght@400;700&family=Anton&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Default theme is now light/cream-dominant. --bg-black / --bg-black-soft
       keep their names for compatibility with every rule already written
       against them, but now hold light values — true black is reserved for
       the fixed nav chrome and the homepage cinematic hero only (see the
       "Dark chrome" section below), not the page background. */
    --bg-black: #F7F3EC;
    --bg-black-soft: #EFE8D8;
    --bg-light: #F3EFE8;
    --bg-light-soft: #EAE4D8;
    --brand-red: #E10600;
    --brand-red-glow: rgba(225, 6, 0, 0.35);
    --text-main: #17140f;
    --text-muted: #6b6459;
    --text-dim: #948c7d;
    --text-body: #221e17;
    --border-color: #ddd5c5;

    --font-display: 'Syncopate', sans-serif;   /* brand wordmark / big headlines */
    --font-bold: 'Anton', sans-serif;           /* bold streetwear accent headings */
    --font-body: 'Inter', sans-serif;           /* readable body copy */

    --space-xs: 0.4rem;
    --space-sm: 0.8rem;
    --space-md: 1.6rem;
    --space-lg: 3.2rem;
    --space-xl: 6rem;
}

/* Light section variant: redeclares the palette tokens so every
   component nested inside (cards, buttons, text) adapts automatically. */
.section-light {
    --bg-black: var(--bg-light);
    --bg-black-soft: var(--bg-light-soft);
    --text-main: #17140f;
    --text-muted: #6b6459;
    --text-dim: #948c7d;
    --text-body: #221e17;
    --border-color: #ddd5c5;
    background: var(--bg-light);
    color: var(--text-main);
}
.section-light .price-tag,
.section-light .accent,
.section-light .eyebrow { color: var(--brand-red); }
.section-light .btn-primary { color: #fff; }

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-black); }
::-webkit-scrollbar-thumb { background: var(--brand-red); }

.eyebrow {
    font-family: var(--font-body);
    font-size: 0.72rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--brand-red);
    font-weight: 600;
}

/* ---------- Nav ---------- */
.site-nav {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.6rem 3rem;
    background: linear-gradient(to bottom, rgba(10,10,10,0.85) 20%, transparent 100%);
    transition: background 0.3s ease;
}
.site-nav.scrolled {
    background: rgba(10,10,10,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #1e1e1e;
}
/* The nav bar's background is always dark (see .site-nav above and
   .scrolled just above), independent of the page theme, so its text
   stays explicitly light regardless of whether the section behind it
   is now light by default. The logo itself is styled separately below
   (red "TR"/"CH", black "N") per brand request. */
.site-nav, .nav-links a { color: #F5F5F3; }
.nav-logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.15em;
    color: var(--brand-red);
}
.nav-logo span {
    color: #000000;
    /* The nav bar's background is dark, so a flat black fill alone would be
       invisible there; a thin light stroke keeps the letterform visible
       while the fill color itself stays black, as requested. */
    -webkit-text-stroke: 0.6px rgba(245,245,243,0.55);
}
.nav-links {
    display: flex;
    gap: 2.4rem;
    list-style: none;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
}
.nav-links a { position: relative; padding-bottom: 4px; transition: color 0.25s; }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0%; height: 1px;
    background: var(--brand-red);
    transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--brand-red); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--brand-red); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 600;
}
.nav-toggle span { width: 26px; height: 2px; background: #F5F5F3; }

@media (max-width: 860px) {
    .nav-links {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: 70vw;
        max-width: 320px;
        background: #111111;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 3rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.77,0,0.175,1);
        border-left: 1px solid #1e1e1e;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-toggle { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 1rem 2.2rem;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn:hover { background: var(--text-main); color: var(--bg-black); }
.btn-primary {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
}
.btn-primary:hover {
    background: transparent;
    color: var(--brand-red);
    box-shadow: 0 0 30px var(--brand-red-glow);
}

/* ---------- Cinematic opening sequence ---------- */
#opening-sequence {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: var(--bg-black);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: sequenceOut 1.6s cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 1.7s;
    pointer-events: none;
}
.os-text {
    font-family: var(--font-display);
    font-size: 9vw;
    font-weight: 700;
    color: var(--bg-black);
    -webkit-text-stroke: 1px var(--brand-red);
    text-transform: uppercase;
    letter-spacing: -0.02em;
    position: relative;
    overflow: hidden;
}
.os-text::after {
    content: "TRNCH";
    position: absolute;
    top: 0; left: 0;
    color: var(--brand-red);
    -webkit-text-stroke: 0;
    width: 0%;
    overflow: hidden;
    animation: revealText 1.1s cubic-bezier(0.77, 0, 0.175, 1) forwards;
    animation-delay: 0.4s;
    white-space: nowrap;
}
@keyframes revealText {
    0% { width: 0%; }
    100% { width: 100%; text-shadow: 0 0 40px var(--brand-red); }
}
@keyframes sequenceOut {
    0% { opacity: 1; transform: scale(1); }
    55% { opacity: 1; background: var(--brand-red); }
    100% { opacity: 0; transform: scale(1.05); visibility: hidden; }
}
body.has-intro { overflow: hidden; animation: allowScroll 0s 2.4s forwards; }
@keyframes allowScroll { to { overflow: auto; } }

/* ---------- Hero (shared pattern) ---------- */
.hero {
    position: relative;
    min-height: 64vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.6rem;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
    background: radial-gradient(ellipse at center, #fdfbf7 0%, #F3EFE8 75%);
    padding: 8rem 1.5rem 4rem;
}
.hero-axis {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 2px; height: 100%;
    background: linear-gradient(to bottom, transparent, var(--brand-red) 30%, var(--brand-red) 70%, transparent);
    box-shadow: 0 0 90px 22px var(--brand-red-glow), 0 0 20px 2px var(--brand-red);
    z-index: 1;
}
.hero-wordmark-display {
    position: relative;
    z-index: 4;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(3rem, 14vw, 9rem);
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-align: center;
    user-select: none;
}
.hero-wordmark-display span {
    display: block;
    white-space: nowrap;
}
.hwd-back {
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(225,6,0,0.18);
}
.hwd-outline {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    color: transparent;
    -webkit-text-stroke: 2px rgba(225,6,0,0.85);
    clip-path: inset(0 52.5% 0 38%);
    -webkit-clip-path: inset(0 52.5% 0 38%);
}
.hwd-front {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    color: var(--brand-red);
    clip-path: inset(0 0 0 47.5%);
    -webkit-clip-path: inset(0 0 0 47.5%);
}
.hero-copy {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
    text-align: center;
    padding: 0 1.5rem;
}
.hero-tagline {
    font-family: var(--font-bold);
    font-size: clamp(1.4rem, 3.2vw, 2.6rem);
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-shadow: 0 4px 24px rgba(23,20,15,0.12);
    color: var(--brand-red); /* hero background is now light; tagline is red per brand request */
}
.hero-sub {
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    color: var(--brand-red); /* hero background is now light; sub-text is red per brand request */
    text-transform: uppercase;
    font-weight: 500;
}
@media (max-width: 860px) {
    .hero { padding: 7rem 1.2rem 4rem; gap: 1.8rem; }
}

/* ---------- Section basics ---------- */
section { position: relative; }
.section-pad { padding: var(--space-xl) 6vw; }
.section-pad-sm { padding: var(--space-lg) 6vw; }
.container { max-width: 1400px; margin: 0 auto; }
.container-narrow { max-width: 900px; margin: 0 auto; }

.h2 {
    font-family: var(--font-bold);
    font-size: clamp(2.2rem, 5vw, 4.2rem);
    font-weight: 400;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    line-height: 1.02;
}
.h2 .accent { color: var(--brand-red); }

.body-lg {
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    font-weight: 300;
    color: var(--text-body);
    line-height: 1.75;
}

/* ---------- Ticker / motion strip ---------- */
.ticker-strip {
    overflow: hidden;
    white-space: nowrap;
    padding: 1.1rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 1.4rem;
    animation: tickerScroll 28s linear infinite;
    will-change: transform;
}
.ticker-item {
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.ticker-sep { color: var(--brand-red); font-size: 0.85rem; }
@keyframes tickerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; }
}

/* ---------- Hook section ---------- */
.hook-section {
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-light) 0%, var(--bg-light-soft) 50%, var(--bg-light) 100%);
}
.hook-section .eyebrow { display: block; margin-bottom: 1.4rem; }
.hook-line {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(1.6rem, 3.4vw, 3rem);
    letter-spacing: -0.01em;
    line-height: 1.3;
    max-width: 950px;
    margin: 0 auto 2.4rem;
    text-transform: uppercase;
}
.hook-line .accent { color: var(--brand-red); }

/* ---------- Featured product ---------- */
.featured-product {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4vw;
    align-items: center;
}
.featured-image {
    position: relative;
    overflow: hidden;
    background: var(--bg-black-soft);
    border: 1px solid var(--border-color);
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.featured-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.featured-image:hover img { transform: scale(1.04); }
.featured-text .eyebrow { margin-bottom: 1rem; display: block; }
.featured-text h3 {
    font-family: var(--font-bold);
    font-weight: 400;
    font-size: clamp(2rem, 3.6vw, 3.4rem);
    text-transform: uppercase;
    line-height: 1.05;
    margin-bottom: 1.2rem;
}
.featured-text p { margin-bottom: 1.8rem; }
.price-tag {
    font-family: var(--font-bold);
    font-size: 1.6rem;
    color: var(--brand-red);
    margin-bottom: 1.8rem;
    display: block;
}

@media (max-width: 900px) {
    .featured-product { grid-template-columns: 1fr; }
    .featured-image { min-height: 420px; }
}

/* ---------- Product grid ---------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}
.product-card {
    background: var(--bg-black);
    display: flex;
    flex-direction: column;
    transition: transform 0.4s ease;
}
.product-card:hover { transform: translateY(-6px); }
.product-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--bg-black-soft);
}
.product-card-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(0.35) contrast(1.05);
    transition: transform 0.5s ease, filter 0.5s ease;
}
.product-card:hover .product-card-image img {
    transform: scale(1.05);
    filter: grayscale(0) contrast(1.1);
}
.product-card-info {
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}
.product-card-info h4 {
    font-family: var(--font-bold);
    font-weight: 400;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}
.product-card-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
    flex: 1;
}
.product-card-info .price-tag { font-size: 1.1rem; margin: 0.4rem 0 0.8rem; }
.product-card-info .btn { align-self: flex-start; padding: 0.75rem 1.6rem; font-size: 0.7rem; }

@media (max-width: 900px) {
    .product-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
    padding: var(--space-lg) 6vw var(--space-md);
    border-top: 1px solid var(--border-color);
    background: var(--bg-black-soft);
}
.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2.5rem;
    margin-bottom: var(--space-lg);
}
.footer-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 0.1em;
}
.footer-brand span { color: var(--brand-red); }
.footer-tag {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.6rem;
    max-width: 320px;
}
.footer-cols {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
}
.footer-col h5 {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.9rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--brand-red); }
.footer-bottom a { color: var(--text-dim); transition: color 0.25s; }
.footer-bottom a:hover { color: var(--brand-red); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border-color);
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    .footer-top { flex-direction: column; }
}

/* ---------- Reveal on scroll ---------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Cart (drawer, fab, toast, size pills) ----------
   Kept here as external CSS, rather than injected at runtime via a <style>
   tag, so the site's Content-Security-Policy can run with no
   'unsafe-inline' in style-src. ---------------------------------------- */
.cart-fab{position:fixed;bottom:2rem;right:1.5rem;z-index:900;background:var(--brand-red);color:#fff;border:none;border-radius:50px;width:52px;height:52px;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 24px rgba(225,6,0,.35);transition:transform .15s;}
.cart-fab:hover{transform:scale(1.07);}
.cart-badge{position:absolute;top:-6px;right:-6px;background:var(--text-main);color:#fff;border-radius:50%;width:20px;height:20px;font-size:11px;font-weight:800;display:flex;align-items:center;justify-content:center;border:2px solid #fff;pointer-events:none;}
.cart-overlay{display:none;position:fixed;inset:0;background:rgba(10,8,5,.45);z-index:950;}
.cart-overlay.cd-vis{display:block;}
.cart-drawer{position:fixed;top:0;right:0;width:min(420px,100vw);height:100%;background:#fff;z-index:1000;display:flex;flex-direction:column;transform:translateX(100%);transition:transform .32s cubic-bezier(.4,0,.2,1);box-shadow:-4px 0 32px rgba(0,0,0,.18);}
.cart-drawer.cd-open{transform:translateX(0);}
.cd-head{display:flex;align-items:center;justify-content:space-between;padding:1.3rem 1.6rem;border-bottom:1px solid var(--border-color);}
.cd-title{font-family:var(--font-bold);font-weight:400;font-size:1.3rem;text-transform:uppercase;letter-spacing:.04em;margin:0;color:var(--text-main);}
.cd-close{background:none;border:none;font-size:2rem;line-height:1;cursor:pointer;color:var(--text-muted);padding:0;transition:color .15s;}
.cd-close:hover{color:var(--brand-red);}
.cd-body{flex:1;overflow-y:auto;padding:1rem 1.6rem;}
.cart-empty{color:var(--text-muted);text-align:center;margin-top:3rem;font-size:.95rem;}
.cd-footer{padding:1.3rem 1.6rem;border-top:1px solid var(--border-color);}
.cd-total{display:flex;justify-content:space-between;align-items:center;font-size:1.05rem;margin-bottom:1rem;color:var(--text-main);}
.cd-total strong{font-size:1.3rem;color:var(--brand-red);}
.cd-checkout{width:100%;font-size:.85rem;justify-content:center;}
.cd-note{font-size:.72rem;color:var(--text-muted);text-align:center;margin:.7rem 0 0;}
.ci{display:flex;align-items:center;gap:.9rem;padding:.9rem 0;border-bottom:1px solid var(--border-color);}
.ci-img{width:58px;height:58px;object-fit:cover;flex-shrink:0;border-radius:2px;background:var(--bg-black-soft);}
.ci-info{flex:1;min-width:0;}
.ci-name{font-weight:700;font-size:.9rem;margin:0 0 .2rem;color:var(--text-main);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ci-price{font-size:.78rem;color:var(--text-muted);margin:0 0 .45rem;}
.ci-right{display:flex;flex-direction:column;align-items:flex-end;gap:.4rem;flex-shrink:0;}
.ci-rm{background:none;border:none;font-size:1.4rem;cursor:pointer;color:var(--text-muted);line-height:1;padding:0;transition:color .15s;}
.ci-rm:hover{color:var(--brand-red);}
.ci-subtotal{font-weight:700;font-size:.9rem;color:var(--text-main);}
.qty-ctrl{display:flex;align-items:center;gap:.45rem;}
.qty-b{background:var(--bg-black-soft);border:none;cursor:pointer;width:24px;height:24px;border-radius:3px;font-size:.95rem;font-weight:700;display:flex;align-items:center;justify-content:center;transition:background .15s;padding:0;line-height:1;color:var(--text-main);}
.qty-b:hover{background:var(--border-color);}
.qty-n{font-weight:700;min-width:1.4rem;text-align:center;font-size:.9rem;color:var(--text-main);}
.pc-size-row{display:flex;gap:.5rem;margin-top:1rem;}
.size-pill{min-width:2.4rem;padding:.45rem .7rem;border:1px solid var(--border-color);background:transparent;color:var(--text-main);font-size:.78rem;font-weight:700;letter-spacing:.05em;cursor:pointer;transition:all .18s;}
.size-pill:hover{border-color:var(--brand-red);}
.size-pill.is-active{background:var(--text-main);border-color:var(--text-main);color:#fff;}
.pc-atc{margin-top:.8rem;width:100%;justify-content:center;}
.cart-toast{position:fixed;bottom:2rem;left:50%;transform:translateX(-50%) translateY(80px);background:var(--text-main);color:#fff;padding:.75rem 1.5rem;border-radius:3px;font-size:.85rem;font-weight:600;opacity:0;transition:opacity .25s,transform .25s;z-index:2000;white-space:nowrap;pointer-events:none;}
.cart-toast.ct-show{opacity:1;transform:translateX(-50%) translateY(0);}

/* ---------- Small layout utilities ----------
   Replace former inline style="" attributes so the site's
   Content-Security-Policy can run with no 'unsafe-inline' style-src. */
.u-text-center { text-align: center; }
.u-mt-14 { margin-top: 1.4rem; }
.u-mb-12 { margin-bottom: 1.2rem; }
.u-mb-16 { margin-bottom: 1.6rem; }
.u-mb-24 { margin-bottom: 2.4rem; }
.u-text-muted { color: var(--text-muted); }
.u-border-top { border-top: 1px solid var(--border-color); }
.section-h2-sizing { margin: 1rem 0 1.4rem; font-size: clamp(1.8rem, 3.4vw, 3rem); }
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
