/* ==========================================================================
   Base: reset, typography, layout primitives
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream-soft);
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ink); color: var(--white);
  padding: .7rem 1.1rem; border-radius: var(--radius-pill);
  font-weight: 700; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

.container {
  width: min(100% - (var(--gutter) * 2), var(--container));
  margin-inline: auto;
}

/* Typography ------------------------------------------------------------ */
.display,
.hero__title,
.service-card h3,
.step h3,
.problem__answer-title,
.inquiry__title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.01em;
}

/* DynaPuff Semi Condensed Bold (Brand Guidelines v2 headline face): hero H1 and section H2 only. Subheads, labels and captions keep Baloo 2. */
.hero__title,
.display { font-family: var(--font-heading); font-weight: 700; font-stretch: 87.5%; letter-spacing: 0; line-height: 1.04; }
.display { font-size: var(--fs-display); }
.display--md { font-size: var(--fs-display-md); }
.display--light { color: var(--white); }
.display--cta { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.accent { color: var(--orange); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: var(--fs-small);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: .6rem;
}

.lead { font-size: var(--fs-lead); line-height: 1.55; font-weight: 500; }
.body-lg { font-size: var(--fs-lead); line-height: 1.55; color: var(--ink-soft); margin-top: 1rem; max-width: 46ch; }

/* Section scaffolding ----------------------------------------------------- */
.section { position: relative; padding-block: var(--section-y); isolation: isolate; }

.section-head { max-width: 52rem; margin-bottom: clamp(1.2rem, 2.6vw, 2rem); }
.section-head .body-lg { max-width: 60ch; }

/* Organic section boundaries: a wave sits above each section in its own colour.
   Elementor mapping: Container > Shape Divider (Top) with a wave/curve shape. */
.wavy::before {
  content: "";
  position: absolute; left: 0; right: 0; bottom: calc(100% - 1px);
  height: var(--wave-h);
  background: var(--wave-bg, currentColor);
  -webkit-mask: var(--wave-shape) center bottom / 100% 100% no-repeat;
          mask: var(--wave-shape) center bottom / 100% 100% no-repeat;
  pointer-events: none;
  z-index: 1;
}
.section:has(+ .wavy) { padding-bottom: calc(var(--section-y) + var(--wave-h) * .75); }
.wavy { padding-top: calc(var(--section-y) * .6); }
.wavy--a { --wave-shape: url("../images/shapes/wave-a.svg"); }
.wavy--b { --wave-shape: url("../images/shapes/wave-b.svg"); }

/* Scroll reveals, hero entrance and other motion live in motion.css (progressive enhancement). */
