/* ==========================================
   MASTER STYLESHEET FOR SIMPLE OSHA GUIDE
   Updated to match logo blue: #1f6dce
   ========================================== */

/* 0. GLOBAL VARIABLES
   ———————————————————————————————— */
:root {
  /* Header & Menu Colors */
  --header-bg:            #1f6dce;
  --header-text:          #FFFFFF;
  --menu-link:            #FFFFFF;
  --menu-link-hover:      #FFC200;
  --menu-link-active-bg:  rgba(255, 194, 0, 0.1);
  --header-border:        rgba(255, 255, 255, 0.2);
  --nav-cta-bg:           #FFC200;
  --nav-cta-text:         #333333;
  --header-shadow:        rgba(0, 0, 0, 0.1);

  /* Core Brand Colors */
  --brand-blue:           #1f6dce;
  --accent-yellow:        #FFC200;
  --text-dark:            #333333;
  --text-light:           #FFFFFF;
  --bg-light:             #F5F5F5;
  --border:               #E0E0E0;
  --shadow:               rgba(0, 0, 0, 0.1);

  /* Typography */
  --font-base:            'Open Sans', sans-serif;
  --font-heading:         'Montserrat', sans-serif;
  --fs-base:              16px;
  --fs-h1:                2.5rem;
  --fs-h2:                2rem;
  --fs-h3:                1.5rem;
  --fs-logo-desktop:      28px;
  --fs-logo-mobile:       24px;
  --fs-nav-desktop:       18px;
  --fs-nav-mobile:        16px;
  --fw-logo:              700;
  --fw-nav:               600;
  --ls-nav-desktop:       0.5px;
  --ls-nav-mobile:        0.3px;

  /* Spacing */
  --space:                16px;
}

/* 1. RESET & BASE STYLES
   ———————————————————————————————— */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--fs-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.5;
}

/* 2. CONTAINER & GRID
   ———————————————————————————————— */
.site-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space) 0;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: calc(var(--space) * -0.5) 0;
}
.row > * {
  flex: 1 1 0;
  padding: calc(var(--space) * 0.5);
}

/* 3. TYPOGRAPHY
   ———————————————————————————————— */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--brand-blue);
  margin-bottom: calc(var(--space) * 0.5);
  line-height: 1.2;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

p {
  margin-bottom: var(--space);
}

/* 4. HEADER & NAVIGATION
   ———————————————————————————————— */
header {
  background-color: var(--header-bg);
  color: var(--header-text);
  box-shadow: 0 2px 4px var(--header-shadow);
  border-bottom: 1px solid var(--header-border);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-logo {
  font-family: var(--font-heading);
  font-weight: var(--fw-logo);
  font-size: var(--fs-logo-desktop);
  color: var(--header-text);
  text-decoration: none;
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-menu-item {
  font-size: var(--fs-nav-desktop);
  font-weight: var(--fw-nav);
  letter-spacing: var(--ls-nav-desktop);
  color: var(--menu-link);
  text-decoration: none;
  padding: 12px 0;
  position: relative;
}

.header-menu-item:hover {
  color: var(--menu-link-hover);
}

.header-menu-item.active {
  background-color: var(--menu-link-active-bg);
  color: var(--menu-link-hover);
  border-radius: 4px;
}

.btn-nav-cta {
  background-color: var(--nav-cta-bg);
  color: var(--nav-cta-text);
  font-size: var(--fs-nav-desktop);
  font-weight: var(--fw-nav);
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  text-decoration: none;
  margin-left: 16px;
  transition: filter 80ms ease-in;
}

.btn-nav-cta:hover {
  filter: brightness(1.05);
}

/* 5. BUTTONS
   ———————————————————————————————— */
.btn {
  display: inline-block;
  font-family: var(--font-base);
  font-weight: 600;
  padding: 0.75em 1.5em;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  transition: filter 150ms ease-in-out;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: var(--text-light);
}

.btn-primary:hover {
  filter: brightness(1.1);
}

.btn-secondary {
  background-color: var(--accent-yellow);
  color: var(--text-dark);
}

.btn-secondary:hover {
  filter: brightness(1.05);
}

/* 6. CARDS & SECTIONS
   ———————————————————————————————— */
.card {
  background: var(--text-light);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 2px 4px var(--shadow);
  padding: var(--space);
  transition: box-shadow 200ms ease-in-out;
  margin-bottom: var(--space);
}

.card:hover {
  box-shadow: 0 4px 8px var(--shadow);
}

.section {
  padding: calc(var(--space) * 2) 0;
}

/* 7. FORMS
   ———————————————————————————————— */
input,
textarea,
select {
  width: 100%;
  padding: 0.75em;
  border: 1px solid var(--border);
  border-radius: 4px;
  margin-bottom: var(--space);
  font-family: var(--font-base);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(31, 109, 206, 0.2);
}

/* 8. UTILITIES
   ———————————————————————————————— */
.hidden      { display: none !important; }
.text-center { text-align: center; }
.mt-1        { margin-top: var(--space); }
.mb-1        { margin-bottom: var(--space); }

/* 9. RESPONSIVE BREAKPOINTS
   ———————————————————————————————— */
@media (max-width: 768px) {
  .site-container {
    width: 95%;
  }
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.75rem;
  }
  .header-container {
    flex-wrap: wrap;
    height: auto;
    padding: 16px;
  }
  .header-logo {
    font-size: var(--fs-logo-mobile);
  }
  nav {
    width: 100%;
    justify-content: center;
    gap: 16px;
    margin-top: 12px;
  }
  .header-menu-item {
    font-size: var(--fs-nav-mobile);
    letter-spacing: var(--ls-nav-mobile);
    padding: 10px 8px;
  }
  .btn-nav-cta {
    font-size: var(--fs-nav-mobile);
    padding: 8px 16px;
    margin-left: 12px;
  }
}
/* UNIVERSAL CTA FIX — applies to ALL buttons everywhere */
a.btn, a.btn.alt {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  margin: 6px 6px 0 0;
}

/* Primary CTA */
a.btn {
  background: #046BD2;
  color: #FFFFFF;
}

a.btn:hover {
  background: #035bb5;
}

/* Secondary CTA */
a.btn.alt {
  background: #F2F2F2;
  color: #1F2A44;
}

a.btn.alt:hover {
  background: #e4e4e4;
}

/* Auto‑container for any row of CTAs */
.cta-row,
.hero-cta,
.section-cta,
.footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

