/* =========================================================
   SOUTH DOWNS — PREMIUM HOME HERO
   Solid editorial composition with crisp, opaque surfaces.
   ========================================================= */

body .hero {
  position: relative;
  min-height: clamp(650px, 78vh, 820px);
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  text-align: left;
  background: #061d34;
}

body .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      rgba(4, 25, 46, 0.97) 0%,
      rgba(4, 33, 60, 0.91) 37%,
      rgba(4, 37, 68, 0.64) 58%,
      rgba(2, 23, 43, 0.18) 82%,
      rgba(2, 18, 34, 0.35) 100%),
    linear-gradient(0deg, rgba(1, 16, 30, 0.72) 0%, transparent 38%);
}

body .hero-slides,
body .hero-slide {
  position: absolute;
  inset: 0;
}

body .hero-slides {
  z-index: 0;
}

body .hero-slide {
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 1.1s ease, transform 7s ease-out;
  will-change: opacity, transform;
}

body .hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

body .hero-container {
  position: relative;
  z-index: 3;
  width: min(100%, 1300px);
  max-width: 1300px;
  min-height: inherit;
  margin: 0 auto;
  padding: clamp(72px, 8vh, 104px) clamp(24px, 4vw, 58px) clamp(86px, 10vh, 118px);
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(330px, 0.76fr);
  align-items: center;
  gap: clamp(48px, 6vw, 92px);
  color: #fff;
}

body .hero-left {
  width: auto;
  min-width: 0;
  padding: 0;
  margin: 0;
}

