/* ============================================================
   Legacy Plumbing — Gas Lines Page Stylesheet
   Depends on homepage.css (tokens + base) and inner-pages.css
   (page-hero, breadcrumb, shared utilities).
============================================================ */

/* ============================================================
   MAIN CONTENT SECTION
============================================================ */
.gl-content-section {
  padding: 60px 0 72px;
  background: #fff;
}

/* Two-column layout: wide copy + narrower sidebar */
.gl-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
}

/* ============================================================
   COPY COLUMN
============================================================ */
.gl-copy p {
  font-size: 1.0625rem;
  color: #374151;
  line-height: 1.85;
  margin-bottom: 22px;
}

.gl-copy p:last-of-type {
  margin-bottom: 0;
}

/* ============================================================
   GAS PIPING PHOTOS
   Square manifold photo + wide meter-bank photo, same height
============================================================ */
.gl-photos {
  display: grid;
  grid-template-columns: 1fr 1.79fr;
  gap: 18px;
  margin: 32px 0 8px;
}

.gl-photo {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(30,58,79,.18);
  background: var(--blue-deep);
}

.gl-photo--square { aspect-ratio: 1 / 1; }
.gl-photo--wide   { aspect-ratio: 1024 / 573; }

.gl-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.gl-photo:hover img { transform: scale(1.03); }

.gl-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 11px;
  font-size: .8125rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.35;
  background: linear-gradient(to top, rgba(9,26,38,.85), rgba(9,26,38,0));
}

/* ============================================================
   GAS LEAK SAFETY ALERT
   Orange-accented warning box — matches the underlined
   "If you smell gas…" sentence in the PDF
============================================================ */
.gl-safety-alert {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff8f0;
  border: 2px solid var(--orange);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 28px 0 32px;
}

.gl-safety-alert__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 3px 10px rgba(247,106,26,.3);
}

.gl-safety-alert p {
  font-size: 1rem;
  color: #374151;
  line-height: 1.75;
  margin: 0 !important; /* override .gl-copy p margin */
}

.gl-safety-alert__trigger {
  color: #b84800;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================================
   SERVICES LIST
============================================================ */
.gl-services-list {
  margin-top: 32px;
}

.gl-services-list__intro {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 18px !important;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--orange);
  display: inline-block;
}

.gl-services-list__items {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 32px;
}

.gl-services-list__items li {
  font-size: 1rem;
  color: #374151;
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

/* Orange bullet */
.gl-services-list__items li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

/* ============================================================
   SIDEBAR
============================================================ */
.gl-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: sticky;
  top: 100px; /* clears sticky header */
}

/* Generic card */
.gl-sidebar-card {
  background: var(--gray-soft);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  border: 2px solid var(--gray-mid);
}

/* CTA card — blue background */
.gl-sidebar-card--cta {
  background: linear-gradient(145deg, #091a26 0%, var(--blue-deep) 60%, var(--blue-mid) 100%);
  border-color: transparent;
  color: #fff;
}

.gl-sidebar-card--cta p {
  color: rgba(255,255,255,.85);
  font-size: .9375rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.gl-sidebar-card__heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.0625rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: inherit;
  line-height: 1.3;
}

/* CTA card heading in white */
.gl-sidebar-card--cta .gl-sidebar-card__heading {
  color: #fff;
}

/* Override outline-blue btn on dark bg */
.gl-sidebar-card--cta .btn--outline-blue {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.6);
}
.gl-sidebar-card--cta .btn--outline-blue:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

/* Why Legacy list */
.gl-sidebar-why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gl-sidebar-why-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--dark);
}

.gl-sidebar-why-list li svg {
  color: var(--blue-deep);
  flex-shrink: 0;
}

/* Photo placeholder in sidebar */
.gl-sidebar-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 180px;
}

.gl-sidebar-photo .photo-placeholder {
  height: 100%;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(145deg, #091a26 0%, var(--blue-deep) 50%, var(--blue-mid) 100%);
  color: rgba(255,255,255,.5);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ============================================================
   BOTTOM CTA SECTION
============================================================ */
.gl-cta-section {
  background: linear-gradient(135deg, #091a26 0%, var(--blue-deep) 55%, var(--blue-mid) 100%);
  padding: 64px 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.gl-cta-section::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");
  pointer-events: none;
}

.gl-cta-section .container { position: relative; z-index: 1; }

.gl-cta-section__text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.25rem, 2.6vw, 1.875rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.45;
  margin-bottom: 36px;
}

.gl-cta-section__phone {
  color: var(--orange-warm);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}

.gl-cta-section__phone:hover { color: #fff; }

.gl-cta-section__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================
   RESPONSIVE
============================================================ */

/* Tablet — sidebar drops below copy */
@media (max-width: 960px) {
  .gl-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .gl-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* CTA card spans full width */
  .gl-sidebar-card--cta {
    grid-column: 1 / -1;
  }
}

/* Mobile */
@media (max-width: 640px) {
  .gl-content-section { padding: 44px 0 56px; }
  .gl-cta-section { padding: 48px 0; }

  .gl-sidebar {
    grid-template-columns: 1fr;
  }

  .gl-services-list__items {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .gl-photos {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gl-photo--square { aspect-ratio: 4 / 3; }
  .gl-photo--square img { object-position: center 40%; }

  .gl-safety-alert {
    flex-direction: column;
    gap: 12px;
  }

  .gl-safety-alert__icon {
    width: 40px;
    height: 40px;
  }

  .gl-cta-section__text { font-size: 1.125rem; }
  .gl-cta-section__actions { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .gl-copy p,
  .gl-safety-alert p { font-size: 1rem; }
}
