/* ===========================================================
   RED DOT LASER ENGRAVING — Shared Theme  ("Stone & Ink")
   Editorial / Swiss · General Sans · linen + ink + red dot
   Accents: very restrained — orange on hover/active only,
   grey for captions + hairlines, red as the signature dot.
   =========================================================== */

:root {
    --linen:   #F0EBE2;   /* warm canvas / page background */
    --linen-2: #F4F1EB;   /* barely-raised surface (cards) */
    --ink:     #1F1E1C;    /* near-black text + dark panels */
    --ink-2:   #34322E;    /* hover for dark buttons */
    --grey:    #8A867E;    /* secondary text, captions, labels */
    --grey-2:  #6E6A62;    /* slightly stronger body-grey */
    --hair:    #D8D2C8;    /* hairline rules */
    --red:     #C8352B;    /* THE signature red dot */
    --orange:  #C2703C;    /* accent — hover / active states only */

    --sans: 'General Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --radius: 4px;
    --container: 1200px;
    --header-h: 76px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    background: var(--linen);
    color: var(--ink);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { text-decoration: none; color: inherit; transition: color .2s, opacity .2s; }
img { max-width: 100%; height: auto; display: block; }

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

/* ─── Typography ─── */
.eyebrow {                       /* section label — grey, never colored */
    font-size: 12px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 2.5px; color: var(--grey); margin-bottom: 16px;
}
.section-title {
    font-weight: 600; font-size: clamp(32px, 4vw, 50px);
    line-height: 1.04; letter-spacing: -0.025em; color: var(--ink);
}
.lede { font-size: 18px; line-height: 1.6; color: var(--grey-2); }

/* The red-dot period — reusable: <span class="dot"></span> after a word */
.dot {
    display: inline-block; width: 0.34em; height: 0.34em; border-radius: 50%;
    background: var(--red); vertical-align: baseline; margin-left: 0.04em;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex; align-items: center; gap: 16px;
    font-size: 13px; letter-spacing: 2.5px; text-transform: uppercase; font-weight: 500;
    padding: 18px 30px; border-radius: var(--radius); border: 1px solid transparent;
    cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--ink); color: var(--linen); }
.btn-primary:hover { background: var(--ink-2); }
.btn-primary svg { stroke: var(--linen); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { color: var(--orange); border-color: var(--orange); }
.btn-outline svg { stroke: currentColor; }
/* dark-background variants (e.g. on the ink banner) */
.on-dark .btn-outline { color: var(--linen); border-color: rgba(240,235,226,0.35); }
.on-dark .btn-outline:hover { color: #fff; border-color: rgba(240,235,226,0.8); }

.link-arrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--ink);
}
.link-arrow svg { width: 18px; height: 12px; stroke: currentColor; transition: transform .2s; }
.link-arrow:hover { color: var(--orange); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ─── Header / Nav ─── */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(240,235,226,0.92); backdrop-filter: saturate(1.2) blur(8px);
    border-bottom: 1px solid var(--hair);
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-h);
}
.header-left { display: flex; align-items: center; gap: 56px; }

.logo {
    display: flex; align-items: center; color: var(--ink);
    font-family: var(--sans); font-size: 23px; font-weight: 600;
    letter-spacing: 6px; line-height: 1;
}
.logo .logo-o {
    width: 14px; height: 14px; border-radius: 50%;
    background: var(--red); display: inline-block; margin: 1px 6px 0 0;
}

.nav { display: flex; align-items: center; gap: 40px; }
.nav a {
    font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink);
}
.nav a:hover { color: var(--orange); }

.header-actions { display: flex; align-items: center; gap: 22px; }
.icon-btn {
    background: none; border: none; cursor: pointer; padding: 4px;
    color: var(--ink); display: flex; align-items: center; transition: color .2s;
}
.icon-btn:hover { color: var(--orange); }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ─── Footer ─── */
.site-footer { background: var(--ink); color: var(--linen); padding: 64px 0 36px; }
.site-footer.on-dark { } /* enables on-dark button variants if needed */
.footer-top {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 48px; flex-wrap: wrap; padding-bottom: 44px;
}
.footer-brand .logo { color: var(--linen); font-size: 20px; margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: rgba(240,235,226,0.5); max-width: 300px; line-height: 1.6; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
    font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
    color: rgba(240,235,226,0.4); margin-bottom: 16px;
}
.footer-col a { display: block; font-size: 14px; color: rgba(240,235,226,0.75); margin-bottom: 11px; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
    border-top: 1px solid rgba(240,235,226,0.12); padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; color: rgba(240,235,226,0.4); letter-spacing: 0.3px; }

