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

/* ----------------------------------------------------------
   SHARED PHOTO PLACEHOLDER
   (same dark-blue gradient pattern as other inner pages)
   ---------------------------------------------------------- */
.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  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;
}

/* ----------------------------------------------------------
   INTRO SECTION
   Two opening paragraphs + first photo below
   ---------------------------------------------------------- */
.rm-intro-section {
  padding: 60px 0 0;
  background: #fff;
}

.rm-intro {
  max-width: 820px;
  margin: 0 auto;
}

.rm-intro__copy {
  margin-bottom: 36px;
}

.rm-intro__copy p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 18px;
}

.rm-intro__copy p:last-child {
  margin-bottom: 0;
}

.rm-intro__copy strong {
  color: var(--blue-deep, #1a4fa0);
  font-weight: 700;
}

/* Shared photo slot base — consistent 16:9 landscape across all slots */
.rm-photo-slot {
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  border: 2px solid var(--gray-mid, #e2e8f0);
  box-shadow: var(--shadow, 0 4px 18px rgba(30,58,79,.08));
  aspect-ratio: 16 / 9;
  position: relative;
  background: var(--blue-deep, #1e3a4f);
}

/* Show the WHOLE photo (contain) — never crop. Any leftover space is
   filled by a blurred, darkened copy of the same photo (set per slot below). */
.rm-photo-slot::before {
  content: '';
  position: absolute;
  inset: -20px;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(18px) brightness(.7);
}

.rm-photo-slot img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Backdrop image per slot (paths are relative to /css) */
.rm-bg-dual-shower::before      { background-image: url('../images/remodel-dual-shower.jpg'); }
.rm-bg-freestanding-tub::before { background-image: url('../images/remodel-freestanding-tub.jpg'); }
.rm-bg-vessel-sink::before      { background-image: url('../images/remodel-vessel-sink.jpg'); }
.rm-bg-subway-tile::before      { background-image: url('../images/remodel-subway-tile.jpg'); }
.rm-bg-gold-shower::before      { background-image: url('../images/remodel-gold-shower.jpg'); }
.rm-bg-gold-shower-2::before    { background-image: url('../images/remodel-gold-shower-2.jpg'); }

/* First photo — full-width below intro paragraphs */
.rm-intro .rm-photo-slot {
  margin-bottom: 0;
}

/* ----------------------------------------------------------
   CONTENT SECTIONS
   Alternating white / gray-soft backgrounds
   ---------------------------------------------------------- */
.rm-section {
  padding: 60px 0;
}

.rm-section--white {
  background: #fff;
}

.rm-section--gray {
  background: var(--gray-soft, #f4f6f9);
}

/* Inner wrapper — max width for readability */
.rm-section__inner {
  max-width: 820px;
  margin: 0 auto;
}

.rm-section__inner--copy-only {
  /* no extra rules needed — inherits max-width + margin */
}

/* Section heading — underlined style matching PDF */
.rm-section__heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-deep, #1a4fa0);
  margin: 0 0 22px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--orange, #f76a1a);
  display: inline-block;
}

/* Body paragraphs inside content sections */
.rm-section__inner p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #374151;
  margin-bottom: 18px;
}

.rm-section__inner p:last-child {
  margin-bottom: 0;
}

/* Photo slot inside content sections */
.rm-photo-slot--inline {
  margin-top: 32px;
}

/* ----------------------------------------------------------
   CTA TEXT + BOTTOM PHOTO ROW
   Matches PDF: centered text, then the 2-pane box at bottom
   ---------------------------------------------------------- */
.rm-cta-section {
  padding: 56px 0 72px;
  background: #fff;
  border-top: 1px solid var(--gray-mid, #e2e8f0);
}

/* Centered CTA copy */
.rm-cta-text {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.rm-cta-text__prompt {
  font-size: 1.125rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 12px;
}

.rm-cta-text__contact {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue-deep, #1a4fa0);
}

.rm-cta-text__phone {
  color: var(--blue-deep, #1a4fa0);
  text-decoration: underline;
  text-decoration-color: var(--orange, #f76a1a);
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
  transition: color 0.2s;
}

.rm-cta-text__phone:hover {
  color: var(--orange, #f76a1a);
}

/* 2-column bottom photo row (matching PDF's two equal panes) */
.rm-bottom-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  max-width: 900px;
  margin: 0 auto;
}

.rm-photo-slot--bottom {
  border: 2px solid var(--gray-mid, #e2e8f0);
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  box-shadow: var(--shadow, 0 4px 18px rgba(30,58,79,.08));
}

/* ----------------------------------------------------------
   PHOTO GALLERY — "Our Work" section
   ---------------------------------------------------------- */
.rm-gallery-section {
  padding: 72px 0 80px;
  background: var(--gray-soft, #f4f6f9);
}

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

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

/* Auto-fill grid — regular items ~340px wide, wide items span 2 cols */
.rm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

/* Wide items span 2 columns */
.rm-gallery-item--wide {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}

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

.rm-gallery-item:hover img {
  transform: scale(1.04);
}

/* Caption overlay on hover */
.rm-gallery-item__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 18px 16px;
  background: linear-gradient(to top, rgba(10,25,60,.80) 0%, transparent 100%);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}

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

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

  .rm-section {
    padding: 48px 0;
  }

  .rm-cta-section {
    padding: 44px 0 56px;
  }

  .rm-section__heading {
    font-size: 1.3125rem;
  }

  .rm-intro .rm-photo-slot {
    height: auto;
  }

  .rm-photo-slot--inline {
    height: auto;
  }

  .rm-photo-slot--bottom {
    height: auto;
  }
}

/* ----------------------------------------------------------
   RESPONSIVE — 768px (stack bottom photos to single column)
   ---------------------------------------------------------- */
@media (max-width: 900px) {
  .rm-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rm-gallery-item--wide {
    grid-column: span 2;
    aspect-ratio: 3 / 2;
  }
}

@media (max-width: 768px) {
  .rm-bottom-photos {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .rm-photo-slot--bottom {
    height: auto;
  }

  .rm-cta-text__contact {
    font-size: 1.0625rem;
  }

  .rm-section__heading {
    font-size: 1.1875rem;
  }
}

/* ----------------------------------------------------------
   RESPONSIVE — 480px (small phones)
   ---------------------------------------------------------- */
@media (max-width: 540px) {
  .rm-gallery-grid {
    grid-template-columns: 1fr;
  }
  .rm-gallery-item--wide {
    grid-column: span 1;
    aspect-ratio: 4 / 3;
  }
  .rm-gallery-item__caption {
    opacity: 1;
    transform: translateY(0);
  }
  .rm-gallery__heading {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .rm-intro-section {
    padding: 36px 0 0;
  }

  .rm-section {
    padding: 36px 0;
  }

  .rm-intro__copy p,
  .rm-section__inner p {
    font-size: 0.9375rem;
  }

  .rm-intro .rm-photo-slot {
    height: auto;
  }

  .rm-photo-slot--inline {
    height: auto;
  }

  .rm-photo-slot--bottom {
    height: auto;
  }

  .rm-cta-text__prompt {
    font-size: 1rem;
  }

  .rm-cta-text__contact {
    font-size: 0.9375rem;
  }

  .rm-cta-section {
    padding: 36px 0 48px;
  }
}
