/* Luke, 25 November 2026: "copy the hero design/layout of horsham". The hero now follows the Horsham
   preview (overrides/hero-cta.css in brain-mwt7wt16436's hero-trust-in-video preview, as it stood at 15:40
   that day):

   - The photo is Horsham's black and white thermal camera shot from 769px, with no video. Phones keep their
     photo, which is already the same file Horsham uses on phones.
   - From 901px the text sits in a left-hand column that lines up with the header logo. The photo moves right,
     so the camera shows clear of the text. Up to 900px the text stays centred, as on Horsham.
   - The accreditations, the Trustpilot badge and the cyan bar sit on one rounded white panel that overlaps the
     bottom of the photo, as on Horsham.
   - "As seen in:" has its own grey strip above the reviews (the press strip rules at the end of this file).

   This file replaces homepage-hero-fold-20261125.css (now unlinked) and keeps its rule: the services heading,
   "Our specialist non-invasive Water leak detection services", shows on first load. The hero is the screen
   height less the room needed under it (--fold-peek): the part of the panel below the photo, the space above
   the services heading, the heading and a 24px margin. On shorter screens the text and spacing tighten, and
   the four points show their titles only. */

/* ---------- Tablets and desktops: sizes that follow the screen height ---------- */

@media (min-width: 769px) {
  body.home-fold {
    /* The H1's size on this screen height. The small lines above and below it are 54.5% of it. */
    --fold-h1: clamp(56px, calc(56px + (100svh - 720px) * 0.075), 77px);
    --fold-eyebrow-space: clamp(3px, calc(3px + (100svh - 720px) * 0.025), 10px);
    --fold-h1-space: clamp(3px, calc(3px + (100svh - 720px) * 0.017857), 8px);
    --fold-rating-space: clamp(8px, calc(8px + (100svh - 720px) * 0.042857), 20px);
    --fold-points-space: clamp(6px, calc(6px + (100svh - 720px) * 0.021429), 12px);
    --fold-cta-space: clamp(12px, calc(12px + (100svh - 720px) * 0.078571), 34px);
    --fold-cta-height: clamp(48px, calc(48px + (100svh - 720px) * 0.042857), 60px);

    /* Horsham: the space under the call button grows with the screen height, and the panel overlaps the
       photo by 46px. */
    --hero-bottom: clamp(22px, 5vh, 72px);
    --trust-overlap: 46px;
    --hero-top: 204px;

    /* The panel: the 90px row of cards (18px padding, 54px cards, 18px padding) and the 33.6px cyan bar. */
    --panel-height: 123.6px;
    /* The services heading: one 40.8px line from 978px wide. */
    --fold-h2: 40.8px;
    --fold-svc-space: 40px;
    --fold-peek: calc(var(--panel-height) - var(--trust-overlap) + var(--fold-svc-space) + var(--fold-h2) + 24px);
  }

  body.home-fold .hero {
    min-height: min(calc(100svh - var(--fold-peek)), 62.5vw);
    padding-top: var(--hero-top);
    padding-bottom: calc(var(--hero-bottom) + var(--trust-overlap));
  }

  /* Horsham took the navy shade off the foot of the photo. */
  body.home-fold .hero::after {
    display: none;
  }

  body.home-fold .hero-image {
    object-position: 50% 50%;
    filter: brightness(55%);
  }

  body.home-fold .hero-eyebrow {
    margin-bottom: var(--fold-eyebrow-space);
    line-height: 1.1;
  }

  body.home-fold .hero-title {
    margin-bottom: var(--fold-h1-space);
    line-height: 1;
  }

  body.home-fold .hero-rating {
    margin-bottom: var(--fold-rating-space);
    line-height: 1.1;
  }

  body.home-fold .hero-content h2.hero-description {
    line-height: 1.2;
  }

  body.home-fold .hero-content .hero-points {
    margin-top: var(--fold-points-space);
  }

  body.home-fold .hero-actions {
    margin-top: var(--fold-cta-space);
  }

  body.home-fold .hero .hero-cta {
    min-height: var(--fold-cta-height);
  }

  /* 40px from the panel to the services heading (64px before 25 November), as on phones. */
  body.home-fold .svc-section {
    padding-top: var(--fold-svc-space);
  }
}

