/* ==========================================================================
   A2Z Electrix & Equipment Services
   Shared stylesheet for every page. Colours come from the business card:
   charcoal card stock, brand blue, silver, and red for the tagline and errors.
   ========================================================================== */

/* 1. Tokens
   ========================================================================== */
:root {
  /* Brand palette */
  --blue-800: #0f3f7a;
  --blue-700: #15539a;
  --blue-600: #1f6fc4; /* primary: 5.1:1 against white */
  --blue-500: #3a8ee0; /* the blue printed on the card */
  --blue-300: #8fc1f3;
  --blue-200: #bfdcf9;
  --blue-100: #e3effb;
  --blue-50: #f2f7fd;
  --navy-900: #0e1e36;
  --navy-800: #12305c;
  --ink-900: #161b26; /* card stock */
  --ink-800: #1f2633;
  --ink-700: #2b3443;
  --slate-600: #4a5568;
  --slate-500: #647082; /* 5:1 on white: placeholder text */
  --slate-400: #7d8a9c; /* 3.5:1 on white: form control borders */
  --slate-300: #c3ccd8;
  --slate-200: #dbe2ea;
  --slate-100: #eef2f6;
  --red-700: #b42e26;
  --red-600: #d43d33;
  --red-400: #f0685e;
  --red-50: #fdf1f0;
  --green-700: #1c7a4a;
  --green-50: #edf8f1;
  --white: #fff;

  /* Semantic roles */
  --color-bg: var(--white);
  --color-tint: var(--blue-50);
  --color-text: var(--ink-900);
  --color-text-muted: var(--slate-600);
  --color-heading: var(--ink-800);
  --color-primary: var(--blue-600);
  --color-primary-hover: var(--blue-700);
  --color-border: var(--slate-200);
  --color-error: var(--red-700);
  --color-success: var(--green-700);
  --focus-ring: var(--ink-900);

  /* Type */
  --font-display: "Rajdhani", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-display: clamp(2.5rem, 1.55rem + 3.9vw, 4.125rem);
  --fs-h2: clamp(2rem, 1.45rem + 2.3vw, 3.25rem);
  --fs-h3: clamp(1.5rem, 1.3rem + 0.9vw, 2.125rem);
  --fs-h4: 1.375rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-sm: 0.9375rem;
  --fs-xs: 0.8125rem;

  /* Space (4/8 rhythm) */
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 8vw, 112px);
  --container: 1200px;
  --header-h: 84px;
  --bar-overlap: 96px;

  /* Shape */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(14, 30, 54, 0.06), 0 2px 10px rgba(14, 30, 54, 0.06);
  --shadow-md: 0 14px 34px -14px rgba(14, 30, 54, 0.28);
  --shadow-lg: 0 28px 64px -24px rgba(14, 30, 54, 0.42);

  /* Motion */
  --dur-fast: 150ms;
  --dur: 220ms;
  --dur-slow: 520ms;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Layers */
  --z-callbar: 90;
  --z-header: 100;
  --z-menu: 110;
  --z-skip: 1000;
}

@media (max-width: 1023.98px) {
  :root {
    --header-h: 68px;
  }
}

@media (max-width: 719.98px) {
  :root {
    --bar-overlap: 64px;
  }
}

/* 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) + 16px);
}

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

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

img {
  height: auto;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  color: var(--color-heading);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-display);
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: var(--fs-h3);
}

h4 {
  font-size: var(--fs-h4);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--color-primary);
  text-underline-offset: 3px;
  transition: color var(--dur-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

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

[hidden] {
  display: none !important;
}

/* Anything sitting on a dark or blue surface gets a white focus ring */
.hero,
.page-hero,
.section--dark,
.call-band,
.cta-band,
.site-footer {
  --focus-ring: var(--white);
}

/* Light surfaces nested inside a dark one go back to the dark ring */
.form__status,
.card,
.panel {
  --focus-ring: var(--ink-900);
}

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

.sr-only {
  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: 8px;
  left: 8px;
  z-index: var(--z-skip);
  padding: 12px 18px;
  font-weight: 700;
  color: var(--white);
  background: var(--ink-900);
  border-radius: var(--radius);
  transform: translateY(-200%);
}

