/* Home page hero: one centered column with a horizontal quote form */
.overlay.hero-with-form {
  padding: 0 20px 40px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding-top: 110px; /* clears the fixed header */
  text-align: center;
}

.hero-copy {
  text-align: center;
  width: 100%;
}

/* ---- Headline + what we provide ---- */
.hero-copy h1 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 12px;
  text-wrap: balance;
}

.overlay .hero-copy .hero-tagline {
  font-size: 1.3rem;
  line-height: 1.35;
  margin: 0 auto 18px;
  max-width: 760px;
}

.hero-services {
  list-style: none;
  padding: 0;
  margin: 0 auto 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 760px;
  text-align: left;
}

.hero-services a {
  display: block;
  height: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.92);
  border-left: 5px solid #156E0B;
  border-radius: 10px;
  padding: 12px 14px;
  color: #0C4466;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease;
}

.hero-services a,
.hero-services a strong,
.hero-services a span {
  text-decoration: none !important;
}

.hero-services a:hover {
  transform: translateY(-2px);
}

.hero-services a:hover strong {
  text-decoration: underline !important;
}

.hero-services strong {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: #156E0B;
  margin-bottom: 4px;
}

.hero-services span {
  display: block;
  font-size: 0.95rem;
  line-height: 1.35;
}

.overlay .hero-copy .hero-price {
  font-size: 1.15rem;
  line-height: 1.45;
  margin: 0;
}

.hero-copy .hero-price a {
  color: #0C4466;
}

/* ---- Horizontal quote form ---- */
.hero-form {
  width: 100%;
  max-width: 1100px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.96);
  border: none;
  border-radius: 16px;
  padding: 18px 22px 14px;
  box-shadow: 0 12px 36px rgba(12, 68, 102, 0.16);
  text-align: center;
  color: #0C4466;
}

.hero-form h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  margin: 0 0 2px;
  color: #156E0B;
}

.overlay .hero-form .hero-form-sub {
  font-size: 0.95rem;
  line-height: 1.35;
  margin: 0 0 12px;
  color: #0C4466;
}

.hero-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: stretch;
}

.hero-fields .input-container {
  width: 100%;
}

.hero-form .label .text {
  white-space: nowrap;
}

.hero-form button {
  height: 48px;
  margin: 0;
  padding: 0 22px;
  font-weight: 700;
  white-space: nowrap;
}

.overlay .hero-form .hero-form-alt {
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 10px 0 0;
}

.hero-form .hero-form-alt a {
  color: #0C4466;
  text-decoration: underline;
}

/* ---- Tablets: two rows of fields ---- */
@media (max-width: 1000px) {
  .parallax {
    height: auto !important;
    min-height: 0;
  }
  .parallax-image {
    height: 100% !important;
  }
  .overlay.hero-with-form {
    min-height: 0;
    padding: 0 16px 48px;
  }
  .hero-grid {
    padding-top: 130px;
    gap: 18px;
  }
  .hero-fields {
    grid-template-columns: 1fr 1fr;
  }
  .hero-fields button {
    grid-column: 1 / -1;
  }
}

/* ---- Phones: compact so the form is on the first screen ---- */
@media (max-width: 600px) {
  .hero-grid {
    gap: 12px;
    padding-top: 104px;
  }
  .hero-copy h1 {
    font-size: 1.55rem;
    margin-bottom: 8px;
  }
  .overlay .hero-copy .hero-tagline {
    font-size: 1rem;
    margin-bottom: 10px;
  }
  .hero-services {
    gap: 8px;
    margin-bottom: 10px;
  }
  .hero-services a {
    padding: 8px 10px;
    border-left-width: 4px;
  }
  .hero-services strong {
    font-size: 0.95rem;
    margin-bottom: 2px;
  }
  .hero-services span {
    font-size: 0.78rem;
  }
  .overlay .hero-copy .hero-price {
    font-size: 0.95rem;
  }
  .hero-form {
    padding: 12px 12px 10px;
  }
  .hero-form h2 {
    font-size: 1.15rem;
  }
  .overlay .hero-form .hero-form-sub {
    font-size: 0.82rem;
    margin-bottom: 8px;
  }
  .hero-fields {
    gap: 8px;
  }
  .hero-fields input {
    height: 42px;
    padding: 10px;
  }
  .hero-form button {
    height: 44px;
  }
  .overlay .hero-form .hero-form-alt {
    margin-top: 6px;
  }
}