/* ─── Promise strip ─── */
.promise-strip { border-bottom: 1px solid var(--hair); }
.promise-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 0; }
.promise-item { display: flex; align-items: center; gap: 14px; }
.promise-item svg { width: 24px; height: 24px; stroke: var(--ink); stroke-width: 1.3; flex-shrink: 0; }
.promise-item .p-title { font-size: 13px; font-weight: 600; letter-spacing: 0.3px; }
.promise-item .p-sub { font-size: 12px; color: var(--grey); }

/* ─── Product grid ─── */
.section { padding: 88px 0; }
.section + .section { border-top: 1px solid var(--hair); }
.product-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; margin-top: 44px; }
.product-card {
    background: var(--linen-2); border: 1px solid var(--hair); border-radius: var(--radius);
    overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(31,30,28,0.08); border-color: #cfc8bb; }
.product-card .pc-img { aspect-ratio: 1.4; background: var(--linen); overflow: hidden; }
.product-card .pc-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card .pc-body { padding: 20px; }
.product-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.product-card:hover h3 { color: var(--orange); }
.product-card .pc-quote { font-size: 13px; color: var(--grey); line-height: 1.5; margin-bottom: 14px; }
.product-card .pc-price { font-size: 16px; font-weight: 600; color: var(--ink); }
.product-card .pc-price s { font-weight: 400; font-size: 13px; color: var(--grey); margin-left: 6px; }

/* ─── Dark banner (Make it yours) ─── */
.banner {
    background: var(--ink); color: var(--linen); border-radius: 8px; overflow: hidden;
    display: flex; align-items: stretch; min-height: 400px;
}
.banner-img { flex: 0 0 45%; overflow: hidden; }
.banner-img img { width: 100%; height: 100%; object-fit: cover; }
.banner-text { flex: 1; padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.banner-text .eyebrow { color: rgba(240,235,226,0.55); }
.banner-text h2 { font-weight: 600; font-size: clamp(28px,3vw,40px); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 16px; }
.banner-text p { color: rgba(240,235,226,0.65); margin-bottom: 32px; max-width: 460px; }
.banner-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

/* ─── Reviews ─── */
.reviews { text-align: center; }
.reviews-inner { max-width: 720px; margin: 0 auto; }
.stars { display: flex; gap: 5px; justify-content: center; margin-bottom: 22px; }
.stars svg { width: 20px; height: 20px; fill: var(--ink); }
.review-quote { font-size: clamp(20px,2.2vw,24px); font-weight: 500; line-height: 1.5; letter-spacing: -0.01em; margin-bottom: 24px; }
.review-author { font-size: 14px; font-weight: 600; }
.review-source { font-size: 12px; color: var(--grey); margin-bottom: 44px; }
.review-stats { display: flex; gap: 56px; justify-content: center; flex-wrap: wrap; }
.review-stats .num { font-size: clamp(30px,3.5vw,38px); font-weight: 600; line-height: 1; margin-bottom: 6px; }
.review-stats .num .dot { width: 0.18em; height: 0.18em; }
.review-stats .lbl { font-size: 12px; color: var(--grey); letter-spacing: 0.3px; }

/* ─── Story / split ─── */
.split { display: flex; align-items: center; gap: 64px; }
.split-text { flex: 1; }
.split-text h2 { font-weight: 600; font-size: clamp(28px,3vw,40px); line-height: 1.12; letter-spacing: -0.02em; margin-bottom: 20px; }
.split-text p { color: var(--grey-2); line-height: 1.8; margin-bottom: 16px; }
.split-img { flex: 0 0 440px; height: 420px; border-radius: 6px; overflow: hidden; background: var(--linen-2); }
.split-img img { width: 100%; height: 100%; object-fit: cover; }

/* ─── Final CTA ─── */
.final-cta { text-align: center; }
.final-cta h2 { font-weight: 600; font-size: clamp(34px,4.5vw,56px); line-height: 1.02; letter-spacing: -0.03em; margin-bottom: 18px; }
.final-cta p { color: var(--grey-2); max-width: 500px; margin: 0 auto 36px; font-size: 18px; }

/* ─── Search overlay (works with /search.js) ─── */
.search-overlay { display: none; position: fixed; inset: 0; z-index: 9999; background: rgba(31,30,28,0.7); justify-content: center; align-items: flex-start; padding-top: 12vh; }
.search-overlay.open { display: flex; }
.search-container { background: var(--linen); border-radius: 8px; width: 90%; max-width: 600px; box-shadow: 0 24px 64px rgba(0,0,0,0.22); overflow: hidden; }
.search-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hair); }
.search-header-icon { color: var(--grey); flex-shrink: 0; }
.search-header input { flex: 1; border: none; outline: none; font-family: var(--sans); font-size: 17px; color: var(--ink); background: transparent; }
.search-header input::placeholder { color: var(--grey); }
.search-header input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--grey); padding: 4px 8px; line-height: 1; }
.search-close:hover { color: var(--ink); }
.search-results { max-height: 420px; overflow-y: auto; }
.search-result { display: block; padding: 14px 20px; border-bottom: 1px solid var(--hair); position: relative; }
.search-result:hover, .search-result.active { background: var(--linen-2); }
.search-result:last-child { border-bottom: none; }
.search-result-title { font-weight: 600; font-size: 15px; color: var(--ink); margin-bottom: 4px; }
.search-result-desc { font-size: 13px; color: var(--grey-2); line-height: 1.4; }
.search-badge { position: absolute; top: 14px; right: 20px; font-size: 11px; font-weight: 600; color: var(--grey); background: var(--linen-2); padding: 2px 10px; border-radius: 20px; }
.search-empty { padding: 32px 20px; text-align: center; color: var(--grey); font-size: 15px; }

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .split-img { flex: 0 0 360px; }
}
@media (max-width: 860px) {
    .container { padding: 0 22px; }
    .mobile-toggle { display: block; }
    .nav {
        display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
        background: var(--linen); flex-direction: column; align-items: flex-start;
        gap: 20px; padding: 26px 22px; border-bottom: 1px solid var(--hair);
        box-shadow: 0 10px 28px rgba(0,0,0,0.07);
    }
    .nav.open { display: flex; }
    .header-left { gap: 0; }
    .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
    .banner { flex-direction: column; }
    .banner-img { flex: none; width: 100%; height: 240px; }
    .banner-text { padding: 36px 28px; }
    .split { flex-direction: column-reverse; gap: 32px; }
    .split-img { flex: none; width: 100%; height: 320px; }
    .review-stats { gap: 28px; }
    .promise-grid { gap: 18px 24px; }
    .section { padding: 60px 0; }
}
@media (max-width: 520px) {
    .product-grid { grid-template-columns: 1fr; }
    .promise-grid { flex-direction: column; }
    .footer-cols { gap: 32px; }
}
@media (max-width: 768px) {
    .search-overlay { padding-top: 0; align-items: stretch; }
    .search-container { width: 100%; max-width: 100%; height: 100%; border-radius: 0; display: flex; flex-direction: column; }
    .search-results { flex: 1; max-height: none; }
}