.skip-link:focus {
  color: var(--white);
  transform: none;
}

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

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

/* The card prints the first letter of each word in brand blue. Wrap each word
   in a span and this picks out its initial. */
.initials > span {
  display: inline-block;
}

.initials > span::first-letter,
.initials > .amp {
  color: var(--blue-500);
}

/* 3. Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 52px;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--white);
  background: var(--color-primary);
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast),
    box-shadow var(--dur-fast), transform var(--dur-fast);
}

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

.btn:active {
  transform: translateY(1px);
}

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

.btn--white:hover {
  color: var(--ink-900);
  background: var(--blue-100);
}

.btn--white .icon {
  color: var(--blue-600);
}

.btn--outline {
  color: var(--color-primary);
  background: transparent;
  border-color: var(--color-primary);
}

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

.btn--outline-white {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.75);
}

.btn--outline-white:hover {
  color: var(--ink-900);
  background: var(--white);
  border-color: var(--white);
}

.btn--lg {
  min-height: 60px;
  padding: 1rem 2rem;
  font-size: 1.0625rem;
}

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

.btn--pill .icon {
  transition: transform var(--dur-fast);
}

.btn--pill:hover .icon {
  transform: translateX(4px);
}

.btn--caps {
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Stacked action buttons fill the row on small phones */
@media (max-width: 479.98px) {
  .hero__actions .btn,
  .page-hero__actions .btn,
  .cta-band__actions .btn {
    width: 100%;
  }
}

.btn__spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 700;
  text-decoration: none;
}

.text-link .icon {
  transition: transform var(--dur-fast);
}

.text-link:hover .icon {
  transform: translateX(4px);
}

/* 4. Header and navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--white);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--dur), border-color var(--dur);
}

.site-header.is-stuck {
  border-color: var(--slate-200);
  box-shadow: 0 10px 28px -18px rgba(14, 30, 54, 0.45);
}

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

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

.brand:hover {
  color: var(--ink-900);
}

.brand__mark {
  width: 54px;
  height: auto;
}

.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.1;
}

.site-header .brand__name > span::first-letter,
.site-header .brand__name > .amp {
  color: var(--blue-600);
}

.brand__tag {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.03em;
  color: var(--red-700);
}

.site-nav {
  margin-left: auto;
}

.site-nav__list,
.submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav a,
.site-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 14px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink-800);
  text-decoration: none;
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--dur-fast), background-color var(--dur-fast);
}

.site-nav a:hover,
.site-nav__toggle:hover {
  color: var(--blue-700);
  background: var(--blue-50);
}

.site-nav a[aria-current="page"],
.site-nav__toggle.is-current {
  color: var(--blue-700);
  box-shadow: inset 0 -3px 0 var(--blue-600);
  border-radius: var(--radius) var(--radius) 0 0;
}

.site-nav__toggle .icon {
  width: 18px;
  height: 18px;
  transition: transform var(--dur);
}

.has-menu {
  position: relative;
}

.has-menu.is-open .site-nav__toggle .icon {
  transform: rotate(180deg);
}

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: var(--z-menu);
  display: none;
  min-width: 290px;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.has-menu.is-open > .submenu,
html:not(.js) .has-menu:focus-within > .submenu,
html:not(.js) .has-menu:hover > .submenu {
  display: block;
}

/* Without JS the menu opens on hover, so it must touch its toggle */
html:not(.js) .submenu {
  top: 100%;
}

.submenu a {
  display: flex;
  width: 100%;
}

.site-header__meta {
  display: flex;
  flex: none;
  align-items: center;
  gap: 24px;
  margin-left: 12px;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  color: var(--ink-900);
  text-decoration: none;
}

.header-phone:hover {
  color: var(--blue-700);
}

.header-phone .icon {
  color: var(--blue-600);
}

