/* ============================================================
   Star One Roofing — Design System Variables
   Complete design token definitions
   ============================================================ */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {

  /* ==========================================================
     COLOUR PALETTE — AMT ROOFING BLUE THEME
     ========================================================== */
  --clr-bg-primary: #080D16;
  --clr-bg-secondary: #0E1624;
  --clr-bg-card: #141F30;
  --clr-bg-card-hover: #1B2B42;
  --clr-bg-elevated: #1B2B42;
  --clr-accent: #0866D6;
  --clr-accent-hover: #0EA5FF;
  --clr-accent-cyan: #19C8FF;
  --clr-accent-dark: #064CA3;
  --clr-accent-glow: rgba(14, 165, 255, 0.35);
  --clr-accent-subtle: rgba(8, 102, 214, 0.15);
  --clr-text-primary: #FFFFFF;
  --clr-text-secondary: #D9E2EC;
  --clr-text-muted: #94A3B8;
  --clr-border: #26364A;
  --clr-border-light: rgba(38, 54, 74, 0.6);
  --clr-overlay: rgba(8, 13, 22, 0.75);
  --clr-overlay-heavy: rgba(8, 13, 22, 0.88);
  --clr-white: #FFFFFF;
  --clr-black: #080D16;
  --clr-success: #2ECC71;
  --clr-error: #E74C3C;
  --clr-warning: #F59E0B;

  /* ==========================================================
     TYPOGRAPHY
     ========================================================== */
  --ff-heading: 'Playfair Display', 'Georgia', serif;
  --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Fluid Type Scale */
  --fs-display: clamp(2.75rem, 5.5vw, 5.5rem);
  --fs-h1: clamp(2.25rem, 4vw, 3.5rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.5rem);
  --fs-h3: clamp(1.25rem, 2vw, 1.75rem);
  --fs-h4: clamp(1.1rem, 1.5vw, 1.25rem);
  --fs-body-lg: 1.125rem;
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  /* Font Weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Line Heights */
  --lh-tight: 1.1;
  --lh-heading: 1.2;
  --lh-body: 1.7;
  --lh-relaxed: 1.9;

  /* Letter Spacing */
  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.05em;
  --ls-wider: 0.1em;
  --ls-widest: 0.2em;

  /* ==========================================================
     SPACING SYSTEM (8px base)
     ========================================================== */
  --space-2xs: 0.125rem;   /* 2px */
  --space-xs: 0.25rem;     /* 4px */
  --space-sm: 0.5rem;      /* 8px */
  --space-md: 1rem;        /* 16px */
  --space-lg: 1.5rem;      /* 24px */
  --space-xl: 2rem;        /* 32px */
  --space-2xl: 3rem;       /* 48px */
  --space-3xl: 4rem;       /* 64px */
  --space-4xl: 6rem;       /* 96px */
  --space-5xl: 8rem;       /* 128px */
  --space-section: clamp(5rem, 10vw, 8rem);

  /* ==========================================================
     SHADOWS
     ========================================================== */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(14, 165, 255, 0.35), 0 0 60px rgba(8, 102, 214, 0.18);
  --shadow-glow-strong: 0 0 30px rgba(14, 165, 255, 0.5), 0 0 80px rgba(8, 102, 214, 0.28);
  --shadow-glass: 0 8px 32px rgba(8, 13, 22, 0.4), inset 0 1px 0 rgba(217, 226, 236, 0.05);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.3);

  /* ==========================================================
     BORDER RADIUS
     ========================================================== */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-2xl: 40px;
  --radius-full: 9999px;

  /* ==========================================================
     Z-INDEX HIERARCHY
     ========================================================== */
  --z-base: 1;
  --z-above: 10;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-navbar: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-lightbox: 550;
  --z-toast: 600;
  --z-max: 9999;

  /* ==========================================================
     TRANSITIONS
     ========================================================== */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --transition-fast: 150ms var(--ease-in-out);
  --transition-base: 300ms var(--ease-in-out);
  --transition-slow: 500ms var(--ease-out-expo);
  --transition-smooth: 600ms var(--ease-out-expo);
  --transition-navbar: 400ms var(--ease-out-quart);

  /* ==========================================================
     CONTAINER WIDTHS
     ========================================================== */
  --container-xs: 480px;
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1400px;
  --container-padding: clamp(1.25rem, 4vw, 2.5rem);

  /* ==========================================================
     GLASSMORPHISM
     ========================================================== */
  --glass-bg: rgba(20, 31, 48, 0.65);
  --glass-bg-light: rgba(20, 31, 48, 0.4);
  --glass-bg-dark: rgba(8, 13, 22, 0.85);
  --glass-border: rgba(38, 54, 74, 0.6);
  --glass-border-accent: rgba(14, 165, 255, 0.25);
  --glass-blur: blur(20px);
  --glass-blur-heavy: blur(40px);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* ==========================================================
     COMPONENT SPECIFIC
     ========================================================== */

  /* Navbar */
  --navbar-height: 80px;
  --navbar-height-scrolled: 64px;

  /* Cards */
  --card-padding: clamp(1.5rem, 3vw, 2rem);

  /* Buttons */
  --btn-padding-x: 2rem;
  --btn-padding-y: 0.875rem;
  --btn-padding-x-lg: 2.5rem;
  --btn-padding-y-lg: 1.125rem;
  --btn-padding-x-sm: 1.25rem;
  --btn-padding-y-sm: 0.625rem;
  --btn-font-size: 0.9375rem;
  --btn-font-weight: 600;
  --btn-radius: var(--radius-sm);
  --btn-letter-spacing: var(--ls-wide);

  /* Form */
  --input-height: 52px;
  --input-padding-x: 1.125rem;
  --input-radius: var(--radius-sm);
  --input-bg: rgba(217, 226, 236, 0.04);
  --input-border: var(--clr-border);
  --input-focus-border: var(--clr-accent-hover);
  --input-focus-shadow: 0 0 0 3px rgba(14, 165, 255, 0.2);

  /* Scroll Progress */
  --progress-height: 3px;

  /* Back to Top */
  --btt-size: 48px;
}