/* ===========================================================
   Category landing-page hero — floating card + scroll parallax
   Loaded AFTER each page's inline <style>, so these win.
   The homepage uses .hero-fabric/.hero-poster (unaffected).
   Mobile-first: subtle parallax drift, card rests on the linen.
   =========================================================== */
.hero .hero-image {
    flex: 1;
    align-self: center;
    position: relative;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 0;
}
.hero .hero-image-wrapper {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    height: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero .hero-image-wrapper img {
    width: 100%;
    height: auto;
    max-width: 600px;
    object-fit: contain;
    object-position: center;
    transform: translate3d(0,0,0);
    will-change: transform;
}
@media (max-width: 768px) {
    .hero .hero-inner { gap: 0; min-height: 0; }
    .hero .hero-text { padding: 4px 0 28px; }
    .hero .hero-image { order: -1; padding: 14px 0 22px; }
    .hero .hero-image-wrapper img { max-width: 360px; margin: 0 auto; }
}
@media (max-width: 480px) {
    .hero .hero-image-wrapper img { max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
    .hero .hero-image-wrapper img { transform: none !important; }
}


/* ===========================================================
   Scroll-reveal choreography + product-photo parallax
   Reveal uses the independent `translate` property so element
   hover `transform` lifts and image parallax stay conflict-free.
   =========================================================== */
.reveal { opacity: 0; translate: 0 22px;
    transition: opacity .7s cubic-bezier(.22,.61,.36,1),
                translate .7s cubic-bezier(.22,.61,.36,1),
                transform .35s ease; }
.reveal.in { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1 !important; translate: none !important; }
}
/* Product-grid photos zoomed slightly so they can drift inside their frame */
.products .product-card-image { background: #F1ECE3; }
.products .product-card-image img { object-fit: contain; padding: 5%; transform-origin: center; will-change: transform; }
