/* ------------------------------------------------------------------ *
 * site.css
 *
 * Colors, spacing and type are set once in the :root block below.
 * Change a value there and it applies everywhere on the site.
 * ------------------------------------------------------------------ */

:root {
  /* Brand */
  --color-ink: #16202c;
  --color-ink-soft: #5a6676;
  --color-accent: #1f5fd8;
  --color-accent-dark: #14429a;
  --color-bg: #ffffff;
  --color-bg-tint: #f4f6f9;
  --color-bg-accent: #16202c;
  --color-line: #dde2ea;

  /* Type */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: var(--font-body);
  --size-base: 1.0625rem;
  --leading: 1.65;

  /* Layout */
  --wrap: 68rem;
  --wrap-narrow: 44rem;
  --gutter: 1.25rem;
  --space: 1.5rem;
  --radius: 10px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--size-base);
  line-height: var(--leading);
  color: var(--color-ink);
  background: var(--color-bg);
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1875rem; }

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

a { color: var(--color-accent); }
a:hover { color: var(--color-accent-dark); }

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

:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------------------------------- Layout ---------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow { max-width: var(--wrap-narrow); }
.center { text-align: center; }

.band { padding-block: clamp(2.5rem, 7vw, 4.5rem); }
.band--tint { background: var(--color-bg-tint); }
.band--accent { background: var(--color-bg-accent); color: #fff; }
.band--accent h2 { color: #fff; }
.band--accent a:not(.button) { color: #fff; }

.lede {
  font-size: 1.1875rem;
  color: var(--color-ink-soft);
  max-width: 42rem;
}
.center .lede { margin-inline: auto; }
.band--accent .lede { color: rgba(255, 255, 255, 0.78); }

/* ---------------------------------- Header ---------------------------------- */

.site-header {
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space);
  min-height: 4.25rem;
}

.site-header__brand {
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  color: var(--color-ink);
  letter-spacing: -0.01em;
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-ink-soft);
  font-size: 0.9375rem;
  padding-block: 0.5rem;
  display: inline-block;
}

.site-nav a:hover { color: var(--color-ink); }

.site-nav a[aria-current="page"] {
  color: var(--color-ink);
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--color-accent);
}

.nav-toggle { display: none; }

@media (max-width: 46rem) {
  .nav-toggle {
    display: block;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: none;
    cursor: pointer;
    position: relative;
  }
  .nav-toggle__bar,
  .nav-toggle__bar::before,
  .nav-toggle__bar::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 1.125rem;
    height: 2px;
    background: var(--color-ink);
    transform: translateX(-50%);
  }
  .nav-toggle__bar { top: 50%; margin-top: -1px; }
  .nav-toggle__bar::before { top: -6px; left: 0; transform: none; }
  .nav-toggle__bar::after { top: 6px; left: 0; transform: none; }

  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-line);
    display: none;
    padding: var(--gutter);
  }
  .site-nav[data-open="true"] { display: block; }
  .site-nav ul { flex-direction: column; gap: 0.25rem; }
  .site-nav a { padding-block: 0.625rem; font-size: 1rem; }
}

/* ---------------------------------- Hero ---------------------------------- */

.hero {
  padding-block: clamp(3rem, 9vw, 6rem);
  background: linear-gradient(180deg, var(--color-bg-tint), var(--color-bg));
}

.hero h1 { max-width: 20ch; }

