/* ==========================================================================
   LS Plumbing & Heating
   Brand: blue and red from the logo, Rockwell headings to match the wordmark.
   ========================================================================== */

@font-face {
  font-family: "Rockwell";
  src: url("../fonts/rockwell-regular.e1f102d2a73b.woff2") format("woff2"),
    url("../fonts/ROCK.fcca3a4a6df1.TTF") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Rockwell";
  src: url("../fonts/rockwell-bold.071cf9d1ed62.woff2") format("woff2"),
    url("../fonts/Rockwell-Bold.b302ceccfeb4.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Brand */
  --blue: #0b6fb7;
  --blue-dark: #095a96;
  --blue-tint: #e8f2fa;
  --red: #ba2d3f;
  --red-dark: #9c2433;
  --red-tint: #fbecee;
  --navy: #0a2540;

  /* Neutrals */
  --ink: #14212e;
  --text: #3d4a58;
  --muted: #667382;
  --line: #dde4eb;
  --surface: #f4f7fa;
  --white: #ffffff;

  --whatsapp: #128c7e;
  --success: #17633a;

  --font-head: "Rockwell", "Roboto Slab", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06), 0 2px 8px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 8px 24px rgba(10, 37, 64, 0.1);
  --shadow-lg: 0 18px 48px rgba(10, 37, 64, 0.16);

  --header-height: 76px;
}

/* --- Base ---------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  /* Keeps headings clear of the sticky header when jumping to a section. */
  scroll-padding-top: calc(var(--header-height) + 16px);
  -webkit-text-size-adjust: 100%;
}

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

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.15;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
}

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

a {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid rgba(11, 111, 183, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

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

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

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.65rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease,
    transform 0.15s ease, box-shadow 0.15s ease;
}

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

.btn--primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(186, 45, 63, 0.28);
}

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

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

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

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

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

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--white);
}

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

.btn--outline {
  border-color: var(--blue);
  background: var(--white);
  color: var(--blue);
}

.btn--outline:hover {
  background: var(--blue-tint);
}

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

.btn--lg {
  min-height: 54px;
  padding: 0.85rem 1.6rem;
  font-size: 1.0625rem;
}

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

.btn[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.btn.is-loading::before {
  content: "";
  width: 1.1em;
  height: 1.1em;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.text-link:hover {
  border-bottom-color: currentColor;
}

/* --- Top bar ------------------------------------------------------------- */

.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.875rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 40px;
}

.topbar ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
}

.topbar li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.topbar .icon {
  color: #7fb9e6;
}

.topbar a {
  color: inherit;
  text-decoration: none;
}

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

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: var(--header-height);
}

.brand {
  flex: none;
}

.brand img {
  width: auto;
  height: 46px;
}

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

.site-nav ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
}

.site-nav li a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.site-nav li a:hover {
  background: var(--blue-tint);
  color: var(--blue);
}

.site-nav-actions {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
}

.header-phone-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
  transition: background-color 0.15s ease, color 0.15s ease;
}

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

.header-phone-text small {
  display: block;
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--muted);
}

.header-phone-text strong {
  display: block;
  font-size: 1.0625rem;
  line-height: 1.25;
  color: var(--navy);
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
  cursor: pointer;
}

.nav-toggle-bars {
  display: grid;
  gap: 5px;
  width: 22px;
}

.nav-toggle-bars span {
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

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

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

@media (max-width: 1080px) {
  .topbar {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .header-actions {
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    max-height: calc(100vh - var(--header-height));
    max-height: calc(100dvh - var(--header-height));
    margin: 0;
    padding: 0.25rem 1.25rem 1.5rem;
    overflow-y: auto;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }

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

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav li a {
    padding: 1rem 0.25rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.0625rem;
  }

  .site-nav li a:hover {
    background: none;
  }

  .site-nav-actions {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.25rem;
  }
}

@media (max-width: 720px) {
  :root {
    --header-height: 64px;
  }

  .brand img {
    height: 38px;
  }

  .header-inner {
    gap: 0.75rem;
  }

  .header-actions {
    gap: 0.6rem;
  }

  /* The sticky bar at the bottom of the screen carries these on phones. */
  .header-quote,
  .header-phone-text {
    display: none;
  }
}

/* --- Hero ---------------------------------------------------------------- */

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(500px, 76vh, 740px);
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

/* Darkens the footage so the white heading is readable over any frame. */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
      rgba(7, 28, 49, 0.94) 0%,
      rgba(7, 28, 49, 0.82) 42%,
      rgba(7, 28, 49, 0.45) 100%);
}

.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The video is decoration: it must never show controls or take a tap. */
.hero-video {
  pointer-events: none;
}

.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

/* Set by main.js when the browser refuses to autoplay: the still image
   underneath shows instead of a play button. */
.hero-video.is-hidden {
  display: none;
}

/* Fills the hero's height so the picture of Liam can stand on its bottom edge. */
.hero-content {
  --hero-pad-bottom: 7.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  align-self: stretch;
  gap: 2rem clamp(1.5rem, 4vw, 4rem);
  padding-block: 4.5rem var(--hero-pad-bottom);
}