.nav-burger {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: var(--ink-900);
  background: var(--blue-50);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-burger .icon {
  width: 26px;
  height: 26px;
}

.nav-burger .icon--close,
.nav-burger[aria-expanded="true"] .icon--open {
  display: none;
}

.nav-burger[aria-expanded="true"] .icon--close {
  display: block;
}

@media (min-width: 1024px) {
  .site-nav__list > li > a,
  .site-nav__toggle {
    white-space: nowrap;
  }
}

@media (max-width: 1023.98px) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  /* With JS the menu is an absolutely positioned panel, so the row never needs to wrap */
  .js .site-header__inner {
    flex-wrap: nowrap;
  }

  .site-header__meta {
    margin-left: auto;
  }

  .nav-burger {
    display: inline-flex;
  }

  /* Without JavaScript the menu simply sits open under the header row */
  .site-nav {
    order: 5;
    flex-basis: 100%;
    margin: 0;
    padding-bottom: 12px;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    max-height: calc(100dvh - var(--header-h));
    padding: 4px var(--gutter) 20px;
    overflow-y: auto;
    background: var(--white);
    border-top: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
  }

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

  html:not(.js) .nav-burger {
    display: none;
  }

  /* Without JS the menu sits open inside the header, so let the header scroll away */
  html:not(.js) .site-header {
    position: static;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-nav a,
  .site-nav__toggle {
    justify-content: space-between;
    width: 100%;
    min-height: 54px;
    padding: 12px 6px;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--slate-100);
    border-radius: 0;
  }

  .site-nav a[aria-current="page"],
  .site-nav__toggle.is-current {
    box-shadow: inset 3px 0 0 var(--blue-600);
    padding-left: 14px;
    border-radius: 0;
  }

  .submenu {
    position: static;
    min-width: 0;
    padding: 0 0 6px 18px;
    border: 0;
    box-shadow: none;
  }

  .submenu a {
    min-height: 48px;
    font-size: 1rem;
    font-weight: 400;
  }
}

@media (max-width: 599.98px) {
  .brand {
    flex: 0 1 auto;
    gap: 9px;
    min-width: 0;
  }

  .brand__mark {
    flex: none;
    width: 42px;
  }

  .brand__name {
    max-width: 9.5em;
    font-size: 1.0625rem;
  }

  .site-header .brand__tag {
    display: none;
  }

  .header-phone {
    justify-content: center;
    width: 48px;
    height: 48px;
    color: var(--white);
    background: var(--blue-600);
    border-radius: var(--radius);
  }

  .header-phone:hover {
    color: var(--white);
    background: var(--blue-700);
  }

  .header-phone .icon {
    width: 22px;
    height: 22px;
    color: inherit;
  }

  .header-phone span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
}

/* 5. Photo wash: brand blue laid over a photo, the way the reference site
      washes its hero. The photo is first multiplied into a mid blue, so its
      brightest whites can never be lighter than that blue, then the gradient
      goes on top. Worst case, white text still clears 4.5:1.
   ========================================================================== */
.photo-wash {
  --wash-start: rgba(15, 63, 122, 0.74);
  --wash-mid: rgba(21, 83, 154, 0.64);
  --wash-end: rgba(27, 99, 176, 0.62);
  background-color: #5a8fd0;
  background-image: linear-gradient(100deg, var(--wash-start) 0%, var(--wash-mid) 55%, var(--wash-end) 100%), var(--photo, none);
  background-position: center;
  background-size: cover;
  background-blend-mode: normal, multiply;
}

.photo--warewashing {
  --photo: url("../img/warewashing-line.webp");
}

.photo--station {
  --photo: url("../img/dishwashing-station.webp");
}

.photo--dishwasher {
  --photo: url("../img/hood-dishwasher.webp");
}

.photo--ovens {
  --photo: url("../img/combi-ovens.webp");
}

/* 6. Home hero
   ========================================================================== */
.hero {
  position: relative;
  isolation: isolate;
  color: var(--white);
}

.hero__bg,
.page-hero__bg,
.cta-band__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero__inner {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: calc(clamp(48px, 7vw, 96px) + var(--bar-overlap));
}

.hero h1 {
  max-width: 12.5em;
  margin-bottom: 0.22em;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(10, 22, 38, 0.35);
}

.hero__tag {
  margin-bottom: 0.7em;
  font-size: clamp(1.375rem, 1.05rem + 1.4vw, 2.125rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-200);
}

.hero__tag span {
  color: var(--white);
}

