/* ============================================================
   base.css — shared reset + bespoke utility layer
   Used by every page regardless of design family.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { padding: 0; margin: 0; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; }
a { color: inherit; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

/* ---------- layout utilities ---------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

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

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  background: #101a33;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  z-index: 1000;
  transition: top .15s ease;
}
.skip-link:focus { top: 8px; }

/* ---------- flex helpers ---------- */
.stack { display: flex; flex-direction: column; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; }

/* ---------- media frame (fixed aspect ratio wrapper) ---------- */
.media-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 14px;
  background: #10141c;
}
.media-frame video,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.media-frame--wide { aspect-ratio: 16 / 10; }
.media-frame--square { aspect-ratio: 1 / 1; }
.media-frame--tall { aspect-ratio: 3 / 4; }
.media-frame--portrait { aspect-ratio: 9 / 16; }

/* ---------- generic button reset (families theme this further) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* ---------- shared page-close blocks ---------- */
.site-disclaimer {
  display: block;
  width: 100%;
  padding: 28px 0;
}
.site-disclaimer .container {
  max-width: 880px;
  border-top: 1px solid rgba(120,120,120,.3);
  padding-top: 20px;
}
.site-disclaimer p {
  font-size: 14px;
  line-height: 1.7;
  color: inherit;
  opacity: .85;
}
.site-disclaimer a {
  text-decoration: underline;
  font-weight: 600;
}

.site-footer {
  width: 100%;
  padding: 32px 0 40px;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.site-footer__company p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.site-footer__links a {
  font-size: 14px;
  text-decoration: none;
  padding: 6px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-footer__links a:hover,
.site-footer__links a:focus-visible { text-decoration: underline; }

@media (min-width: 768px) {
  .site-footer .container { flex-direction: row; justify-content: space-between; align-items: flex-start; gap: 32px; }
  .site-footer__links { justify-content: flex-end; }
}

/* ---------- forms (shared skeleton; families theme colors) ---------- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-field label {
  font-size: 14px;
  font-weight: 700;
}
.form-field input,
.form-field textarea {
  font-size: 16px;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1.5px solid rgba(120,120,120,.4);
  min-height: 48px;
  width: 100%;
  font-family: inherit;
  background: #fff;
  color: #14140f;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field .field-error {
  font-size: 13px;
  color: #b3261e;
  display: none;
  min-height: 18px;
}
.form-field.has-error input,
.form-field.has-error textarea { border-color: #b3261e; }
.form-field.has-error .field-error { display: block; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 22px;
}
.form-consent input[type="checkbox"] {
  width: 22px;
  height: 22px;
  min-width: 22px;
  margin-top: 2px;
}
.form-consent label { font-size: 14px; line-height: 1.5; }

.form-success {
  display: none;
  border-radius: 12px;
  padding: 18px 20px;
  font-weight: 600;
  line-height: 1.6;
}
.form-success.is-visible { display: block; }

/* ---------- accordion (used by advertorial FAQ) ---------- */
.accordion-item { border-bottom: 1px solid rgba(120,120,120,.25); }
.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 4px;
  cursor: pointer;
  min-height: 44px;
  font-weight: 700;
  font-size: 17px;
  color: inherit;
}
.accordion-icon {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.accordion-icon::before { width: 16px; height: 2px; }
.accordion-icon::after { width: 2px; height: 16px; 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, .accordion-panel ul {
  padding: 0 4px 20px;
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- generic nav toggle (mobile) ---------- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1.5px solid rgba(120,120,120,.4);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

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

/* ---------- cookie notice banner (no tracking; local preference only) ---------- */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 200;
  max-width: 640px;
  margin: 0 auto;
  background: #101a33;
  color: #fff;
  border-radius: 14px;
  padding: 16px 18px;
  display: none;
  gap: 12px;
  flex-direction: column;
  box-shadow: 0 12px 30px rgba(0,0,0,.3);
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { font-size: 13.5px; line-height: 1.6; margin: 0; }
.cookie-banner p a { color: #fff; text-decoration: underline; }
.cookie-banner__actions { display: flex; justify-content: flex-end; }
.cookie-banner__actions button {
  min-height: 40px;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid #fff;
  background: #fff;
  color: #101a33;
  font-weight: 700;
  cursor: pointer;
}
body.has-sticky-cta .cookie-banner { bottom: 88px; }
@media (min-width: 1024px) {
  body.has-sticky-cta .cookie-banner { bottom: 12px; }
}
