/* ================================================================
   Borges Plumbing & Heating production styles
   Brand source: truck magnet: dark navy, chrome lettering,
   electric blue pipe in the "B", water-drop icons.
   Display: Chakra Petch · Body: Barlow
   Signature motif: the pipe rule (blue line + chrome coupling).
   ================================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* color */
  --navy-950: #080d16;
  --navy-900: #0c1420;
  --navy-800: #131e2e;
  --line: rgba(185, 194, 206, 0.14);
  --steel-300: #b9c2ce;
  --steel-500: #8592a3;
  --white: #f4f7fa;
  /* blue scale derived from the logo (pipe #37628c, tagline #2f5a85):
     same hue family, saturation tuned per surface so CTAs still read as clickable */
  --blue-500: #2273c3; /* primary: buttons, links, active states */
  --blue-400: #4d99e6; /* lighter tint: accents on dark backgrounds */
  --blue-600: #1b5c9e; /* hover / pressed */
  --blue-steel: #37628c; /* literal logo blue: chips, borders, tints */

  /* chrome lettering, from the magnet */
  --chrome: linear-gradient(180deg, #f7fafc 0%, #cfd8e2 38%, #8e9aa9 52%, #dfe6ee 66%, #f2f6fa 100%);

  /* light sections (hero stays dark, content goes light) */
  --paper: #f5f7fa;
  --paper-2: #ffffff;
  --ink: #101b2c;
  --ink-soft: #46556a;
  --line-dark: rgba(16, 27, 44, 0.14);

  /* type */
  --font-display: "Chakra Petch", sans-serif;
  --font-body: "Barlow", sans-serif;

  /* layout */
  --container: 1280px;
  --edge: 2.5rem; /* fixed gutter for the full-bleed navbar + hero */
  --nav-h: 76px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--steel-300);
  background: var(--navy-950);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 5%;
  padding-right: 5%;
}

a { color: inherit; }

.ic { width: 1.1em; height: 1.1em; flex: none; }

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

/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 0.7rem 1.3rem;
  border-radius: 4px;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}
.btn:active { transform: translateY(1px); }

.btn-call,
.btn-solid {
  background: var(--blue-500);
  color: var(--white);
}
.btn-call:hover,
.btn-solid:hover { background: var(--blue-600); }

.btn-ghost {
  border: 1px solid rgba(185, 194, 206, 0.35);
  color: var(--white);
}
.btn-ghost:hover { border-color: var(--steel-300); background: rgba(185, 194, 206, 0.07); }

/* ghost button on light sections */
.section .btn-ghost {
  border-color: rgba(16, 27, 44, 0.35);
  color: var(--ink);
}
.section .btn-ghost:hover { border-color: var(--ink); background: rgba(16, 27, 44, 0.05); }

.btn-lg {
  font-size: 1.05rem;
  padding: 0.95rem 1.7rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

/* ---------------------------------------------------------------
   Navbar
   --------------------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

/* solid once the page scrolls (js/main.js toggles .scrolled) */
.navbar.scrolled,
.navbar.menu-open {
  background: rgba(8, 13, 22, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}

/* full-width bar: logo at the left edge, links centered, phone at the right edge */
.navbar-inner {
  padding: 0 var(--edge);
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

/* real Borges B mark (transparent PNG cut from the brand logo) */
.brand-mark {
  height: 44px;
  width: auto;
  display: block;
  flex: none;
}

.brand-word { display: flex; flex-direction: column; line-height: 1.1; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.22em;
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-top: 0.2em;
}

.nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--steel-300);
  transition: color 0.15s ease;
}
.nav-link:hover { color: var(--white); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 0 auto;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.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); }

/* ---------------------------------------------------------------
   Hero
   --------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--navy-950) url("../assets/hero.jpg") center / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-bg::after {
  /* vignette for text readability + corner burn to hide the baked-in flare */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(45% 40% at 0% 100%, rgba(8, 13, 22, 0.85) 0%, transparent 70%),
    linear-gradient(180deg, rgba(8, 13, 22, 0.25) 0%, rgba(8, 13, 22, 0.65) 100%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  max-height: 64rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  /* full-bleed: override .container so the hero uses the whole screen */
  max-width: none;
  padding-left: var(--edge);
  padding-right: var(--edge);
  padding-top: 7rem;
  padding-bottom: 4.5rem;
}
.hero-grid > * { min-width: 0; }

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 1.4rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.05rem, 5.75vw - 0.46rem, 4.8rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.hero-title .chrome {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title .accent { color: var(--blue-500); }

/* signature: the pipe rule: a blue line with a chrome coupling,
   straight out of the "B" in the logo */
/* social proof strip under the headline */
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 0.9rem;
  margin-top: 1.6rem;
}

