/* ==============================================================
   File:    /css/home-styles.css
   Purpose: Storefront — ALL homepage styles (reviews, cards, sections)
   Version: 1.1.0
   Updated: 2026-06-21
   Notes:   v1.1.0 - Converted from /inc/inc-home-styles.asp (pure CSS).
            Carries the CSS consolidation (homepage section CSS that
            used to be inline in index.asp). Style wrapper + HTML
            comment header removed; CSS body unchanged. Linked via
            <link> now.
   ============================================================== */

  /* ---------- Reviews (scroller + card theme) ---------- */
  /* Homepage-only override of --card tokens (deep coffee for review cards).
     Intentionally shadows the global tokens in styles.css on this page only. */
  :root{
    --card:#1e1d1a;            /* deep coffee */
    --card-border:#2a2925;
  }
  .review-card{
    margin:0;
    background:var(--card);
    border:1px solid var(--card-border);
    border-radius:14px;
    padding:14px;
    opacity:0;
    transform:translateY(10px);
    animation:reviewIn .35s ease .05s forwards;
    flex:0 0 var(--card-min);
    min-width:var(--card-min);
    scroll-snap-align:start;
    box-shadow:0 8px 18px rgba(0,0,0,.25);
  }
  .review-card figcaption{ color:#ffd76a; }
  .review-card__quote{ margin:.5rem 0 0; color:#e7e0d2; }
  .review-card__name{ color:#bdbdbd; margin-top:.5rem; }

  @keyframes reviewIn{ to{ opacity:1; transform:none; } }

  .reviews-scroller{
    --gap:14px; --card-min:260px;
    position:relative;
    overflow-x:auto; overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scroll-behavior:smooth;
    scroll-snap-type:x mandatory;
    background:#f5f5f0;
    border-radius:16px;
    padding:1rem .75rem;
    scrollbar-width:none;
  }
  .reviews-scroller::-webkit-scrollbar{ display:none; }
  .reviews-track{ display:inline-flex; gap:var(--gap); padding-inline:6px; }
  .reviews-scroller.is-autoplay,
  .reviews-scroller.no-snap{ scroll-snap-type:none; }

  @media (prefers-reduced-motion:reduce){
    .reviews-scroller{ scroll-behavior:auto; }
    .review-card{ opacity:1; transform:none; animation:none; }
  }

  /* ---------- Best Sellers (scoped to this page) ---------- */
  .section.section--dark.featured-products{
    background:var(--rich-black,#0B0B0B);
    padding:clamp(2rem,4vw,3.5rem) 1rem;
  }
  .featured-head{
    max-width:1100px; margin:0 auto 1.25rem; text-align:center;
  }
  .featured-head h2{ color:#fff; margin:0 0 .25rem; }
  .featured-head .lede{ color:#cfcfcf; margin:0; }

  /* One responsive row: 3 → 2 (home below 900px) */
  .featured-products .products{
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:clamp(12px, 2.2vw, 18px);
    align-items:stretch;
    max-width:1100px; margin:0 auto;
  }

  /* Below 900px: 2-up on home, hide 3rd+ items */
  @media (max-width:900px){
    .home .featured-products .products{
      grid-template-columns:repeat(2, minmax(0,1fr));
      gap:clamp(8px, 2vw, 12px);
    }
    .home .featured-products .products > *:nth-child(n+3){
      display:none;
      visibility:hidden; /* keep out of focus order */
    }
  }

  /* (Removed the 560px rule so home stays 2-up all the way down) */

  /* Card + 2:3 strict media */
  .featured-products .product-card{
    background:#111; border:1px solid #232323; border-radius:14px;
    padding:1rem; display:flex; flex-direction:column; gap:.5rem;
    text-align:center; height:100%;
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    content-visibility:auto; 
    contain-intrinsic-size: 420px; /* perf hint for long pages */
  }
  .featured-products .product-card:hover{
    transform:translateY(-2px);
    border-color:#2e2e2e;
    box-shadow:0 12px 28px rgba(0,0,0,.35);
  }
  .featured-products .media{
    position:relative; display:block; border-radius:10px; overflow:hidden;
    aspect-ratio:var(--thumb-ratio); background:#171717;
  }
  .featured-products .media img{
    width:100%; height:100%; object-fit:var(--thumb-fit); display:block;
  }
  .featured-products .badge{
    position:absolute; left:.6rem; top:.6rem; z-index:1;
    background:rgba(203,161,53,.98); color:#0B0B0B; font-weight:700; font-size:.8rem;
    padding:.25rem .55rem; border-radius:999px;
  }
  .featured-products .badge--alt{ background:rgba(255,255,255,.9); }

  .featured-products .product-title{ margin:.75rem 0 .25rem; font-size:1.05rem; font-family:'EB Garamond',serif; }
  .featured-products .product-title a{ color:#fff; text-decoration:none; }
  .featured-products .product-title a:hover{ text-decoration:underline; }
  .featured-products .rating{ color:var(--gold,#CBA135); font-weight:600; margin:0 0 .4rem; }
  .featured-products .rating .reviews{ color:#bdbdbd; font-weight:400; margin-left:.25rem; }
  .featured-products .product-benefit{ color:#cfcfcf; margin:0 0 .9rem; }
  .featured-products .btn.btn-primary{
    background:var(--gold,#CBA135); color:#0B0B0B; border:0; font-weight:700;
    padding:.7rem 1rem; border-radius:10px;
  }
  .featured-products .btn--wide{ width:100%; margin-top:auto; } /* pins CTA to bottom */

  /* --- Qty + Add inline row (Best Sellers) --- */
  .featured-products .qty-row{
    display:flex;
    align-items:stretch;
    gap:10px;
    margin-top:auto; /* keeps the row pinned to the card bottom */
  }
  .featured-products .qty-input{
    width:64px; min-width:56px;
    height:44px; line-height:1;
    padding:0 .6rem;
    text-align:center; font-weight:700; font-size:1rem;
    color:#fff; background:#0f0f0f;
    border:1px solid var(--border,#262a30);
    border-radius:10px;
  }
  .featured-products .qty-input:focus{
    outline:2px solid var(--gold,#CBA135);
    outline-offset:2px;
  }
  /* remove number spinners */
  .featured-products .qty-input::-webkit-outer-spin-button,
  .featured-products .qty-input::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
  .featured-products .qty-input[type="number"]{ -moz-appearance:textfield; }

  /* override the full-width button when inside the qty row */
  .featured-products .qty-row .btn--wide{
    width:auto; margin-top:0; min-height:44px; flex:1;
    display:inline-flex; align-items:center; justify-content:center;
  }

  /* --- Optional UI nicety: strike-through regular price when on sale --- */
  .featured-products .price{
    margin:.25rem 0 .5rem;
    font-weight:600;
    color:#cfcfcf;
  }
  .featured-products .price .old-price{
    text-decoration:line-through;
    opacity:.65;
    margin-right:.35rem;
  }
  .featured-products .price .current-price{
    color:#fff;
  }

  /* Focus states (keyboard) */
  .featured-products .product-title a:focus-visible,
  .featured-products .media:focus-visible{
    outline:2px solid var(--gold,#CBA135);
    outline-offset:3px;
    border-radius:10px;
  }

  /* ---------- About seal helpers ---------- */
  .about-seal{ margin:0; text-align:center; }
  .seal-svg{ width:100%; max-width:520px; height:auto; display:block; margin-inline:auto;
    aspect-ratio:1/1; object-fit:contain; border-radius:50%;
    background:#000;
    border:2px solid rgba(203,161,53,.45);
    box-shadow:0 8px 28px rgba(0,0,0,.35); }
  .about-seal__caption{ margin-top:.5rem; font-size:.95rem; color:#cfc9bb; }

  @media (max-width:900px){
    .about-grid{ display:grid; grid-template-columns:1fr; gap:20px; }
    .about-intro{ text-align:left; }
    .about-seal{ justify-self:center; }
  }
  @media (max-width:640px){
    .seal-svg{ max-width:380px; }
    .seal-svg text{ font-size:17px; letter-spacing:1.6px; }
    .about-seal__caption{ font-size:.92rem; }
  }
  @media (max-width:400px){
    .seal-svg{ max-width:320px; }
    .seal-svg text{ font-size:16px; letter-spacing:1.4px; }
  }
  .about-inner{ padding-inline:16px; }
  .about-intro .about-cta{
    display:block; width:max-content; margin:1rem auto 0;
  }

  /* ---------- Journal overrides (keep headings white here) ---------- */
  .section[aria-labelledby="journal-title"] h2,
  .section[aria-labelledby="journal-title"] .lead{ color:#fff; }

  /* ---------- Utility used by newsletter label ---------- */
  /* .visually-hidden moved to /css/styles.css (sitewide) in v1.1.0 */

  /* Home only: on mobile show exactly 2 cards and hide extras */
  @media (max-width:640px){
    .home .section.section--dark.featured-products .products{
      grid-template-columns: repeat(2, minmax(0,1fr));
      gap: clamp(8px, 2vw, 12px);
    }
    .home .section.section--dark.featured-products .products > *:nth-child(n+3){
      display: none;
      visibility: hidden; /* keep out of accidental focus */
    }
    /* Compact spacing polish on small screens */
    .featured-head{ margin-bottom: 1rem; }
    .featured-products .product-title{ margin:.6rem 0 .2rem; }
    .featured-products .product-benefit{ margin:0 0 .75rem; }
  }
/* ---------- On-light helpers and .visually-hidden moved to
   /css/styles.css (sitewide utilities) in v1.1.0.
   NOTE: the :root --card override above stays here — it is a
   homepage-only shadow of the global tokens in styles.css. ---------- */

  /* ============================================================
     PAGE SECTIONS (moved from index.asp inline <style> in v1.1.0)
     Hero, trust bar, bundle band, email capture, section heads.
     ============================================================ */

    /* ---------- Home hero (product-led, no creator face) ---------- */
    .home-hero{
      position:relative; isolation:isolate;
      background:
        radial-gradient(900px 480px at 78% -8%, rgba(203,161,53,.16), transparent 60%),
        linear-gradient(180deg, #171b21 0%, #0f1217 100%);
      border-bottom:1px solid color-mix(in srgb, var(--gold,#CBA135) 22%, #222);
      overflow:hidden;
    }
    .home-hero__inner{
      max-width:1180px; margin:0 auto; padding:clamp(2rem,5vw,4.5rem) 1.25rem;
      display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(1.5rem,4vw,3rem);
      align-items:center;
    }
    .home-hero__copy h1{
      font-family:'EB Garamond',serif; color:#fff;
      font-size:clamp(2.1rem,5.2vw,3.4rem); line-height:1.05; margin:0 0 .5rem;
      letter-spacing:.01em;
    }
    .home-hero__copy h1 .accent{ display:block; color:var(--gold,#CBA135); }
    .home-hero__copy h1.hero-solo{ color:var(--gold,#CBA135); }
    .home-hero__copy .sub{
      color:#d9d3c7; font-size:clamp(1rem,1.6vw,1.18rem); line-height:1.55;
      margin:0 0 1.4rem; max-width:46ch;
    }
    .home-hero__cta{
      display:inline-block; background:var(--gold,#CBA135); color:#0f1217;
      font-weight:800; letter-spacing:.02em; text-decoration:none;
      padding:.95rem 1.6rem; border-radius:10px;
      transition:transform .18s ease, filter .18s ease;
    }
    .home-hero__cta:hover{ transform:translateY(-1px); filter:brightness(1.05); }
    .home-hero__media{
      position:relative; border-radius:16px; overflow:hidden;
      aspect-ratio:4/3; background:#0b0d11;
      border:1px solid rgba(203,161,53,.25);
      box-shadow:0 18px 40px rgba(0,0,0,.45);
    }
    .home-hero__media img{ width:100%; height:100%; object-fit:cover; display:block; }

    /* Trust bar */
    .trust-bar{
      background:#11151b; border-bottom:1px solid #20262f;
    }
    .trust-bar__inner{
      max-width:1180px; margin:0 auto; padding:.85rem 1.25rem;
      display:flex; flex-wrap:wrap; gap:1rem 2.2rem; justify-content:center;
      color:#cfc9bb; font-size:.86rem; letter-spacing:.04em; text-transform:uppercase;
    }
    .trust-bar__item{ display:inline-flex; align-items:center; gap:.5rem; }
    .trust-bar__item .dot{ width:7px; height:7px; border-radius:50%; background:var(--gold,#CBA135); }
    @media (max-width:640px){
      .trust-bar__inner{ display:grid; grid-template-columns:1fr 1fr; gap:.75rem 1rem; }
      .trust-bar__item{ justify-content:center; }
    }

    /* Bundle band */
    .bundle-band{
      background:
        radial-gradient(700px 360px at 12% 120%, rgba(203,161,53,.14), transparent 60%),
        linear-gradient(180deg,#15171c 0%, #101216 100%);
      border-top:1px solid #23262d; border-bottom:1px solid #23262d;
    }
    .bundle-band__inner{
      max-width:1100px; margin:0 auto; padding:clamp(2rem,4vw,3rem) 1.25rem;
      display:grid; grid-template-columns:1fr 1.1fr; gap:clamp(1.25rem,3vw,2.5rem);
      align-items:center;
    }
    .bundle-band__media{
      border-radius:14px; overflow:hidden; aspect-ratio:4/3; background:#0b0d11;
      border:1px solid rgba(203,161,53,.2);
    }
    .bundle-band__media img{ width:100%; height:100%; object-fit:cover; display:block; }
    .bundle-band__eyebrow{
      color:var(--gold,#CBA135); font-weight:700; letter-spacing:.08em;
      text-transform:uppercase; font-size:.82rem; margin:0 0 .4rem;
    }
    .bundle-band h2{ font-family:'EB Garamond',serif; color:#fff; margin:0 0 .5rem; font-size:clamp(1.5rem,3vw,2.1rem); }
    .bundle-band .desc{ color:#d2ccc0; margin:0 0 1rem; line-height:1.55; }
    .bundle-band .price{ color:#fff; font-size:1.4rem; font-weight:700; margin:0 0 1rem; }
    .bundle-band .price .was{ color:#9a948a; text-decoration:line-through; font-weight:500; margin-left:.5rem; font-size:1.05rem; }
    .bundle-band .add{
      background:var(--gold,#CBA135); color:#0f1217; border:0; cursor:pointer;
      font-weight:800; letter-spacing:.02em; padding:.9rem 1.5rem; border-radius:10px;
      transition:transform .18s ease, filter .18s ease;
    }
    .bundle-band .add:hover{ transform:translateY(-1px); filter:brightness(1.05); }

    /* Email capture */
    .join-band{
      background:linear-gradient(180deg,#171b21,#0f1217);
      border-top:1px solid #23262d;
    }
    .join-band__inner{
      max-width:760px; margin:0 auto; padding:clamp(2rem,4vw,3rem) 1.25rem; text-align:center;
    }
    .join-band h2{ font-family:'EB Garamond',serif; color:var(--gold,#CBA135); margin:0 0 .4rem; font-size:clamp(1.5rem,3vw,2rem); }
    .join-band p{ color:#d2ccc0; margin:0 auto 1.25rem; max-width:52ch; }
    .join-form{ display:flex; gap:.5rem; max-width:460px; margin:0 auto; flex-wrap:wrap; }
    .join-form input[type=email]{
      flex:1; min-width:200px; padding:.85rem 1rem; border-radius:10px;
      border:1px solid #2a2f37; background:#0f1217; color:#fff; font-size:1rem;
    }
    .join-form input[type=email]:focus{ outline:2px solid var(--gold,#CBA135); outline-offset:2px; }
    .join-form button{
      background:var(--gold,#CBA135); color:#0f1217; border:0; cursor:pointer;
      font-weight:800; padding:.85rem 1.3rem; border-radius:10px; white-space:nowrap;
    }

    /* Section titles shared */
    .home-section-head{ max-width:1100px; margin:0 auto 1.25rem; padding:0 1.25rem; }
    .home-section-head h2{ color:#fff; font-family:'EB Garamond',serif; margin:0 0 .25rem; font-size:clamp(1.5rem,3vw,2.1rem); }
    .home-section-head .lede{ color:#cfcfcf; margin:0; }

    /* Testimonials wrap */
    .testi-wrap{ background:linear-gradient(180deg,#0f1217,#11151b); padding:clamp(2rem,4vw,3rem) 0; }

    @media (max-width:900px){
      .home-hero__inner{ grid-template-columns:1fr; }
      .home-hero__media{ order:-1; }
      .bundle-band__inner{ grid-template-columns:1fr; }
      .bundle-band__media{ order:-1; }
    }
