/* ===================================
   MSH EXTERIOR SERVICES - BRAND COLOURS
=================================== */

:root {
  --navy: #002346;
  --blue: #2b7fab;
  --light-blue: #79c7e5;
  --dark-blue: #003355;
  --white: #ffffff;
  --background: #f4f7fa;
  --text: #263746;
}

/* GENERAL */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

a {
  text-decoration: none;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--light-blue);
  outline-offset: 4px;
}

/* NAVIGATION */

.site-header {
  background: var(--navy);
  padding: 18px 0;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.brand {
  color: white;
  font-size: 24px;
  font-weight: 800;
}

.brand span {
  color: var(--light-blue);
  font-weight: 400;
}

nav {
  display: flex;
  align-items: center;
  gap: 25px;
}

nav a {
  color: white;
  font-size: 14px;
}

nav a:hover {
  color: var(--light-blue);
}

.nav-button {
  background: var(--blue);
  padding: 10px 18px;
  border-radius: 5px;
}

/* HERO */

.hero {
  background: linear-gradient(135deg, #002346, #145c87);
  color: white;
  padding: 110px 0;
}

.hero-content {
  max-width: 1200px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--light-blue);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 62px);
  max-width: 780px;
  margin: 20px 0;
}

.hero-description {
  font-size: 18px;
  max-width: 650px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
}

.button {
  display: inline-block;
  padding: 14px 25px;
  border-radius: 5px;
  font-weight: bold;
}

.button-primary {
  background: var(--light-blue);
  color: var(--navy);
}

.button-outline {
  border: 2px solid white;
  color: white;
}

.button:hover {
  opacity: 0.85;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 40px;
  font-size: 14px;
}

/* SECTIONS */

.section {
  padding: 80px 0;
}

.section-heading {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 45px;
}

.section-heading h2 {
  color: var(--navy);
  font-size: clamp(30px, 4vw, 42px);
}

.dark {
  color: var(--blue);
}

/* SERVICE CARDS */

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.service-card {
  border-radius: 10px;
  overflow: hidden;
  background: white;
  box-shadow: 0 5px 22px rgba(0, 0, 0, 0.09);
}

.service-image {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  background: var(--blue);
}

.service-image.windows {
  background: linear-gradient(135deg, #79c7e5, #2b7fab);
}

.service-image.gutters {
  background: linear-gradient(135deg, #003355, #2b7fab);
}

.service-image.fascias {
  background: linear-gradient(135deg, #2b7fab, #79c7e5);
  object-position: center 68%;
}
.service-content {
  padding: 25px;
}

.service-content h3 {
  color: var(--navy);
}

.service-content a {
  color: var(--blue);
  font-weight: bold;
}

/* HOW IT WORKS */

.light-section {
  background: var(--background);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  text-align: center;
}

.step-number {
  font-size: 40px;
  font-weight: bold;
  color: var(--blue);
}

.step h3 {
  color: var(--navy);
}

/* QUOTATION */

.quote-section {
  background: var(--navy);
  color: white;
  text-align: center;
}

.quote-content {
  max-width: 850px;
}

.quote-section h2 {
  font-size: clamp(30px, 4vw, 42px);
}

.quote-placeholder {
  margin-top: 35px;
  padding: 35px;
  background: white;
  color: var(--text);
  border-radius: 10px;
}

.quote-placeholder h3 {
  color: var(--navy);
}

/* FOOTER */

.site-footer {
  background: #00182e;
  color: white;
  padding: 35px 0;
  text-align: center;
}

.footer-content p {
  margin: 5px 0;
}

/* ===================================
   MSH INSTANT ESTIMATE CALCULATOR
=================================== */

[hidden] {
  display: none !important;
}

.estimate-card {
  background: white;
  color: var(--text);
  padding: 35px;
  border-radius: 12px;
  margin-top: 35px;
  text-align: left;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* The three service links jump to this exact card. */
#instant-estimate {
  scroll-margin-top: 16px;
}

.estimate-card h3 {
  color: var(--navy);
  font-size: 25px;
  margin-top: 0;
}

.estimate-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0 20px;
}

.estimate-field label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  color: var(--navy);
}

.estimate-field select {
  width: 100%;
  padding: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: white;
  font-size: 16px;
  color: var(--text);
}

.estimate-field select:focus-visible,
.estimate-checkbox input:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.estimate-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0;
  cursor: pointer;
}

