/* =====================================================================
   base.css - reset, design tokens, typography
   Stefan Gerhard Coaching
   ===================================================================== */

/* ---------------------------------------------------------- Local fonts
   Inter is loaded locally for GDPR compliance - no Google Fonts CDN.
   Drop the woff2 files into /fonts (see README). If they are absent the
   font-family stack falls back to the system UI font, so the site still
   renders cleanly. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("../fonts/Inter-Light.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/Inter-Medium.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
}

/* ----------------------------------------------------------- Tokens */
:root {
  /* Palette - exact brand hex values */
  --c-primary-dark: #1b2b3a; /* nav, headings, CTA backgrounds */
  --c-navy-mid: #2e3f50;     /* dark section fills */
  --c-blue-accent: #6fb3d9;  /* links, tags, eyebrows, active states */
  --c-blue-mid: #4a7fa5;     /* borders, secondary accents */
  --c-slate: #5a6b7a;        /* body text */
  --c-offwhite: #f5f3ef;     /* hero bg, section fills, step cards */
  --c-border: #d8d3c8;       /* borders / dividers */
  --c-white: #ffffff;

  /* Overlays for full-bleed photography */
  --overlay-hero: rgba(27, 43, 58, 0.65);
  --overlay-card: rgba(27, 43, 58, 0.65);

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;
  --space-8: 8rem;

  /* Layout */
  --container: 1200px;
  --container-narrow: 820px;
  --radius: 4px;
  --radius-lg: 8px;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(27, 43, 58, 0.08);
  --shadow-md: 0 8px 30px rgba(27, 43, 58, 0.12);
  --transition: 0.25s ease;

  --nav-height: 72px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.7;
  color: var(--c-slate);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

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

a {
  color: var(--c-blue-mid);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover {
  color: var(--c-blue-accent);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* ------------------------------------------------------- Typography */
h1,
h2,
h3,
h4 {
  font-weight: 300; /* light by default; key words use <strong> at 600 */
  color: var(--c-primary-dark);
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h1 strong,
h2 strong,
h3 strong,
h4 strong {
  font-weight: 600;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}
h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
}

p {
  margin: 0;
}

strong {
  font-weight: 600;
}

/* Eyebrow label - small uppercase accent text */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-blue-accent);
  margin-bottom: var(--space-2);
}

/* --------------------------------------------------------- Layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--space-7);
}

.section__head {
  max-width: 720px;
  margin-bottom: var(--space-5);
}

.section__intro {
  margin-top: var(--space-2);
  font-size: 1.1rem;
}

/* Section colour variants */
.section--light {
  background: var(--c-white);
}
.section--offwhite {
  background: var(--c-offwhite);
}
.section--dark {
  background: var(--c-primary-dark);
  color: rgba(255, 255, 255, 0.82);
}
.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--c-white);
}

/* ----------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0.85rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition),
    border-color var(--transition), transform var(--transition);
  text-align: center;
  line-height: 1.3;
}
.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--c-blue-mid);
  color: var(--c-white);
}
.btn--primary:hover {
  background: var(--c-blue-accent);
  color: var(--c-primary-dark);
}

.btn--light {
  background: var(--c-white);
  color: var(--c-primary-dark);
}
.btn--light:hover {
  background: var(--c-offwhite);
  color: var(--c-primary-dark);
}

.btn--outline {
  background: transparent;
  border: 1px solid var(--c-border);
  color: var(--c-primary-dark);
}
.btn--outline:hover {
  border-color: var(--c-blue-mid);
  color: var(--c-blue-mid);
}

/* Text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--c-blue-mid);
}
.link-arrow::after {
  content: "→";
  transition: transform var(--transition);
}
.link-arrow:hover::after {
  transform: translateX(4px);
}

/* Accessible focus states */
:focus-visible {
  outline: 2px solid var(--c-blue-accent);
  outline-offset: 2px;
}

/* Skip link for keyboard users */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--c-primary-dark);
  color: var(--c-white);
  padding: var(--space-2) var(--space-3);
  z-index: 200;
}
.skip-link:focus {
  left: var(--space-2);
  top: var(--space-2);
}

/* Honour reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
