/* =========================================================
   CBC POOLS
   Complete responsive stylesheet
   ========================================================= */

:root {
  --blue: #1e6fb8;
  --blue-dark: #15598f;
  --aqua: #22a7df;
  --white: #ffffff;
  --slate: #1e293b;
  --muted: #64748b;
  --border: #dce7ef;
  --surface: #f5fafc;

  --shadow: 0 18px 50px rgba(27, 79, 111, 0.13);

  --radius: 22px;
  --container: 1180px;
}


/* =========================================================
   RESET AND GLOBAL STYLING
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  margin: 0;
  color: var(--slate);
  background: var(--white);

  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  font-size: 16px;
  line-height: 1.7;

  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Media and embeds always scale to fit their container. */
video,
iframe,
embed,
object,
canvas,
svg {
  max-width: 100%;
}

video,
canvas {
  height: auto;
}

iframe {
  border: 0;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(34, 167, 223, 0.42);
  outline-offset: 3px;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 9999;

  padding: 10px 16px;

  border-radius: 8px;

  color: var(--white);
  background: var(--slate);

  transition: top 180ms ease;
}

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


/* =========================================================
   SHARED LAYOUT
   ========================================================= */

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
}

.section {
  padding: 78px 0;
}


/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--slate);
  line-height: 1.12;
}