.estimate-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--blue);
  flex-shrink: 0;
  margin-top: 4px;
}

/* PRICE DISPLAY */

.estimate-result {
  background: #eef6fa;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  margin-top: 30px;
}

.estimate-result p {
  margin: 8px 0;
}

.estimate-price {
  font-size: 42px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  overflow-wrap: anywhere;
}

#first-clean-line {
  margin-top: 15px;
  color: var(--dark-blue);
}

/* PERSONAL QUOTATION */

.manual-message {
  background: #eef6fa;
  padding: 25px;
  border-radius: 8px;
  margin-top: 25px;
}

.manual-message h4 {
  color: var(--navy);
  margin-top: 0;
}

.estimate-disclaimer {
  font-size: 13px;
  color: #596675;
  margin-top: 20px;
  line-height: 1.5;
}

/* ===================================
   MSH BRANDING
=================================== */

.site-logo {
  display: block;
  width: 220px;
  max-width: 100%;
  max-height: 85px;
  height: auto;
  object-fit: contain;
}

/* ===================================
   MULTI-SERVICE ESTIMATE BUILDER
=================================== */

.service-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  background: #f4f7fa;
  padding: 20px;
  border-radius: 8px;
  margin: 25px 0;
}

.service-picker .estimate-checkbox {
  margin: 0;
}

.gutter-options {
  background: #f4f7fa;
  padding: 25px;
  border-radius: 8px;
  margin: 25px 0;
}

.gutter-options h4 {
  color: var(--navy);
  font-size: 21px;
  margin-top: 0;
}

/* Style measurement labels, but NOT checkbox labels. */
.gutter-options label:not(.estimate-checkbox) {
  display: block;
  color: var(--navy);
  font-weight: bold;
  margin: 15px 0 8px;
}

.gutter-options input[type="number"] {
  width: 100%;
  padding: 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 16px;
  color: var(--text);
  background: white;
}

/* Keep the 'I don't know' checkboxes compact and correctly aligned. */
.gutter-options .estimate-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 15px 0;
  font-weight: normal;
}

.gutter-options input[type="number"]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.measurement-help {
  font-size: 13px;
  color: #596675;
}

/* ===================================
   MOBILE & TABLET
=================================== */

@media (max-width: 800px) {
  .nav-content {
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .hero {
    padding: 65px 0;
  }

  .service-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .hero-features {
    gap: 15px;
  }

  .site-logo {
    width: 300px;
  }
}

@media (max-width: 600px) {
  .site-header {
    padding: 12px 0;
  }

  .nav-content {
    gap: 12px;
  }

  nav {
    gap: 9px 14px;
  }

  nav a {
    font-size: 13px;
  }

  .nav-button {
    padding: 8px 12px;
  }

  .hero {
    padding: 48px 0 46px;
  }

  .hero h1 {
    font-size: clamp(32px, 8vw, 40px);
    margin: 15px 0;
  }

  .hero-description {
    font-size: 16px;
    margin-bottom: 0;
  }

  .hero-buttons {
    gap: 12px;
    margin-top: 24px;
  }

  .hero-features {
    gap: 8px 16px;
    margin-top: 25px;
    font-size: 13px;
  }

  .section {
    padding: 42px 0;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading h2,
  .quote-section h2 {
    font-size: clamp(28px, 7vw, 34px);
    margin: 12px 0;
  }

  .section-heading > p:last-child {
    margin-bottom: 0;
  }

  /* Less scrolling through the three service cards. */
  .service-grid {
    gap: 20px;
  }

  .service-image {
    height: 175px;
  }

  .service-content {
    padding: 20px;
  }

  .service-content h3 {
    margin: 0 0 8px;
  }

  .service-content p {
    margin: 0 0 12px;
  }

  /* Compact two-column layout within each 'How It Works' step. */
  .steps-grid {
    gap: 24px;
    text-align: left;
  }

  .step {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas:
      "number heading"
      "number description";
    column-gap: 15px;
    align-items: start;
  }

  .step-number {
    grid-area: number;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 9px;
    background: #e5f1f8;
    font-size: 24px;
    line-height: 1;
  }

  .step h3 {
    grid-area: heading;
    margin: 0 0 5px;
    font-size: 19px;
  }

  .step p {
    grid-area: description;
    margin: 0;
    font-size: 14px;
  }

  /* Comfortable mobile estimate form without excessive spacing. */
  .estimate-card {
    padding: 20px;
    margin-top: 24px;
  }

  .estimate-card h3 {
    font-size: 23px;
  }

  .service-picker {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 20px 0;
    padding: 18px;
  }

  .estimate-fields {
    grid-template-columns: 1fr;
    gap: 15px;
    margin: 20px 0 16px;
  }

  .gutter-options {
    padding: 20px;
    margin: 20px 0;
  }

  .estimate-result {
    padding: 18px;
    margin-top: 20px;
  }

  .estimate-price {
    font-size: 34px;
  }

  /* Long 'Personal quotation needed' labels should wrap neatly. */
  #gutter-price,
  #fascia-price {
    font-size: clamp(23px, 6vw, 34px);
  }

  .manual-message {
    padding: 20px;
    margin-top: 20px;
  }

  /* Clear, thumb-friendly next step on a phone. */
  #continue-to-quote {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
  }

  .site-footer {
    padding: 26px 0;
  }
}

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