body .hero-eyebrow {
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #dff6ff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

body .hero-eyebrow span {
  width: 42px;
  height: 3px;
  display: inline-block;
  background: #39bde9;
  box-shadow: 16px 0 0 rgba(57, 189, 233, 0.38);
}

body .hero-title {
  max-width: 790px;
  margin: 0;
  color: #fff;
  font-family: "Barlow Condensed", "Barlow", Arial, sans-serif;
  font-size: clamp(4.35rem, 7.25vw, 6.75rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  text-wrap: balance;
  text-shadow: 0 12px 34px rgba(0, 16, 31, 0.26);
}

body .hero-title span {
  position: relative;
  display: inline-block;
  margin-top: 0.11em;
  color: #50c7f1;
}

body .hero-title span::after {
  content: "";
  position: absolute;
  left: 0.03em;
  right: 0;
  bottom: -0.12em;
  height: 0.055em;
  background: linear-gradient(90deg, #50c7f1 0 54%, rgba(80, 199, 241, 0.18) 54% 100%);
}

body .hero-intro {
  max-width: 680px;
  margin: 34px 0 0;
  color: rgba(244, 251, 255, 0.9);
  font-size: clamp(1rem, 1.25vw, 1.16rem);
  font-weight: 400;
  line-height: 1.72;
}

body .hero-actions {
  margin: 34px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

body .hero .hero-btn {
  min-height: 54px;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 2px solid transparent;
  border-radius: 2px;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1;
  text-decoration: none;
  transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease, border-color 0.24s ease;
}

body .hero .hero-btn--primary {
  color: #fff;
  background: #079fd4;
  border-color: #079fd4;
  box-shadow: 0 14px 30px rgba(0, 130, 182, 0.27);
}

body .hero .hero-btn--primary:hover,
body .hero .hero-btn--primary:focus-visible {
  transform: translateY(-3px);
  background: #20b9ea;
  border-color: #20b9ea;
}

body .hero .hero-btn--primary i {
  transition: transform 0.24s ease;
}

body .hero .hero-btn--primary:hover i,
body .hero .hero-btn--primary:focus-visible i {
  transform: translateX(4px);
}

body .hero .hero-btn--secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.62);
}

body .hero .hero-btn--secondary:hover,
body .hero .hero-btn--secondary:focus-visible {
  transform: translateY(-3px);
  color: #092844;
  background: #fff;
  border-color: #fff;
}

body .hero-assurance {
  width: min(100%, 770px);
  margin: 39px 0 0;
  padding: 20px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

body .hero-assurance li {
  min-width: 0;
  padding: 0 19px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

body .hero-assurance li:first-child {
  padding-left: 0;
}

body .hero-assurance li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

body .hero-assurance i {
  flex: 0 0 auto;
  color: #55cdf5;
  font-size: 1.02rem;
}

body .hero-assurance span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

body .hero-assurance strong,
body .hero-assurance small {
  display: block;
}

body .hero-assurance strong {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

body .hero-assurance small {
  overflow: hidden;
  color: rgba(231, 245, 252, 0.7);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body .hero-service-panel {
  position: relative;
  width: 100%;
  max-width: 430px;
  margin: 0 0 0 auto;
  color: #0a2a47;
  background: #f9fcff;
  border-top: 6px solid #0bb0e5;
  border-radius: 2px;
  box-shadow: 18px 18px 0 rgba(6, 153, 207, 0.92), 0 28px 72px rgba(0, 16, 31, 0.28);
}

body .hero-panel-heading {
  padding: 29px 30px 26px;
  display: grid;
  gap: 8px;
}

body .hero-panel-heading span {
  color: #1688b4;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
  text-transform: uppercase;
}

body .hero-panel-heading strong {
  color: #0a2a47;
  font-family: "Barlow Condensed", "Barlow", Arial, sans-serif;
  font-size: clamp(1.55rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

body .hero-service-link {
  min-height: 98px;
  padding: 20px 27px 20px 30px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  color: #0a2a47;
  text-decoration: none;
  border-top: 1px solid #d8e7f1;
  transition: background 0.22s ease, padding-left 0.22s ease;
}

body .hero-service-link:hover,
body .hero-service-link:focus-visible {
  padding-left: 38px;
  background: #eaf8fe;
}

body .hero-service-number {
  color: #14a6d7;
  font-family: "Barlow Condensed", "Barlow", Arial, sans-serif;
  font-size: 1.15rem;
  font-weight: 800;
}

body .hero-service-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

body .hero-service-copy strong {
  color: #0a2a47;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
}

body .hero-service-copy small {
  color: #5c7488;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
}

body .hero-service-link > i {
  color: #138ebd;
  font-size: 0.82rem;
  transition: transform 0.22s ease;
}

body .hero-service-link:hover > i,
body .hero-service-link:focus-visible > i {
  transform: translate(3px, -3px);
}

body .hero-panel-note {
  min-height: 70px;
  padding: 18px 29px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dff7ff;
  background: #082c4b;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.45;
}

body .hero-panel-note i {
  flex: 0 0 auto;
  color: #47c5ef;
}

body .hero-pagination {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 30px;
  width: min(calc(100% - 48px), 1184px);
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateX(-50%);
}

body .hero-pagination::before {
  content: "VIEW";
  margin-right: 7px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

body .hero-pagination button {
  width: 34px;
  height: 3px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.3s ease, background 0.3s ease;
}

body .hero-pagination button.is-active {
  width: 72px;
  background: #48c7f1;
}

body .hero-pagination button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

@media (max-width: 1080px) {
  body .hero {
    min-height: auto;
  }

  body .hero-container {
    min-height: 720px;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: 45px;
    padding-left: 28px;
    padding-right: 42px;
  }

  body .hero-title {
    font-size: clamp(4rem, 7.8vw, 5.4rem);
  }

  body .hero-assurance {
    grid-template-columns: minmax(0, 1fr);
    border-bottom: 0;
  }

  body .hero-assurance li {
    min-height: 48px;
    padding: 9px 0;
  }

  body .hero-assurance li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 0;
  }

  body .hero-assurance small {
    white-space: normal;
  }
}

@media (max-width: 820px) {
  body .hero::before {
    background:
      linear-gradient(90deg, rgba(3, 25, 46, 0.96) 0%, rgba(3, 34, 62, 0.86) 64%, rgba(3, 25, 46, 0.66) 100%),
      linear-gradient(0deg, rgba(1, 16, 30, 0.76) 0%, transparent 44%);
  }

  body .hero-container {
    min-height: 0;
    padding: 72px 24px 100px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 54px;
    text-align: left;
  }

  body .hero-left,
  body .hero-service-panel {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
  }

  body .hero-title {
    max-width: 650px;
    font-size: clamp(4rem, 12vw, 5.8rem);
  }

  body .hero-intro {
    max-width: 620px;
  }

  body .hero-actions {
    justify-content: flex-start;
  }

  body .hero-assurance {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  body .hero-assurance li {
    min-height: 0;
    padding: 0 15px;
  }

  body .hero-assurance li:first-child {
    padding-left: 0;
  }

  body .hero-assurance li + li {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.16);
  }

  body .hero-service-panel {
    box-shadow: 12px 12px 0 rgba(6, 153, 207, 0.92), 0 25px 62px rgba(0, 16, 31, 0.3);
  }
}

@media (max-width: 600px) {
  body .hero-slide {
    background-position: 62% center !important;
  }

  body .hero-container {
    padding: 56px max(18px, env(safe-area-inset-left)) 92px max(18px, env(safe-area-inset-right));
    gap: 42px;
  }

  body .hero-eyebrow {
    margin-bottom: 19px;
    gap: 9px;
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  body .hero-eyebrow span {
    width: 28px;
    box-shadow: 10px 0 0 rgba(57, 189, 233, 0.34);
  }

  body .hero-title {
    font-size: clamp(3.25rem, 16vw, 4.5rem);
    line-height: 0.9;
  }

  body .hero-intro {
    margin-top: 29px;
    font-size: 0.96rem;
    line-height: 1.62;
  }

  body .hero-actions {
    margin-top: 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }

  body .hero .hero-btn {
    width: 100%;
    min-width: 0;
    min-height: 51px;
    padding: 0 20px;
  }

  body .hero-assurance {
    margin-top: 31px;
    padding: 14px 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  body .hero-assurance li,
  body .hero-assurance li:first-child {
    min-height: 62px;
    padding: 4px 10px;
    flex-direction: column;
    justify-content: center;
    gap: 7px;
    text-align: center;
  }

  body .hero-assurance li + li {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
  }

  body .hero-assurance strong {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  body .hero-assurance small {
    display: none;
  }

  body .hero-service-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body .hero-panel-heading {
    grid-column: 1 / -1;
    padding: 21px 20px 18px;
  }

  body .hero-panel-heading strong {
    font-size: 1.45rem;
  }

  body .hero-service-link {
    min-height: 132px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    border-top: 1px solid #d8e7f1;
  }

  body .hero-service-link + .hero-service-link {
    border-left: 1px solid #d8e7f1;
  }

  body .hero-service-link:hover,
  body .hero-service-link:focus-visible {
    padding-left: 19px;
  }

  body .hero-service-copy {
    gap: 4px;
  }

  body .hero-service-copy strong {
    font-size: 0.87rem;
  }

  body .hero-service-copy small {
    font-size: 0.68rem;
    line-height: 1.35;
  }

  body .hero-service-link > i {
    display: none;
  }

  body .hero-panel-note {
    grid-column: 1 / -1;
    min-height: 58px;
    padding: 13px 18px;
    font-size: 0.72rem;
  }

  body .hero-pagination {
    bottom: 24px;
    width: calc(100% - 36px);
  }

  body .hero-pagination button {
    flex: 1 1 0;
    width: auto;
    max-width: 38px;
  }

  body .hero-pagination button.is-active {
    flex-grow: 2;
    width: auto;
    max-width: 76px;
  }
}

@media (max-width: 380px) {
  body .hero-title {
    font-size: 3rem;
  }

  body .hero-panel-heading strong {
    font-size: 1.4rem;
  }

  body .hero-service-link {
    grid-template-columns: 26px minmax(0, 1fr);
  }

  body .hero-service-link > i {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body .hero-slide,
  body .hero .hero-btn,
  body .hero-service-link,
  body .hero-service-link > i,
  body .hero-pagination button {
    transition: none;
  }
}
