/* =============================================================
   VARIABLES.CSS
   Central design-token file. Change a value here to re-theme the
   entire site. Do not hard-code colors/spacing/fonts elsewhere —
   always reference a token from this file.
============================================================= */

:root {

  /* ---------- Color: Brand ----------
     Palette derived from the Apple Fresh logo: a natural,
     confident green paired with a warm off-white background,
     kept fresh rather than corporate. */
  --color-green-700: #2F6B27;  /* deep green — text-safe accent (AA on white) */
  --color-green-600: #3E8E2F;  /* primary brand green — buttons, icons */
  --color-green-500: #57A347;  /* lighter green — hover/secondary accents */
  --color-green-100: #E7F2E1;  /* soft mint tint — icon badges, soft panels */
  --color-charcoal-900: #1F2A22; /* near-black with a green cast — headings */
  --color-slate-600: #4C564E;  /* secondary text on light bg */
  --color-slate-400: #6E776F;  /* muted/body text */

  /* ---------- Color: Neutrals ---------- */
  --color-bg: #F7F6F1;         /* warm off-white page background */
  --color-surface: #FFFFFF;    /* card / panel surfaces */
  --color-border: #E5E2D8;     /* hairline borders on light bg */
  --color-border-dark: #2C3A2E;/* hairline borders on dark bg */

  /* ---------- Color: Semantic ---------- */
  --color-success: #2F7D4F;
  --color-error: #C23B2B;
  --color-white: #FFFFFF;
  --color-star: #F2B705;       /* review star rating color */

  /* ---------- Typography ----------
     Poppins: rounded, friendly geometric sans for headings —
     echoes the rounded apple mark in the logo.
     Inter: neutral, highly legible body face. */
  --font-display: 'Poppins', 'Arial Rounded MT Bold', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-xs: 0.8125rem;   /* 13px */
  --fs-sm: 0.9375rem;   /* 15px */
  --fs-base: 1rem;      /* 16px */
  --fs-md: 1.125rem;    /* 18px */
  --fs-lg: 1.375rem;    /* 22px */
  --fs-xl: 1.75rem;     /* 28px */
  --fs-2xl: 2.25rem;    /* 36px */
  --fs-3xl: 3rem;       /* 48px */
  --fs-4xl: 3.5rem;     /* 56px */

  --lh-tight: 1.15;
  --lh-snug: 1.35;
  --lh-normal: 1.65;

  /* ---------- Spacing scale (4px base) ---------- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* ---------- Layout ---------- */
  --container-max: 1240px;
  --container-pad: var(--space-6);
  --header-height: 100px;
  --topbar-height: 40px;

  /* ---------- Shape ----------
     Friendly, rounded shapes throughout — soft cards, fully
     rounded icon badges and pill-shaped buttons, matching the
     rounded apple mark in the brand. */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-pill: 999px;

  /* ---------- Elevation ---------- */
  --shadow-sm: 0 1px 2px rgba(31, 42, 34, 0.06);
  --shadow-md: 0 10px 28px rgba(31, 42, 34, 0.08);
  --shadow-lg: 0 20px 48px rgba(31, 42, 34, 0.14);

  /* ---------- Motion ---------- */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* ---------- Z-index scale ---------- */
  --z-header: 100;
  --z-overlay: 200;
  --z-back-to-top: 90;
}
