/* ─── GLOBAL ─────────────────────────────────────────────────────────────
   Reset, typography and layout helpers shared by every section.
   Font: the design uses Gotham (Book / Medium / Bold). Gotham's licence
   (Hoefler & Co.) does not allow hosting it on a website without a web
   licence, so Montserrat (Google Fonts) is the substitute. With a licensed
   Gotham webfont, add its @font-face as "Gotham" and it wins automatically.
   ───────────────────────────────────────────────────────────────────── */
@import url("../colours.css");

:root {
  --font-main: "Gotham", "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --top-bar-height: 96px;

  --radius-card: 22px;
  --radius-panel: 24px;

  --shadow-card: 0 10px 30px rgba(7, 106, 137, 0.10);
  --shadow-soft: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 0 1px rgba(117, 204, 232, 0.35), 0 10px 34px var(--glow);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 400;
  color: var(--text-regular);
  background: var(--bg-colour);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Keep the page from scrolling behind the open mobile menu */
body.menu-open { overflow: hidden; }

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--text-small-titles);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ─── LAYOUT ─── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 110px); }

/* Anchors land under the sticky top bar */
section[id] { scroll-margin-top: calc(var(--top-bar-height) - 8px); }

/* ─── TYPOGRAPHY ─── */
.section-title {
  font-weight: 700;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  text-align: center;
  text-wrap: balance;
}
.section-title--white { color: var(--text-white); }
.section-title--dark { color: var(--text-header-dark); }
.section-title--teal { color: var(--text-header); }

.section-desc {
  max-width: 900px;
  margin: clamp(20px, 3vw, 40px) auto 0;
  font-weight: 300;
  font-size: clamp(17px, 1.9vw, 26px);
  line-height: 1.45;
  text-align: center;
  text-wrap: balance;
}
.section-desc--dark { color: #1A1A1A; }
.section-desc--white { color: var(--text-white); }
.section-desc--muted { color: var(--text-muted); }

.hl { color: var(--text-header); }
.hl-simple {
  color: var(--text-accent-large);
  font-weight: 700;
  font-style: italic;
}

.check-ico {
  width: 1.1em;
  height: 1.1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ─── ACCESSIBILITY ─── */
/* Text for screen readers / search engines only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--app-theme);
  color: var(--text-white);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

/* ─── REVEAL ON SCROLL (funcs/reveal.js) ─── */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}
