/* ============================================================
   new-construction.css
   Styles specific to new-construction.html
   Depends on: homepage.css (tokens, .btn, .container)
               inner-pages.css (page-hero, inner page utilities)
   ============================================================ */

/* ----------------------------------------------------------
   CONTENT SECTION — wraps intro paragraphs, photo rows, mid copy
   ---------------------------------------------------------- */
.nc-content-section {
  padding: 60px 0 72px;
  background: #fff;
}

/* ----------------------------------------------------------
   INTRO PARAGRAPHS (3 paragraphs from PDF)
   ---------------------------------------------------------- */
.nc-intro {
  max-width: 820px;
  margin: 0 auto 48px;
}

.nc-intro p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 20px;
}

.nc-intro p:last-child {
  margin-bottom: 0;
}

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

/* ----------------------------------------------------------
   PHOTO ROWS — 2-column grid matching PDF "Picture | Picture"
   ---------------------------------------------------------- */
.nc-photo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 40px;
}

.nc-photo-slot {
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  /* Solid border matching PDF's simple rectangle outlines */
  border: 2px solid var(--gray-mid, #e2e8f0);
  box-shadow: var(--shadow, 0 4px 18px rgba(30,58,79,.08));
  aspect-ratio: 4/3;
}

/* Photo placeholder — dark blue gradient with icon + text
   (shared visual pattern with water-heaters.html, gas-lines.html) */
.nc-photo-slot .photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 260px;
  background: linear-gradient(145deg, #091a26, var(--blue-deep, #1e3a4f), var(--blue-mid, #3b6e80));
  color: rgba(255, 255, 255, 0.55);
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ----------------------------------------------------------
   MID COPY — single paragraph between the two photo rows
   ---------------------------------------------------------- */
.nc-mid-copy {
  max-width: 820px;
  margin: 0 auto 40px;
}

.nc-mid-copy p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #374151;
  /* Subtle left accent matching the PDF paragraph style */
  border-left: 4px solid var(--blue-bright, #3aa0e8);
  padding-left: 20px;
}

/* ----------------------------------------------------------
   "LETS WORK TOGETHER" SECTION
   Matches the large bordered box at the bottom of the PDF
   ---------------------------------------------------------- */
.nc-lwt-section {
  padding: 56px 0 72px;
  background: var(--gray-soft, #f4f6f9);
}

/* The bordered box */
.nc-lwt-box {
  max-width: 720px;
  margin: 0 auto;
  background: #fff;
  border: 3px solid var(--blue-deep, #1a4fa0);
  border-radius: var(--radius-lg, 14px);
  padding: 52px 48px 48px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(26, 79, 160, 0.12);
}

/* Heading — Montserrat, bold, with orange underline (exact PDF: "Lets Work Together") */
.nc-lwt-box__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;
  /* Orange underline accent */
  text-decoration: underline;
  text-decoration-color: var(--orange, #f76a1a);
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}

/* Subtitle / supporting copy */
.nc-lwt-box__sub {
  font-size: 1rem;
  line-height: 1.7;
  color: #4b5563;
  max-width: 520px;
  margin: 0 auto 36px;
}

/* CTA button row */
.nc-lwt-box__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nc-lwt-box__actions .btn {
  min-width: 200px;
}

/* ----------------------------------------------------------
   SLAB HOUSE UNDERGROUND PLUMBING GALLERY SECTION
   White background — visually alternates with gray-soft Our Work section above
   Reuses .nc-gallery-grid / .nc-gallery-item styles from above.
   ---------------------------------------------------------- */
.nc-slab-section {
  padding: 72px 0 80px;
  background: #fff;
}

.nc-slab-header {
  text-align: center;
  margin-bottom: 44px;
}

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

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

/* ----------------------------------------------------------
   RESPONSIVE — 900px (tablet)
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .nc-content-section {
    padding: 48px 0 60px;
  }

  .nc-lwt-section {
    padding: 48px 0 60px;
  }

  .nc-lwt-box {
    padding: 40px 32px 36px;
  }

  .nc-lwt-box__heading {
    font-size: 1.75rem;
  }

  .nc-photo-slot .photo-placeholder {
    height: 220px;
  }
}

/* ----------------------------------------------------------
   RESPONSIVE — 768px (stack photo rows to single column)
   ---------------------------------------------------------- */
@media (max-width: 768px) {
  .nc-photo-row {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 28px;
  }

  .nc-photo-slot .photo-placeholder {
    height: 200px;
  }

  .nc-intro {
    margin-bottom: 36px;
  }

  .nc-mid-copy {
    margin-bottom: 28px;
  }

  .nc-lwt-box {
    padding: 36px 24px 32px;
    border-width: 2px;
  }

  .nc-lwt-box__heading {
    font-size: 1.5rem;
  }

  .nc-lwt-box__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nc-lwt-box__actions .btn {
    width: 100%;
    min-width: unset;
    justify-content: center;
  }
}

/* ----------------------------------------------------------
   OUR WORK GALLERY SECTION
   Same 3-column grid pattern as remodels + services gallery
   ---------------------------------------------------------- */
.nc-gallery-section {
  padding: 72px 0 80px;
  background: var(--gray-soft, #f4f6f9);
}

.nc-gallery-header {
  text-align: center;
  margin-bottom: 44px;
}

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

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

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

.nc-gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #d1d5db;
  cursor: pointer;
}

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

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

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

.nc-gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(to top, rgba(10, 26, 60, 0.82) 0%, rgba(10, 26, 60, 0) 100%);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nc-gallery-item:hover .nc-gallery-item__caption {
  opacity: 1;
}

/* ----------------------------------------------------------
   RESPONSIVE — 900px (tablet — gallery 2-col)
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .nc-gallery-section {
    padding: 56px 0 64px;
  }

  .nc-slab-section {
    padding: 56px 0 64px;
  }

  .nc-slab__heading {
    font-size: 1.75rem;
  }

  .nc-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .nc-gallery-item--wide {
    grid-column: span 2;
  }

  .nc-gallery-heading {
    font-size: 1.75rem;
  }
}

/* ----------------------------------------------------------
   RESPONSIVE — 540px (mobile — gallery 1-col)
   ---------------------------------------------------------- */
@media (max-width: 540px) {
  .nc-gallery-section {
    padding: 44px 0 52px;
  }

  .nc-slab-section {
    padding: 44px 0 52px;
  }

  .nc-slab__heading {
    font-size: 1.5rem;
  }

  .nc-slab__sub {
    font-size: 0.9375rem;
  }

  .nc-gallery-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .nc-gallery-item--wide {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

  .nc-gallery-item__caption {
    opacity: 1;
  }

  .nc-gallery-heading {
    font-size: 1.5rem;
  }

  .nc-gallery-sub {
    font-size: 0.9375rem;
  }
}

/* ----------------------------------------------------------
   RESPONSIVE — 480px (small phones)
   ---------------------------------------------------------- */
@media (max-width: 480px) {
  .nc-content-section {
    padding: 36px 0 48px;
  }

  .nc-intro p,
  .nc-mid-copy p {
    font-size: 0.9375rem;
  }

  .nc-photo-slot .photo-placeholder {
    height: 175px;
  }

  .nc-lwt-section {
    padding: 36px 0 48px;
  }

  .nc-lwt-box {
    padding: 28px 18px 24px;
  }

  .nc-lwt-box__heading {
    font-size: 1.3125rem;
  }

  .nc-lwt-box__sub {
    font-size: 0.9375rem;
  }
}
