/**
 * Design tokens: colors, typography scale, spacing, radii, shadows, breakpoints.
 * All components must reference these custom properties only.
 */

:root {
  /* Colors — surfaces */
  --color-bg-page: #fafaf8;
  --color-bg-section-white: #ffffff;
  --color-bg-section-warm: #f6f3ed;
  --color-hero-gradient-end: #f0ede5;
  --color-border-card: #f0ebe2;
  --color-placeholder-bg: #e8e6e1;
  --color-placeholder-icon: #9a9894;

  /* Colors — text */
  --color-text-primary: #3a3a3a;
  --color-text-secondary: #6b6b6b;

  /* Colors — brand (spec); orange-on-white fails AA — use contrast token for text/links on light bg */
  --color-accent-green: #7a9b8c;
  --color-accent-orange: #e08b6e;
  --color-accent-orange-hover: #c87b60;
  /* WCAG AA ≥4.5:1 with white for UI text at body sizes */
  --color-accent-orange-on-light: #b85a42;
  /* Solid buttons: meets WCAG AA with white label; decorative orange stays --color-accent-orange */
  --color-button-bg: #c46952;
  --color-button-bg-hover: #b0553f;
  --hero-gradient: linear-gradient(
    135deg,
    var(--color-bg-page) 0%,
    var(--color-hero-gradient-end) 100%
  );

  --color-error: #d96060;
  --color-success: #7a9b8c;

  /* Header glass */
  --color-header-bg: rgba(255, 255, 255, 0.82);
  --color-lightbox-overlay: rgba(30, 30, 30, 0.82);
  --color-menu-backdrop: rgba(58, 58, 58, 0.35);

  /* Shadows */
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.06);
  --shadow-large: 0 20px 40px rgba(0, 0, 0, 0.08);

  /* Radii */
  --radius-button: 40px;
  --radius-card: 24px;
  --radius-input: 16px;
  --radius-pill: 999px;

  /* Spacing scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.5rem;
  --space-xs: 0.75rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 2.5rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-section: clamp(3rem, 8vw, 5rem);

  /* Layout */
  --container-max: 1120px;
  --container-padding: clamp(var(--space-sm), 4vw, var(--space-lg));

  /* Typography families */
  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  /* Breakpoints (for reference in comments / JS if needed) */
  --bp-phone: 375px;
  --bp-tablet: 768px;
  --bp-desktop: 1024px;

  /* Transitions */
  --ease-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-menu: 0.35s;
  --duration-card: 0.3s;

  /* Z-index */
  --z-header: 100;
  --z-menu: 200;
  --z-lightbox: 300;
}
