/* ==========================================================================
   FERLAND AIR CONDITIONING AND REFRIGERATION, INC.
   Corporate site stylesheet
   Brand palette and typography are fixed by BRAND guidelines. Do not alter
   the token values in :root without approval.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Approved brand palette */
  --navy:        #0A1C33;
  --blue:        #0066FF;
  --cyan:        #00B5E2;
  --carbon:      #1E232A;
  --gray-light:  #E6E8EB;
  --white:       #FFFFFF;

  /* Derived neutrals (tints of the approved palette, no new hues) */
  --navy-soft:   #12294a;
  --navy-line:   rgba(255, 255, 255, .14);
  --ink:         var(--carbon);
  --ink-muted:   #59616b;
  --ink-faint:   #838b95;
  --hairline:    #dfe3e8;
  --tint:        #f5f7f9;
  --blue-dark:   #0052cc;
  --focus:       #00B5E2;

  /* Typography */
  --font-display: 'Rajdhani', 'Segoe UI Semibold', system-ui, sans-serif;
  --font-body:    'Montserrat', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 76px;
  --radius: 4px;
  --radius-lg: 6px;

  /* Motion */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --speed: .22s;
}

/* --------------------------------------------------------------------------
   2. Reset and base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  /* The header is fixed, so it no longer occupies flow space. This keeps the
     first section clear of it. It tracks --header-h, which shrinks at 620px. */
  padding-top: var(--header-h);

  /* `clip` contains overflow without creating a scroll container, so it cannot
     break sticky descendants the way `hidden` does. `hidden` stays first as the
     fallback for engines without `clip`. Applied to the root as well, because
     body-level clipping alone never contains fixed-position children. */
  overflow-x: hidden;
  overflow-x: clip;
}

html {
  overflow-x: hidden;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

/* Component display rules must never defeat the hidden attribute. */
[hidden] { display: none !important; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
  margin: 0;
  letter-spacing: .01em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }

ul { margin: 0; padding: 0; }
ul[role="list"] { list-style: none; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--navy);
  color: var(--white);
  padding: .85rem 1.35rem;
  font-weight: 600;
  font-size: .9rem;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  color: var(--white);
}

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   3. Brand lockup
   -------------------------------------------------------------------------- */
/* The official logo artwork. Never recoloured, never distorted: height is set
   and width stays auto so the original proportions are always preserved. */
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
  flex: none;
}
.brand picture { display: block; }
.brand__logo {
  height: 50px;
  width: auto;
  display: block;
}

/* On the navy footer the logo sits on its own white plate rather than being
   recoloured. A reversed/white version of the logo has not been supplied. */
.footer-logo {
  display: inline-block;
  background: var(--white);
  border-radius: var(--radius);
  padding: .95rem 1.2rem;
  line-height: 0;
}
.footer-logo picture { display: block; }
.footer-logo img {
  height: 44px;
  width: auto;
  display: block;
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease),
              border-color var(--speed) var(--ease), transform var(--speed) var(--ease);
  white-space: nowrap;
  text-align: center;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--hairline);
}
.btn--ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--tint); }

.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, .38);
}
.btn--outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

.btn--sm { padding: .72rem 1.25rem; font-size: .72rem; }
.btn--lg { padding:1.1rem 2.4rem; font-size: .82rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   5. Header and navigation
   -------------------------------------------------------------------------- */
/* Fixed rather than sticky. `overflow-x` on an ancestor turns that ancestor
   into the scroll container, which breaks `position: sticky` on iOS Safari;
   fixed is immune to that interaction. Because a fixed header leaves the flow,
   `body` carries a matching padding-top (see the base rules). */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow var(--speed) var(--ease), border-color var(--speed) var(--ease);
}
.site-header.is-stuck {
  box-shadow: 0 1px 18px rgba(10, 28, 51, .09);
}
.site-header__inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.site-nav__list a {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--navy);
  padding: .35rem 0;
  position: relative;
}
.site-nav__list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--speed) var(--ease);
}
.site-nav__list a:hover::after,
.site-nav__list a.is-active::after { transform: scaleX(1); }
.site-nav__list a.is-active { color: var(--blue); }

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.nav-toggle__bars { display: grid; gap: 5px; width: 20px; }
.nav-toggle__bars i {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 28, 51, .45);
  z-index: 140;
}


/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  min-height: min(78vh, 760px);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 1.6rem;
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  flex: none;
}
.eyebrow__sep { color: var(--hairline); }

.hero__title { margin-bottom: 1.75rem; }
.hero__title-main {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.1rem, 8.5vw, 5.6rem);
  letter-spacing: .085em;
  color: var(--navy);
  line-height: .98;
}
.hero__title-sub {
  display: block;
  margin-top: .85rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(.74rem, 1.7vw, .93rem);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.5;
}