.hero__lead {
  max-width: 33em;
  margin: 0;
  font-size: var(--fs-lead);
}

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

@media (min-width: 900px) {
  /* The copy sits on the left, so the wash eases off towards the right and
     lets the photo show. Still 4.7:1 or better behind the widest text. */
  .hero__bg {
    --wash-end: rgba(27, 99, 176, 0.42);
  }
}

@media (max-width: 899.98px) {
  .hero__bg {
    background-image: linear-gradient(180deg, var(--wash-start) 0%, var(--wash-mid) 55%, var(--wash-end) 100%), var(--photo, none);
  }
}

/* 7. Call-back form bar (a white card overlapping the bottom of the hero)
   ========================================================================== */
.enquiry-bar {
  position: relative;
  z-index: 1;
  margin-top: calc(var(--bar-overlap) * -1);
}

.form--bar {
  gap: 16px;
  padding: clamp(20px, 3vw, 36px) clamp(18px, 3.2vw, 40px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.form--bar .form__title {
  font-size: clamp(1.625rem, 1.4rem + 0.8vw, 2rem);
  color: var(--blue-700);
}

.form__row {
  display: grid;
  gap: 14px 16px;
  align-items: start;
}

.form--bar .field__control {
  min-height: 52px;
  padding: 12px 14px;
}

.form--bar .field__control::placeholder {
  color: var(--slate-500);
  opacity: 1;
}

.form--bar .form__note {
  color: var(--color-text-muted);
}

.form__submit {
  width: 100%;
}

@media (min-width: 640px) {
  .form__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form__submit {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1000px) {
  .form__row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.5fr) auto;
  }

  .form__submit {
    grid-column: auto;
    width: auto;
  }
}

/* 8. Sections and headings
   ========================================================================== */
.section {
  padding-block: var(--section-y);
}

.section--tint {
  background: var(--color-tint);
}

.section--dark {
  color: #dfe6ef;
  background: var(--ink-900);
}

.section--dark h2,
.section--dark h3 {
  color: var(--white);
}

.section--flush-top {
  padding-top: 0;
}

.section-head {
  max-width: 780px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}

.section-head--left {
  margin-inline: 0;
  text-align: left;
}

.section-head h2 {
  margin-bottom: 0.3em;
}

.section-head p:last-child {
  margin-bottom: 0;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-700);
}

.section--dark .eyebrow,
.call-band .eyebrow,
.cta-band .eyebrow {
  color: var(--blue-300);
}

.lead {
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
}

.section--dark .lead {
  color: #c9d3df;
}

.section--dark a:not(.btn) {
  color: var(--blue-300);
}

.section--dark a:not(.btn):hover {
  color: var(--white);
}

.prose {
  max-width: 68ch;
}

.prose > :last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  gap: clamp(16px, 2.5vw, 32px);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

@media (max-width: 639.98px) {
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* 9. Service cards (solid brand blue, like the reference's solid tiles)
   ========================================================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.6vw, 36px);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(26px, 4vw, 46px);
  color: var(--white);
  background: var(--blue-600);
  border-radius: var(--radius-sm);
  transition: background-color var(--dur), box-shadow var(--dur), transform var(--dur);
}

.service-card:hover,
.service-card:focus-within {
  background: var(--blue-700);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-card__icon {
  width: 44px;
  height: 44px;
  color: var(--blue-200);
}

.service-card h3 {
  margin: 0;
  color: var(--white);
}

.service-card h3 a {
  color: inherit;
  text-decoration: none;
}

/* Stretch the heading link over the whole card */
.service-card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}

/* Move the focus ring from the link to the whole card, where :has() exists */
@supports selector(:has(a)) {
  .service-card h3 a:focus-visible {
    outline: none;
  }

  .service-card:has(a:focus-visible) {
    outline: 3px solid var(--ink-900);
    outline-offset: 3px;
  }
}

.service-card p {
  margin: 0;
}

.service-card__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  font-weight: 700;
}

.service-card__more .icon {
  transition: transform var(--dur);
}

.service-card:hover .service-card__more .icon {
  transform: translateX(5px);
}

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

/* 10. "Specialised In" (the back of the business card, as a section)
   ========================================================================== */
