/* ==========================================================================
   Electech MCR
   1. Tokens       2. Base          3. Layout      4. Buttons
   5. Header       6. Hero          7. Sections    8. Services
   9. About        10. Process      11. CTA band   12. Contact
   13. Footer      14. Motion
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  --ink-950: #070d1f;
  --ink-900: #0e1530;
  --ink-700: #2a3558;
  --blue: #2448e8;
  --blue-dark: #1b37c2;
  --blue-soft: #eef2ff;
  --lime: #c5f03c;
  --lime-light: #d6f76e;
  --text: #2b3350;
  --muted: #5b6480;
  --line: #e2e6f0;
  --surface: #ffffff;
  --bg: #f5f7fc;
  --danger: #c0262d;
  --success: #17703f;

  --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 18px 40px -20px rgba(14, 21, 48, 0.3);
  --shadow-lg: 0 40px 80px -30px rgba(14, 21, 48, 0.45);

  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
  --section-y: clamp(72px, 9vw, 120px);
}

/* 2. Base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.9rem, 1.2rem + 2.2vw, 2.85rem);
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

address {
  font-style: normal;
}

ul[role="list"],
ol[role="list"] {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

/* Blue focus rings disappear on blue and dark backgrounds */
.cta-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--lime);
}

main:focus {
  outline: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 3. Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(197, 240, 60, 0.35);
}

/* Highlighter-pen effect behind key words */
.text-accent {
  color: var(--blue);
  background: linear-gradient(transparent 64%, var(--lime) 64%, var(--lime) 92%, transparent 92%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* 4. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 0.85em 1.4em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn .icon {
  width: 1.15em;
  height: 1.15em;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(36, 72, 232, 0.8);
}

.btn--lime {
  background: var(--lime);
  color: var(--ink-900);
}

.btn--dark {
  background: var(--ink-900);
  color: #fff;
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn--ghost-dark {
  border-color: var(--ink-900);
  color: var(--ink-900);
}

.btn--sm {
  padding: 0.6em 1.1em;
  font-size: 0.92rem;
}

.btn--lg {
  padding: 1em 1.7em;
  font-size: 1.02rem;
}

.btn--block {
  width: 100%;
}

@media (hover: hover) {
  .btn:hover {
    transform: translateY(-2px);
  }

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

  .btn--lime:hover {
    background: var(--lime-light);
  }

  .btn--dark:hover {
    background: var(--ink-700);
  }

  .btn--ghost-light:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.1);
  }

  .btn--ghost-dark:hover {
    background: var(--ink-900);
    color: #fff;
  }
}

/* 5. Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px -20px rgba(14, 21, 48, 0.35);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  color: var(--ink-900);
  text-decoration: none;
}

.brand__mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  align-items: baseline;
  gap: 7px;
  line-height: 1;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-transform: lowercase;
}

.brand__sub {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.nav__list {
  display: flex;
  gap: 2px;
}

.nav__list a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-700);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav__list a:hover,
.nav__list a.is-active {
  color: var(--blue);
  background: var(--blue-soft);
}

.header__call {
  margin-left: 12px;
}

.nav-toggle {
  display: none;
}

@media (max-width: 959px) {
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--surface);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
  }

  /* Fixed width: Safari doesn't stretch children of a flex <button> */
  .nav-toggle span {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink-900);
    transition: transform 0.25s, opacity 0.2s;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(14, 21, 48, 0.35);
  }

  .nav.is-open {
    display: block;
  }

  .nav__list {
    flex-direction: column;
  }

  .nav__list a {
    padding: 14px 12px;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
  }

  .header__call {
    margin-left: 0;
  }
}

@media (max-width: 479px) {
  .header__call {
    width: 44px;
    height: 44px;
    padding: 0;
  }

  .header__call-text {
    display: none;
  }
}

/* 6. Hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(56px, 8vw, 104px) 0 clamp(72px, 8vw, 104px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  color: var(--text);
}

/* Faint blue grid, faded out towards the edges */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(36, 72, 232, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(36, 72, 232, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 75% 45%, #000 20%, transparent 75%);
}

/* Soft blue and lime glow behind the consumer unit */
.hero::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -10%;
  z-index: -1;
  width: min(760px, 90vw);
  aspect-ratio: 1;
  transform: translateY(-50%);
  background:
    radial-gradient(closest-side at 40% 40%, rgba(197, 240, 60, 0.28), transparent),
    radial-gradient(closest-side, rgba(36, 72, 232, 0.14), transparent);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: clamp(48px, 6vw, 88px);
}

.hero__title {
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 1.4rem + 4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero__lead {
  max-width: 34em;
  margin-bottom: 36px;
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-900);
}

.hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.hero__points .icon {
  width: 22px;
  height: 22px;
  padding: 4px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink-900);
  stroke-width: 3;
}

/* Consumer unit illustration */
.hero__visual {
  display: flex;
  justify-content: center;
}

.board {
  position: relative;
  width: min(100%, 470px);
  padding: 18px 18px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, #ffffff 0%, #eef1f8 100%);
  box-shadow: var(--shadow-lg), inset 0 1px 0 #fff;
  color: var(--ink-900);
}

/* Screw heads */
.board::before,
.board::after {
  content: "";
  position: absolute;
  bottom: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff, #b3bbd0);
  box-shadow: inset 0 0 0 1px rgba(14, 21, 48, 0.18);
}

.board::before {
  left: 12px;
}

.board::after {
  right: 12px;
}

.board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px 14px;
}

.board__brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.board__brand .icon {
  width: 15px;
  height: 15px;
  color: var(--blue);
  stroke-width: 2.6;
}

.board__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.board__led {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #a7afc4;
  animation: led-on 0.5s ease 1.4s forwards;
}

.board__rail {
  display: grid;
  grid-template-columns: 1.45fr repeat(5, 1fr);
  gap: 6px;
  padding: 16px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #1a2550, #0e1530);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.8);
}

.breaker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 14px 0 10px;
  border-radius: 6px;
  background: linear-gradient(180deg, #ffffff, #e2e7f2);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.35);
}

.breaker__switch {
  position: relative;
  width: 18px;
  height: 52px;
  border-radius: 5px;
  background: #18203d;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.6);
}

.breaker--main .breaker__switch {
  width: 30px;
}

/* The toggle starts "off" (down) and flicks on, one breaker after another */
.breaker__switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  right: 3px;
  height: 22px;
  border-radius: 3px;
  background: #8a93ab;
  transform: translateY(24px);
  animation: breaker-on 0.45s cubic-bezier(0.3, 1.3, 0.6, 1) forwards;
  animation-delay: calc(0.4s + var(--i, 0) * 0.14s);
}

.breaker--main .breaker__switch::after {
  animation-name: breaker-on-main;
}

.breaker__label {
  max-width: 100%;
  overflow: hidden;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-700);
}

.board__badge {
  position: absolute;
  left: -28px;
  bottom: -30px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 12px;
  border-radius: 16px;
  background: var(--ink-900);
  box-shadow: 0 24px 48px -20px rgba(14, 21, 48, 0.6);
}

.board__badge-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink-900);
}

.board__badge-icon .icon {
  width: 20px;
  height: 20px;
  stroke-width: 2.6;
}

.board__badge-text {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.7);
}

.board__badge-text strong {
  font-family: var(--font-display);
  font-size: 1rem;
  color: #fff;
}

@keyframes breaker-on {
  to {
    transform: translateY(0);
    background: var(--lime);
    box-shadow: 0 0 12px rgba(197, 240, 60, 0.75);
  }
}

@keyframes breaker-on-main {
  to {
    transform: translateY(0);
    background: #4f74ff;
    box-shadow: 0 0 12px rgba(79, 116, 255, 0.8);
  }
}

@keyframes led-on {
  to {
    background: var(--lime);
    box-shadow: 0 0 0 3px rgba(197, 240, 60, 0.3), 0 0 12px 2px rgba(150, 200, 20, 0.7);
  }
}

@media (max-width: 899px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .board__badge {
    left: 16px;
  }
}

@media (max-width: 479px) {
  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .board {
    padding: 14px 12px 24px;
  }

  .board__rail {
    gap: 4px;
    padding: 12px 8px;
  }

  .breaker__label {
    font-size: 0.52rem;
    letter-spacing: 0.02em;
  }
}

/* 7. Sections
   ========================================================================== */
.section {
  padding: var(--section-y) 0;
}

.section--white {
  background: var(--surface);
}

.section-head {
  max-width: 660px;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: end;
  gap: 16px 64px;
  max-width: none;
}

.section-head--split h2 {
  margin-bottom: 0;
}

.section-lead {
  font-size: 1.08rem;
  color: var(--muted);
}

.section-head .section-lead {
  margin-bottom: 0;
}

@media (max-width: 899px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 8. Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  padding: 30px 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Blue bar that slides in along the bottom edge on hover */
.service-card::after {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  transition: background-color 0.25s, color 0.25s;
}

.service-card__icon .icon {
  width: 27px;
  height: 27px;
  stroke-width: 1.75;
}

.service-card h3 {
  margin-bottom: 10px;
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (hover: hover) {
  .service-card:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow);
  }

  .service-card:hover::after {
    transform: scaleX(1);
  }

  .service-card:hover .service-card__icon {
    background: var(--blue);
    color: #fff;
  }
}