/* =========================================
   MSH SPLIT HERO LAYOUT
========================================= */

/* Two-column layout on desktop */

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(30px, 4vw, 65px);
  align-items: center;
}

/* Keep text inside its column */

.hero-copy {
  min-width: 0;
}

/* Reduce excessive hero height */

.hero {
  padding: 75px 0;
}

/* Working photograph container */

.hero-visual {
  width: 100%;
  aspect-ratio: 5 / 6;
  max-height: 520px;
  overflow: hidden;

  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);

  box-shadow:
    0 18px 45px rgba(0, 15, 35, 0.25);

  background: #003355;
}

/* Working photograph */

.hero-image {
  display: block;
  width: 100%;
  height: 100%;

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

/* Tighter spacing inside the hero */

.hero-split .hero-buttons {
  margin-top: 25px;
}

.hero-split .hero-features {
  margin-top: 30px;
}

/* =========================================
   TABLET AND MOBILE
========================================= */

@media (max-width: 900px) {

  .hero-split {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero {
    padding: 55px 0;
  }

  .hero-visual {
    aspect-ratio: 16 / 9;
    max-height: 300px;
  }

}


/* =========================================
   SMALL MOBILE SCREENS
========================================= */

@media (max-width: 600px) {

  .hero {
    padding: 45px 0;
  }

  .hero-split {
    gap: 24px;
  }

  .hero-visual {
    aspect-ratio: auto;
    height: 190px;
    max-height: none;
    border-radius: 10px;
  }

  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;

    /* Adjusted for the MSH WFP photograph */
    object-position: center 32%;
  }

  .hero-split .hero-features {
    margin-top: 24px;
  }

}

/* =========================================
   INTEGRATED DESKTOP HERO IMAGE
========================================= */

@media (min-width: 901px) {

  /* Allow the image to blend into the full hero */
  .hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
  }

  /* Keep the text and image in one composition */
  .hero-split {
    display: block;
  }

  /* Keep all headline content above the image */
  .hero-copy {
    position: relative;
    z-index: 2;
    width: 56%;
    max-width: 680px;
  }

  /* Extend the photo across the right side */
  .hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;

    width: 58%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;

    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;

    z-index: 1;
    pointer-events: none;

    /* Gradually fade into the navy background */
    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 35%,
      black 100%
    );

    mask-image: linear-gradient(
      to right,
      transparent 0%,
      black 35%,
      black 100%
    );
  }

  /* Photograph positioning and colour */
  .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 38%;

    filter:
      saturate(0.9)
      brightness(0.92);
  }

  /* Subtle overlay to tie the photograph into the branding */
  .hero-visual::after {
    content: "";
    position: absolute;
    inset: 0;

    background:
      linear-gradient(
        to bottom,
        rgba(0, 35, 70, 0.35) 0%,
        transparent 20%,
        transparent 75%,
        rgba(0, 35, 70, 0.45) 100%
      ),
      rgba(0, 35, 70, 0.12);

    pointer-events: none;
  }

}

/* =========================================
   WHATSAPP INLINE ICONS
========================================= */

.whatsapp-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 7px;
  vertical-align: -3px;
  fill: currentColor;
  flex-shrink: 0;
}