.spec {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}

.spec-list {
  margin: 0;
  padding: 0;
  list-style: none;
  columns: 2;
  column-gap: clamp(24px, 4vw, 56px);
}

.spec-list li {
  padding: 11px 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  break-inside: avoid;
}

.spec-list li::first-letter {
  color: var(--blue-500);
}

.spec__photos {
  display: grid;
  gap: 18px;
}

.spec__photos img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--white);
  border-radius: var(--radius-sm);
}

.spec__photos img:first-child {
  width: 88%;
}

.spec__photos img:last-child {
  width: 88%;
  margin-left: auto;
}

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

  .spec__photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec__photos img:first-child,
  .spec__photos img:last-child {
    width: 100%;
  }
}

@media (max-width: 479.98px) {
  .spec-list {
    columns: 1;
  }
}

/* Full-width list (no photo column beside it) */
.spec-list--wide {
  columns: 4;
}

@media (max-width: 1023.98px) {
  .spec-list--wide {
    columns: 3;
  }
}

@media (max-width: 719.98px) {
  .spec-list--wide {
    columns: 2;
  }
}

@media (max-width: 479.98px) {
  .spec-list--wide {
    columns: 1;
  }
}

/* 11. Split (image beside copy), checklist
   ========================================================================== */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}

.split__media {
  position: relative;
  isolation: isolate;
  margin: 0 18px 18px 0;
}

.split__media::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  background: var(--blue-600);
  border-radius: var(--radius-sm);
}

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

.split__badge {
  position: absolute;
  bottom: 22px;
  left: -14px;
  padding: 14px 20px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  background: var(--ink-900);
  border-left: 5px solid var(--blue-500);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}

.split__badge strong {
  display: block;
  font-size: 2.25rem;
  color: var(--blue-300);
}

.split--reverse .split__media {
  order: 2;
  margin: 0 0 18px 18px;
}

.split--reverse .split__media::before {
  inset: 18px 18px -18px -18px;
}

/* Reversed splits put the offset block on the left, so the badge moves right */
@media (min-width: 900px) {
  .split--reverse .split__badge {
    right: -14px;
    left: auto;
    border-right: 5px solid var(--blue-500);
    border-left: 0;
  }
}

.split .chips {
  margin-top: 24px;
}

.checklist {
  display: grid;
  gap: 12px;
  margin: 24px 0 32px;
  padding: 0;
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-weight: 600;
}

.checklist .icon {
  width: 28px;
  height: 28px;
  padding: 6px;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: 50%;
  stroke-width: 3;
}

.section--dark .checklist .icon {
  color: var(--white);
  background: var(--blue-600);
}

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

  .split--reverse .split__media {
    order: 0;
  }

  .split__badge {
    left: 12px;
  }
}

/* 12. Call band (dark strip with the phone number)
   ========================================================================== */
.call-band {
  position: relative;
  color: var(--white);
  background: var(--navy-900);
}

.call-band::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: var(--blue-500);
}

.call-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding-block: clamp(44px, 6vw, 76px);
}

.call-band h2 {
  margin-bottom: 0.25em;
  color: var(--white);
}

.call-band p {
  max-width: 44em;
  margin: 0;
  color: #d5deea;
}

