/* ==========================================================================
   DESIGN TOKENS: Open Door Digital
   Every look decision for the site lives in this file. Section CSS only ever
   reads these variables; it never hard-codes a colour, font, radius, shadow
   or spacing value. Signature idea: an opening door (see BRIEF.md).
   ========================================================================== */

:root {
  /* --------------------------------------------------------------------------
     COLOUR
     Why: a painted front door on a limewashed Midlands farmhouse wall. Deep
     green door, brass handle, warm off-white walls. Local, warm, honest.
     Contrast checked: text on bg 13.9:1, white on accent 9.9:1, muted on bg
     5.6:1, text on brass 6.6:1.
     -------------------------------------------------------------------------- */
  --color-bg: #f6f1e7; /* limewash wall */
  --color-surface: #ede5d5; /* shaded wall band */
  --color-surface-raised: #fffcf6; /* cards */
  --color-ink: #1f2a24; /* near-black green; stays dark inside inverse sections */
  --color-ink-muted: #56625a;
  --color-text: var(--color-ink);
  --color-text-muted: var(--color-ink-muted);
  --color-line: #d9d0be;
  --color-accent: #23493a; /* the door: brand, primary buttons */
  --color-accent-hover: #1a382c;
  --color-accent-contrast: #ffffff;
  --color-accent-soft: #e1e8dc;
  --color-inverse-bg: #19352b; /* the door at night: dark bands */
  --color-inverse-text: #f6f1e7;
  --color-inverse-muted: #b9c4bb;
  --color-focus: #b07a1e; /* darker brass, visible on limewash and dark green */
  --color-success: #2e6b3a;
  --color-error: #a3322b;

  /* Signature extras: the brass handle and the light behind the door. */
  --color-brass: #d9a441;
  --color-brass-hover: #e4b459;
  --color-brass-contrast: #1f2a24;
  --color-doorway: #2a3d34; /* inside the doorway, behind the phone */
  --color-device: #18201c; /* phone and laptop frames */
  /* Highlight gradient for one or two key phrases per page (class .text-glow) */
  --gradient-highlight: linear-gradient(100deg, #23493a 0%, #3f7a5c 45%, #b07a1e 100%);

  /* --------------------------------------------------------------------------
     TYPE FAMILIES
     Why: one family across the whole site. Plus Jakarta Sans is friendly and
     modern; hierarchy comes from size, weight and colour, not a second font.
     -------------------------------------------------------------------------- */
  --font-heading: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-accent: var(--font-body); /* eyebrows, numbers */

  --weight-body: 400;
  --weight-strong: 600;
  --weight-heading: 750;
  --tracking-heading: -0.03em;
  --tracking-eyebrow: 0.14em;
  --eyebrow-transform: uppercase;
  --leading-tight: 1.08;
  --leading-snug: 1.3;
  --leading-body: 1.6;
  --measure: 62ch;

  /* --------------------------------------------------------------------------
     TYPE SCALE (fluid: 390px viewport -> 1440px viewport)
     Why: a moderate ratio. Big enough for a confident headline, calm enough
     that prices and steps read as plain facts.
     -------------------------------------------------------------------------- */
  --step--1: clamp(0.85rem, 0.82rem + 0.12vw, 0.92rem);
  --step-0: clamp(1.03rem, 0.98rem + 0.2vw, 1.15rem);
  --step-1: clamp(1.2rem, 1.12rem + 0.33vw, 1.42rem);
  --step-2: clamp(1.42rem, 1.3rem + 0.55vw, 1.8rem);
  --step-3: clamp(1.7rem, 1.48rem + 0.95vw, 2.35rem);
  --step-4: clamp(2rem, 1.66rem + 1.5vw, 3.1rem);
  --step-5: clamp(2.3rem, 1.75rem + 2.4vw, 4.1rem);
  --step-6: clamp(2.8rem, 1.8rem + 4.2vw, 5.8rem);

  /* --------------------------------------------------------------------------
     SPACING RHYTHM
     Why: open and unhurried, like a trusted local, not a dense sales page.
     -------------------------------------------------------------------------- */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4.5rem;
  --space-3xl: 7rem;

  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --section-pad-y: clamp(3.5rem, 2.4rem + 4.5vw, 7rem);
  --container: 74rem;
  --container-narrow: 46rem;

  /* --------------------------------------------------------------------------
     RADIUS (by role)
     Why: mixed. Arched door-tops on the doorway and portrait carry the
     signature; everything else keeps small, honest corners.
     -------------------------------------------------------------------------- */
  --radius-button: 4px;
  --radius-input: 4px;
  --radius-card: 6px;
  --radius-media: 4px;
  --radius-pill: 999px;
  --radius-arch: 999px 999px var(--radius-media) var(--radius-media); /* door-top arch; huge radii resolve to a semicircle */
  --radius-device: 1.6rem; /* phone frame */
  --radius-panel: 10rem 10rem var(--radius-card) var(--radius-card); /* price 'door panels': a gentle arch */

  /* --------------------------------------------------------------------------
     BORDERS AND SHADOWS
     Why: outlined panels (like painted frame lines). The only soft shadows sit
     under the phone and laptop frames so the demos feel like real objects.
     -------------------------------------------------------------------------- */
  --border-width: 1px;
  --border-width-strong: 2px;
  --border: var(--border-width) solid var(--color-line);
  --border-strong: var(--border-width-strong) solid var(--color-text);
  --shadow-sm: 0 1px 2px rgb(31 42 36 / 0.08);
  --shadow-md: 0 6px 18px rgb(31 42 36 / 0.12);
  --shadow-lg: 0 22px 48px rgb(31 42 36 / 0.22);
  --shadow-card: none;

  /* --------------------------------------------------------------------------
     MOTION
     Why: subtle. The door opening is the one standout; the rest stays calm.
     Everything is switched off under prefers-reduced-motion in base.css.
     -------------------------------------------------------------------------- */
  --dur-fast: 150ms;
  --dur-base: 250ms;
  --dur-slow: 600ms;
  --dur-standout: 1600ms; /* the door swing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-door: cubic-bezier(0.55, 0.05, 0.2, 1); /* heavy door: slow start, settles */

  /* Motion layer (css/motion.css + js/motion.js): subtle. */
  --motion-distance: 0.75rem;
  --dur-reveal: 700ms;
  --stagger-step: 70ms;
  --hover-lift: -0.25rem;
  --press-scale: 0.97;

  /* --------------------------------------------------------------------------
     SIGNATURE HOOKS
     Why: the divider is a plain painted rule; the door shape itself is drawn
     in the hero and logo, so it is not repeated as a pattern.
     -------------------------------------------------------------------------- */
  --divider-shape: none;
  --divider-height: var(--border-width);
  --divider-color: var(--color-line);
  --signature-pattern: none;
  --signature-stroke: 2;

  /* --------------------------------------------------------------------------
     LAYERS
     -------------------------------------------------------------------------- */
  --z-header: 50;
  --z-overlay: 100;
}