.hero__lead {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.3vw, 2.15rem);
  line-height: 1.3;
  color: var(--navy);
  margin-bottom: 1.25rem;
  padding-left: 1.35rem;
  border-left: 3px solid var(--blue);
}
.hero__lead-accent { color: var(--blue); }

.hero__text {
  max-width: 46ch;
  color: var(--ink-muted);
  font-size: 1rem;
  margin-bottom: 2.25rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Trust line under the primary CTA. Deliberately quiet: it reassures without
   competing with the buttons above it. */
.hero__trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 1.35rem 0 0;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.hero__trust-icon {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--blue);
}
.hero__trust-sep { color: var(--gray-light); }

.hero__media { position: relative; align-self: stretch; display: flex; }
.hero__media > picture { display: block; width: 100%; min-width: 0; }
.hero__media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  /* Framed above centre so the face and the chest logo are never cropped. */
  object-position: 50% 20%;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(10, 28, 51, .16);
}
.hero__badge {
  position: absolute;
  left: -1.5rem;
  bottom: 2.25rem;
  background: var(--white);
  border-left: 3px solid var(--cyan);
  box-shadow: 0 14px 40px rgba(10, 28, 51, .16);
  padding: .95rem 1.35rem;
  display: block;
  border-radius: var(--radius);
}
.hero__badge-line {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.32;
  letter-spacing: .012em;
  color: var(--navy);
  white-space: nowrap;
}
.hero__badge-line--accent { color: var(--blue); }

/* --------------------------------------------------------------------------
   7. Section scaffolding
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(3.75rem, 8vw, 7rem); }
.section--tint { background: var(--tint); border-block: 1px solid var(--hairline); }

.section__head { max-width: 62ch; margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section__kicker {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .21em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.section__kicker::after {
  content: "";
  height: 1px;
  width: 46px;
  background: var(--cyan);
}
.section__kicker--light { color: var(--cyan); }
.section__kicker--light::after { background: rgba(0, 181, 226, .5); }

.section__title {
  font-size: clamp(1.75rem, 3.9vw, 2.7rem);
  letter-spacing: .005em;
}
.section__title--light { color: var(--white); }

/* --------------------------------------------------------------------------
   8. About
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.about__body p { color: var(--ink-muted); }
.about__body p:first-child {
  color: var(--ink);
  font-size: 1.06rem;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding-top: clamp(2.25rem, 4vw, 3rem);
  border-top: 1px solid var(--hairline);
  list-style: none;
}
.fact { display: flex; flex-direction: column; gap: .5rem; }
.fact__rule { width: 34px; height: 2px; background: var(--blue); margin-bottom: .35rem; }
.fact__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  color: var(--navy);
  line-height: 1.25;
}
.fact__label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* --------------------------------------------------------------------------
   9. Service cards
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 1.5rem;
  list-style: none;
}
.card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 2.1rem 1.85rem 2rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
              transform var(--speed) var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--blue), var(--cyan));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .3s var(--ease);
}
.card:hover {
  border-color: #cfd6de;
  box-shadow: 0 16px 40px rgba(10, 28, 51, .09);
  transform: translateY(-3px);
}
.card:hover::before { transform: scaleY(1); }

.card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background: rgba(0, 102, 255, .06);
  color: var(--blue);
  margin-bottom: 1.4rem;
}
.card__icon svg { width: 32px; height: 32px; }

.card__title {
  font-size: 1.24rem;
  margin-bottom: .7rem;
  letter-spacing: .015em;
}
.card__text { color: var(--ink-muted); font-size: .94rem; margin: 0; }

/* --------------------------------------------------------------------------
   10. Why Ferland
   -------------------------------------------------------------------------- */
.reasons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}
.reason {
  padding: 2.1rem 1.75rem 2.25rem;
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  transition: background var(--speed) var(--ease);
}
.reason:hover { background: var(--tint); }
.reason__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .16em;
  color: var(--cyan);
  margin-bottom: 1.1rem;
}
.reason__title { font-size: 1.16rem; margin-bottom: .6rem; }
.reason__text { color: var(--ink-muted); font-size: .93rem; margin: 0; }

/* --------------------------------------------------------------------------
   11. Technology band
   -------------------------------------------------------------------------- */
.tech {
  background: var(--navy);
  color: rgba(255, 255, 255, .82);
  position: relative;
  overflow: hidden;
}
.tech::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 181, 226, .07) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(rgba(0, 181, 226, .07) 1px, transparent 1px) 0 0 / 64px 64px;
  mask-image: radial-gradient(120% 90% at 80% 10%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 80% 10%, #000 0%, transparent 72%);
  pointer-events: none;
}
.tech__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.tech__text { color: rgba(255, 255, 255, .78); max-width: 56ch; }