.call-band__actions {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.big-phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  font-family: var(--font-display);
  font-size: clamp(2.125rem, 1.4rem + 3vw, 3.375rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: var(--white);
  text-decoration: none;
}

.big-phone:hover {
  color: var(--blue-300);
}

.big-phone .icon {
  width: 0.8em;
  height: 0.8em;
  color: var(--blue-300);
}

.call-band .text-link {
  color: var(--blue-300);
}

.call-band .text-link:hover {
  color: var(--white);
}

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

/* 13. Steps, chips, cards, features, FAQ
   ========================================================================== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding: 28px 26px 26px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-top: 4px solid var(--blue-600);
  border-radius: var(--radius-sm);
  counter-increment: step;
}

.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 2.875rem;
  font-weight: 700;
  line-height: 1;
  color: var(--blue-600);
}

.steps h3 {
  margin-bottom: 0.35em;
  font-size: 1.625rem;
}

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

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

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips--center {
  justify-content: center;
}

.chips li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-weight: 600;
  line-height: 1.3;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-pill);
}

.chips .icon {
  width: 18px;
  height: 18px;
  color: var(--blue-600);
}

.card {
  padding: clamp(22px, 3vw, 34px);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
}

.card--raised {
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}

.card > :last-child {
  margin-bottom: 0;
}

.feature {
  display: grid;
  gap: 10px;
  align-content: start;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 6px;
  color: var(--blue-700);
  background: var(--blue-100);
  border-radius: var(--radius);
}

.feature__icon .icon {
  width: 27px;
  height: 27px;
}

.feature h3 {
  margin: 0;
  font-size: 1.5rem;
}

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

.section--dark .feature p {
  color: #c9d3df;
}

.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-inline: auto;
}

.faq details {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 16px 22px;
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-800);
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-right: 4px;
  border-right: 3px solid var(--blue-600);
  border-bottom: 3px solid var(--blue-600);
  transform: translateY(-3px) rotate(45deg);
  transition: transform var(--dur);
}

.faq details[open] summary::after {
  transform: translateY(3px) rotate(-135deg);
}

.faq summary:hover {
  color: var(--blue-700);
}

.faq__answer {
  padding: 0 22px 20px;
  color: var(--color-text-muted);
}

.faq__answer > :last-child {
  margin-bottom: 0;
}

/* 14. Call-to-action band and inner-page hero
   ========================================================================== */
.cta-band {
  position: relative;
  isolation: isolate;
  color: var(--white);
}

.cta-band__inner {
  max-width: 860px;
  margin-inline: auto;
  padding-block: clamp(56px, 8vw, 100px);
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
}

.cta-band p {
  font-size: var(--fs-lead);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 28px;
}

.page-hero {
  position: relative;
  isolation: isolate;
  padding-block: clamp(44px, 7vw, 92px);
  color: var(--white);
}

.page-hero h1 {
  max-width: 17em;
  margin-bottom: 0.25em;
  color: var(--white);
  text-shadow: 0 2px 18px rgba(10, 22, 38, 0.35);
}

.page-hero__lead {
  max-width: 40em;
  margin: 0;
  font-size: var(--fs-lead);
}

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

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  padding: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  list-style: none;
}

.breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--blue-200);
}

.breadcrumb a {
  color: var(--white);
}

.breadcrumb a:hover {
  color: var(--blue-200);
}

/* 15. Forms (floating labels: the label stays visible above the value)
   ========================================================================== */
.form {
  display: grid;
  gap: 14px;
}

.form__title {
  margin: 0;
  font-size: 1.875rem;
  color: inherit;
}

.form__intro {
  margin: -6px 0 4px;
  font-size: var(--fs-sm);
}

.field {
  position: relative;
}

.field__control {
  display: block;
  width: 100%;
  min-height: 60px;
  padding: 26px 16px 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink-900);
  background: var(--white);
  border: 1.5px solid var(--slate-400);
  border-radius: var(--radius);
  appearance: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

textarea.field__control {
  min-height: 148px;
  padding-top: 30px;
  resize: vertical;
}

.field__control:hover {
  border-color: var(--blue-500);
}

.field__control:focus-visible {
  border-color: var(--blue-600);
}

.field__label {
  position: absolute;
  top: 19px;
  left: 17px;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--slate-600);
  pointer-events: none;
  transform-origin: left top;
  transition: transform var(--dur-fast), color var(--dur-fast);
}

.field__control:focus + .field__label,
.field__control:not(:placeholder-shown) + .field__label {
  font-weight: 600;
  color: var(--blue-700);
  transform: translateY(-12px) scale(0.8);
}

/* A textarea's padding scrolls with its text, so the floated label gets an
   opaque strip over the top padding */
textarea.field__control:focus + .field__label,
textarea.field__control:not(:placeholder-shown) + .field__label {
  top: 1.5px;
  right: 18px;
  left: 1.5px;
  padding: 5.5px 15.5px 6.5px;
  font-size: 0.8rem;
  background: var(--white);
  border-radius: 4px 0 0;
  transform: none;
}

