/* ==========================================================================
   A Small Change — Main Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Brand Tokens)
   -------------------------------------------------------------------------- */
:root {

  --color-charcoal:  #151F21;
  --color-raspberry: #9A246E;
  --color-ocean:     #0D5D66;
  --color-teal:      #0D9CBA;
  --color-dark-teal: #148799;
  --color-border:    #FAFAFA;
  --color-white:     #DDDDDD;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Lato', sans-serif;

  --padding-section: 24px;
  --padding-hero:    48px;
  --padding-card:    16px;

  --max-width: 1100px;
}

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

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

body {
  background-color: var(--color-white);
  color: var(--color-charcoal);
  font-family: var(--font-body);
  line-height: 1.6;
}

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

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-charcoal);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.625rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }

p {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

li {
  margin-bottom: 4px;
}

a {
  color: var(--color-raspberry);
  text-decoration: underline;
}

a:hover,
a:focus {
  color: var(--color-charcoal);
}

strong {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Skip Link (Accessibility)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background-color: var(--color-raspberry);
  color: var(--color-white);
  padding: 8px 16px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  z-index: 9999;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   Layout Utility
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--padding-section);
}

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

.section--lg {
  padding: 48px 0;
}

/* --------------------------------------------------------------------------
   Section Themes
   -------------------------------------------------------------------------- */
.section--dark {
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

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

.section--dark a:not(.btn) {
  color: var(--color-teal);
}

.section--dark a:not(.btn):hover,
.section--dark a:not(.btn):focus {
  color: var(--color-white);
}

/* Teal sections use charcoal text for WCAG AA contrast (~6.4:1) */
.section--teal {
  background-color: var(--color-teal);
  color: var(--color-charcoal);
}

.section--teal h1,
.section--teal h2,
.section--teal h3 {
  color: var(--color-charcoal);
}

.section--light {
  background-color: #F0F0F0;
}

/* --------------------------------------------------------------------------
   Section Typography Helpers
   -------------------------------------------------------------------------- */
.section-title {
  font-size: 1.75rem;
  margin-bottom: 8px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: #555555;
  margin-bottom: 24px;
}

.section--dark .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.divider--red {
  border: none;
  border-top: 3px solid var(--color-raspberry);
  width: 56px;
  margin: 12px 0 24px;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 12px;
}

.site-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  max-width: min(100%, 340px);
}

.site-logo-mark {
  display: block;
  padding: 10px 18px 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f1ea 100%);
  border: 1px solid rgba(250, 250, 250, 0.18);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.site-logo-mark img {
  display: block;
  width: clamp(180px, 24vw, 320px);
  height: auto;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 2px solid var(--color-white);
  color: var(--color-white);
  padding: 5px 12px;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 3px;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.site-nav a {
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 3px;
  transition: background-color 0.15s ease;
}

.site-nav a:hover,
.site-nav a:focus {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--color-white);
}

.site-nav a[aria-current="page"] {
  color: var(--color-raspberry);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  padding: var(--padding-hero) 0;
}

.hero h1 {
  font-size: 2.25rem;
  color: var(--color-white);
  margin-bottom: 16px;
  max-width: 700px;
}

.hero p {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 620px;
  margin-bottom: 28px;
}

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

.hero--center h1,
.hero--center p {
  margin-left: auto;
  margin-right: auto;
}

.hero--center .cta-group {
  justify-content: center;
}

/* --------------------------------------------------------------------------
   Page Header (inner pages)
   -------------------------------------------------------------------------- */
.page-header {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  padding: 36px 0;
}

.page-header h1 {
  color: var(--color-white);
  margin-bottom: 8px;
}

.page-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.0625rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 11px 26px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 3px;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.3;
  text-align: center;
}

.btn-primary {
  background-color: var(--color-raspberry);
  color: var(--color-white);
  border-color: var(--color-raspberry);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #9e0e18;
  border-color: #9e0e18;
  color: var(--color-white);
}

/* Outline button: for use on dark backgrounds */
.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-outline:hover,
.btn-outline:focus {
  background-color: var(--color-white);
  color: var(--color-charcoal);
}

/* Outline button: for use on light backgrounds */
.btn-outline-dark {
  background-color: transparent;
  color: var(--color-charcoal);
  border-color: var(--color-charcoal);
}

.btn-outline-dark:hover,
.btn-outline-dark:focus {
  background-color: var(--color-charcoal);
  color: var(--color-white);
}

/* Teal CTA: for accents on light backgrounds */
.btn-teal {
  background-color: var(--color-teal);
  color: var(--color-white);
  border-color: var(--color-teal);
}

.btn-teal:hover,
.btn-teal:focus {
  background-color: #2c8f8a;
  border-color: #2c8f8a;
  color: var(--color-white);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 5px;
  padding: var(--padding-card);
}

.card h3 {
  margin-bottom: 8px;
}

.card p:last-child {
  margin-bottom: 12px;
}

.card--accent {
  border-left: 4px solid var(--color-raspberry);
}

.card--teal {
  border-left: 4px solid var(--color-teal);
}

.card--blue {
  border-left: 4px solid var(--color-ocean);
}

/* --------------------------------------------------------------------------
   Two-Column Layout
   -------------------------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 24px;
}

/* --------------------------------------------------------------------------
   Info Boxes
   -------------------------------------------------------------------------- */
.info-box {
  border-left: 4px solid var(--color-ocean);
  background-color: #EEF7FC;
  padding: var(--padding-card);
  border-radius: 0 4px 4px 0;
  margin-bottom: 16px;
}

.info-box--red {
  border-left-color: var(--color-raspberry);
  background-color: #FEF0F0;
}

.info-box--teal {
  border-left-color: var(--color-teal);
  background-color: #EEF9F8;
}

/* --------------------------------------------------------------------------
   Stat Blocks
   -------------------------------------------------------------------------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.stat-block {
  text-align: center;
  padding: 20px var(--padding-card);
}

.stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--color-raspberry);
  line-height: 1;
  margin-bottom: 8px;
}

.section--teal .stat-number {
  color: var(--color-charcoal);
}

.section--dark .stat-number {
  color: var(--color-raspberry);
}

.stat-label {
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-heading);
}

/* --------------------------------------------------------------------------
   Section-Level CTA Bar
   -------------------------------------------------------------------------- */
.section-cta {
  margin-top: 28px;
}

/* --------------------------------------------------------------------------
   Sub-Section Anchor
   -------------------------------------------------------------------------- */
.subsection {
  padding-top: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}

.subsection:last-child {
  border-bottom: none;
}

.subsection h2 {
  margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  padding: 40px 0 16px;
  margin-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-col h3 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 12px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.footer-col a:hover,
.footer-col a:focus {
  color: var(--color-white);
}

.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive: Tablet (600px+)
   -------------------------------------------------------------------------- */
@media (min-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Responsive: Desktop (900px+)
   -------------------------------------------------------------------------- */
@media (min-width: 900px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.375rem; }

  .hero h1 {
    font-size: 3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .two-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .site-header-top {
    width: auto;
  }

  .site-header .container {
    flex-wrap: nowrap;
  }
}

/* --------------------------------------------------------------------------
   Responsive: Mobile Navigation
   -------------------------------------------------------------------------- */
@media (max-width: 899px) {
  .site-logo {
    max-width: calc(100% - 68px);
  }

  .site-logo-mark {
    padding: 8px 14px 7px;
  }

  .site-logo-mark img {
    width: min(100%, 240px);
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    padding: 8px 10px;
  }
}