/* Where the services heading takes two lines or a smaller size (homepage-3 sets 28px type up to 968px). */
@media (min-width: 969px) and (max-width: 977px) {
  body.home-fold {
    --fold-h2: 81.6px;
  }
}

@media (min-width: 830px) and (max-width: 968px) {
  body.home-fold {
    --fold-h2: 33.6px;
  }
}

@media (min-width: 769px) and (max-width: 829px) {
  body.home-fold {
    --fold-h2: 67.2px;
  }
}

/* Tablets: the header's wave is 215px tall, the type starts smaller and the cards are 50px (an 86px row). */
@media (min-width: 769px) and (max-width: 1024px) {
  body.home-fold {
    --fold-h1: clamp(46px, calc(46px + (100svh - 720px) * 0.025), 53px);
    --panel-height: 119.6px;
  }

  body.home-fold .hero-title {
    font-size: min(53px, calc((100vw - 64px) / 13.41), var(--fold-h1));
  }

  body.home-fold .hero-eyebrow,
  body.home-fold .hero-rating {
    font-size: min(29px, calc(var(--fold-h1) * 0.545));
  }
}

/* Up to 1100px wide the "Why choose" block, with the call button, sits 7.75px lower (homepage-3's
   --hero-why-shift), so the space under the call button starts at 30px. */
@media (min-width: 769px) and (max-width: 1100px) {
  body.home-fold {
    --hero-bottom: clamp(30px, 5vh, 72px);
  }
}

/* ---------- From 901px: the text on the left, the camera on the right (Horsham) ---------- */

@media (min-width: 901px) {
  body.home-fold {
    /* The column's left edge lines up with the header logo; it ends 48px before the camera. */
    --hero-l: max(28px, calc(50vw - 672px));
    --hero-col: calc(62vw - 48px - var(--hero-l));
    /* The H1 is as large as the column allows, up to its size for this screen height. "LEAK DETECTION
       SERVICES" is 13.41 times its font size wide; 13.6 leaves a little room. */
    --hero-h1: min(var(--fold-h1), calc(var(--hero-col) / 13.6));
    /* The wave dips less over the left-hand side than over the middle, so the text can start higher. */
    --hero-top: 178px;
  }

  body.home-fold .hero {
    padding-right: var(--hero-l);
    padding-left: var(--hero-l);
    background: #0a0a0a;
  }

  /* The photo moves right by 15% of the hero's width, so the camera sits about 71% across. Its left edge fades
     into the hero's near-black background. */
  body.home-fold .hero-image {
    left: 15%;
    object-position: 50% 10%;
    filter: brightness(78%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%);
    mask-image: linear-gradient(90deg, transparent 0, #000 14%);
  }

  /* A black shade behind the text, from 90% at the left edge to nothing at 62% across, where the camera
     starts. */
  body.home-fold .hero::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    height: auto;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.78) 30%, rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0) 62%);
    pointer-events: none;
  }

  /* Luke, 26 November 2026: "keep the text all the same size and keep it on the left hand side of the hero,
     but can we centre it all ... the call button in the middle underneath the text, the why choose adi in
     the middle". The column stays on the left; everything in it is centred on the column's middle line (it
     was left-aligned with the header logo, as on Horsham, until then). */
  body.home-fold .hero-content {
    width: 100%;
    max-width: var(--hero-col);
    margin: 0 auto 0 0;
    padding: 0;
    text-align: center;
  }

  body.home-fold .hero-title {
    font-size: var(--hero-h1);
    text-align: center;
  }

  body.home-fold .hero-eyebrow,
  body.home-fold .hero-rating {
    font-size: calc(var(--hero-h1) * 0.545);
    text-align: center;
  }

  body.home-fold .hero-content h2.hero-description {
    margin-right: 0;
    margin-left: 0;
    text-align: center;
  }

  /* The four points in two equal columns, as one block centred under the heading. Each tick keeps its text
     beside it (left-aligned inside the block, as on phones). The block is only as wide as its longest point
     needs, and the full column where the points wrap, so the lines break exactly as before. */
  body.home-fold .hero-content .hero-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 28px;
    width: fit-content;
    max-width: 100%;
    margin-right: auto;
    margin-left: auto;
  }

  body.home-fold .hero-actions {
    justify-content: center;
  }

  /* The text is one block, centred in the space above the panel, as on Horsham: no extra space between the
     rating line and "Why Choose ADI ...", which instead grows a little with the screen height. */
  body.home-fold .hero-why::before {
    flex-grow: 0;
  }

  body.home-fold {
    --fold-rating-space: clamp(10px, calc(10px + (100svh - 660px) * 0.08), 34px);
  }
}