h1 {
  max-width: 760px;
  margin-bottom: 21px;

  font-size: clamp(2.55rem, 9.5vw, 5rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 17px;

  font-size: clamp(2rem, 7vw, 3.35rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 0 0 14px;

  color: var(--blue);

  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 27px;
  height: 3px;

  border-radius: 2px;
  background: var(--aqua);
}

.eyebrow-light {
  color: var(--white);
}

.eyebrow-light span {
  background: var(--white);
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;

  border-bottom: 1px solid rgba(220, 231, 239, 0.85);

  background: rgba(255, 255, 255, 0.96);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
  position: relative;
  z-index: 1002;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  min-height: 76px;

  background: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

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


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.menu-toggle {
  position: relative;
  z-index: 1003;

  display: grid;
  place-items: center;
  gap: 5px;

  width: 44px;
  height: 44px;

  padding: 0;

  border: 0;
  border-radius: 12px;

  background: var(--surface);
}

.menu-toggle span {
  display: block;

  width: 22px;
  height: 2px;

  border-radius: 2px;

  background: var(--slate);

  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

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

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

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


/* =========================================================
   MOBILE NAVIGATION
   ========================================================= */

@media (max-width: 879px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    /* Allow the menu to extend below the header. */
    overflow: visible;
  }

  .nav-inner {
    position: relative;
    z-index: 1002;

    min-height: 76px;

    background: var(--white);
  }

  .menu-toggle {
    position: relative;
    z-index: 1004;
  }

  .primary-nav {
    /*
      Attach the menu directly below the header.
      This avoids the fixed-position/backdrop-filter issue.
    */
    position: absolute;

    z-index: 1001;

    top: 100%;
    right: 0;
    left: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;

    /*
      Fill the remaining visible screen beneath the header.
    */
    width: 100%;
    height: calc(100dvh - 76px);
    min-height: calc(100vh - 76px);

    padding: 18px 20px 32px;

    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;

    background: var(--white);

    box-shadow:
      0 18px 35px
      rgba(30, 41, 59, 0.18);

    visibility: hidden;
    opacity: 0;
    pointer-events: none;

    transform: translateY(-10px);

    transition:
      opacity 180ms ease,
      transform 180ms ease,
      visibility 180ms ease;
  }

  .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;

    transform: translateY(0);
  }

  .primary-nav > a:not(.button) {
    display: flex;
    align-items: center;

    min-height: 57px;

    padding: 15px 8px;

    border-bottom: 1px solid var(--border);

    color: var(--slate);

    font-size: 1rem;
    font-weight: 750;
  }

  .primary-nav > a:not(.button):hover,
  .primary-nav > a:not(.button):focus-visible {
    color: var(--blue);
  }

  .primary-nav .button {
    width: 100%;

    margin-top: 20px;
    flex-shrink: 0;
  }

  body.menu-open {
    overflow: hidden;
    touch-action: none;
  }
}


/* =========================================================
   BUTTONS
   ========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  min-height: 50px;

  padding: 12px 21px;

  border: 2px solid var(--blue);
  border-radius: 13px;

  color: var(--white);
  background: var(--blue);

  font-weight: 800;
  text-align: center;

  box-shadow: 0 10px 25px rgba(30, 111, 184, 0.2);

  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);

  background: var(--blue-dark);
  border-color: var(--blue-dark);

  box-shadow: 0 15px 32px rgba(30, 111, 184, 0.27);
}

.button-small {
  min-height: 42px;
  padding: 8px 16px;
  font-size: 14px;
}

.button-secondary {
  color: var(--blue);
  background: var(--white);
  border-color: var(--border);
  box-shadow: none;
}

.button-secondary:hover {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

.button-white {
  color: var(--blue);
  background: var(--white);
  border-color: var(--white);
  box-shadow: none;
}

.button-white:hover {
  color: var(--blue-dark);
  background: #eefaff;
  border-color: #eefaff;
}

.button-outline {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: none;
}

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


/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;
  overflow: hidden;

  padding-top: 58px;

  background:
    linear-gradient(
      145deg,
      #f8fcff 0%,
      #edf8fc 55%,
      #ffffff 100%
    );
}

.hero-grid {
  display: grid;
  gap: 46px;
}

.hero-lead {
  max-width: 650px;
  margin: 0 0 29px;

  color: #4a6074;

  font-size: 1.08rem;
}

.hero-actions {
  display: grid;
  gap: 12px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;

  margin: 25px 0 0;
  padding: 0;

  color: #405469;

  font-size: 13px;
  font-weight: 700;

  list-style: none;
}

.hero-points li::before {
  content: "✓";

  display: inline-grid;
  place-items: center;

  width: 19px;
  height: 19px;

  margin-right: 7px;

  border-radius: 50%;

  color: var(--white);
  background: var(--aqua);

  font-size: 11px;
}


/* =========================================================
   HERO IMAGE
   ========================================================= */

.hero-photo {
  position: relative;

  min-height: 350px;

  margin: 0;

  overflow: hidden;

  border: 9px solid var(--white);
  border-radius: 42px 48% 30px 30px;

  background: #dceef6;

  box-shadow: var(--shadow);
}

.hero-photo > img {
  width: 100%;
  height: 350px;

  object-fit: cover;
  object-position: center;
}

.hero-photo::after {
  content: "";

  position: absolute;
  inset: 0;

  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      transparent 50%,
      rgba(9, 43, 66, 0.28)
    );
}


/* =========================================================
   HERO FLOATING BADGES
   ========================================================= */

.floating-badge {
  position: absolute;
  z-index: 3;

  display: flex;
  align-items: center;
  gap: 10px;

  max-width: 190px;

  padding: 12px 14px;

  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px;

  background: rgba(255, 255, 255, 0.94);

  box-shadow: 0 12px 30px rgba(23, 67, 92, 0.18);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.floating-badge strong {
  color: var(--blue);

  font-size: 1.8rem;
  line-height: 1;
}

.floating-badge b {
  display: grid;
  place-items: center;

  width: 31px;
  height: 31px;

  flex-shrink: 0;

  border-radius: 50%;

  color: var(--white);
  background: var(--aqua);
}

.floating-badge span {
  color: #3d5267;

  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.badge-one {
  bottom: 31px;
  left: 10px;
}

.badge-two {
  top: 29px;
  right: 9px;
}


/* =========================================================
   TRUST STRIP
   ========================================================= */

.trust-strip {
  padding: 22px 0;

  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);

  background: var(--white);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);

  gap: 18px;
}

.trust-grid div {
  display: grid;
}

.trust-grid strong {
  font-size: 0.95rem;
}

.trust-grid span {
  color: var(--muted);

  font-size: 0.72rem;
  line-height: 1.4;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.section-heading {
  max-width: 760px;
  margin-bottom: 37px;
}

.section-heading p:last-child {
  color: var(--muted);
}


/* =========================================================
   SERVICES
   ========================================================= */

.services-grid {
  display: grid;
  gap: 16px;
}

.service-card {
  position: relative;

  min-height: 310px;

  padding: 27px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--white);

  box-shadow: 0 7px 25px rgba(35, 77, 102, 0.07);

  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.service-card:hover {
  transform: translateY(-5px);

  border-color: rgba(34, 167, 223, 0.5);

  box-shadow: var(--shadow);
}

.service-icon {
  display: grid;
  place-items: center;

  width: 54px;
  height: 54px;

  margin-bottom: 27px;

  border-radius: 15px;

  color: var(--blue);
  background: #eaf7fc;

  font-size: 24px;
  font-weight: 800;
}

.service-number {
  position: absolute;

  top: 20px;
  right: 23px;

  margin: 0;

  color: #d4e5ee;

  font-size: 2rem;
  font-weight: 800;
}

.service-card p:not(.service-number) {
  color: var(--muted);
}

.service-card a,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  color: var(--blue);

  font-size: 0.92rem;
  font-weight: 800;
}

.service-card a span,
.text-link span {
  transition: transform 180ms ease;
}

.service-card a:hover span,
.text-link:hover span {
  transform: translateX(4px);
}


/* =========================================================
   SERVICE GALLERY
   ========================================================= */

.gallery-section {
  padding-top: 25px;
  background: var(--white);
}

.gallery-grid {
  display: grid;
  gap: 18px;
}

.gallery-card {
  margin: 0;

  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--white);

  box-shadow: 0 8px 26px rgba(35, 77, 102, 0.08);
}