.stars { display: inline-flex; gap: 0.2rem; }
.stars svg {
  width: 19px;
  height: 19px;
  fill: #fbbc04;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
}

.proof-text {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  color: var(--steel-300);
}
.proof-text strong { color: var(--white); font-weight: 600; }

.proof-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--steel-500);
}

.pipe-rule {
  margin-top: 2rem;
  height: 5px;
  width: min(380px, 55%);
  border-radius: 2.5px;
  background: var(--blue-500);
  transform-origin: left center;
  animation: pipe-fill 0.9s cubic-bezier(0.2, 0.7, 0.3, 1) 0.45s backwards;
}

.hero-main { align-self: start; }

.hero-side {
  align-self: end;
  width: 100%;
  max-width: 32rem;
  justify-self: end;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.hero-copy {
  font-size: 1.15rem;
  color: var(--steel-300);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}


.tel-short { display: none; }

.hero-license {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--steel-500);
}
.hero-license .ic { color: var(--blue-400); }

/* scroll cue fills the dead bottom-left corner */
.scroll-cue {
  position: absolute;
  left: var(--edge);
  bottom: 2rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--steel-500);
  transition: color 0.2s ease;
}
.scroll-cue:hover { color: var(--white); }
.scroll-cue svg {
  width: 18px;
  height: 18px;
  animation: cue-bob 2s ease-in-out infinite;
}
@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (min-width: 1500px) {
  .hero-copy { font-size: 1.25rem; }
}

@media (max-height: 950px) {
  .hero-grid { padding-top: 5rem; }
}

/* hero load sequence */
.hero-main > *,
.hero-side > * {
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}
.hero-main .eyebrow    { animation-delay: 0.05s; }
.hero-main .hero-title { animation-delay: 0.15s; }
.hero-main .hero-proof { animation-delay: 0.3s; }
.hero-side .hero-copy    { animation-delay: 0.5s; }
.hero-side .hero-actions { animation-delay: 0.6s; }
.hero-side .hero-license { animation-delay: 0.7s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes pipe-fill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-main > *, .hero-side > *, .pipe-rule { animation: none; }
  .scroll-cue svg { animation: none; }
}

/* ---------------------------------------------------------------
   Sections (shared) - light theme after the dark hero
   --------------------------------------------------------------- */
.section {
  padding: 6rem 0;
  background: var(--paper);
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-dark);
}
.section-alt { background: var(--paper-2); }

/* dark band variant: breaks up the light run mid-page */
.section-dark {
  background:
    repeating-linear-gradient(
      -55deg,
      transparent 0 90px,
      rgba(185, 194, 206, 0.04) 90px 92px
    ),
    var(--navy-900);
  color: var(--steel-300);
  border-bottom: 1px solid var(--line);
}
.section-dark .section-title {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-dark .tagline { color: var(--blue-400); }

.section-intro { max-width: 36rem; margin-bottom: 4rem; }

.tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 0.9rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
  color: var(--ink);
}
.section .tagline { color: var(--blue-600); }

.section-lede { font-size: 1.1rem; }

/* ---------------------------------------------------------------
   Trust bar (03)
   --------------------------------------------------------------- */
.trustbar {
  background: var(--navy-900);
  border-bottom: 1px solid var(--line);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

.trust-item {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  color: var(--steel-300);
  border-left: 1px solid var(--line);
}
.trust-item:first-child { border-left: 0; }

/* ---------------------------------------------------------------
   Services (04 · Layout 620 structure)
   --------------------------------------------------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-dark);
}

.service {
  padding: 2.5rem 2rem 2.5rem 0;
  border-bottom: 1px solid var(--line-dark);
}
.service:nth-child(3n + 2),
.service:nth-child(3n) {
  border-left: 1px solid var(--line-dark);
  padding-left: 2rem;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 1.4rem;
  border-radius: 8px;
  border: 1px solid rgba(55, 98, 140, 0.32);
  background: rgba(34, 115, 195, 0.10);
}
.service-icon svg {
  width: 26px;
  height: 26px;
  fill: var(--blue-600);
}

.service h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.service p { font-size: 0.98rem; }

#services .btn-row { margin-top: 3rem; }

/* ---------------------------------------------------------------
   The Borges Standard (05 · zigzag variation)
   --------------------------------------------------------------- */
.zig-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4.5rem;
}
.zig-row:last-of-type { margin-bottom: 0; }
.zig-row.rev .zig-content { order: 2; }