/* The global link colour is the blue used on white; on the navy panel it does
   not carry enough contrast, so partner links take the section's cyan accent. */
.tech__text a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: .18em;
  text-decoration-thickness: 1px;
  transition: color .15s ease;
}
.tech__text a:hover,
.tech__text a:focus-visible { color: var(--white); }

.tech__badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 1.85rem 0 0;
  padding: 0;
  max-width: 56ch;
}
.tech__badges li {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .86);
  border: 1px solid rgba(0, 181, 226, .4);
  background: rgba(0, 181, 226, .07);
  border-radius: 999px;
  padding: .52rem .95rem;
  line-height: 1.35;
}

.tech__content .btn { margin-top: 1.85rem; }
.tech__media img { width: 100%; border-radius: var(--radius-lg); }

/* --------------------------------------------------------------------------
   12. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: var(--navy-soft);
  color: var(--white);
  padding-block: clamp(2.75rem, 5vw, 4rem);
  border-top: 1px solid rgba(0, 181, 226, .25);
}
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band__copy { max-width: 62ch; }
.cta-band__title {
  color: var(--white);
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  margin-bottom: .55rem;
}
.cta-band__text { color: rgba(255, 255, 255, .76); margin: 0; }

/* --------------------------------------------------------------------------
   13. Contact
   -------------------------------------------------------------------------- */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact__company {
  font-size: 1.35rem;
  line-height: 1.3;
  margin-bottom: .5rem;
}
.contact__area {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 2rem;
}

.contact__list { margin: 0 0 2rem; }
.contact__item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 1rem;
  padding-block: .85rem;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
}
.contact__item:last-child { border-bottom: 1px solid var(--hairline); }
.contact__item dt {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.contact__item dd { margin: 0; font-size: .97rem; color: var(--navy); font-weight: 500; }

.contact__note {
  font-size: .78rem;
  color: var(--ink-faint);
  letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   14. Form
   -------------------------------------------------------------------------- */
.contact__form-wrap {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  box-shadow: 0 18px 50px rgba(10, 28, 51, .06);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  gap: 1.15rem;
}

.field { margin-bottom: 1.15rem; min-width: 0; }
.field > label,
.field > legend {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: .5rem;
  padding: 0;
}
.req { color: var(--blue); }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: .82rem .95rem;
  transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.6; }
.field select { appearance: none; cursor: pointer; padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2359616b' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px 8px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 255, .13);
}
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible { outline: none; }

.field--fieldset { border: 0; margin-inline: 0; padding: 0; }
.choices { display: flex; gap: .75rem; flex-wrap: wrap; }
.choice {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: .6rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: .78rem 1rem;
  cursor: pointer;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
  transition: border-color var(--speed) var(--ease), background var(--speed) var(--ease);
}
.choice input { accent-color: var(--blue); width: 17px; height: 17px; margin: 0; flex: none; }
.choice:hover { border-color: #c8d0da; }
.choice:has(input:checked) { border-color: var(--blue); background: rgba(0, 102, 255, .045); }

.field__error {
  margin: .45rem 0 0;
  font-size: .8rem;
  font-weight: 500;
  color: #c0392b;
  min-height: 0;
}
.field__error:empty { display: none; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: #c0392b; }

/* Honeypot: kept in the accessibility tree off-screen, invisible to humans */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__status {
  margin: 1rem 0 0;
  padding: .95rem 1.1rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 500;
  display: none;
}
.form__status.is-visible { display: block; }
.form__status.is-success {
  background: rgba(0, 181, 226, .09);
  border-left: 3px solid var(--cyan);
  color: var(--navy);
}
.form__status.is-error {
  background: rgba(192, 57, 43, .07);
  border-left: 3px solid #c0392b;
  color: #8e2b20;
}

.form__legal {
  margin: 1rem 0 0;
  font-size: .76rem;
  color: var(--ink-faint);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, .72);
  padding-top: clamp(2.75rem, 5vw, 4.25rem);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.25rem, 4vw, 3rem);
}
/* "Est. 1970" is part of the logo artwork itself, so it is not repeated here. */
.site-footer__area {
  font-size: .85rem;
  color: rgba(255, 255, 255, .6);
  margin: 1.25rem 0 0;
}
.site-footer__trust {
  margin: .45rem 0 0;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--cyan);
}

.site-footer__heading {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.15rem;
}
.site-footer ul { list-style: none; display: grid; gap: .7rem; }
.site-footer a { color: rgba(255, 255, 255, .72); font-size: .9rem; }
.site-footer a:hover { color: var(--cyan); }
.site-footer li { font-size: .9rem; }