.gallery-card img {
  width: 100%;
  height: 250px;

  object-fit: cover;

  transition: transform 350ms ease;
}

.gallery-card:hover img {
  transform: scale(1.025);
}

.gallery-card figcaption {
  display: grid;
  gap: 5px;

  padding: 19px 20px 21px;
}

.gallery-card figcaption strong {
  color: var(--slate);
  font-size: 1.05rem;
}

.gallery-card figcaption span {
  color: var(--muted);

  font-size: 0.86rem;
  line-height: 1.5;
}


/* =========================================================
   ABOUT AND CAPE TOWN IMAGE
   ========================================================= */

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

.about-grid {
  display: grid;
  align-items: center;
  gap: 46px;
}

.location-photo {
  position: relative;

  min-height: 360px;

  overflow: hidden;

  border-radius: 30px;

  background:
    linear-gradient(
      rgba(7, 38, 61, 0.2),
      rgba(7, 38, 61, 0.62)
    ),
    url("assets/cape-town.webp")
    center / cover no-repeat;

  box-shadow: var(--shadow);
}

.location-overlay {
  position: absolute;

  bottom: 20px;
  left: 20px;

  display: grid;

  padding: 15px 18px;

  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 15px;

  color: var(--white);

  background: rgba(10, 38, 57, 0.58);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.location-overlay strong {
  font-size: 1.55rem;
  line-height: 1.2;
}

.location-overlay span {
  font-size: 0.82rem;
  font-weight: 700;
}

.about-copy p {
  color: #566a7e;
}


/* =========================================================
   WHY CHOOSE US
   ========================================================= */

.why-grid {
  display: grid;
  gap: 13px;
}

.why-item {
  display: grid;
  grid-template-columns: 48px 1fr;

  gap: 16px;

  padding: 23px;

  border: 1px solid var(--border);
  border-radius: 18px;

  background: var(--white);
}

.why-item > span {
  display: grid;
  place-items: center;

  width: 45px;
  height: 45px;

  border-radius: 50%;

  color: var(--blue);
  background: #eaf7fc;

  font-weight: 800;
}

.why-item h3 {
  margin: 4px 0 6px;
}

.why-item p {
  margin: 0;

  color: var(--muted);

  font-size: 0.92rem;
}


/* =========================================================
   CALL TO ACTION BAND
   ========================================================= */

.cta-band {
  padding: 62px 0;

  color: var(--white);

  background:
    linear-gradient(
      120deg,
      var(--blue-dark),
      var(--blue) 50%,
      var(--aqua)
    );
}

.cta-inner {
  display: grid;
  align-items: center;
  gap: 28px;
}

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

.cta-band h2 {
  margin-bottom: 9px;
}

.cta-band p {
  margin-bottom: 0;
  opacity: 0.9;
}

.cta-actions {
  display: grid;
  gap: 11px;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
  background: #f8fbfd;
}

.contact-grid {
  display: grid;
  align-items: start;
  gap: 42px;
}

.contact-details > p:not(.eyebrow) {
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 10px;

  margin-top: 28px;
}

.contact-list > * {
  display: grid;

  padding: 14px 0;

  border-bottom: 1px solid var(--border);
}

.contact-list span {
  color: var(--muted);

  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list strong {
  font-size: 0.95rem;
}

.contact-list a:hover strong {
  color: var(--blue);
}


/* =========================================================
   QUOTE FORM
   ========================================================= */

.quote-card {
  padding: 25px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--white);

  box-shadow: var(--shadow);
}

.quote-kicker {
  margin: 0 0 4px;

  color: var(--blue);

  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.quote-card h2 {
  margin-bottom: 24px;
  font-size: 1.8rem;
}

#quote-form {
  display: grid;
  gap: 17px;
}

#quote-form label {
  display: grid;
  gap: 7px;

  font-size: 0.83rem;
  font-weight: 800;
}