/* ---------------------------------- Buttons ---------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.center .actions { justify-content: center; }

.button {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8125rem 1.5rem;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
}
.button:hover { background: var(--color-accent-dark); border-color: var(--color-accent-dark); color: #fff; }

.button--ghost {
  background: transparent;
  color: var(--color-accent);
}
.button--ghost:hover { background: var(--color-accent); color: #fff; }

.band--accent .button {
  background: #fff;
  color: var(--color-ink);
  border-color: #fff;
}
.band--accent .button--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

/* ---------------------------------- Cards ---------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space);
  margin-top: 2rem;
}

.card {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.card h2, .card h3 { margin-top: 0; font-size: 1.1875rem; }
.card p { color: var(--color-ink-soft); margin-bottom: 0; }

/* ---------------------------------- Forms ---------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  margin-top: 2.5rem;
  align-items: start;
}

@media (max-width: 46rem) {
  .contact-grid { grid-template-columns: 1fr; }
}

.field { display: block; margin-bottom: 1.125rem; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
}

.optional { font-weight: 400; color: var(--color-ink-soft); }

.field input:not([type="radio"]):not([type="checkbox"]),
.field textarea {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 0.6875rem 0.875rem;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-bg);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--color-accent);
  outline: 2px solid rgba(31, 95, 216, 0.25);
  outline-offset: 0;
}

.field textarea { resize: vertical; }

.form__status { margin-top: 1rem; font-size: 0.9375rem; }
.form__status[data-state="error"] { color: #b3261e; }
.form__status[data-state="ok"] { color: #156b3f; }

.contact-details {
  background: var(--color-bg-tint);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.contact-details h2 { font-size: 1.0625rem; margin-top: 0; }

/* ---------------------------------- Footer ---------------------------------- */

.site-footer {
  background: var(--color-bg-tint);
  border-top: 1px solid var(--color-line);
  padding-block: 3rem 1.5rem;
  margin-top: auto;
  font-size: 0.9375rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space);
  justify-content: space-between;
}

.site-footer__name { font-weight: 700; }
.site-footer p { color: var(--color-ink-soft); margin-bottom: 0.25rem; }

.site-footer__links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
}

.site-footer__legal {
  border-top: 1px solid var(--color-line);
  margin-top: 2rem;
  padding-top: 1.25rem;
}
.site-footer__legal p { font-size: 0.875rem; }

/* ---------------------------------- Consent banner ---------------------------------- */
/* Only appears when tracking.config.json sets consent.mode to "banner". */

.consent-banner {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  background: var(--color-ink);
  color: #fff;
  padding: 1rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.9375rem;
}

.consent-banner p { margin: 0; max-width: 46rem; }
.consent-banner a { color: #fff; }

.consent-banner__actions { display: flex; gap: 0.5rem; }

.consent-banner button {
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 1.125rem;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: #fff;
}

.consent-banner__accept {
  background: #fff;
  color: var(--color-ink);
  border-color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

@media print {
  .site-header, .site-footer__links, .consent-banner, .skip-link { display: none; }
}

/* ---------------------------------- Google embeds ---------------------------------- */
/*
 * Google Forms and Calendar render inside an iframe, which means their own
 * fonts, colors and spacing apply — none of the site's CSS reaches inside.
 * What's below only controls the frame itself: width, height and the border
 * around it. See docs/GOOGLE-INTEGRATIONS.md for what can be changed, and
 * where (inside the Google product, not here).
 */

.google-embed {
  margin-block: 1.5rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
}

.google-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}

/* Google Forms adds its own generous padding; the frame needs no more. */
.google-embed--form { background: #f0ebf8; }

.embed-note {
  font-size: 0.9375rem;
  color: var(--color-ink-soft);
  margin-top: 0.75rem;
}

/* Radio/checkbox groups generated from a Google Form's choice questions. */
fieldset.field {
  border: 0;
  padding: 0;
  margin: 0 0 1.125rem;
}

fieldset.field legend {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.375rem;
  padding: 0;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.3125rem 0;
  font-size: 0.9375rem;
  cursor: pointer;
}

.choice input {
  margin: 0.25rem 0 0;
  flex: none;
  width: auto;
}

.field select {
  width: 100%;
  font: inherit;
  color: inherit;
  padding: 0.6875rem 0.875rem;
  border: 1px solid var(--color-line);
  border-radius: 8px;
  background: var(--color-bg);
}

/* Spam trap. Hidden from people, reachable by the bots that fill everything. */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
