/* ==========================================================================
   John Warrener Plumbing Heating & Electrical Limited
   Design system.

   Layout, type scale and colour temperature follow the Wix "Omber Calder"
   plumbing template: a floating pill header, a full-bleed hero with a large
   light-weight headline, a dark stat band, bone-coloured content sections and
   a 6px corner radius throughout.

   The accent colours are NOT the template's — they are sampled from the
   client's own JWL logo (royal blue #304A9E, cyan #01C0F4) so the borrowed
   layout still reads as their brand.
   ========================================================================== */

/* ---- tokens -------------------------------------------------------------- */

:root {
  /* Structure — from the template */
  --navy:        #0a1a2f;
  --navy-deep:   #112c41;
  --navy-soft:   #1b3a56;
  --bone:        #ebece6;
  --bone-dim:    #d1d0ce;

  /* Brand — sampled from the JWL logo */
  --blue:        #304a9e;
  --blue-dark:   #253b7e;
  --cyan:        #01c0f4;
  --cyan-pale:   #d6f4fd;

  --white:       #ffffff;
  --ink:         var(--navy);
  --ink-muted:   rgba(10, 26, 47, 0.62);
  --ink-faint:   rgba(10, 26, 47, 0.34);
  --rule:        rgba(10, 26, 47, 0.12);

  --radius:      6px;
  --radius-lg:   10px;

  --shadow-card: 0 1px 2px rgba(10, 26, 47, 0.04),
                 0 8px 28px rgba(10, 26, 47, 0.08);
  --shadow-lift: 0 2px 6px rgba(10, 26, 47, 0.06),
                 0 18px 48px rgba(10, 26, 47, 0.14);

  --wrap:        1200px;
  --gutter:      24px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
          Arial, sans-serif;

  /* Fluid type — the template runs a 72px h1 / 36px h2 / 22px h3 scale
     at desktop with weights 400/400/500 and tight negative tracking. */
  --t-hero:  clamp(2.5rem, 1.35rem + 4.6vw, 4.5rem);   /* → 72px */
  --t-h2:    clamp(1.75rem, 1.3rem + 1.8vw, 2.25rem);  /* → 36px */
  --t-h3:    clamp(1.15rem, 1.05rem + 0.4vw, 1.375rem);/* → 22px */
  --t-lead:  clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
}

/* ---- reset --------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

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

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

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

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

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

.section { padding-block: clamp(56px, 7vw, 104px); }
.section--bone { background: var(--bone); }
.section--navy { background: var(--navy); color: var(--white); }
.section--tight { padding-block: clamp(44px, 5vw, 72px); }

.section__head { max-width: 62ch; }
.section__head--centre { margin-inline: auto; text-align: center; }

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.section--navy .eyebrow { color: var(--cyan); }

h2.h2 { font-size: var(--t-h2); }
h3.h3 { font-size: var(--t-h3); font-weight: 500; letter-spacing: -0.02em; }

.lead {
  font-size: var(--t-lead);
  color: var(--ink-muted);
  margin-top: 20px;
  max-width: 62ch;
}
.section--navy .lead { color: rgba(255, 255, 255, 0.72); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease,
              border-color 0.18s ease, transform 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-deep); }

.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: var(--white); }

.btn--outline {
  background: transparent;
  color: var(--navy);
  border-color: rgba(10, 26, 47, 0.25);
}
.btn--outline:hover { border-color: var(--navy); background: rgba(10, 26, 47, 0.04); }

/* The template pairs its primary CTA with a small square arrow chip. */
.btn__chip {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  margin-left: -6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.18);
  flex: none;
}
.btn__chip svg { width: 12px; height: 12px; }

/* ---- header -------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding-block: 14px;
  background: transparent;
  transition: background-color 0.25s ease;
}
/* Over the hero photo the pill floats; once scrolled the strip behind it
   picks up a solid navy so the pill never sits on busy imagery. */
.header[data-stuck="true"] { background: var(--navy); }

.header__inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 10px 10px 14px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.header__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.header__logo img {
  height: 40px; width: auto;
  border-radius: 4px;
}
.header__logo-text {
  display: none;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  max-width: 15ch;
}
@media (min-width: 880px) { .header__logo-text { display: block; } }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 28px; }
.nav__link {
  text-decoration: none;
  font-size: 0.9375rem;
  color: var(--ink-muted);
  padding-block: 6px;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav__link:hover { color: var(--ink); }
.nav__link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

.header__cta { flex: none; }
.header__cta .btn { padding: 12px 20px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px; height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  position: relative;
  width: 17px; height: 1.5px;
  margin-inline: auto;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -5.5px; }
.nav-toggle span::after  { top:  5.5px; }

.header[data-nav-open="true"] .nav-toggle span { background: transparent; }
.header[data-nav-open="true"] .nav-toggle span::before { transform: translateY(5.5px) rotate(45deg); }
.header[data-nav-open="true"] .nav-toggle span::after  { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header__inner { flex-wrap: wrap; }
  .nav {
    display: none;
    order: 3;
    width: 100%;
    margin-left: 0;
    padding-top: 6px;
    border-top: 1px solid var(--rule);
  }
  .header[data-nav-open="true"] .nav { display: block; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--rule);
  }
  .nav__list li:last-child .nav__link { border-bottom: 0; }
  .header__cta { order: 2; }
  .header__cta .btn { padding: 10px 16px; font-size: 0.875rem; }
}