#quote-form input,
#quote-form select,
#quote-form textarea {
  width: 100%;

  padding: 12px 13px;

  border: 1px solid #cbd9e3;
  border-radius: 11px;

  color: var(--slate);
  background: var(--white);

  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

#quote-form input,
#quote-form select {
  min-height: 49px;
}

#quote-form textarea {
  resize: vertical;
}

#quote-form input:focus,
#quote-form select:focus,
#quote-form textarea:focus {
  border-color: var(--aqua);
  outline: none;

  box-shadow: 0 0 0 4px rgba(34, 167, 223, 0.13);
}

#quote-form [aria-invalid="true"] {
  border-color: #dc2626;
}

.form-submit {
  width: 100%;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

/* Spam honeypot: hidden from real users, still present for bots. */
.form-honeypot {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

#quote-form .form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;

  color: var(--muted);

  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.45;

  cursor: pointer;
}

#quote-form .form-consent input {
  flex: 0 0 auto;

  width: 18px;
  height: 18px;
  min-height: 0;

  margin: 1px 0 0;
  padding: 0;

  accent-color: var(--blue);

  cursor: pointer;
}

#quote-form .form-consent input:focus {
  box-shadow: none;
}

#quote-form .form-consent input:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 2px;
}

#quote-form .form-consent input[aria-invalid="true"] {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.form-note {
  margin: 5px 0 0;

  color: var(--muted);

  font-size: 0.74rem;
  line-height: 1.4;
}

.form-message {
  min-height: 24px;

  margin: 7px 0 0;

  font-size: 0.88rem;
  font-weight: 700;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: 42px 0 24px;

  color: #91a1b5;
  background: #101d2c;
}

.footer-grid {
  display: grid;
  align-items: center;
  gap: 25px;
}

.footer-brand {
  display: inline-block;

  padding: 8px;

  border-radius: 10px;

  background: var(--white);
}

.footer-brand img {
  width: 145px;
}

.footer-grid > p {
  max-width: 480px;
  margin: 0;
  font-size: 0.88rem;
}

.footer-grid nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 22px;

  color: var(--white);

  font-size: 0.86rem;
  font-weight: 700;
}

.footer-grid nav a:hover {
  color: var(--aqua);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 2px;

  margin-top: 29px;
  padding-top: 20px;

  border-top: 1px solid rgba(255, 255, 255, 0.1);

  font-size: 0.75rem;
}

.footer-bottom p {
  margin: 0;
}


/* =========================================================
   FLOATING WHATSAPP BUTTON
   ========================================================= */

.floating-whatsapp {
  position: fixed;

  right: 17px;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 900;

  display: grid;
  place-items: center;

  width: 56px;
  height: 56px;

  border-radius: 50%;

  color: var(--white);
  background: #25d366;

  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);

  line-height: 0;

  transition: transform 180ms ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
}

.floating-whatsapp svg {
  display: block;

  width: 32px;
  height: 32px;

  /* Nudge right/up slightly so the bubble (with its bottom-left tail)
     looks optically centred in the circle */
  transform: translate(1px, -1px);

  fill: #ffffff;
}


/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

.reveal {
  opacity: 0;

  transform: translateY(18px);

  transition:
    opacity 550ms ease,
    transform 550ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}


/* =========================================================
   SMALL TABLETS
   ========================================================= */

@media (min-width: 620px) {
  .container {
    width: min(var(--container), calc(100% - 48px));
  }

  .hero-actions,
  .cta-actions {
    display: flex;
    flex-wrap: wrap;
  }

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

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

  .gallery-card img {
    height: 310px;
  }

  #quote-form {
    grid-template-columns: repeat(2, 1fr);
  }

  #quote-form .full {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}


/* =========================================================
   DESKTOP
   The mobile menu is completely reset here
   ========================================================= */

