/* ============================================================
   Legacy Plumbing — Inner Pages Stylesheet
   Shared styles for About, Services, Contact, etc.
============================================================ */

/* ---- Page Hero (blue banner top of every inner page) ---- */
.page-hero {
  background: linear-gradient(135deg, #091a26 0%, var(--blue-deep) 55%, var(--blue-mid) 100%);
  padding: 52px 0 48px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero .container { position: relative; z-index: 1; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .875rem; color: rgba(255,255,255,.6);
  margin-bottom: 14px;
}
.breadcrumb a { color: rgba(255,255,255,.6); transition: color .2s; }
.breadcrumb a:hover { color: var(--orange-warm); }
.breadcrumb span { opacity: .5; }
.page-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900; color: #fff;
  margin-bottom: 10px; line-height: 1.1;
}
.page-hero__tagline {
  font-size: 1.0625rem;
  color: var(--orange-warm);
  font-weight: 600;
  font-style: italic;
}

/* ============================================================
   ABOUT PAGE
============================================================ */

/* About body: two-column layout */
.about-body-section { padding: 72px 0; background: #fff; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
}

/* Copy column */
.about-copy__heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.75rem; font-weight: 900;
  color: var(--blue-deep);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--orange);
  display: inline-block;
}
.about-copy p {
  font-size: 1.0625rem;
  color: #374151;
  line-height: 1.85;
  margin-bottom: 22px;
}
.about-copy p:last-of-type { margin-bottom: 0; }
.about-copy__cta {
  display: flex; flex-wrap: wrap; gap: 14px;
  margin-top: 36px;
}

/* Photo column */
.about-photo { position: relative; }
.about-photo__main {
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 8px 40px rgba(30,58,79,.18);
  aspect-ratio: 3/4;
  background: linear-gradient(155deg, #091a26 0%, #1e3a4f 50%, #3b6e80 100%);
}
.about-photo__placeholder {
  height: 100%; min-height: 380px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 12px;
  color: rgba(255,255,255,.5); text-align: center; padding: 24px;
}
.about-photo__placeholder p  { font-size: 1rem; font-weight: 600; }
.about-photo__placeholder span { font-size: .8125rem; opacity: .7; }

.about-photo__badge {
  position: absolute;
  bottom: -20px; left: -20px;
  background: var(--orange);
  color: #fff;
  border-radius: 14px;
  padding: 18px 22px;
  box-shadow: 0 4px 20px rgba(247,106,26,.4);
  text-align: center;
  min-width: 120px;
}
.about-photo__badge-year {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem; font-weight: 900; line-height: 1;
}
.about-photo__badge-text {
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  margin-top: 4px; opacity: .9;
}

/* ---- Tagline Band ---- */
.tagline-band {
  background: var(--blue-deep);
  padding: 24px 0;
  text-align: center;
}
.tagline-band__text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.375rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: .03em;
  display: flex; align-items: center;
  justify-content: center; gap: 16px; flex-wrap: wrap;
}
.tagline-band__dot { color: var(--orange-warm); font-size: 1.5rem; line-height: 1; }

/* ---- Why Choose Us ---- */
.why-section {
  padding: 72px 0;
  background: var(--gray-soft);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
/* Last item (5th) spans full width if odd */
.why-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 430px;
  margin: 0 auto;
}
.why-card {
  display: flex; align-items: flex-start; gap: 16px;
  background: #fff;
  border-radius: 14px;
  padding: 24px 22px;
  border: 2px solid var(--gray-mid);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transition: all .22s;
}
.why-card:hover {
  border-color: var(--blue-deep);
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(30,58,79,.12);
}
.why-card__check {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}
.why-card__title {
  font-size: 1.0625rem; font-weight: 700;
  color: var(--dark); margin-bottom: 6px;
}
.why-card__desc {
  font-size: .9375rem; color: var(--gray-text); line-height: 1.65;
}

/* ---- About CTA section ---- */
.about-cta-section {
  background: linear-gradient(135deg, #091a26 0%, var(--blue-deep) 60%, var(--blue-mid) 100%);
  padding: 72px 0;
  color: #fff;
}
.about-cta-section__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900; color: #fff;
  margin-bottom: 12px;
}
.about-cta-section__sub {
  font-size: 1.0625rem; color: rgba(255,255,255,.8);
  margin-bottom: 32px;
}
.about-cta-section__actions {
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 16px;
}

/* ============================================================
   RESPONSIVE — Inner Pages
============================================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { display: none; }   /* hide photo col on mobile; show text only */
  .why-grid { grid-template-columns: 1fr; }
  .why-card:last-child:nth-child(odd) { max-width: 100%; }
}

@media (max-width: 600px) {
  .about-body-section { padding: 48px 0; }
  .why-section { padding: 48px 0; }
  .about-cta-section { padding: 48px 0; }
  .tagline-band__text { gap: 10px; font-size: .9375rem; }
  .about-copy__cta { flex-direction: column; }
  .about-cta-section__actions { flex-direction: column; align-items: center; }
}

