/* ============================================================
   Florafresh Design System — foundation
   Fonts → color tokens → typography → spacing → base element layer.
   Navy is the anchor + primary text. Coral is an accent ONLY.
   Default page background is paper, not pure white.
   ============================================================ */

/* —— Fraunces : the voice of the brand. Headings, sentence case. —— */
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/Fraunces-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-stretch: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../assets/fonts/Fraunces-Italic-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-stretch: normal;
  font-style: italic;
  font-display: swap;
}

/* —— Inter : the workhorse. Body copy, UI, numerals. —— */
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-stretch: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../assets/fonts/Inter-Italic-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-stretch: normal;
  font-style: italic;
  font-display: swap;
}

/* —— Literata : headings for MK (Cyrillic) & GR (Greek); Fraunces is Latin-only. —— */
@font-face {
  font-family: "Literata";
  src: url("../assets/fonts/Literata-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-stretch: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("../assets/fonts/Literata-Italic-Variable.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-stretch: normal;
  font-style: italic;
  font-display: swap;
}

/* MK (Cyrillic) and GR (language tag "el", Greek) headings use Literata.
   Only the display token is swapped; --font-body (Inter) is unchanged. */
html[lang="mk"],
html[lang="el"] { --font-display: "Literata", Georgia, "Times New Roman", serif; }

:root {
  /* —— Brand core ——————————————————————————————— */
  --ff-navy:        #001e46;  /* Pantone 533C — anchor, primary text   */
  --ff-navy-900:    #001226;  /* deepest navy, overlays                */
  --ff-navy-800:    #00163a;
  --ff-navy-700:    #0a2a54;  /* hover on navy surfaces                */
  --ff-navy-600:    #16365f;

  --ff-coral:       #ff7d6e;  /* Pantone 805C — the accent             */
  --ff-coral-600:   #f56455;  /* coral pressed / hover-dark            */
  --ff-coral-400:   #ff978b;  /* 805C tint                             */
  --ff-coral-300:   #ffb1a8;  /* 805C tint                             */
  --ff-coral-100:   #ffe4df;  /* soft-coral field for studio fruit     */
  --ff-coral-050:   #fff2ef;  /* faintest coral wash                   */

  /* —— Warm neutrals (backgrounds) ————————————————— */
  --ff-paper:       #fdf9f0;  /* warmed cream base — global page background */
  --ff-sand:        #efe7dc;  /* secondary surface                     */
  --ff-stone:       #d8cfc2;  /* tertiary surface, dividers on paper   */
  --ff-white:       #ffffff;  /* studio / 3D fruit fields only         */

  /* —— Per-product surface washes — low-opacity tints derived over the warmed
     paper base. Mapping: apple → peach, pear → butter, cherry → blush. Coral at
     full saturation stays reserved for the CTA; each wash is a faint derived tint.
     Pear/cherry sources sampled from the brand draft. Apple now; pear & cherry
     drop straight into their carousels (already wired via .carousel--<kind>). */
  --ff-pear-source:   #fff995;
  --ff-cherry-source: #e8607a;
  --ff-apple-wash:  color-mix(in srgb, var(--ff-coral) 11%,         var(--ff-paper)); /* peach  ~#fdebe2 */
  --ff-pear-wash:   color-mix(in srgb, var(--ff-pear-source) 19%,   var(--ff-paper)); /* butter ~#fdf9df */
  --ff-cherry-wash: color-mix(in srgb, var(--ff-cherry-source) 18%, var(--ff-paper)); /* rose   ~#f9dddb */

  /* —— Navy-tinted slate grays (UI + borders + text) ——— */
  --ff-slate-900:   #16233b;
  --ff-slate-800:   #28374f;
  --ff-slate-700:   #3c4c66;
  --ff-slate-600:   #51617c;  /* secondary text on paper               */
  --ff-slate-500:   #6b7b95;  /* muted text, captions                  */
  --ff-slate-400:   #94a1b6;  /* placeholder, disabled text            */
  --ff-slate-300:   #c0c9d6;  /* borders on light UI                   */
  --ff-slate-200:   #dde3ec;  /* subtle borders, dividers              */
  --ff-slate-100:   #eef1f6;  /* hover fill on light UI                */

  /* —— Semantic status (used sparingly, navy-leaning) ——— */
  --ff-success:     #2f7d5b;
  --ff-danger:      #c0463a;

  /* —— Semantic aliases —— */
  --text-primary:   var(--ff-navy);
  --text-secondary: var(--ff-slate-600);
  --text-muted:     var(--ff-slate-500);
  --text-accent:    var(--ff-coral-600);

  --surface-page:   var(--ff-paper);
  --surface-card:   var(--ff-white);
  --surface-sunk:   var(--ff-sand);
  --surface-inverse:var(--ff-navy);

  --border-subtle:  var(--ff-slate-200);
  --border-default: var(--ff-slate-300);

  --accent:         var(--ff-coral);
  --accent-hover:   var(--ff-coral-600);
  --focus-ring:     var(--ff-coral);

  /* —— Type families —— */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui:      "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* —— Type scale —— */
  --text-2xs:  0.6875rem;  /* 11px */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-md:   1.125rem;   /* 18px */
  --text-lg:   1.375rem;   /* 22px */
  --text-xl:   1.75rem;    /* 28px */
  --text-2xl:  2.25rem;    /* 36px */
  --text-3xl:  3rem;       /* 48px */
  --text-4xl:  4rem;       /* 64px */

  /* —— Weights —— */
  --weight-regular:   400;
  --weight-medium:    500;
  --weight-semibold:  600;
  --weight-display:   480;
  --weight-display-bold: 600;

  /* —— Line heights —— */
  --leading-tight:   1.04;
  --leading-snug:    1.16;
  --leading-normal:  1.5;
  --leading-relaxed: 1.65;

  /* —— Letter spacing —— */
  --tracking-tight:  -0.02em;
  --tracking-snug:   -0.011em;
  --tracking-wider:   0.18em;

  /* —— Spacing scale (8px base) —— */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.5rem;
  --space-6:   2rem;
  --space-7:   2.5rem;
  --space-8:   3rem;
  --space-9:   4rem;
  --space-10:  5rem;

  /* —— Radius —— */
  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  /* —— Shadows — low, warm, navy-tinted —— */
  --shadow-xs:  0 1px 2px rgba(0, 30, 70, 0.06);
  --shadow-sm:  0 2px 6px rgba(0, 30, 70, 0.07);
  --shadow-md:  0 8px 24px rgba(0, 30, 70, 0.09);
  --shadow-coral: 0 10px 28px rgba(255, 125, 110, 0.34);

  /* —— Layout —— */
  --container-xl: 1320px;

  /* —— Motion — calm, confident; fresh, never bouncy —— */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast: 140ms;
  --z-sticky: 100;
}

/* ============================================================
   Base layer — element defaults wired to tokens.
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-primary);
  background-color: var(--surface-page);
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-display-bold);
  font-variation-settings: "SOFT" 40, "WONK" 0, "opsz" 96;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-snug);
  color: var(--text-primary);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a {
  color: var(--text-accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--accent-hover); }

strong { font-weight: var(--weight-semibold); }

img, svg, video { display: block; max-width: 100%; }

button { font-family: inherit; font-size: inherit; cursor: pointer; }

::selection { background: var(--ff-coral-300); color: var(--ff-navy); }

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

/* —— Eyebrow / micro-label utility —— */
.ff-eyebrow {
  font-family: var(--font-ui);
  font-size: var(--text-2xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-accent);
}
