/* ============================================================
   Legacy Plumbing — Services Page Stylesheet
   Styles for services.html only.
   Depends on homepage.css (design tokens + base) and
   inner-pages.css (page-hero, breadcrumb, shared utilities).
============================================================ */

/* ============================================================
   SERVICES INTRO SECTION
============================================================ */
.services-intro {
  padding: 60px 0 0;
  background: #fff;
}

.services-intro .container--narrow p {
  font-size: 1.0625rem;
  color: #374151;
  line-height: 1.85;
  margin-bottom: 24px;
}

.services-intro .container--narrow p:first-of-type {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--blue-deep);
}

.services-intro .container--narrow p:last-of-type {
  margin-bottom: 0;
}

/* ============================================================
   SERVICES PHOTOS SECTION
============================================================ */
.services-photos-section {
  padding: 48px 0;
  background: var(--gray-soft);
}

.services-photos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.services-photo-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(30, 58, 79, 0.13);
  aspect-ratio: 4 / 3;
}

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

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

@media (max-width: 600px) {
  .services-photos-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   TWO-PHOTO ROW
============================================================ */
.services-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}

/* Real images inside services photo slots */
.services-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.services-photo-slot {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 220px;
}

.services-photo-slot .photo-placeholder {
  height: 100%;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(145deg, #091a26 0%, var(--blue-deep) 50%, var(--blue-mid) 100%);
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ============================================================
   SERVICES LIST SECTION
============================================================ */
.services-list-section {
  padding: 64px 0 72px;
  background: var(--gray-soft);
}

.services-list-intro {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 36px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--orange);
  display: inline-block;
}

/* ============================================================
   CATEGORIES GRID  (2-column desktop, 1-column mobile)
   8 items in a symmetrical 4×2 grid:
   Row 1: Kitchen | Bathroom
   Row 2: Sewer & Water | Water Heaters
   Row 3: Sewer Camera Offer | Gas Piping
   Row 4: Water Quality | Sump Pumps
============================================================ */
.services-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* ============================================================
   INDIVIDUAL SERVICE CATEGORY CARD
============================================================ */
.service-category {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 26px 26px;
  border: 2px solid var(--gray-mid);
  box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
  transition: border-color .22s, transform .22s, box-shadow .22s;
}

.service-category:hover {
  border-color: var(--blue-mid);
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(26, 79, 160, .13);
}

/* Card header: icon + title in a row */
.service-category__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

/* Coloured icon circle */
.service-category__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .15);
}

.service-category__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--blue-deep);
  line-height: 1.2;
}

/* ============================================================
   BULLET LIST  (inside each card)
============================================================ */
.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.service-list li {
  font-size: .9875rem;
  color: #374151;
  line-height: 1.55;
  padding-left: 22px;
  position: relative;
}

/* Custom bullet using orange dot */
.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}

/* ============================================================
   OFFER INLINE CARD — grid variant
   Sits as a full-height grid cell beside Gas Piping (row 3)
============================================================ */
.offer-inline-card--grid {
  margin: 0;                     /* override default top/bottom margin */
  border-radius: var(--radius-lg);
  border: 2px solid var(--gray-mid);
  border-left: 4px solid var(--orange);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ============================================================
   BOTTOM CTA SECTION
============================================================ */
.services-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;
}

/* subtle watermark pattern */
.services-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;
}

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

.services-cta-section__text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 36px;
}

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

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

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

/* white-outline button variant (used on dark CTA band) */
.btn--white-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .7);
}

.btn--white-outline:hover {
  background: rgba(255, 255, 255, .12);
  border-color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   OUR WORK GALLERY — Plumbing Repairs
============================================================ */
.sv-gallery-section {
  padding: 72px 0 80px;
  background: #fff;
}

.sv-gallery__heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-deep);
  text-align: center;
  margin-bottom: 10px;
}

.sv-gallery__sub {
  text-align: center;
  color: #5a6a7e;
  font-size: 1rem;
  margin-bottom: 44px;
}

.sv-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.sv-gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 4px 18px rgba(30,58,79,.10);
  background: #091a26;
  cursor: pointer;
}

.sv-gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

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

.sv-gallery-item:hover img {
  transform: scale(1.05);
}

.sv-gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 14px;
  background: linear-gradient(to top, rgba(8,20,50,.85) 0%, transparent 100%);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .28s, transform .28s;
}

.sv-gallery-item:hover .sv-gallery-item__caption {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   SEWER & WATER LINE REPLACEMENT GALLERY SECTION
   Reuses .sv-gallery-grid / .sv-gallery-item grid styles above.
   Distinct background (gray-soft) to visually separate from
   the white "Our Work" plumbing repairs gallery.
============================================================ */
.sv-sewer-section {
  padding: 72px 0 80px;
  background: var(--gray-soft, #f4f6f9);
}

.sv-sewer-header {
  text-align: center;
  margin-bottom: 44px;
}

.sv-sewer__heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue-deep, #1a4fa0);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.sv-sewer__sub {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #4b5563;
  max-width: 660px;
  margin: 0 auto;
}

/* ============================================================
   RESPONSIVE — Services Page
============================================================ */

/* Tablet: keep 2-col grid but reduce padding */
@media (max-width: 900px) {
  .services-intro { padding: 48px 0 0; }
  .services-list-section { padding: 48px 0 56px; }
  .sv-gallery-section { padding: 56px 0 64px; }
  .sv-sewer-section { padding: 56px 0 64px; }
  .sv-sewer__heading { font-size: 1.75rem; }
  .services-cta-section { padding: 48px 0; }

  .sv-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .sv-gallery-item--wide { grid-column: span 2; aspect-ratio: 3 / 2; }

  .services-categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .service-category {
    padding: 22px 18px 20px;
  }

  .service-category__title {
    font-size: 1rem;
  }
}

/* Mobile: single-column stack */
@media (max-width: 540px) {
  .sv-gallery-grid { grid-template-columns: 1fr; }
  .sv-gallery-item--wide { grid-column: span 1; aspect-ratio: 4 / 3; }
  .sv-gallery-item__caption { opacity: 1; transform: translateY(0); }
  .sv-gallery__heading { font-size: 1.5rem; }
  .sv-sewer-section { padding: 44px 0 52px; }
  .sv-sewer__heading { font-size: 1.5rem; }
  .sv-sewer__sub { font-size: 0.9375rem; }
}

@media (max-width: 640px) {
  .services-photos {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .services-photo-slot {
    aspect-ratio: 4 / 3;
    min-height: 180px;
  }

  .services-categories-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* Gas Piping centered card: full width on mobile too */
  .service-category--center {
    max-width: 100%;
  }

  .services-cta-section__text {
    font-size: 1.125rem;
  }

  .services-cta-section__actions {
    flex-direction: column;
    align-items: center;
  }

  .services-list-intro {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .services-intro .container--narrow p {
    font-size: 1rem;
  }

  .service-category__icon {
    width: 44px;
    height: 44px;
  }

  .service-category__title {
    font-size: .9375rem;
  }

  .service-list li {
    font-size: .9375rem;
  }
}