/* ============================================================
   CONTACT PAGE — body content styles
   (shared via inner-pages.css so contact.html doesn't need
    the old style.css)
============================================================ */

/* Section spacing utilities used on contact.html */
.section     { padding: 80px 0; }
.section--sm { padding: 50px 0; }
.bg-gray-soft { background: var(--gray-soft); }

/* Section label (orange small-caps above headings) */
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

/* Section subheading */
.section-subheading {
  font-size: 1.0625rem;
  color: var(--gray-text);
  max-width: 640px;
}
.section-subheading--center { margin: 0 auto 48px; text-align: center; }

/* Contact two-column grid */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  margin-top: 48px;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }

/* Contact info cards (Phone / Email / Hours / Area) */
.contact-info-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 1px solid var(--gray-mid);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow .22s;
}
.contact-info-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.12); }
.contact-info-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-warm));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.contact-info-card__label {
  font-size: .8125rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--gray-text); margin-bottom: 4px;
}
.contact-info-card__value { font-size: 1rem; font-weight: 700; color: var(--dark); }
.contact-info-card__value a { color: var(--blue-deep); transition: color .2s; }
.contact-info-card__value a:hover { color: var(--orange); }
.contact-info-card__sub { font-size: .875rem; color: var(--gray-text); margin-top: 2px; }

/* Contact form card */
.contact-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12);
  border: 1px solid var(--gray-mid);
}
.contact-form-card h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.375rem; font-weight: 800;
  color: var(--dark); margin-bottom: 6px;
}
.contact-form-card p { font-size: .9375rem; color: var(--gray-text); margin-bottom: 28px; }

/* Form layout */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .875rem; font-weight: 600; color: var(--dark); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 2px solid var(--gray-mid);
  border-radius: 8px;
  font-family: inherit; font-size: .9375rem;
  color: var(--dark); background: #fff;
  transition: border-color .2s;
  width: 100%; resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(45,125,210,.12);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #ef4444; }
.form-error-msg { font-size: .8125rem; color: #ef4444; margin-top: 3px; display: none; }
.form-error-msg.show { display: block; }
.field-optional {
  display: inline-block;
  margin-left: 5px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gray-text);
  background: var(--gray-mid);
  border-radius: 20px;
  padding: 2px 8px;
  vertical-align: middle;
}

/* ---- Photo upload label ---- */
.photo-upload-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--dark);
  cursor: default;
}
.photo-upload-label__optional {
  margin-left: 4px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gray-text);
  background: var(--gray-mid);
  border-radius: 20px;
  padding: 2px 9px;
}

/* ---- Drag-and-drop upload zone ---- */
.photo-upload-zone {
  position: relative;
  border: 2px dashed var(--gray-mid);
  border-radius: 10px;
  background: var(--gray-soft);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  overflow: hidden;
  min-height: 110px;
}
.photo-upload-zone:hover,
.photo-upload-zone:focus,
.photo-upload-zone.dragover {
  border-color: var(--blue-mid);
  background: #edf4f8;
  outline: none;
}
.photo-upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.photo-upload-zone__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px 16px;
  color: var(--gray-text);
  pointer-events: none;
}
.photo-upload-zone__text {
  font-size: .9rem;
  font-weight: 600;
  color: var(--blue-mid);
}
.photo-upload-zone__hint {
  font-size: .775rem;
  color: var(--gray-text);
}

/* ---- Photo preview thumbnails ---- */
.photo-preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  pointer-events: none;
}
.photo-preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: 80px;
}
.photo-preview-item img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--blue-mid);
}
.photo-preview-item span {
  font-size: .68rem;
  color: var(--gray-text);
  text-align: center;
  word-break: break-all;
  line-height: 1.2;
}

/* Form success state */
.form-success {
  display: none;
  background: #ecfdf5;
  border: 2px solid #10b981;
  border-radius: 12px;
  padding: 24px 28px;
  text-align: center;
}
.form-success.show { display: block; }
.form-success__icon { font-size: 2.5rem; margin-bottom: 12px; }
.form-success h4 { font-size: 1.125rem; font-weight: 700; color: #065f46; margin-bottom: 8px; }
.form-success p { font-size: .9375rem; color: #065f46; }

/* FAQ accordion */
.faq-item {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--gray-mid);
  overflow: hidden;
  transition: border-color .22s;
}
.faq-item:hover { border-color: var(--blue-bright); }
.faq-question {
  width: 100%;
  display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  padding: 18px 24px;
  background: none; border: none;
  text-align: left; font-family: inherit;
  font-size: 1rem; font-weight: 600;
  color: var(--dark); cursor: pointer;
  transition: background .2s;
}
.faq-question:hover { background: var(--gray-soft); }
.faq-question[aria-expanded="true"] { color: var(--blue-deep); background: #f0f6ff; }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(180deg); color: var(--blue-deep); }
.faq-icon { flex-shrink: 0; transition: transform .3s; }
.faq-answer {
  padding: 0 24px 18px;
  font-size: .9375rem; color: var(--gray-text);
  line-height: 1.7;
}
.faq-answer[hidden] { display: none; }

/* ---- Responsive — Contact page ---- */
@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section--sm { padding: 36px 0; }
  .contact-form-card { padding: 24px 18px; }
}

@media (max-width: 480px) {
  .contact-form-card { padding: 20px 14px; }
}

/* ============================================================
   CONTACT PAGE — Trust Strip
============================================================ */
.contact-trust-strip {
  background: var(--blue-deep, #1a4fa0);
  padding: 20px 0;
}

.contact-trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: center;
}

.contact-trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
}