.zig-content .prop-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 1.2rem;
}
.zig-content .prop-icon svg { width: 22px; height: 22px; }

.zig-content h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.7rem;
}

.zig-media img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line-dark);
  display: block;
}

.section-alt .btn-row.centered { margin-top: 4rem; }

.prop-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  border: 1px solid rgba(55, 98, 140, 0.32);
  background: rgba(34, 115, 195, 0.10);
}
.prop-icon svg { width: 18px; height: 18px; fill: var(--blue-600); }

/* ---------------------------------------------------------------
   Recent work (06 · Gallery 8 structure)
   --------------------------------------------------------------- */
.section-intro.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.btn-row.centered { justify-content: center; margin-top: 3rem; }

/* flex rather than grid so an incomplete final row centres instead of
   hanging left — the tile count isn't always a multiple of 4. */
.work-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
}
.work-grid > * { flex: 0 1 calc(25% - 0.9rem); }

.work-tile {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line-dark);
}
.work-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.work-tile:hover img { transform: scale(1.04); }

/* ---------------------------------------------------------------
   About (07 · Layout 3 structure)
   --------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}
.about-copy { margin-bottom: 1.2rem; }
.about-grid .btn-row { margin-top: 1.8rem; }

.about-media img {
  width: 100%;
  /* height:auto is required — without it the img's height="1250" attribute
     applies as a presentational hint and stretches the photo vertically. */
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line-dark);
  display: block;
}

/* ---------------------------------------------------------------
   Service area (08)
   --------------------------------------------------------------- */
.area-wrap { text-align: center; max-width: 46rem; }

.area-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem;
  margin: 2rem 0 1.5rem;
}
.area-list li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  padding: 0.45rem 1rem;
  border: 1px solid rgba(185, 194, 206, 0.3);
  border-radius: 999px;
  background: rgba(77, 153, 230, 0.14);
}
.area-note { font-size: 0.95rem; color: var(--steel-500); }

/* ---------------------------------------------------------------
   FAQ (08b · FAQ 2 structure)
   --------------------------------------------------------------- */
.faq-wrap { max-width: 50rem; }

.faq-list { border-top: 1px solid var(--line-dark); }

.faq-item { border-bottom: 1px solid var(--line-dark); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.2rem 2.5rem 1.2rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-600); }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--blue-600);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { padding: 0 2.5rem 1.3rem 0; }

/* answer slides in on open */
.faq-item[open] p { animation: faq-open 0.35s cubic-bezier(0.2, 0.7, 0.3, 1); }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .faq-item[open] p { animation: none; }
  .faq-item summary::after { transition: none; }
  .work-tile img { transition: none; }
}

.faq-cta { margin-top: 3rem; text-align: center; }
.faq-cta .btn-row { justify-content: center; }
.faq-cta h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 1rem;
}

/* ---------------------------------------------------------------
   Contact (09 · Contact 5 structure)
   --------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--ink);
  font-weight: 500;
}
.contact-list .ic { color: var(--blue-600); }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: 2rem;
  background: var(--paper-2);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line-dark);
  border-radius: 5px;
  background: var(--paper);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--blue-500);
  outline-offset: 0;
  border-color: transparent;
}
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; }
.form-note { font-size: 0.82rem; color: var(--steel-500); }

/* honeypot: hidden from people, visible to bots */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-status {
  font-size: 0.9rem;
  line-height: 1.5;
  padding: 0.8rem 1rem;
  border-radius: 5px;
}
.form-status.is-ok {
  color: #14532d;
  background: #e8f6ee;
  border: 1px solid #bfe3cd;
}
.form-status.is-error {
  color: #7f1d1d;
  background: #fdecec;
  border: 1px solid #f3c3c3;
}
.form-status a { color: inherit; font-weight: 600; }

.contact-form button[disabled] { opacity: 0.75; cursor: wait; }

.form-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line-dark);
  padding-top: 1rem;
}
.form-trust .ic { color: var(--blue-600); }