@media (min-width: 880px) {
  html {
    scroll-padding-top: 92px;
  }

  body.menu-open {
    overflow: auto;
    touch-action: auto;
  }

  .section {
    padding: 104px 0;
  }

  .nav-inner {
    min-height: 84px;
  }

  .brand img {
    width: 180px;
  }

  .menu-toggle {
    display: none;
  }

  .primary-nav,
  .primary-nav.is-open {
    position: static;

    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 26px;

    height: auto;

    padding: 0;

    overflow: visible;

    background: transparent;

    box-shadow: none;

    visibility: visible;
    opacity: 1;
    pointer-events: auto;

    transform: none;
  }

  .primary-nav > a:not(.button) {
    position: relative;

    padding: 8px 0;

    border: 0;

    color: #405469;

    font-size: 0.88rem;
    font-weight: 750;
  }

  .primary-nav > a:not(.button)::after {
    content: "";

    position: absolute;

    right: 100%;
    bottom: 2px;
    left: 0;

    height: 2px;

    background: var(--aqua);

    transition: right 200ms ease;
  }

  .primary-nav > a:not(.button):hover::after {
    right: 0;
  }

  .primary-nav .button {
    width: auto;
    margin-top: 0;
  }

  .hero {
    display: grid;
    align-items: center;

    min-height: 720px;

    padding: 86px 0 75px;
  }

  .hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
  }

  .hero-actions {
    display: flex;
  }

  .hero-photo,
  .hero-photo > img {
    min-height: 520px;
    height: 520px;
  }

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

  .trust-grid div {
    padding-left: 26px;
    border-left: 1px solid var(--border);
  }

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

  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 75px;
  }

  .location-photo {
    min-height: 480px;
  }

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

  .why-item {
    grid-template-columns: 1fr;
  }

  .cta-inner {
    grid-template-columns: 1fr auto;
  }

  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 80px;
  }

  .quote-card {
    padding: 38px;
  }

  .footer-grid {
    grid-template-columns: auto 1fr auto;
  }
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1100px) {
  .hero-copy {
    padding-right: 20px;
  }

  .hero-photo {
    transform: rotate(1.2deg);
  }
}


/* =========================================================
   PHONES AND SMALL TABLETS
   Readability, tap-target and overflow fixes.
   Scoped below the desktop breakpoint so desktop is unchanged.
   ========================================================= */

@media (max-width: 879px) {
  /* Stop anything from causing sideways scrolling.
     "clip" (unlike "hidden") keeps the sticky header working. */
  html,
  body {
    overflow-x: clip;
  }

  /* Let the open menu panel scroll with touch. */
  body.menu-open {
    touch-action: auto;
  }

  /* Long words, emails and phone numbers wrap instead of overflowing. */
  h1,
  h2,
  h3,
  p,
  li,
  strong,
  span,
  a {
    overflow-wrap: break-word;
  }

  .contact-list strong {
    overflow-wrap: anywhere;
  }

  h1 {
    letter-spacing: -0.04em;
  }

  /* ---------- Body text at least 16px ---------- */

  .hero-points,
  .trust-grid span,
  .gallery-card figcaption span,
  .why-item p,
  .contact-list strong,
  .form-message,
  .footer-grid > p,
  .footer-grid nav,
  .location-overlay span,
  .service-card a,
  .text-link {
    font-size: 1rem;
  }

  #quote-form label,
  #quote-form .form-consent {
    font-size: 1rem;
  }

  /* Small uppercase labels: kept compact, but more legible. */
  .eyebrow,
  .quote-kicker,
  .contact-list span,
  .floating-badge span,
  .footer-bottom {
    font-size: 14px;
  }

  /* Form fields at 16px also stop iOS from zooming on focus. */
  #quote-form input,
  #quote-form select,
  #quote-form textarea {
    font-size: 16px;
  }

  /* ---------- Tap targets at least 44 x 44px ---------- */

  .skip-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .button-small,
  .primary-nav .button {
    min-height: 50px;
    font-size: 1rem;
  }

  .service-card a,
  .text-link {
    min-height: 44px;
  }

  .contact-list a {
    min-height: 44px;
  }

  .footer-grid nav {
    gap: 4px 18px;
  }

  .footer-grid nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    min-width: 44px;
  }

  .footer-brand {
    min-height: 44px;
  }

  /* The whole consent label is the tap target. */
  #quote-form .form-consent {
    min-height: 44px;
    align-items: center;
  }

  #quote-form .form-consent input {
    width: 24px;
    height: 24px;
    margin: 0;
  }

  /* Keep the floating WhatsApp button from covering the footer text. */
  .site-footer {
    padding-bottom: 150px;
  }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}