.contact-trust-item__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange-warm, #f5a623);
}

.contact-trust-item strong {
  display: block;
  font-size: .9375rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-trust-item span {
  display: block;
  font-size: .8125rem;
  color: rgba(255,255,255,.7);
  line-height: 1.4;
}

/* ============================================================
   CONTACT PAGE — Service Area Counties Grid
============================================================ */
.contact-counties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-county-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border-radius: var(--radius-lg, 14px);
  padding: 20px 22px;
  border: 1px solid var(--gray-mid, #e2e8f0);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: box-shadow .22s, transform .22s;
}

.contact-county-card:hover {
  box-shadow: 0 6px 24px rgba(30,58,79,.12);
  transform: translateY(-2px);
}

.contact-county-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-deep, #1a4fa0), var(--blue-mid, #2d7dd2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.contact-county-card__name {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue-deep, #1a4fa0);
  margin-bottom: 6px;
}

.contact-county-card__cities {
  font-size: .8125rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
}

/* ---- Responsive — new contact additions ---- */
@media (max-width: 1024px) {
  .contact-trust-strip__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

@media (max-width: 640px) {
  .contact-trust-strip__inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-counties-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .contact-trust-strip {
    padding: 20px 0;
  }
}

/* ============================================================
   PAGE HERO — Photo Background Pattern
   Works on all inner pages: add .page-hero--photo + <img class="page-hero__bg-img">
============================================================ */
.page-hero--photo {
  background: #091a26; /* fallback while image loads */
  overflow: hidden;
}

.page-hero__bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}

/* Dark gradient overlay so text stays readable over any photo */
.page-hero--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(105deg,
    rgba(8,22,50,0.80) 0%,
    rgba(13,45,94,0.70) 50%,
    rgba(30,58,79,0.50) 100%);
}

/* Ensure existing .page-hero::before (SVG pattern) stays above gradient overlay */
.page-hero--photo::before {
  z-index: 2;
}

/* Content always on top */
.page-hero--photo .container {
  position: relative;
  z-index: 3;
}

/* ============================================================
   WATER HEATER SERVICE BLOCKS — Inline Photo Layout
   .wh-service-block__content has 2 direct children:
     - .wh-service-block__body  (icon + text)
     - .wh-service-block__photo (image)
   Even blocks have photo on the left (already placed first in HTML)
============================================================ */
.wh-service-block--has-photo .wh-service-block__content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: center;
}

/* Block 2 (Replacement) has photo first in DOM → appears left naturally */
/* Keep consistent grid for all */

.wh-service-block__photo {
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  height: 260px;
  box-shadow: 0 6px 28px rgba(0,0,0,.12);
  border: 2px solid var(--gray-mid, #e2e8f0);
}

.wh-service-block__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Body wrapper keeps icon + text together as one grid cell */
.wh-service-block__body {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (max-width: 860px) {
  .wh-service-block--has-photo .wh-service-block__content {
    grid-template-columns: 1fr;
  }
  .wh-service-block__photo {
    height: 220px;
  }
}

/* ============================================================
   GAS LINES — Inline Photo Break in Copy Column
============================================================ */
.gl-copy-photo {
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  height: 260px;
  margin: 32px 0;
  box-shadow: 0 6px 28px rgba(0,0,0,.12);
  border: 2px solid var(--gray-mid, #e2e8f0);
}

.gl-copy-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================================
   ABOUT PAGE — Why Choose Us Photo
============================================================ */
.why-section--with-photo {
  padding: 72px 0;
}

.why-photo-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: start;
  margin-top: 40px;
}

.why-photo-col {
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  height: 480px;
  box-shadow: 0 8px 40px rgba(30,58,79,.18);
  border: 2px solid var(--gray-mid, #e2e8f0);
}

.why-photo-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 900px) {
  .why-photo-layout {
    grid-template-columns: 1fr;
  }
  .why-photo-col {
    height: 280px;
  }
}