@media (max-width: 1023px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .services-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .service-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 18px;
    padding: 22px 20px;
  }

  .service-card__icon {
    grid-row: span 2;
    width: 48px;
    height: 48px;
    margin-bottom: 0;
  }

  .service-card h3 {
    margin-bottom: 6px;
  }
}

/* 9. About
   ========================================================================== */
.about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: clamp(48px, 7vw, 96px);
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-900);
}

.about__content p:not([class]) {
  color: var(--muted);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 44px;
  margin: 32px 0 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.facts dd {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue);
}

.values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.value {
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--bg);
}

.value__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--blue);
  box-shadow: 0 1px 2px rgba(14, 21, 48, 0.08);
}

.value__icon .icon {
  width: 22px;
  height: 22px;
}

.value h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.value p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.value--dark {
  background: var(--blue);
}

.value--dark .value__icon {
  background: var(--lime);
  color: var(--ink-900);
}

.value--dark h3 {
  color: #fff;
}

.value--dark p {
  color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 959px) {
  .about {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 559px) {
  .values {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 10. Process
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* Chevron in the gap between steps */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 52px;
  right: -16px;
  width: 12px;
  height: 12px;
  border-top: 2.5px solid var(--blue);
  border-right: 2.5px solid var(--blue);
  transform: rotate(45deg);
}

.step__num {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink-900);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 799px) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .step:not(:last-child)::after {
    display: none;
  }
}

/* 11. CTA band
   ========================================================================== */
.cta-band {
  padding: clamp(52px, 6vw, 76px) 0;
  background: var(--blue);
  color: #fff;
}

.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
}

.cta-band__text {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cta-band__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink-900);
}

.cta-band__icon .icon {
  width: 32px;
  height: 32px;
  stroke-width: 2.4;
}

.cta-band h2 {
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 1.1rem + 2vw, 2.2rem);
  color: #fff;
}

.cta-band p {
  max-width: 36em;
  margin: 0;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.85);
  text-wrap: pretty;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 599px) {
  .cta-band__icon {
    display: none;
  }
}

@media (max-width: 479px) {
  .cta-band__actions .btn {
    flex: 1 1 100%;
  }
}

/* 12. Contact
   ========================================================================== */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(40px, 6vw, 80px);
}

/* Keep the contact details in view while the visitor fills in the longer form */
@media (min-width: 900px) {
  .contact__info {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.contact-list__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}

.contact-list__label {
  display: block;
  margin-bottom: 2px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list a,
.contact-list address {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink-900);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact-list a:hover {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.contact-list .text-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.contact-form {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.contact-form__title {
  margin-bottom: 6px;
  font-size: 1.5rem;
}

.contact-form__intro {
  margin-bottom: 26px;
  font-size: 0.92rem;
  color: var(--muted);
}

.req {
  color: var(--danger);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-900);
}

.field input,
.field select,
.field textarea {
  display: block;
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f8f9fd;
  font: inherit;
  font-size: 1rem; /* 16px stops iOS zooming into the field */
  color: var(--ink-900);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232448e8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  cursor: pointer;
}

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

.field ::placeholder {
  color: #8a92aa;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #c9d0e2;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(36, 72, 232, 0.15);
}

.field :user-invalid {
  border-color: var(--danger);
}

.form-note {
  margin: 14px 0 0;
  font-size: 0.85rem;
  text-align: center;
  color: var(--muted);
}

.form-status {
  margin: 0;
  font-weight: 600;
  color: var(--success);
}

.form-status:not(:empty) {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #e9f7ef;
}

@media (max-width: 899px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 559px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 13. Footer
   ========================================================================== */
.site-footer {
  background: var(--ink-950);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
}

.site-footer .brand {
  color: #fff;
}

.site-footer .brand__sub {
  color: var(--lime);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.1fr 1.1fr;
  gap: 40px;
  padding-block: clamp(56px, 7vw, 80px);
}

.footer__brand p {
  max-width: 30ch;
  margin: 20px 0 24px;
}

.footer__title {
  margin-bottom: 18px;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}

.footer__col ul {
  display: grid;
  gap: 10px;
}

.footer__col a,
.footer__bottom a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__col a:hover,
.footer__bottom a:hover {
  color: var(--lime);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 22px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom-inner p {
  margin: 0;
}

@media (max-width: 959px) {
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 559px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}

/* 14. Motion
   ========================================================================== */
/* main.js adds .is-pending to off-screen blocks, then swaps it for .is-visible */
.reveal.is-pending {
  opacity: 0;
}

.reveal.is-visible {
  animation: reveal 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms) both;
}

@keyframes reveal {
  from {
    opacity: 0;
    translate: 0 24px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