/* ---- hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  margin-top: -72px;          /* slide up under the floating header */
  padding-top: 168px;
  padding-bottom: clamp(64px, 8vw, 120px);
  min-height: min(88vh, 780px);
  display: flex;
  align-items: center;
  color: var(--white);
  isolation: isolate;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% 50%;   /* keep the hands + wrench in frame */
}
/* Scrim: heavy on the left so the headline always has contrast, softening
   to the right where the photograph does the work. */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg,
      rgba(10, 26, 47, 0.92) 0%,
      rgba(10, 26, 47, 0.80) 34%,
      rgba(10, 26, 47, 0.44) 62%,
      rgba(10, 26, 47, 0.30) 100%);
}

.hero__inner { position: relative; z-index: 1; max-width: 46rem; }

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 22px;
}
.hero__eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: currentColor;
}

.hero h1 {
  font-size: var(--t-hero);
  font-weight: 400;
  letter-spacing: -0.032em;
  color: var(--white);
}

.hero__lead {
  margin-top: 24px;
  font-size: var(--t-lead);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

/* ---- stat band ----------------------------------------------------------- */

.stats { background: var(--navy); padding-block: clamp(40px, 5vw, 64px); }

.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.stat {
  padding: 26px 24px 24px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
}
/* One card takes the cyan accent, mirroring the template's single mint tile. */
.stat--accent {
  background: var(--cyan-pale);
  border-color: transparent;
  color: var(--navy);
}

.stat__value {
  font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
  color: var(--white);
}
.stat--accent .stat__value { color: var(--navy); }

.stat__label {
  margin-top: 12px;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}
.stat--accent .stat__label { color: rgba(10, 26, 47, 0.66); }

/* ---- split (about) ------------------------------------------------------- */

.split {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split > * { min-width: 0; }

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--media-first .split__media { order: -1; }
}

.split__media img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.split__media--tall img { aspect-ratio: 3 / 4; }

.prose > * + * { margin-top: 20px; }
.prose p { color: var(--ink-muted); }
.prose h2 { margin-bottom: 4px; }

/* ---- services ------------------------------------------------------------ */

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 44px;
}

.service {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.service:hover {
  border-color: rgba(48, 74, 158, 0.4);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.service__mark {
  flex: none;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--cyan-pale);
  color: var(--blue);
}
.service__mark svg { width: 15px; height: 15px; }

.service__name {
  font-size: 0.9688rem;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.45;
}

/* ---- feature rows (why us) ----------------------------------------------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 44px;
}

/* Nested inside a half-width split column there is only room for one card
   per row — left to auto-fit they break 2 + 1 and the last one looks orphaned. */
.split .features { grid-template-columns: 1fr; gap: 10px; }
.split .features .feature {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
}
.split .features .feature__mark { margin-bottom: 0; flex: none; }
.split .features .feature h3 { margin-bottom: 6px; }

.feature {
  padding: 30px 28px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--rule);
}
.section--navy .feature {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
}

.feature__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: var(--cyan-pale);
  color: var(--blue);
  margin-bottom: 20px;
}
.feature__mark svg { width: 18px; height: 18px; }

.feature h3 { margin-bottom: 10px; }
.feature p { font-size: 0.9375rem; color: var(--ink-muted); }
.section--navy .feature p { color: rgba(255, 255, 255, 0.7); }

/* ---- warranty brands ----------------------------------------------------- */

