/* variables.css - Herb & House Brand System v3.0
   ---------------------------------------------------------------------------
   Single source of truth for colour, type, spacing and radius. Loaded FIRST,
   before every other front stylesheet (see front/layout/default.blade.php).

   THE RULES
   1. One name per colour. No aliases, no legacy names, no duplicates.
   2. Only two font families exist: Inter (body, UI, every numeric in the
      product) and Playfair Display (headings and display moments only).
      Numerics are ALWAYS Inter, never Playfair.
   3. Loaded weights: Inter 400/500/600, Playfair 500/600/700. Nothing else
      may be requested anywhere.
   4. No gradients in our own CSS. Banner backgrounds are admin authored
      content, so pdp banner styling is the one exception by design.
   5. Every colour in any front CSS or blade file comes from this sheet.
      If a hex shows up elsewhere, that is a bug.

   RESPONSIVE SYSTEM (media queries cannot read custom properties, so the
   boundaries are written out here and repeated verbatim in CSS files):
     mobile    : below 768px. Portrait phones are further isolated with
                 (max-width: 767px) and (orientation: portrait).
     tablet    : 768px to 1023px, portrait and landscape both.
     laptop-s  : 1024px to 1439px (10/11 inch machines).
     desktop   : 1440px to 1919px (15 to 21 inch laptops and desktops).
     large     : 1920px and up (24/27/32 inch). The page fills confidently:
                 container widths and type scale up through the tokens below.
   Text and most spacing are fluid (clamp based), so elements scale on their
   own between the boundaries instead of jumping.

   v3.0 SUPERSEDES v2.x completely. Old token names are gone on purpose.
   --------------------------------------------------------------------------- */

:root {

    /* ======================================================================
       1. COLOUR - the fixed brand set
       ====================================================================== */

    /* Ink - THE dark forest green. Strips, primary buttons, strong text.
       One value, everywhere, no other green drives UI. */
    --ink:          #043D2F;
    --ink-hover:    #075442;   /* CTA hover, quiet lift on ink */
    --ink-deep:     #032A20;   /* pressed / darkest edge */

    /* Paper - THE sage greenish body background. Every page sits on it. */
    --paper:        #F5F8F2;

    /* Panels and quiet fills that let content stand out */
    --cream:        #E8EEE4;   /* fit card, review summary, delivery head */
    --sage:         #E1E9DD;   /* chips, save tag, info tabs */
    --sage-mid:     #8FAF98;   /* botanical support tone, soft badges */

    /* Surfaces */
    --surface:      #FFFFFF;   /* cards, inputs, nav */
    --surface-soft: #FAFCF8;   /* near-white hover surface */

    /* Text scale. Headings are ink; body sits one step lighter. */
    --text-heading: var(--ink);
    --text-body:    #2A423A;
    --text-muted:   #5C6F66;
    --text-faint:   #7C8B83;
    --on-ink:       #FFFFFF;   /* text and icons on ink */
    --on-ink-soft:  rgba(255, 255, 255, 0.72);

    /* Hairlines and borders */
    --line:         rgba(4, 61, 47, 0.18);
    --line-soft:    rgba(4, 61, 47, 0.10);
    --line-strong:  #BFD0C5;
    --line-on-ink:  rgba(255, 255, 255, 0.16);

    /* Gold - stars, premium accents. Clay exploration is future work. */
    --gold:         #B78031;
    --gold-deep:    #8A6D3B;   /* gold that stays readable on paper */
    --gold-soft:    #F4EAD3;   /* gold tint background */

    /* Functional feedback, kept apart from the brand set */
    --success:        #13815C;
    --success-soft:   #E3F0E9;
    --error:          #B5473A;
    --error-soft:     #FBECEA;
    --warning:        #A87824;
    --warning-soft:   #FBF2DD;
    --info:           #3E7180;
    --info-soft:      #EAF3F5;

    /* Star rating shorthand */
    --star:         var(--gold);

    /* Focus */
    --focus-ring:   var(--ink);

    /* Shadows (ink tinted, never black) */
    --shadow-sm:    0 5px 15px rgba(4, 61, 47, 0.06);
    --shadow-md:    0 10px 30px rgba(4, 61, 47, 0.08);
    --shadow-lg:    0 16px 42px rgba(4, 61, 47, 0.12);

    /* ======================================================================
       2. TYPOGRAPHY
       Inter 400/500/600, Playfair Display 500/600/700. Nothing else.
       Numerics are ALWAYS Inter: price, rating, counts, dates, quantities.
       ====================================================================== */
    --font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont,
                    'Segoe UI', Roboto, Arial, sans-serif;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-mono:    'SFMono-Regular', Menlo, Monaco, Consolas,
                    'Liberation Mono', monospace;

    --fw-regular:   400;
    --fw-medium:    500;
    --fw-semibold:  600;
    --fw-bold:      700;   /* display serif only */

    /* Fluid type scale. Values breathe with the viewport, so titles and
       navbar text are never rigid. Mobile floors stay readable (14px+). */
    --fs-display:   clamp(2.25rem, 1.5rem + 3vw, 4.25rem);
    --fs-h1:        clamp(1.45rem, 1.1rem + 1.5vw, 2.2rem);
    --fs-h2:        clamp(1.6rem, 1.15rem + 2vw, 3rem);
    --fs-h3:        clamp(1.05rem, .95rem + .45vw, 1.35rem);
    --fs-lead:      clamp(1rem, .9rem + .4vw, 1.2rem);
    --fs-body:      clamp(.92rem, .88rem + .2vw, 1.05rem);
    --fs-label:     clamp(.78rem, .72rem + .18vw, .88rem);
    --fs-caption:   .75rem;
    --fs-micro:     .68rem;
    --fs-price:     clamp(1.45rem, 1.15rem + 1vw, 1.95rem);
    --fs-rating:    clamp(1.1rem, 1rem + .5vw, 1.35rem);

    --lh-display:   1.05;
    --lh-h1:        1.12;
    --lh-h2:        1.1;
    --lh-h3:        1.25;
    --lh-lead:      1.5;
    --lh-body:      1.65;
    --lh-label:     1.4;
    --lh-caption:   1.5;
    --lh-price:     1;

    /* Eyebrows: small caps style kickers above section titles */
    --tracking-eyebrow: .14em;

    /* ======================================================================
       3. SPACING - base 4 scale plus section rhythm
       ====================================================================== */
    --sp-1:  4px;
    --sp-2:  8px;
    --sp-3:  12px;
    --sp-4:  16px;
    --sp-5:  20px;
    --sp-6:  24px;
    --sp-8:  32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;
    --sp-20: 80px;
    --sp-24: 96px;

    /* Section breathing. One rhythm for the whole site.
       Diet pass: the 3.25/6.5 ceiling felt airy between every block;
       tightened ~25% so sections sit closer to their content. */
    --section-y:    clamp(2.5rem, 5vw, 5rem);
    --section-gap:  clamp(1.5rem, 3vw, 2.5rem);
    --gutter:       clamp(1rem, 4vw, 3.25rem);

    /* ======================================================================
       4. RADIUS
       ====================================================================== */
    --r-xs:   4px;
    --r-sm:   8px;
    --r-md:   12px;
    --r-lg:   16px;
    --r-xl:   24px;
    --r-pill: 999px;

    /* ======================================================================
       5. LAYOUT - containers grow at the large breakpoint
       ====================================================================== */
    --container:      1320px;
    --container-wide: 1520px;

    /* ======================================================================
       6. ELEVATION
       ====================================================================== */
    --z-sticky:   20;
    --z-nav:      60;
    --z-purchase: 70;
    --z-overlay:  100;
    --z-toast:    120;
}

