/* =============================================
   BASE.CSS — Design tokens, reset, typography
   The Stairlift Company
   ============================================= */

/* ===== DESIGN TOKENS ===== */
:root {
  /* Brand colours */
  --navy:       #003087;
  --navy-dark:  #001f5b;
  --navy-light: #e8f0fe;
  --orange:     #E8670A;
  --orange-lt:  #fff3eb;
  --white:      #ffffff;
  --off-white:  #F8FAFD;
  --text:       #1C2B4A;
  --text-muted: #3d5068;   /* AAA contrast on white */
  --border:     #dce6f5;
  --green:      #1a7a4a;

  /* Typography */
  --font-body: 'Lato', system-ui, sans-serif;
  --font-head: 'Merriweather', Georgia, serif;

  /* Font scale — intentionally large for 65+ users */
  --fs-xs:   15px;
  --fs-sm:   17px;
  --fs-base: 20px;
  --fs-md:   24px;
  --fs-lg:   30px;
  --fs-xl:   38px;
  --fs-2xl:  48px;
  --fs-3xl:  58px;

  /* Line heights */
  --lh-body: 1.85;
  --lh-head: 1.3;

  /* Spacing & shape */
  --radius:    12px;
  --shadow:    0 4px 24px rgba(0,48,135,0.10);
  --shadow-lg: 0 8px 40px rgba(0,48,135,0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ===== ACCESSIBILITY ===== */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* Skip to main content */
.skip-link {
  position: absolute;
  top: 0;
  left: 16px;
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 0 0 8px 8px;
  font-size: var(--fs-sm);
  font-weight: 700;
  z-index: 10000;
  transform: translateY(-100%);
  transition: transform 0.2s;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--orange);
}

/* ===== UTILITIES ===== */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 88px 0; }
.section--alt    { background: var(--off-white); }
.section--navy   { background: var(--navy);   color: var(--white); }
.section--orange { background: var(--orange); color: var(--white); }

/* Section typography */
.section-label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
  display: block;
}
.section--navy .section-label  { color: #ffb07a; }
.section--orange .section-label { color: rgba(255,255,255,0.75); }

.section-title {
  font-family: var(--font-head);
  font-size: var(--fs-xl);
  font-weight: 900;
  line-height: var(--lh-head);
  color: var(--navy);
  margin-bottom: 20px;
}
.section--navy .section-title,
.section--orange .section-title { color: var(--white); }

.section-sub {
  font-size: var(--fs-base);
  color: var(--text-muted);
  max-width: 640px;
  line-height: var(--lh-body);
}
.section--navy .section-sub { color: rgba(255,255,255,0.85); }

.section-head {
  text-align: center;
  margin-bottom: 60px;
}
.section-head .section-sub { margin: 0 auto; }

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