/* ============================================================
   BASE — shared reset, utilities, footer & disclaimer, forms
   ============================================================ */

:root {
  color-scheme: light;
}

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

html, body { margin: 0; padding: 0; }

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

body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  min-width: 0;
  overflow-x: hidden;
}

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

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

button { font-family: inherit; cursor: pointer; }

ul, ol { margin: 0; padding: 0; }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #111;
  color: #fff;
  padding: 8px 14px;
  z-index: 200;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* Layout utility */
.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.wrap--narrow { max-width: 760px; }
.wrap--article { max-width: 720px; }

.stack { display: flex; flex-direction: column; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Focus visibility everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #1a56db;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Video aspect wrapper */
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #0c0f0c;
}
.media-frame video,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame figcaption {
  font-size: 13px;
  color: #6b7280;
  margin-top: 8px;
}

/* ---------- Disclaimer (shared shape, colour set per family) ---------- */
.site-disclaimer {
  display: block;
  width: 100%;
  padding: 22px 0 26px;
}
.site-disclaimer .wrap {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 18px;
}
.site-disclaimer p {
  font-size: 14px;
  line-height: 1.6;
  max-width: 760px;
}
.site-disclaimer a { text-decoration: underline; font-weight: 600; }

/* ---------- Footer (shared shape) ---------- */
.site-footer {
  width: 100%;
  padding: 28px 0 40px;
}
.site-footer__company {
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-line;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,0,0,0.12);
}
.site-footer__links a {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__meta {
  margin-top: 14px;
  font-size: 12.5px;
  opacity: 0.75;
}

/* ---------- Shared form elements ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 14px;
  font-weight: 600;
}
.field input,
.field textarea {
  font-size: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid #cbd2d9;
  font-family: inherit;
  width: 100%;
  min-height: 44px;
  background: #fff;
  color: #111;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: #1a56db; }
.field-error {
  font-size: 13px;
  color: #b3261e;
  min-height: 16px;
  display: none;
}
.field.has-error input,
.field.has-error textarea { border-color: #b3261e; }
.field.has-error .field-error { display: block; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 18px;
}
.consent-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-top: 2px;
  accent-color: #1a56db;
}
.consent-row label { font-size: 14px; line-height: 1.5; }

.form-success {
  display: none;
  padding: 18px 20px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
}
.form-success.is-visible { display: block; }
.lead-form.is-submitted .lead-form__fields { display: none; }

/* Buttons base (colour applied per family) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15.5px;
  padding: 13px 24px;
  min-height: 48px;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Accordion base */
.accordion-item { border-bottom: 1px solid rgba(0,0,0,0.12); }
.accordion-item:first-child { border-top: 1px solid rgba(0,0,0,0.12); }
.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  font-size: 16.5px;
  font-weight: 700;
  min-height: 44px;
}
.accordion-trigger .accordion-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}
.accordion-trigger .accordion-icon::before,
.accordion-trigger .accordion-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.accordion-trigger .accordion-icon::before { width: 14px; height: 2px; }
.accordion-trigger .accordion-icon::after { width: 2px; height: 14px; transition: transform .2s ease; }
.accordion-item.is-open .accordion-icon::after { transform: translate(-50%, -50%) rotate(90deg) scale(0); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.accordion-panel p { padding: 0 4px 18px; font-size: 15px; line-height: 1.6; max-width: 640px; }
.accordion-item.is-open .accordion-panel { max-height: 400px; }

/* Nav toggle base */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: none;
  background: transparent;
}
.nav-toggle__bars { position: relative; width: 22px; height: 16px; }
.nav-toggle__bars span {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 7px; }
.nav-toggle__bars span:nth-child(3) { top: 14px; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
}