/* Pulled down through the hero's bottom padding. The trust strip overlaps the
   last 3.5rem, which hides where the drawing is cut off at the waist. */
.hero-owner {
  position: relative;
  align-self: end;
  margin: 0 0 calc(-1 * var(--hero-pad-bottom));
}

.hero-owner img {
  width: clamp(270px, 33vw, 430px);
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.35));
}

.hero-owner figcaption {
  position: absolute;
  left: -0.75rem;
  bottom: 5.25rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.hero-owner figcaption strong {
  margin-right: 0.3rem;
  color: var(--navy);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero h1 {
  max-width: 17ch;
  font-size: clamp(2.2rem, 5.2vw, 3.7rem);
  line-height: 1.07;
  color: var(--white);
}

.hero-lead {
  max-width: 54ch;
  margin: 1.25rem 0 2rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgba(255, 255, 255, 0.92);
}

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

/* No room beside the text: Liam stands underneath it instead. */
@media (max-width: 820px) {
  .hero-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-owner {
    justify-self: center;
  }

  .hero-owner img {
    width: 240px;
  }

  /* Hangs off the side so the name tag does not cover the smaller drawing. */
  .hero-owner figcaption {
    left: -1.75rem;
    bottom: 4.5rem;
    font-size: 0.8125rem;
  }
}

@media (max-width: 560px) {
  .hero-content {
    --hero-pad-bottom: 6.5rem;
    padding-top: 3rem;
  }

  /* May wrap to two lines on small phones, where a full pill looks odd. */
  .hero-eyebrow {
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8125rem;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* --- Trust strip (overlaps the bottom of the hero) ----------------------- */

.trust {
  position: relative;
  z-index: 2;
  margin-top: -3.5rem;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  /* A 1px gap over a grey background draws the dividers at any column count. */
  gap: 1px;
  overflow: hidden;
  list-style: none;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.trust-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.4rem 1.3rem;
  background: var(--white);
}

.trust-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue-tint);
  color: var(--blue);
}

.trust-icon--red {
  background: var(--red-tint);
  color: var(--red);
}

.trust-list strong {
  display: block;
  color: var(--ink);
  line-height: 1.3;
}

.trust-list span:not(.trust-icon) {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

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

@media (max-width: 560px) {
  .trust-list {
    grid-template-columns: 1fr;
  }

  .trust-list li {
    padding: 1.1rem 1.15rem;
  }
}

/* --- Sections ------------------------------------------------------------ */

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
}

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

.section-head {
  max-width: 44rem;
  margin: 0 auto 2.75rem;
  text-align: center;
}

.eyebrow {
  margin-bottom: 0.6rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}

.lead {
  margin-top: 0.9rem;
  font-size: 1.125rem;
}

.section-foot {
  margin-top: 2.5rem;
  text-align: center;
}

/* --- Services ------------------------------------------------------------ */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  list-style: none;
}

.service-card {
  padding: 1.6rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: #b9d6ec;
  box-shadow: var(--shadow-md);
}

.service-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1rem;
}

.service-card h3 {
  margin-bottom: 0.4rem;
  font-size: 1.2rem;
}

.service-card p {
  font-size: 0.975rem;
}

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

@media (max-width: 600px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  /* Icon beside the text keeps nine cards from becoming a very long scroll. */
  .service-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    column-gap: 1rem;
    align-items: start;
    padding: 1.15rem;
  }

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

  .service-card h3 {
    font-size: 1.1rem;
  }
}

/* --- Quote and contact --------------------------------------------------- */

.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 1.1rem;
  margin: 2rem 0;
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--blue);
}

.contact-icon--whatsapp {
  background: #e3f5ee;
  color: var(--whatsapp);
}

.contact-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  overflow-wrap: anywhere;
}

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

.contact-email {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.7rem;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.copy-button:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.copy-button.is-copied {
  border-color: var(--success);
  color: var(--success);
}

.hours-card {
  padding: 1.25rem 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.hours-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
  font-family: var(--font-body);
  font-size: 1rem;
}

.hours-card h3 .icon {
  color: var(--blue);
}

.hours-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-top: 1px solid var(--line);
}

.hours-card dd {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.form-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.4rem, 3.5vw, 2.4rem);
  padding-top: calc(clamp(1.4rem, 3.5vw, 2.4rem) + 5px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}

/* Brand stripe: mostly blue with a red end, like the logo. */
.form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--blue) 0 72%, var(--red) 72% 100%);
}

.quote-form {
  display: grid;
  gap: 1.1rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #c9d3dd;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font: inherit;
  /* 16px stops iPhones zooming the page when a field is tapped. */
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(11, 111, 183, 0.16);
}

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

.field select {
  appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a2540' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.1rem;
}

.field select:invalid {
  color: var(--muted);
}

.field input[type="file"] {
  padding: 0.5rem;
  color: var(--text);
  font-size: 0.925rem;
}

.field input[type="file"]::file-selector-button {
  margin-right: 0.9rem;
  padding: 0.45rem 0.9rem;
  border: 0;
  border-radius: 8px;
  background: var(--blue-tint);
  color: var(--blue);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.field-hint {
  margin-top: 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--red);
}

