/* =========================================================
   Siseth Foundation - Design Tokens
   Viswa Maithree Mandiraya
   Edit colours, fonts, and spacing here for global updates.

   Palette:
   Background  #F9F7F2
   Primary     #1E3A5F
   Accent      #E9A132
   Accent      #5A7D6B
   ========================================================= */

:root {
  /* Primary — deep navy */
  --color-primary: #1e3a5f;
  --color-primary-deep: #142840;
  --color-primary-soft: #2d4f75;
  --color-primary-mid: #25486e;
  --color-primary-darkest: #0f1c2e;

  /* Accents — warm gold + sage */
  --color-accent: #e9a132;
  --color-accent-soft: #f0b74d;
  --color-accent-muted: #c98a28;
  --color-accent-alt: #5a7d6b;
  --color-accent-alt-soft: #6f9480;
  --color-accent-alt-deep: #456557;

  /* Gold aliases used by existing components */
  --color-gold: var(--color-accent);
  --color-gold-soft: var(--color-accent-soft);
  --color-gold-muted: var(--color-accent-muted);
  --color-gold-deep: var(--color-accent-muted);

  /* Surfaces */
  --color-ivory: #f9f7f2;
  --color-ivory-warm: #f1ede6;
  --color-cream: #f4f0e9;
  --color-white: #ffffff;

  /* Text */
  --color-text: #1a2a3d;
  --color-text-muted: #4a5c6e;
  --color-text-light: #6b7c8c;
  --color-border: rgba(30, 58, 95, 0.12);
  --color-border-strong: rgba(30, 58, 95, 0.22);

  /* Image / photo overlays — navy primary only */
  --color-overlay: rgba(30, 58, 95, 0.62);
  --color-overlay-strong: rgba(20, 40, 64, 0.78);
  --color-overlay-deep: rgba(15, 28, 46, 0.9);
  --overlay-hero:
    linear-gradient(180deg, rgba(30, 58, 95, 0.72) 0%, rgba(30, 58, 95, 0.78) 45%, rgba(15, 28, 46, 0.9) 100%),
    linear-gradient(90deg, rgba(30, 58, 95, 0.82) 0%, rgba(30, 58, 95, 0.62) 55%, rgba(30, 58, 95, 0.55) 100%);
  --overlay-hero-mobile:
    linear-gradient(180deg, rgba(20, 40, 64, 0.78) 0%, rgba(20, 40, 64, 0.84) 50%, rgba(15, 28, 46, 0.92) 100%);
  --overlay-page-hero:
    linear-gradient(180deg, rgba(30, 58, 95, 0.55) 0%, rgba(30, 58, 95, 0.78) 45%, rgba(20, 40, 64, 0.92) 100%),
    linear-gradient(90deg, rgba(30, 58, 95, 0.72) 0%, rgba(30, 58, 95, 0.45) 55%, rgba(30, 58, 95, 0.35) 100%);
  --overlay-section-photo:
    linear-gradient(105deg, rgba(30, 58, 95, 0.88) 0%, rgba(30, 58, 95, 0.62) 48%, rgba(20, 40, 64, 0.45) 100%);

  --color-focus: var(--color-accent);

  /* Typography */
  --font-display: "Cormorant Garamond", "Noto Serif Sinhala", Georgia, serif;
  --font-body: "Source Sans 3", "Noto Sans Sinhala", system-ui, sans-serif;
  --font-sinhala: "Noto Sans Sinhala", "Source Sans 3", sans-serif;

  --fs-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.8125rem);
  --fs-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.95rem + 0.3vw, 1.0625rem);
  --fs-md: clamp(1.0625rem, 1rem + 0.35vw, 1.125rem);
  --fs-lg: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  --fs-2xl: clamp(1.875rem, 1.4rem + 1.6vw, 2.75rem);
  --fs-3xl: clamp(2.25rem, 1.6rem + 2.2vw, 3.5rem);
  --fs-hero: clamp(2rem, 1.35rem + 3.2vw, 4.25rem);

  --lh-tight: 1.2;
  --lh-snug: 1.35;
  --lh-body: 1.7;
  --lh-relaxed: 1.85;

  /* Spacing */
  --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;
  --space-10: 8rem;

  --section-pad-y: clamp(2.75rem, 5vw, 6.5rem);
  --container: 72rem;
  --container-narrow: 42rem;

  /* UI */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --header-h: 4rem;
  --shadow-soft: 0 8px 30px rgba(30, 58, 95, 0.07);
  --shadow-lift: 0 12px 40px rgba(30, 58, 95, 0.12);
  --transition: 0.28s ease;

  /* Atmosphere */
  --bg-page: var(--color-ivory);
  --bg-section-alt: var(--color-ivory-warm);
  --bg-primary: linear-gradient(165deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
  --bg-accent-soft: linear-gradient(165deg, var(--color-accent-alt) 0%, var(--color-accent-alt-deep) 100%);
}
