/* ==========================================================================
   Charlotte Grace Real Estate — Design tokens
   --------------------------------------------------------------------------
   Every colour, font, size and spacing value used by the site lives here.
   Change a value once here and it updates everywhere.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Brand font: TT Drugs
   The licensed webfont files have NOT been supplied yet. When they arrive:
     1. put the .woff2 files in /assets/fonts/
     2. uncomment the @font-face rules below (adjust file names/weights)
     3. test headings AND body text before deciding the final body font
   Until then, the system sans-serif fallback in --font-brand is used.
   -------------------------------------------------------------------------- */
/*
@font-face {
  font-family: "TT Drugs";
  src: url("../assets/fonts/TTDrugs-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TT Drugs";
  src: url("../assets/fonts/TTDrugs-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "TT Drugs";
  src: url("../assets/fonts/TTDrugs-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
*/

:root {
  /* ---- Brand colour ------------------------------------------------------
     UNCONFIRMED. #cc0000 was sampled from the supplied logo PNG.
     Replace with the official value when the client supplies it.
     Check contrast after changing (white on red, and red text on white,
     must both stay at 4.5:1 or above). */
  --cg-red: #cc0000;
  --cg-red-hover: #a80000;      /* slightly darker red for hover/pressed states */
  --cg-red-tint: #fbeeee;       /* very light red for subtle backgrounds */

  /* ---- Neutrals (warm, never pure black) ---- */
  --ink: #221e1c;               /* main text */
  --ink-soft: #564e49;          /* secondary text (≈ 8:1 on white) */
  --ink-muted: #6e6560;         /* captions, meta (≈ 5.8:1 on white) */
  --paper: #ffffff;
  --paper-warm: #faf7f4;        /* alternate section background */
  --stone: #f2ede8;             /* footer background */
  --line: #e6dfd8;              /* hairlines, borders */
  --line-strong: #bdb3aa;       /* form field borders (≥ 3:1 not required but kept visible) */
  --overlay: 22 18 16;          /* RGB used for the hero video overlay */

  /* ---- Feedback ---- */
  --error: #b00020;
  --success: #1e6b3a;

  /* ---- Development placeholders (NOT part of the brand) ---- */
  --dev-bg: #fff4cc;
  --dev-ink: #5c4700;
  --dev-line: #b38f00;

  /* ---- Typography ----
     --font-brand is for headings, navigation and buttons.
     --font-body is kept separate so we can decide after testing TT Drugs
     whether long paragraphs use TT Drugs or a different body font. */
  --font-system: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-brand: "TT Drugs", var(--font-system);
  --font-body: "TT Drugs", var(--font-system);

  /* Fluid type: clamp(minimum, preferred, maximum) scales smoothly with screen width */
  --fs-display: clamp(2.25rem, 1.4rem + 3.6vw, 4.5rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  --fs-h3: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem);
  --fs-statement: clamp(1.5rem, 1.1rem + 1.7vw, 2.5rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-eyebrow: 0.75rem;

  --lh-tight: 1.15;
  --lh-heading: 1.25;
  --lh-body: 1.65;

  --tracking-heading: 0.06em;   /* echoes the wide spacing in the logo */
  --tracking-wide: 0.18em;      /* eyebrows, buttons, labels */

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;

  /* ---- Spacing scale ---- */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --section-y: clamp(3.5rem, 2.5rem + 4.5vw, 6.5rem);   /* vertical padding for main sections */
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);      /* page side padding */

  /* ---- Layout ---- */
  --container: 1240px;
  --container-narrow: 820px;
  --header-h: 72px;             /* updated for larger screens in sections.css */

  /* ---- Shape, depth and motion ---- */
  --radius: 2px;
  --shadow-panel: 0 18px 50px -24px rgb(34 30 28 / 0.35);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 700ms;

  /* ---- Focus ring ---- */
  --focus: #1b1b1b;
  --focus-on-dark: #ffffff;
}