/* Price tag on each service card */
.hero-services em {
  display: inline-block;
  margin-top: 8px;
  font-style: normal;
  font-weight: 800;
  font-size: 0.95rem;
  color: #0C4466;
  background: #fff5cf;
  border-radius: 999px;
  padding: 3px 10px;
}

@media (max-width: 600px) {
  .hero-services em {
    margin-top: 5px;
    font-size: 0.78rem;
    padding: 2px 8px;
  }
}

/* Hero image is in the page now: keep it covering the section */
.parallax > .parallax-image {
  z-index: 0;
}

/* ---- Transparent hero: no white boxes, text sits on the photo ---- */
.hero-services a {
  background: transparent;
  box-shadow: none;
  border: 2px solid rgba(12, 68, 102, 0.35);
  border-left: 5px solid #156E0B;
}

.hero-services a:hover {
  border-color: rgba(12, 68, 102, 0.6);
  border-left-color: #156E0B;
}

.hero-form {
  background: transparent;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.hero-form .input-container input {
  background: rgba(255, 255, 255, 0.92);
}

/* ---- Phones: whole hero fits on one screen, below the fixed header ---- */
@media (max-width: 600px) {
  .hero-grid {
    /* --hdr is set from the real header height in JS/Hero_Mobile.js */
    padding-top: calc(var(--hdr, 96px) + 14px);
    gap: 10px;
  }
  .overlay.hero-with-form {
    padding: 0 14px 20px;
  }
  .hero-copy h1 {
    font-size: 1.45rem;
    line-height: 1.2;
    margin-bottom: 6px;
  }
  .overlay .hero-copy .hero-tagline {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 10px;
  }
  .hero-services {
    margin-bottom: 0;
  }
  .hero-services a {
    padding: 8px 10px;
  }
  .hero-services span {
    font-size: 0.76rem;
    line-height: 1.3;
  }
  /* Prices are already on the cards; the phone number is on the Call Now button */
  .overlay .hero-copy .hero-price,
  .overlay .hero-form .hero-form-sub,
  .overlay .hero-form .hero-form-alt {
    display: none;
  }
  .hero-form {
    padding-top: 4px;
    padding-bottom: 0;
  }
  .hero-form h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
  }
  .hero-fields input {
    height: 40px;
  }
  .hero-form button {
    height: 44px;
  }
  /* Call Now button waits until the visitor scrolls past the quote form */
  body.hero-in-view .call-now-btn {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
  }
  .call-now-btn {
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
}

/* ---- Quieter service cards: just the name and the price ---- */
.hero-services {
  max-width: 620px;
}
.hero-services a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
}
.hero-services strong {
  margin: 0;
}
.hero-services em {
  margin: 0;
  white-space: nowrap;
}
.overlay .hero-copy .hero-price {
  font-size: 1rem;
}
@media (max-width: 600px) {
  .hero-services a {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 10px;
  }
  .hero-services em {
    margin: 0;
  }
}
.hero-services {
  max-width: 680px;
}
.hero-services strong {
  white-space: nowrap;
  line-height: 1.2;
}
@media (max-width: 600px) {
  .hero-services a {
    align-items: center;
    text-align: center;
  }
  .hero-services strong {
    white-space: normal;
  }
}

/* ---- Phones & tablets: photo fills the whole first screen, content centered below the header ---- */
@media (max-width: 1000px) {
  .parallax {
    min-height: 100vh;
    min-height: 100svh;
  }
  .overlay.hero-with-form {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--hdr, 96px);
    padding-bottom: 24px;
  }
  .hero-grid {
    padding-top: 20px;
  }
}
@media (max-width: 600px) {
  .hero-grid {
    padding-top: 16px;
    gap: 16px;
  }
  .hero-copy h1 {
    font-size: 1.6rem;
  }
  .overlay .hero-copy .hero-tagline {
    margin-bottom: 14px;
  }
}

/* ---- Breathing room under the headline ---- */
.hero-copy h1 {
  margin-bottom: 18px;
}
@media (max-width: 600px) {
  .hero-copy h1 {
    margin-bottom: 14px;
  }
}
