/* ==========================================================================
   Shenachie — base
   Reset, document defaults, typography, links, buttons, form fields.
   Depends on tokens.css.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

/*
  overflow-x: clip — NOT hidden.
  `hidden` on <body> makes body the scroll container, which breaks every
  window-scroll listener (the nav CTA colour engine, the reveal observer,
  parallax) and kills scroll-padding-top. This is load-bearing; don't tidy it.
*/
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-ink);
  color: var(--c-white);
  font-family: var(--f-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}

img, video, svg, iframe { max-width: 100%; }

/*
  The browser's [hidden] rule lives in the UA stylesheet, so ANY author
  display declaration outranks it -- .btn { display:inline-block } was enough
  to keep the contact form's "Back" button on screen at step 1. The wizard,
  the testimonial slides and the FAQ all rely on `hidden`, so make it win.
*/
[hidden] { display: none !important; }

img, video { height: auto; display: block; }

/* --- Headings ------------------------------------------------------------ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  text-transform: uppercase;
  margin: 0;
  text-wrap: balance;
}

h1 { font-weight: 900; font-size: var(--fs-hero); line-height: 0.9;  }
h2 { font-weight: 800; font-size: var(--fs-h2);   line-height: 1.05; }
h3 { font-weight: 700; font-size: 20px;           line-height: 1.2;  }
h4 { font-weight: 700; font-size: 17px; }
h5, h6 { font-family: var(--f-body); font-weight: 700; letter-spacing: 0.08em; }

p { margin: 0 0 22px; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 700; }

/* --- Links --------------------------------------------------------------- */

a {
  color: var(--c-yellow);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--c-yellow); }

/* Visible focus for keyboard users only — the design had none at all. */
:focus-visible {
  outline: 2px solid var(--c-yellow);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--c-yellow); color: var(--c-ink); }

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  border: none;
  border-radius: var(--r-pill);
  padding: 16px 34px;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

/* Yellow fill — the standard call to action on dark */
.btn--primary { background: var(--c-yellow); color: var(--c-ink); }
.btn--primary:hover { background: var(--c-white); color: var(--c-ink); }

/* Dark fill — the same button sitting on a yellow band */
.btn--invert { background: var(--c-ink); color: var(--c-white); }
.btn--invert:hover { background: var(--c-white); color: var(--c-ink); }

/*
  Ghost. The 14.5px vertical padding is deliberate: 14.5 + 1.5px border = 16px,
  matching .btn's 16px so the two sit at identical heights side by side.
*/
.btn--ghost {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid var(--border-ghost);
  padding: 14.5px 30px;
}
.btn--ghost:hover { border-color: var(--c-yellow); color: var(--c-yellow); }

.btn--sm { font-size: 13px; padding: 12px 22px; }
.btn--lg { font-size: 16px; padding: 18px 38px; }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* --- Pills and eyebrows -------------------------------------------------- */

.pill {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  background: var(--c-yellow);
  color: var(--c-ink);
  padding: 11px 24px;
  border-radius: var(--r-pill);
  transition: background var(--t-fast), color var(--t-fast);
}
.pill:hover { background: var(--c-white); color: var(--c-ink); }
.pill--dark { background: var(--c-ink); color: var(--c-white); }

.eyebrow {
  display: block;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-yellow);
}

/* --- Form fields --------------------------------------------------------- */

input[type="text"], input[type="email"], input[type="tel"],
input[type="url"], input[type="search"], textarea, select {
  width: 100%;
  font-family: var(--f-body);
  font-size: 16px;
  padding: 16px 18px;
  border: none;
  border-radius: var(--r-md);
  background: var(--c-white);
  color: var(--c-ink);
  outline: none;
  transition: box-shadow var(--t-fast);
}

input:focus, textarea:focus, select:focus {
  box-shadow: 0 0 0 3px var(--c-yellow);
}

textarea { resize: vertical; min-height: 140px; }

::placeholder { color: var(--c-muted); opacity: 1; }

.field--error { border: 2px solid #e06666; }

.field-error-msg {
  display: block;
  font-size: 13px;
  color: #ffb3b3;
  margin: 7px 0 0;
}

/* --- Utilities ----------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 999;
  background: var(--c-yellow);
  color: var(--c-ink);
  padding: 12px 22px;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
}
.skip-link:focus { top: 0; }
