/* ============================================================
   base.css — shared reset, tokens and utility layer
   Used by every page. Page-family CSS (publication.css / offer.css)
   loads after this file and may override the custom properties.
   ============================================================ */

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

:root {
  /* default (offer-family) tokens — publication.css overrides these */
  --ink: #0d1f16;
  --muted: #4d6156;
  --bg: #ffffff;
  --line: #dfeae2;
  --accent: #0f9d58;
  --accent-dark: #0b7a44;
  --accent-pale: #e8faf0;
  --cta-ink: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-1: 0 2px 8px rgba(13, 31, 22, 0.08);
  --shadow-2: 0 12px 32px rgba(13, 31, 22, 0.14);
  --maxw: 1180px;
  --maxw-narrow: 760px;
  --gutter: 20px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.15;
  font-weight: 800;
}

p {
  margin: 0 0 1em;
}

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

figure {
  margin: 0;
}

/* ---------- layout helpers ---------- */

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

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

.stack {
  display: flex;
  flex-direction: column;
}

.visually-hidden {
  position: absolute;
  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: 12px;
  top: -60px;
  background: var(--accent-dark);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top .2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- focus ---------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent-dark);
  outline-offset: 2px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--accent-dark);
  color: var(--cta-ink);
  box-shadow: var(--shadow-1);
}

.btn-primary:hover {
  box-shadow: var(--shadow-2);
}

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
}

.btn-block {
  width: 100%;
}

/* ---------- media containers ---------- */

.media-frame {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--accent-pale);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ratio-16-9 { aspect-ratio: 16 / 9; }
.ratio-4-3  { aspect-ratio: 4 / 3; }
.ratio-1-1  { aspect-ratio: 1 / 1; }
.ratio-3-4  { aspect-ratio: 3 / 4; }

/* ---------- forms (shared skeleton, themed further per family) ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.field label {
  font-weight: 700;
  font-size: 0.92rem;
}

.field input,
.field textarea {
  font-size: 16px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-height: 48px;
  font-family: inherit;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--accent-dark);
}

.field-error {
  color: #b3261e;
  font-size: 0.85rem;
  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: 6px 0 18px;
}

.consent-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 2px;
}

.consent-row label {
  font-size: 0.92rem;
  color: var(--muted);
}

.consent-row.has-error label {
  color: #b3261e;
  font-weight: 700;
}

.form-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.form-success {
  display: none;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--accent-pale);
  border: 1.5px solid var(--accent);
  font-weight: 600;
}

.form-success.is-visible {
  display: block;
}

.lead-form.is-submitted form {
  display: none;
}

/* ---------- page-close: disclaimer + footer (identical skeleton everywhere) ---------- */

.site-disclaimer {
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px var(--gutter) 8px;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}

.site-disclaimer p {
  margin: 0 0 0.6em;
}

.site-disclaimer a {
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding: 28px 0 40px;
}

.site-footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.site-footer__company {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
  white-space: pre-line;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.site-footer__links a {
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-footer__links a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.site-footer__bottom {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- generic legal page content ---------- */

.legal-main {
  padding: 36px 0 20px;
}

.legal-main h1 {
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  margin-bottom: 14px;
}

.legal-main h2 {
  font-size: clamp(1.15rem, 3vw, 1.4rem);
  margin: 1.6em 0 0.6em;
}

.legal-main p, .legal-main li {
  color: var(--muted);
  font-size: 1rem;
}

.legal-main ul {
  padding-left: 1.2em;
  margin-bottom: 1em;
}

.legal-main ul li {
  margin-bottom: 0.5em;
  list-style: disc;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 1.6em;
}

.contact-block {
  background: var(--accent-pale);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 22px;
  margin: 1.4em 0;
  white-space: pre-line;
  font-size: 1rem;
}

.contact-block a {
  color: var(--accent-dark);
  font-weight: 700;
}

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