/* =========================================================
   base.css — shared reset + bespoke utility layer
   Loaded on every page. Family stylesheets (publication.css,
   offer.css) layer palette + component styling on top.
   ========================================================= */

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

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

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; }

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

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

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

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

/* -------- focus states -------- */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #1a73e8;
  outline-offset: 2px;
  border-radius: 2px;
}

/* -------- utility layer -------- */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 768px) { .container { padding-inline: 32px; } }

.container--narrow { max-width: 760px; }
.container--article { max-width: 800px; }

.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;
}

.u-mt-0 { margin-top: 0; }
.u-mt-sm { margin-top: 12px; }
.u-mt-md { margin-top: 24px; }
.u-mt-lg { margin-top: 40px; }

/* -------- generic button -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 28px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, opacity .15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--block { width: 100%; }
.btn--invert { background: #172142; color: #fff; }
.btn--invert:hover { background: #232f5c; }
.btn--ghost { background: transparent; border: 1.5px solid currentColor; }
.btn--ghost:hover { background: rgba(0,0,0,.05); }

/* -------- media frame: fixed aspect ratio for video -------- */
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: #0c0c0c;
}
.media-frame video,
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------- two-column split (market-rate + AI-leverage) -------- */
.split {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 768px) {
  .split { flex-direction: row; align-items: stretch; gap: 28px; }
  .split > * { flex: 1 1 0; min-width: 0; }
}

/* -------- bordered rate/aside box ("what clients pay") -------- */
.rate-box {
  border: 2px solid currentColor;
  border-radius: 14px;
  padding: 22px;
}
.rate-box__label {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.rate-box__hourly {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  margin: 6px 0 14px;
}
.rate-box ul { list-style: none; display: grid; gap: 10px; }
.rate-box li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,.1);
}
.rate-box li:last-child { border-bottom: none; padding-bottom: 0; }
.rate-box .rate-box__note {
  font-size: 13px;
  margin-top: 14px;
  opacity: .8;
}
.rate-box .rate-box__note a { text-decoration: underline; }

/* -------- disclaimer + footer (shared skeleton, family CSS re-skins colors) -------- */
.site-disclaimer {
  display: block;
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 16px;
  font-size: 14px;
  line-height: 1.6;
}
.site-disclaimer a { text-decoration: underline; font-weight: 600; }

.site-footer { padding: 32px 16px 40px; }
.site-footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.site-footer__company {
  font-size: 14px;
  line-height: 1.7;
}
.site-footer__company p { margin: 0 0 4px; }
.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}
.site-footer__links a {
  text-decoration: underline;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* -------- form elements shared -------- */
.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 #c7ccd6;
  width: 100%;
  background: #fff;
  min-height: 48px;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input.is-invalid,
.form-field textarea.is-invalid { border-color: #d33d3d; }
.form-field__error {
  font-size: 13px;
  color: #b3271e;
  min-height: 16px;
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  margin: 18px 0;
  line-height: 1.5;
}
.form-consent input {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
}
.form-success {
  border-radius: 12px;
  padding: 18px 20px;
  font-weight: 600;
  margin-top: 18px;
  display: none;
}
.form-success.is-visible { display: block; }
.lead-form.is-hidden { display: none; }

/* -------- cookie banner -------- */
.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 100;
  background: #ffffff;
  color: #172142;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display: none;
  gap: 14px;
  flex-direction: column;
}
.cookie-banner.is-visible { display: flex; }
@media (min-width: 640px) {
  .cookie-banner {
    left: auto;
    right: 20px;
    bottom: 20px;
    max-width: 420px;
  }
}
.cookie-banner p { font-size: 14px; line-height: 1.5; margin: 0; }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner__actions .btn { flex: 1 1 auto; min-width: 120px; }

/* -------- nav toggle (mobile) shared mechanics -------- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1.5px solid currentColor;
  background: transparent;
  flex-shrink: 0;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bar::before { position: absolute; top: -6px; }
.nav-toggle__bar::after { position: absolute; top: 6px; }
