/* ==========================================================================
   Design tokens — the only file allowed to declare raw color/size values.
   Everything else references these via var(...).
   ========================================================================== */

:root {
  /* ── Colors: brand ── */
  --color-bg-page: #fff8f5;
  --color-surface: rgba(255, 255, 255, 0.75);
  --color-surface-strong: rgba(255, 255, 255, 0.85);
  --color-nav-bg: rgba(255, 248, 245, 0.92);
  --color-border: rgba(0, 0, 0, 0.1);
  --color-border-subtle: rgba(0, 0, 0, 0.02);
  --color-text-primary: #1a1a1a;
  --color-text-secondary: #555;
  --color-accent: #e84a1a;
  --color-cta-bg: var(--color-accent);
  --color-cta-text: #ffffff;

  /* ── Colors: wireframe/placeholder scaffolding (.ph-* components) ── */
  --color-wireframe-text-bg: #e6f9e6;
  --color-wireframe-text-fg: #1a6b1a;
  --color-wireframe-text-border: #4caf50;
  --color-wireframe-image-bg: #e8eeff;
  --color-wireframe-image-fg: #2a4aaa;
  --color-wireframe-image-border: #6080dd;
  --color-wireframe-video-bg: #fff0eb;
  --color-wireframe-video-fg: #c0391a;
  --color-wireframe-video-border: var(--color-accent);
  --color-wireframe-logo-bg: #f5eeff;
  --color-wireframe-logo-fg: #7a2aaa;
  --color-wireframe-logo-border: #aa66cc;

  /* ── Typography ── */
  --font-display: 'Georgia', serif;
  --font-body: system-ui, -apple-system, sans-serif;

  --font-size-2xs: 11px;
  --font-size-xs: 13px;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;

  --font-size-icon-md: 32px;
  --font-size-icon-lg: 48px;

  /* Responsive display sizes (hero/lead-magnet/policy headings) */
  --font-size-display-lg: clamp(1.6rem, 3.5vw, 2.6rem);
  --font-size-display-md: clamp(1.6rem, 3vw, 2.4rem);

  --line-height-tight: 1.15;
  --line-height-base: 1.6;

  /* ── Spacing scale ── */
  --space-3xs: 4px;
  --space-2xs: 8px;
  --space-xs: 12px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 80px;
  --space-4xl: 100px;

  /* ── Radius ── */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  /* ── Layout ── */
  --container-max-width: 1100px;
  --max-width-hero-card: 1000px;
  --max-width-policy-card: 864px;
  --max-width-lead-magnet: 864px;
  --max-width-landing-card: 864px;
  --max-width-free-lead-kit-card: 864px;
  --max-width-alternatives-intro: 909px;

  /* Breakpoints — reference only, media queries can't consume custom
     properties, so hardcode these exact values in @media rules. Mobile-first:
     base rules target the smallest screen, larger breakpoints layer on with
     min-width only. */
  /* sm:  480px — large phones  */
  /* md:  768px — tablets      */
  /* lg:  1024px — small laptops */
  /* xl:  1280px — desktops    */

  /* ── Transitions ── */
  --transition-fast: 0.15s;

  /* ── Animation durations ── */
  --duration-clients-carousel: 30s;

  /* ── Carousel edge-fade mask stops (clients logo carousel) ── */
  --clients-carousel-fade-in: 12.5%;
  --clients-carousel-fade-out: 87.5%;

  /* ── Misc ── */
  --bg-pattern-size: 600px;

  /* ── Component dimensions (one-off, not part of the spacing scale) ── */
  --min-height-info-card: 260px;
  --min-height-image-placeholder: 220px;
  --min-height-video-placeholder: 360px;
  --min-width-client-logo: 100px;
  --min-width-email-input: 200px;
  --icon-size-badge: 36px;
  --icon-size-info-card-photo: 56px;
  --width-team-card: 300px;
  --nav-logo-icon-height: 50px;
  --nav-logo-wordmark-height: 84px;
  --footer-logo-height: 36px;
  --team-photo-height: 200px;
  --max-width-footer-tagline: 320px;

  /* ── Debug / dev utilities (webpage-template.html section banners only —
     deliberately outside the brand palette, not for use in real content) ── */
  --color-debug-bg: #000000;
  --color-debug-text: #ff0000;
}
