/* ===============================================
   DESIGN TOKENS
   =============================================== */

:root {
  /* Primary Colors */
  --primary-700: #0F4C5C;
  --primary-500: #176776;
  --primary-300: #6CA5AE;

  /* Grayscale */
  --gray-900: #121212;
  --gray-700: #2E2E2E;
  --gray-500: #777777;
  --gray-300: #D3D3D3;
  --gray-100: #F7F7F8;

  /* Accent Colors */
  --accent-600: #D87D0A;
  --accent-500: #F5A623;
  --accent-300: #FFCC85;

  /* Typography Scale */
  --fs-900: 3rem;      /* 48px */
  --fs-800: 2.25rem;   /* 36px */
  --fs-700: 1.75rem;   /* 28px */
  --fs-600: 1.375rem;  /* 22px */
  --fs-500: 1.125rem;  /* 18px */
  --fs-400: 1rem;      /* 16px */
  --fs-300: 0.875rem;  /* 14px */
  --fs-200: 0.75rem;   /* 12px */

  /* Spacing Scale */
  --space-8: 0.5rem;
  --space-16: 1rem;
  --space-24: 1.5rem;
  --space-32: 2rem;
  --space-40: 2.5rem;
  --space-64: 4rem;

  /* Layout */
  --container-max: 1200px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;
}


/* ===============================================
   GLOBAL RESET & BASE STYLES
   =============================================== */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  font-size: var(--fs-400);
  line-height: 1.6;
  color: var(--gray-900);
  background-color: #ffffff;
  overflow-x: hidden;
}


/* ===============================================
   TYPOGRAPHY
   =============================================== */

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  font-weight: 600;
  color: var(--gray-900);
}

h1 {
  font-size: var(--fs-900);
  margin-bottom: var(--space-24);
}

h2 {
  font-size: var(--fs-800);
  margin-bottom: var(--space-24);
}

h3 {
  font-size: var(--fs-700);
  margin-bottom: var(--space-16);
}

h4 {

  font-size: var(--fs-600);
  margin-bottom: var(--space-16);
}

p {
  margin-bottom: var(--space-16);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-600);
}

ul, ol {
  list-style: none;
}


/* ===============================================
   GLOBAL ELEMENTS
   =============================================== */

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}


/* ===============================================
   LAYOUT UTILITIES
   =============================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-24);
  width: 100%;
}

.section {
  padding: var(--space-64) 0;
}

.section-gray {
  background-color: var(--gray-100);
}

.section-title {
  font-size: var(--fs-700);
  font-weight: 600;
  margin-bottom: var(--space-32);
  color: var(--primary-700);
}


/* ===============================================
   GRID SYSTEM
   =============================================== */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-24);
}


/* ===============================================
   RESPONSIVE BREAKPOINTS
   =============================================== */

/* Tablet: 900px and below */
@media (max-width: 900px) {
  :root {
    --fs-900: 2.25rem;  /* 36px */
    --fs-800: 1.75rem;  /* 28px */
    --fs-700: 1.5rem;   /* 24px */
    --space-64: 3rem;   /* 48px */
  }

  .section {
    padding: var(--space-40) 0;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile: 600px and below */
@media (max-width: 600px) {
  :root {
    --fs-900: 1.75rem;  /* 28px */
    --fs-800: 1.5rem;   /* 24px */
    --fs-700: 1.25rem;  /* 20px */
    --fs-600: 1.125rem; /* 18px */
    --space-64: 2.5rem; /* 40px */
    --space-40: 2rem;   /* 32px */
    --space-32: 1.5rem; /* 24px */
  }

  .container {
    padding: 0 var(--space-16);
  }

  .section {
    padding: var(--space-32) 0;
  }
}


/* ===============================================
   ACCESSIBILITY & FOCUS STATES
   =============================================== */

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-500);
  color: white;
  padding: var(--space-8) var(--space-16);
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* Focus visible styles */
*:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

button:focus-visible,
a:focus-visible {
  outline-offset: 4px;
}

/* Reduced motion for users who prefer it */
@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;
  }
}


/* ===============================================
   UTILITY CLASSES
   =============================================== */

/* Visibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hidden {
  display: none;
}

/* Text alignment */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}


/* ===============================================
   PRINT STYLES
   =============================================== */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  a,
  a:visited {
    text-decoration: underline;
  }

  a[href]::after {
    content: " (" attr(href) ")";
  }

  img {
    page-break-inside: avoid;
  }

  h2, h3 {
    page-break-after: avoid;
  }
}