.field-error {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--red-dark);
}

.form-status {
  padding: 0.9rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.form-status--success {
  background: #e9f7ef;
  border-color: #b7e1c7;
  color: var(--success);
}

.form-status--error {
  background: var(--red-tint);
  border-color: #f0c2c8;
  color: #8f1f2d;
}

.form-note {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.form-note a {
  color: inherit;
}

/* Hidden from people; bots that fill it in are rejected. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Google allows hiding the floating badge when the reCAPTCHA notice is shown
   in the form, which it is. The badge otherwise covers the phone action bar. */
.grecaptcha-badge {
  visibility: hidden;
}

@media (max-width: 940px) {
  .quote-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .field-row {
    grid-template-columns: 1fr;
  }
}

/* --- Recent work (Instagram) --------------------------------------------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: start;
}

/* Shown until Instagram swaps the placeholder for the real post. */
.work-item blockquote.instagram-media {
  display: grid;
  place-items: center;
  max-width: 540px;
  min-height: 380px;
  margin-inline: auto;
  padding: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.work-item blockquote.instagram-media a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  text-decoration: none;
}

/* Instagram sets its own inline margins; centre the post in its column. */
.work-item iframe.instagram-media {
  margin: 0 auto !important;
}

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

@media (max-width: 740px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Areas --------------------------------------------------------------- */

.areas-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.area-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 0.8rem;
  margin: 1.75rem 0;
  list-style: none;
}

.area-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.area-list .icon {
  color: var(--blue);
}

.map {
  height: 100%;
  min-height: 460px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-md);
}

/* No map key, or Google refused to load the map: let the list use the space. */
.areas-layout--no-map {
  grid-template-columns: 1fr;
}

.areas-layout--no-map .map {
  display: none;
}

.areas-layout--no-map .areas-info {
  max-width: 52rem;
}

.areas-layout--no-map .area-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 940px) {
  .areas-layout {
    grid-template-columns: 1fr;
  }

  .map {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .areas-layout--no-map .area-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .area-list li {
    padding: 0.6rem 0.7rem;
    font-size: 0.925rem;
  }
}

/* --- Call to action band ------------------------------------------------- */

.cta-band {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(110deg, var(--navy) 0%, #0b4f86 62%, var(--blue) 100%);
  color: var(--white);
}

.cta-band-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
}

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

.cta-band p {
  margin-top: 0.5rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
}

.cta-band-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.cta-band :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

@media (max-width: 560px) {
  .cta-band-actions,
  .cta-band-actions .btn {
    width: 100%;
  }
}

/* --- Footer -------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  border-top: 5px solid var(--red);
  color: rgba(255, 255, 255, 0.76);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.4fr 0.9fr;
  gap: 2.5rem;
  padding-block: 3.5rem 3rem;
}

.site-footer h2 {
  margin-bottom: 1rem;
  font-size: 1.05rem;
  color: var(--white);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

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

.footer-brand img {
  width: 104px;
  height: auto;
  margin-bottom: 1rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-weight: 600;
}

.footer-list {
  display: grid;
  gap: 0.7rem;
  list-style: none;
}

.footer-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-wrap: anywhere;
}

.footer-list .icon {
  color: #7fb9e6;
}

.footer-hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-hours dd {
  color: var(--white);
  text-align: right;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 1.1rem;
}

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

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-block: 2.5rem 2rem;
  }
}

/* --- Phone action bar ---------------------------------------------------- */

.mobile-bar {
  display: none;
}

@media (max-width: 720px) {
  .mobile-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.5rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(10, 37, 64, 0.12);
  }

  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 0;
    min-height: 46px;
    border-radius: var(--radius-sm);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  .mobile-bar .icon {
    width: 1.1em;
    height: 1.1em;
  }

  .mobile-bar-call {
    background: var(--red);
  }

  .mobile-bar-whatsapp {
    background: var(--whatsapp);
  }

  .mobile-bar-quote {
    background: var(--blue);
  }

  /* Room for the bar so it never covers the end of the page. */
  body {
    padding-bottom: calc(63px + env(safe-area-inset-bottom));
  }

  /* While someone is typing in the form the bar would sit over the keyboard. */
  body.is-typing .mobile-bar {
    display: none;
  }
}

/* The narrowest phones have no room for icons beside three labels. */
@media (max-width: 370px) {
  .mobile-bar .icon {
    display: none;
  }
}

/* --- Policy pages -------------------------------------------------------- */

.legal {
  padding-block: clamp(2rem, 6vw, 4.5rem);
  background: var(--surface);
}

.legal-inner {
  width: min(50rem, 100% - 2.5rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
}

.legal-head {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.legal h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.legal h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.3rem;
}

.legal p {
  margin-bottom: 1rem;
}

.legal ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.legal a {
  font-weight: 600;
}

/* --- Error page ---------------------------------------------------------- */

.error-page {
  padding-block: clamp(4rem, 10vw, 7rem);
  text-align: center;
}

.error-page-inner {
  max-width: 40rem;
}

.error-page h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

.error-page-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

/* --- Reduced motion ------------------------------------------------------ */

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