.brands {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.brand {
  padding: 10px 18px;
  border: 1px solid var(--rule);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: var(--white);
}
.section--navy .brand {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

/* ---- testimonials -------------------------------------------------------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 44px;
}
.quote {
  padding: 30px 28px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.quote__stars { color: var(--cyan); letter-spacing: 0.12em; font-size: 0.875rem; }
.quote p { font-size: 1.0625rem; line-height: 1.55; letter-spacing: -0.015em; }
.quote cite { margin-top: auto; font-style: normal; font-size: 0.875rem; color: var(--ink-muted); }

/* ---- placeholder flag ---------------------------------------------------- */
/* Anything on this rebuild that is NOT from the original johnwarrenerltd.co.uk
   site is wrapped in one of these so it is impossible to ship by accident. */

.placeholder {
  position: relative;
  border: 1px dashed rgba(48, 74, 158, 0.5) !important;
  background:
    repeating-linear-gradient(
      -45deg,
      rgba(48, 74, 158, 0.035) 0 10px,
      transparent 10px 20px);
}

.placeholder-note {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 14px;
  border-radius: 100px;
  background: rgba(48, 74, 158, 0.1);
  border: 1px dashed rgba(48, 74, 158, 0.45);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section--navy .placeholder-note {
  background: rgba(1, 192, 244, 0.12);
  border-color: rgba(1, 192, 244, 0.5);
  color: var(--cyan);
}
.placeholder-note::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

/* ---- CTA band ------------------------------------------------------------ */

.cta-band {
  background: var(--navy-deep);
  color: var(--white);
  padding-block: clamp(52px, 6vw, 84px);
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-band h2 { font-size: var(--t-h2); }
.cta-band p { margin-top: 14px; color: rgba(255, 255, 255, 0.72); max-width: 46ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---- page hero (inner pages) --------------------------------------------- */

.page-hero {
  position: relative;
  margin-top: -72px;
  padding-top: 156px;
  padding-bottom: clamp(48px, 6vw, 76px);
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 140% at 88% 0%, rgba(48, 74, 158, 0.55) 0%, transparent 58%),
    radial-gradient(90% 120% at 0% 100%, rgba(1, 192, 244, 0.16) 0%, transparent 60%);
}
.page-hero h1 {
  font-size: clamp(2.125rem, 1.5rem + 2.6vw, 3.25rem);
  color: var(--white);
}
.page-hero p { margin-top: 18px; color: rgba(255, 255, 255, 0.74); max-width: 56ch; }

.breadcrumb {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 18px;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin-inline: 8px; }

/* ---- contact layout ------------------------------------------------------ */

.contact-grid {
  display: grid;
  gap: clamp(24px, 3vw, 36px);
  align-items: start;
}
/* Grid items default to min-width:auto, so an item with a wide intrinsic
   minimum (the date input, the placeholder pill) drags the whole track past
   the viewport on narrow phones. */
.contact-grid > * { min-width: 0; }
@media (min-width: 980px) {
  .contact-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}

/* The booking card — the template's "Book a Technician" panel. */
.booking {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: clamp(26px, 3.4vw, 40px);
}
.booking h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 1.875rem); }
.booking__intro { margin-top: 12px; color: var(--ink-muted); font-size: 0.9375rem; }

.form { margin-top: 28px; }
.form__row {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}
@media (min-width: 620px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
}
.field .req { color: var(--blue); }

.field { min-width: 0; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(10, 26, 47, 0.24); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(48, 74, 158, 0.14);
}
.field textarea { resize: vertical; min-height: 120px; }

.form__footer { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form__note { font-size: 0.8125rem; color: var(--ink-faint); }

.form__status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--cyan-pale);
  border: 1px solid rgba(1, 192, 244, 0.4);
  font-size: 0.875rem;
  line-height: 1.55;
}
.form__status[hidden] { display: none; }

/* contact detail cards */
.detail-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
}
.detail-card + .detail-card { margin-top: 16px; }
.detail-card h2, .detail-card h3 { font-size: 1.125rem; font-weight: 500; letter-spacing: -0.02em; }

.detail-list { margin-top: 20px; display: grid; gap: 18px; }
.detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.detail__mark {
  flex: none;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: var(--cyan-pale);
  color: var(--blue);
}
.detail__mark svg { width: 16px; height: 16px; }
.detail__label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 3px;
}
.detail__value { font-size: 0.9375rem; line-height: 1.55; }
.detail__value a { text-decoration: none; border-bottom: 1px solid var(--rule); }
.detail__value a:hover { border-bottom-color: var(--blue); color: var(--blue); }

/* ---- footer -------------------------------------------------------------- */

.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding-block: clamp(52px, 6vw, 76px) 28px;
  font-size: 0.9375rem;
}
.footer__grid {
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

.footer__logo img { height: 44px; width: auto; border-radius: 4px; }
.footer__blurb { margin-top: 18px; max-width: 34ch; line-height: 1.6; }

.footer h2 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 18px;
}

.footer__links { display: grid; gap: 11px; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: var(--white); }

.footer address { font-style: normal; line-height: 1.65; }
.footer address a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.2); }
.footer address a:hover { color: var(--white); border-bottom-color: var(--cyan); }

.footer__social {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 9px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.875rem;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}
.footer__social:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.07); color: var(--white); }
.footer__social svg { width: 15px; height: 15px; }

.footer__base {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}
.footer__reg { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ---- 404 ----------------------------------------------------------------- */

.notfound {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 96px;
}
.notfound h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.notfound p { margin-top: 16px; color: var(--ink-muted); }
.notfound .btn { margin-top: 30px; }

/* ---- reveal on scroll ---------------------------------------------------- */

/* The hidden starting state is gated behind .js, which main.js adds to <html>
   as its first act. Without scripting the content is simply visible — it must
   never be possible for a failed script to leave half the page invisible. */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
}