.site-footer__bottom {
  border-top: 1px solid var(--navy-line);
  padding-block: 1.5rem;
}
.site-footer__bottom p {
  margin: 0;
  font-size: .78rem;
  color: rgba(255, 255, 255, .52);
}

/* --------------------------------------------------------------------------
   16. WhatsApp floating button
   -------------------------------------------------------------------------- */
.wa-fab {
  position: fixed;
  /* Insets are added to the safe area so the button clears the iPhone home
     indicator and any rounded corner, in portrait and landscape alike. */
  right: calc(clamp(1rem, 3vw, 1.75rem) + env(safe-area-inset-right, 0px));
  bottom: calc(clamp(1rem, 3vw, 1.75rem) + env(safe-area-inset-bottom, 0px));
  max-width: calc(100vw - 2rem);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  background: #25D366;
  color: #fff;
  padding: .85rem 1.15rem;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(10, 28, 51, .26);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  transition: transform var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.wa-fab:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(10, 28, 51, .32);
}
.wa-fab__icon { width: 24px; height: 24px; flex: none; }
.wa-fab__label { white-space: nowrap; }

@media (max-width: 560px) {
  .wa-fab { padding: .9rem; }
  .wa-fab__label {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

/* --------------------------------------------------------------------------
   17. Responsive
   -------------------------------------------------------------------------- */
/* 6 bordered cells. 3x2 on desktop, 2x3 on tablet, single column on phones:
   every breakpoint divides evenly, so no empty cell is ever left showing.
   The previous full-width span on the last child is gone with the fifth cell
   that made it necessary. */
@media (max-width: 1180px) {
  .reasons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .reasons { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__media { order: -1; }
  /* Stacked layout: constrain the width and honour the photograph's own
     aspect ratio, so the full frame is shown and nothing is cropped away. */
  .hero__media {
    max-width: 470px;
    width: 100%;
    margin-inline: auto;
  }
  .hero__media img {
    min-height: 0;
    height: auto;
    max-height: none;
    aspect-ratio: 1111 / 1416;
    object-position: 50% 50%;
  }
  /* Moved onto the sky, clear of the technician and the equipment. */
  .hero__badge { left: 1rem; right: auto; top: 1rem; bottom: auto; }
  .about__grid { grid-template-columns: 1fr; }
  .tech__grid { grid-template-columns: 1fr; }
  .tech__media { order: -1; }
  .contact__grid { grid-template-columns: 1fr; }
  .br-md { display: none; }
}

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr; gap: 1.5rem; }
  .fact { border-left: 2px solid var(--gray-light); padding-left: 1.1rem; }
  .fact__rule { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }

  /* Popup panel under the always-visible header.
     `display: none` while closed is deliberate: the previous drawer was parked
     off-screen with translateX(100%), and because it is fixed-position the
     body's overflow-x could not clip it. That single element added 320px of
     horizontal scroll at every mobile width, which in turn pushed the WhatsApp
     button out of view. A panel that does not exist while closed cannot
     overflow anything. */
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    z-index: 150;
    display: none;
    width: 100%;
    max-width: 100vw;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--white);
    border-bottom: 1px solid var(--hairline);
    box-shadow: 0 20px 44px rgba(10, 28, 51, .20);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: .35rem var(--gutter) calc(1.5rem + env(safe-area-inset-bottom, 0px));
  }
  .site-nav:focus { outline: none; }
  .site-nav.is-open {
    display: flex;
    animation: navDrop .2s var(--ease);
  }
  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list li { border-bottom: 1px solid var(--hairline); }
  .site-nav__list a { display: block; padding: 1rem 0; font-size: .95rem; }
  .site-nav__list a::after { display: none; }
  .site-nav__cta { margin-top: 1.75rem; }
}

@media (max-width: 620px) {
  :root { --header-h: 66px; }
  .brand__logo { height: 36px; }
  .footer-logo { padding: .8rem 1rem; }
  .footer-logo img { height: 38px; }
  .tech__badges li { font-size: .64rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__badge { padding: .8rem 1rem; }
  .hero__badge-line { font-size: .88rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .contact__item { grid-template-columns: 1fr; gap: .2rem; }
  .cta-band__inner .btn { width: 100%; }
}

/* --------------------------------------------------------------------------
   18. Motion and print preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-header, .wa-fab, .nav-backdrop, .hero__actions, .cta-band, .contact__form-wrap { display: none; }
  body { color: #000; }
  .tech, .site-footer { background: #fff; color: #000; }
  .section__title--light, .cta-band__title { color: #000; }
}