/* value stack: defuses the price question at the decision point */
.value-stack {
  margin-top: 2.2rem;
  padding: 1.4rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line-dark);
  border-left: 3px solid var(--blue-500);
  border-radius: 6px;
}
.value-stack-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.value-stack ul { list-style: none; display: grid; gap: 0.45rem; }
.value-stack li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
}
.value-stack li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.55em;
  height: 0.3em;
  border-left: 2px solid var(--blue-600);
  border-bottom: 2px solid var(--blue-600);
  transform: rotate(-45deg);
}

/* ---------------------------------------------------------------
   Footer (10 · Footer 3 structure) - back to dark
   --------------------------------------------------------------- */
.footer {
  background: var(--navy-950);
  padding-top: 4.5rem;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-contact {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  line-height: 1.9;
}
.footer-contact a { color: var(--steel-300); text-decoration: none; }
.footer-contact a:hover { color: var(--white); }

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.2rem;
  color: var(--steel-300);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-social:hover { color: var(--white); }

.footer-heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  font-size: 0.95rem;
}
.footer-links a { color: var(--steel-300); text-decoration: none; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
  font-size: 0.82rem;
  color: var(--steel-500);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-credit a {
  color: var(--steel-300);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-credit a:hover { color: var(--white); }

/* ---------------------------------------------------------------
   Scroll reveal (js adds .in when a .reveal enters the viewport)
   --------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.js .reveal.in { opacity: 1; transform: none; }

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

/* ---------------------------------------------------------------
   Mobile sticky call bar
   --------------------------------------------------------------- */
.mobile-callbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 110;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1rem 5%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--white);
  background: var(--blue-500);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.mobile-callbar:active { background: var(--blue-600); }


/* mobile-only call button inside the hamburger menu */
.nav-call { display: none; }

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 100%;
    gap: 2.5rem;
    padding-top: calc(var(--nav-h) + 1.5rem);
    padding-bottom: 4.5rem;
    min-height: calc(100svh - 60px);
    /* center the whole content block vertically on phones */
    align-content: center;
  }
  .hero-side {
    justify-self: stretch;
    align-self: start;
    max-width: 100%;
  }
}

@media (max-width: 560px) {
  /* keep the two CTAs side by side on phones: shorter call label, 50/50 split */
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .btn { flex: 1; padding-left: 0.5rem; padding-right: 0.5rem; font-size: 0.95rem; }
  .tel-full { display: none; }
  .tel-short { display: inline; }
}

@media (max-width: 900px) {
  .trust-grid { grid-template-columns: 1fr 1fr; row-gap: 0.9rem; }
  .trust-item { border-left: 0; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service:nth-child(3n + 2),
  .service:nth-child(3n) { border-left: 0; padding-left: 0; }
  .service:nth-child(2n) { border-left: 1px solid var(--line); padding-left: 2rem; }
}

@media (max-width: 900px) {
  .work-grid > * { flex: 0 1 calc(50% - 0.6rem); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-media { order: -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .zig-row { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 3rem; }
  .zig-row .zig-media { order: -1; }
  .zig-row.rev .zig-content { order: 0; }
}

@media (max-width: 600px) {
  .section { padding: 4rem 0; }
  .services-grid { grid-template-columns: 1fr; }
  .service { padding-right: 0; }
  .service:nth-child(2n) { border-left: 0; padding-left: 0; }
  .form-row { grid-template-columns: 1fr; }


  /* the middot orphans onto its own line once the proof strip wraps */
  .proof-sep { display: none; }
  .hero-proof { gap: 0.5rem 0.75rem; }

  /* full-width buttons on phones (hero pair keeps its own 50/50 rule) */
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .contact-form .btn { justify-self: stretch; width: 100%; }
}

@media (max-width: 820px) {
  .nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 5% 1.5rem;
    background: var(--navy-900);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav-link { padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .navbar-inner { padding: 0 5%; }

  /* header call button moves into the menu; the sticky bottom bar
     keeps the call action on screen at all times anyway */
  .nav-actions .btn-call { display: none; }
  .nav-call {
    display: flex;
    width: 100%;
    margin-top: 1.4rem;
    padding: 0.95rem 1.3rem;
    font-size: 1rem;
  }

  .mobile-callbar { display: flex; }
  body { padding-bottom: 58px; } /* room for the call bar */
}