/* Desktops: the header's wave is 180px tall, so the text can start higher: 150px on short screens, up to
   172px (Horsham's) on taller ones. */
@media (min-width: 1025px) {
  body.home-fold {
    --fold-h1: clamp(42px, calc(42px + (100svh - 660px) * 0.075), 60px);
    --hero-top: clamp(150px, calc(150px + (100svh - 800px) * 0.25), 172px);
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  body.home-fold {
    --hero-l: 16px;
  }
}

/* Landscape tablets: the column is narrow, so the two columns of points are 16px apart. (A single list, as
   Horsham's ticks are here, would push the services heading off the first screen on 1024x768 iPads.) The
   text starts 178px down on short screens, up to 210px (Horsham's) on taller ones. */
@media (min-width: 901px) and (max-width: 1024px) {
  body.home-fold {
    --hero-l: 30px;
    --hero-top: clamp(178px, calc(178px + (100svh - 760px) * 0.5), 210px);
  }

  body.home-fold .hero-content .hero-points {
    column-gap: 16px;
  }
}

/* Short screens: the four points show their titles only, as on phones: on desktops below 750px tall (where
   the lines under them would push the services heading off the first screen), and on tablets below 880px.
   (800px and 1060px until the "Why Choose" block was made smaller.) The colon that is only read out goes
   too, as on phones. */
@media (min-width: 1025px) and (max-height: 749px), (min-width: 769px) and (max-width: 1024px) and (max-height: 879px) {
  body.home-fold .hero-point-text,
  body.home-fold .hero-point-colon {
    display: none;
  }
}


/* Very short screens, such as 1366x768 laptops: the services heading sits 32px under the panel. */
@media (min-width: 769px) and (max-height: 719px) {
  body.home-fold {
    --fold-svc-space: 32px;
  }
}

/* ---------- The panel: accreditations, Trustpilot and the cyan bar on one white card ---------- */

body.home-fold section.services-intro {
  position: relative;
  z-index: 6;
  overflow: hidden;
  padding: 0;
  background: #fff;
}

body.home-fold .trust-dock {
  margin: 0;
  background: #fff;
}

body.home-fold .trust-dock .trust-bar-inner {
  max-width: none;
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

body.home-fold .founding-strip {
  margin-top: 0;
}

@media (min-width: 769px) {
  body.home-fold section.services-intro {
    width: calc(100% - 48px);
    max-width: 1240px;
    margin: calc(-1 * var(--trust-overlap)) auto 0;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(9, 16, 58, 0.12), 0 22px 44px -20px rgba(9, 16, 58, 0.5);
  }

  body.home-fold .trust-dock {
    padding: 18px 28px;
  }

  /* Softer card shadows on white, and the navy focus ring again. */
  body.home-fold .trust-dock .accreditation-logo-front,
  body.home-fold .trust-dock .accreditation-logo-back,
  body.home-fold .trust-dock .trust-bar-reviews {
    box-shadow: 0 1px 2px rgba(22, 30, 111, 0.1), 0 6px 14px -8px rgba(22, 30, 111, 0.3);
  }

  body.home-fold .trust-dock .accreditation-logo:focus-visible {
    outline-color: #161e6f;
  }
}

/* Phones: the panel sits 12px in from each side and overlaps the photo by 24px. The Trustpilot card sits on
   top and the four logos below it, each on its own light card with the cyan edge, as on Horsham. */
@media (max-width: 768px) {
  body.home-fold .hero {
    padding-bottom: 54px;
  }

  body.home-fold section.services-intro {
    margin: -24px 12px 0;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(9, 16, 58, 0.12), 0 18px 36px -18px rgba(9, 16, 58, 0.45);
  }

  body.home-fold .trust-dock {
    padding: 12px 10px 10px;
  }

  body.home-fold .trust-dock .accreditations-logos {
    gap: 10px 8px;
  }

  body.home-fold .trust-dock .accreditation-logo {
    height: 42px;
    margin: 0;
  }

  body.home-fold .trust-dock .accreditation-logo::before,
  body.home-fold .trust-dock .trust-bar-reviews::before {
    display: none;
  }

  body.home-fold .trust-dock .accreditation-logo-front {
    padding: 6px 8px;
    background: #f4f7fb;
    border: 1.5px solid #80eff7;
  }

  body.home-fold .trust-dock .accreditation-logo-back {
    border: 1.5px solid #161e6f;
  }

  body.home-fold .trust-dock .trust-bar-reviews {
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(22, 30, 111, 0.1), 0 8px 22px -6px rgba(22, 30, 111, 0.28);
  }
}

/* ---------- "As seen in:" strip above the reviews (Horsham's .location-press) ---------- */

.press-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 40px;
  margin: 0;
  padding: 26px 20px;
  background: #f2f4f7;
}

.press-strip-label {
  margin: 0;
  color: #161e6f;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.press-strip-logos {
  display: flex;
  align-items: center;
  gap: 40px;
}

.press-strip-logo {
  display: block;
  width: auto;
  max-width: none;
}

.press-strip-logo--express {
  height: 36px;
}

.press-strip-logo--star {
  height: 60px;
}

.press-strip-logo--mirror {
  height: 42px;
}

/* As on Horsham, the reviews follow the strip closely: 36px above their heading (96px before), 32px on
   phones (80px before). */
.press-strip + .reviews-section {
  padding-top: 36px;
}

@media (max-width: 768px) {
  .press-strip + .reviews-section {
    padding-top: 32px;
  }
}

@media (max-width: 768px) {
  .press-strip {
    flex-direction: column;
    gap: 10px;
    padding: 20px 16px;
  }

  .press-strip-label {
    font-size: 13px;
  }

  .press-strip-logos {
    gap: 12px;
  }

  .press-strip-logo--express {
    height: 22px;
  }

  .press-strip-logo--star {
    height: 42px;
  }

  .press-strip-logo--mirror {
    height: 27px;
  }
}

/* The smallest phones: the row is 312px wide at the sizes above, so the logos shrink a little to fit
   (268px). */
@media (max-width: 359px) {
  .press-strip-logos {
    gap: 10px;
  }

  .press-strip-logo--express {
    height: 19px;
  }

  .press-strip-logo--star {
    height: 36px;
  }

  .press-strip-logo--mirror {
    height: 23px;
  }
}

/* ---------- "Why Choose ADI for Water Leak Detection?" and the four points, smaller ---------- */

/* Luke, 25 November 2026, evening: "can be smaller to save space". From 769px the heading is 18px (was 22px),
   the point titles 15px (was 17px, 16px on landscape tablets) and the lines under them 14px (was 15px), with
   8px between the rows (was 12px). */
@media (min-width: 769px) {
  body.home-fold .hero-content h2.hero-description {
    font-size: 18px;
  }

  body.home-fold .hero-content .hero-points {
    row-gap: 8px;
    font-size: 15px;
  }

  body.home-fold .hero-point-text {
    margin-top: 2px;
    font-size: 14px;
    line-height: 1.35;
  }
}

/* Phones: the heading is 16px (was 18px), so it fits on one line from 375px wide, and the titles are 15px
   (was 16px) with 8px between them (was 12px). */
@media (max-width: 768px) {
  body.home-fold .hero-content h2.hero-description {
    font-size: 16px;
  }

  body.home-fold .hero-content .hero-points {
    gap: 8px;
    font-size: 15px;
  }
}

/* The ticks follow the smaller type. */
body.home-fold .hero-points li {
  padding-left: 22px;
}

body.home-fold .hero-points li::before {
  left: 3px;
  width: 5px;
  height: 10px;
  border-width: 0 2.5px 2.5px 0;
}
