/* base.css — shared reset, utilities, disclaimer/footer, forms, cookie banner */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  min-width: 0;
  overflow-x: hidden;
  color: var(--color-text, #202230);
  background: var(--color-bg, #fff);
  line-height: 1.6;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
ul, ol { padding-left: 1.2em; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0 0 1em; }

.u-container {
  width: 100%;
  max-width: var(--container-max, 1120px);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 768px) {
  .u-container { padding-left: 32px; padding-right: 32px; }
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* focus visibility everywhere */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #1857d6;
  outline-offset: 2px;
}

/* ---------- forms ---------- */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-field label {
  font-weight: 600;
  font-size: 0.95rem;
}
.form-field input,
.form-field textarea {
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--color-border, #d6d6d6);
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  min-height: 44px;
  width: 100%;
  font-family: inherit;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:invalid.touched,
.form-field textarea:invalid.touched {
  border-color: #c62828;
}
.form-field .field-error {
  color: #c62828;
  font-size: 0.85rem;
  min-height: 1.1em;
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  font-size: 0.92rem;
}
.form-consent input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
}
.form-success {
  border-radius: 10px;
  padding: 18px 20px;
  font-weight: 600;
  display: none;
}
.form-success.is-visible { display: block; }
.lead-form.is-submitted .form-fields-wrap { display: none; }

/* ---------- disclaimer + footer (shared shape, colour set per family) ---------- */
.site-disclaimer {
  display: block;
  max-width: var(--container-max, 1120px);
  margin: 0 auto;
  padding: 28px 16px;
  font-size: 0.92rem;
  line-height: 1.7;
}
@media (min-width: 768px) { .site-disclaimer { padding: 32px 32px; } }
.site-disclaimer p { margin: 0 0 0.6em; }
.site-disclaimer a { text-decoration: underline; font-weight: 600; }

.site-footer { border-top: 1px solid var(--color-border, #d6d6d6); }
.site-footer__inner {
  max-width: var(--container-max, 1120px);
  margin: 0 auto;
  padding: 28px 16px 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 768px) { .site-footer__inner { padding: 32px 32px 48px; } }
.site-footer__company {
  font-size: 0.88rem;
  line-height: 1.8;
}
.site-footer__company p { margin: 0; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}
.site-footer__links a {
  font-size: 0.9rem;
  text-decoration: none;
  padding: 6px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-footer__links a:hover,
.site-footer__links a:focus-visible { text-decoration: underline; }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 900;
  background: #14151a;
  color: #f4f2ec;
  padding: 16px;
  display: none;
  box-shadow: 0 -4px 18px rgba(0,0,0,0.25);
}
.cookie-banner.is-visible { display: block; }
.cookie-banner__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 640px) {
  .cookie-banner__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}
.cookie-banner p { margin: 0; font-size: 0.88rem; line-height: 1.5; }
.cookie-banner a { text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner__actions button {
  border-radius: 8px;
  border: 1px solid #f4f2ec;
  background: transparent;
  color: #f4f2ec;
  padding: 10px 16px;
  min-height: 44px;
  cursor: pointer;
  font-weight: 600;
}
.cookie-banner__actions button.is-primary {
  background: #f4f2ec;
  color: #14151a;
}
.cookie-banner__actions button:hover { opacity: 0.85; }

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