/* Large screens: the site fills confidently instead of floating thin. */
@media (min-width: 1920px) {
    :root {
        --container:      1640px;
        --container-wide: 1840px;
    }
}

/* ==========================================================================
   GLOBAL BASELINE
   ========================================================================== */
html,
body {
    font-family: var(--font-body);
    font-weight: var(--fw-regular);
    font-size:   var(--fs-body);
    line-height: var(--lh-body);
    color:       var(--text-body);
    background:  var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Headings: Playfair, weight 500 to 700, always ink. */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--fw-semibold);
    color:       var(--text-heading);
    line-height: var(--lh-h2);
}

pre, code, kbd, samp {
    font-family: var(--font-mono);
}

button, input, select, textarea {
    font-family: var(--font-body);
}

a {
    color: var(--ink);
    text-decoration: none;
    transition: color .2s ease;
}
a:hover { color: var(--ink-hover); }

::selection {
    background: var(--sage);
    color: var(--ink);
}

:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

/* ==========================================================================
   SHARED UTILITIES - the consistency layer for every page section
   ========================================================================== */

/* One section rhythm: vertical padding + container + side gutters. */
.hh-section {
    padding-block: var(--section-y);
    padding-inline: var(--gutter);
    max-width: var(--container);
    margin-inline: auto;
}
.hh-section--wide { max-width: var(--container-wide); }
.hh-section--cream { background: var(--cream); }
.hh-section--sage  { background: var(--sage); }
.hh-section--ink   { background: var(--ink); }

/* Eyebrow kicker that sits above every section title. */
.hh-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-size: var(--fs-micro);
    font-weight: var(--fw-semibold);
    letter-spacing: var(--tracking-eyebrow);
    text-transform: uppercase;
    color: var(--text-muted);
}
.hh-eyebrow::before {
    content: '';
    width: 1.15rem;
    height: 2px;
    background: var(--gold);
}

/* Section title: Playfair, fluid, ink. */
.hh-section-title {
    font-family: var(--font-display);
    font-weight: var(--fw-semibold);
    font-size: var(--fs-h2);
    line-height: var(--lh-h2);
    color: var(--text-heading);
    margin: var(--sp-3) 0;
}
.hh-section-title--display { font-weight: var(--fw-bold); }

/* Section intro paragraph. */
.hh-section-intro {
    font-size: var(--fs-body);
    color: var(--text-muted);
    max-width: 46ch;
}

/* Numeric enforcement: prices, ratings, counts, dates. Always Inter. */
.hh-num {
    font-family: var(--font-body);
    font-variant-numeric: tabular-nums;
}

/* Flat primary button surface used across CTAs. */
.hh-cta {
    background: var(--ink);
    color: var(--on-ink);
    border-radius: var(--r-sm);
    transition: background-color .2s ease, box-shadow .2s ease, transform .15s ease;
}
.hh-cta:hover {
    background: var(--ink-hover);
    box-shadow: var(--shadow-md);
}
.hh-cta:active { background: var(--ink-deep); }

.hh-cta-outline {
    border: 1px solid var(--ink);
    color: var(--ink);
    border-radius: var(--r-sm);
    background: transparent;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.hh-cta-outline:hover {
    background: var(--ink);
    color: var(--on-ink);
    box-shadow: var(--shadow-sm);
}