.field__error {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin: 6px 0 0;
  padding: 7px 10px;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-error);
  background: var(--red-50);
  border-radius: var(--radius-sm);
}

.field.is-invalid .field__control {
  border-color: var(--red-600);
}

.form__note {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.form__status {
  margin: 0;
  padding: 12px 14px;
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink-900);
  background: var(--white);
  border-left: 5px solid var(--blue-600);
  border-radius: var(--radius-sm);
}

/* Stay rendered while empty so the live region exists before its text arrives */
.form__status:empty {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.form__status.is-success {
  background: var(--green-50);
  border-left-color: var(--color-success);
}

.form__status.is-error {
  background: var(--red-50);
  border-left-color: var(--red-600);
}

/* Spam trap: real visitors never see or tab to this field */
.hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* 16. Contact blocks
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.contact-list .feature__icon {
  margin: 0;
}

.contact-list__label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-list__value {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink-900);
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.contact-list__value {
  color: var(--blue-700);
}

a.contact-list__value:hover {
  color: var(--blue-800);
  text-decoration: underline;
}

.panel {
  padding: clamp(24px, 4vw, 44px);
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
  border-radius: var(--radius-sm);
}

.panel > :last-child {
  margin-bottom: 0;
}

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

/* 17. Footer
   ========================================================================== */
.site-footer {
  padding-top: clamp(48px, 7vw, 84px);
  font-size: var(--fs-sm);
  color: #c9d2de;
  background: var(--ink-900);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 60px);
}

.site-footer h2 {
  margin-bottom: 14px;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
}

.site-footer ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: #c9d2de;
  text-decoration: none;
}

.site-footer li > a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.site-footer a:hover {
  color: var(--white);
  text-decoration: underline;
}

.site-footer .icon {
  width: 18px;
  height: 18px;
  color: var(--blue-500);
}

.footer-brand .brand {
  color: var(--white);
}

.footer-brand .brand__mark {
  width: 64px;
}

.footer-brand .brand__name {
  font-size: 1.4375rem;
}

.footer-brand .brand__tag {
  font-size: 0.875rem;
  color: var(--red-400);
}

.footer-brand p {
  max-width: 34em;
  margin: 18px 0 0;
}

.footer-rec {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
}

.footer-rec::first-letter {
  color: var(--blue-500);
}

.site-footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 24px;
  justify-content: space-between;
  margin-top: clamp(36px, 5vw, 56px);
  padding-block: 20px;
  font-size: 0.875rem;
  color: #9aa6b6;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.site-footer__bar p {
  margin: 0;
}

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

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

/* 18. Mobile call bar
   ========================================================================== */
.callbar {
  display: none;
}

@media (max-width: 767.98px) {
  html {
    scroll-padding-bottom: 92px;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .callbar {
    position: fixed;
    inset: auto 0 0;
    z-index: var(--z-callbar);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--white);
    border-top: 1px solid var(--slate-200);
    box-shadow: 0 -10px 28px -16px rgba(14, 30, 54, 0.5);
  }

  .callbar .btn {
    padding-inline: 10px;
  }
}

/* 19. Motion
   ========================================================================== */
/* Uses the translate property, not transform, so it cannot cancel a
   component's own transform (the service-card hover lift) */
.js .reveal {
  opacity: 0;
  translate: 0 18px;
  transition: opacity var(--dur-slow) var(--ease-out), translate var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}

.js .reveal.is-visible {
  opacity: 1;
  translate: none;
}

/* Keep the card's own hover transitions alongside the reveal */
.js .service-card.reveal {
  transition: opacity var(--dur-slow) var(--ease-out) calc(var(--i, 0) * 60ms),
    translate var(--dur-slow) var(--ease-out) calc(var(--i, 0) * 60ms),
    background-color var(--dur), box-shadow var(--dur), transform var(--dur);
}

@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;
    transition-delay: 0s !important;
  }

  .js .reveal {
    opacity: 1;
    translate: none;
  }
}

@media print {
  .site-header,
  .callbar {
    position: static;
  }

  .js .reveal {
    opacity: 1;
    translate: none;
  }

  .callbar,
  .nav-burger,
  .skip-link {
    display: none;
  }
}
