@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --cis-red: #D32027;
  --cis-orange: #EF4413;
  --cis-gray: #616161;
  
  /* Additional Palette */
  --cis-dark: #1A1A1A; /* Charcoal / almost black */
  --cis-dark-gray: #333333;
  --cis-light-gray: #F5F7FA;
  --cis-border: #E5E7EB;
  --cis-white: #FFFFFF;
  
  /* Typography */
  --font-family: 'Inter', sans-serif;
  
  /* Shadows & Radius */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1280px;
}

/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  color: var(--cis-dark-gray);
  background-color: var(--cis-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--cis-dark);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(3rem, 5vw, 4.5rem); /* 48px - 72px */
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2.375rem, 4vw, 3.25rem); /* 38px - 52px */
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem); /* 20px - 28px */
}

h4 {
  font-size: 1.25rem;
}

p {
  margin-bottom: 1rem;
  font-size: 1.125rem; /* 18px */
  color: var(--cis-gray);
}

a {
  color: var(--cis-red);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: var(--cis-orange);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-padding);
}

.bg-light {
  background-color: var(--cis-light-gray);
}

.bg-dark {
  background-color: var(--cis-dark);
  color: var(--cis-white);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
  color: var(--cis-white);
}

.bg-dark p {
  color: #D1D5DB;
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.grid {
  display: grid;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-6 { gap: 3rem; }
.gap-8 { gap: 4rem; }

.section-header {
  max-width: 800px;
  margin: 0 auto 4rem;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Focus Visibility (Accessibility)
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--cis-red);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip to Content link */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-to-content:focus {
  position: fixed;
  top: 1rem;
  left: 1rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1.5rem;
  background-color: var(--cis-red);
  color: var(--cis-white);
  z-index: 9999;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}

/* ==========================================================================
   Eyebrow Premium Gradient
   ========================================================================== */
.eyebrow {
  background: linear-gradient(90deg, var(--cis-red), var(--cis-orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Preserve white eyebrow on dark backgrounds */
.bg-dark .eyebrow {
  background: none;
  -webkit-text-fill-color: var(--cis-orange);
  color: var(--cis-orange);
}

/* ==========================================================================
   Section Separator Utility
   ========================================================================== */
.section-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--cis-border), transparent);
  margin: 0;
  border: none;
}

/* ==========================================================================
   Premium Button Refinements
   ========================================================================== */
.btn-primary {
  background: linear-gradient(135deg, var(--cis-red) 0%, #C41B22 100%);
  letter-spacing: 0.01em;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--cis-orange) 0%, #D63A0E 100%);
}

/* ==========================================================================
   Image lazy-load fade
   ========================================================================== */
img {
  transition: opacity 0.3s ease;
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded {
  opacity: 1;
}
