/* ==========================================================================
   BASE.CSS — Reset, Variables, Typography
   Classic Metals Landing Pages
   ========================================================================== */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', 'Open Sans', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
}

/* CSS Variables */
:root {
  /* Brand Colors - Classic Metals (Official Brand Guidelines) */
  --primary-blue: #0F4979;        /* Sky Blue — CTA principal, header, footer */
  --primary-blue-dark: #164686;   /* Navy Blue — hover primary */
  --secondary-blue: #26ABE3;      /* Light Blue — highlights, accents */
  --secondary-blue-dark: #1a96cc; /* Light Blue hover */
  
  /* Neutrals */
  --white: #FFFFFF;
  --black: #000000;               /* Brand Black */
  --gray-brand: #737476;          /* Brand Gray */
  --gray-light: #F5F7FA;
  --gray-border: #E5E7EB;
  --text-dark: #000000;           /* Brand Black — headlines, copy */
  --text-muted: #737476;          /* Brand Gray — subtitles, captions */
  --text-light: #9CA3AF;
  
  /* Legacy aliases for compatibility */
  --color-primary: #000000;
  --color-secondary: #737476;
  --color-accent: #0F4979;
  --color-text: #000000;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F5F7FA;
  --color-bg-dark: #0F4979;
  --color-border: #E5E7EB;
  
  /* Typography Scale */
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Spacing Scale */
  --space-xs: 0.5rem;    /* 8px */
  --space-sm: 1rem;      /* 16px */
  --space-md: 1.5rem;    /* 24px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 3rem;      /* 48px */
  --space-2xl: 4rem;     /* 64px */
  --space-3xl: 6rem;     /* 96px */
  --space-4xl: 8rem;     /* 128px */
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
}

h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

p {
  margin-bottom: var(--space-sm);
  color: var(--text-dark);
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

a:hover {
  opacity: 0.8;
}

strong {
  font-weight: var(--font-weight-bold);
}

/* Lists */
ul, ol {
  list-style: none;
}

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

/* Buttons Reset */
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Form Elements Reset */
input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* Focus Styles */
:focus {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Tablet breakpoint */
@media (min-width: 768px) {
  h1 {
    font-size: var(--font-size-4xl);
  }
  
  h2 {
    font-size: var(--font-size-3xl);
  }
}

/* Desktop breakpoint */
@media (min-width: 1024px) {
  h1 {
    font-size: var(--font-size-5xl);
  }
  
  h2 {
    font-size: var(--font-size-4xl);
  }
  
  h3 {
    font-size: var(--font-size-2xl);
  }
}
