/* ==========================================================================
   Elopement Portfolio (/elopement-portfolio/)
   Page-specific styles. Section headers, editorial labels, badges and the
   .btn base come from the global bundle (sections.css) — not redefined here.
   ========================================================================== */

/* Portfolio Intro */
.portfolio-intro {
  padding: 4rem 2rem;
  background: #fff;
}

.portfolio-intro-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.portfolio-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #555;
  margin-bottom: 1rem;
}

.intro-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.intro-cta .btn {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm, 4px);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.intro-cta .btn-primary {
  background: var(--color-primary, #5A5047);
  color: #fff;
}

.intro-cta .btn-primary:hover {
  background: #4A433C;
}

.intro-cta .btn-secondary {
  background: transparent;
  color: #333;
  border: 1px solid #333;
}

.intro-cta .btn-secondary:hover {
  background: #333;
  color: #fff;
}

/* Masonry Portfolio Grid — CSS columns preserve every image's natural aspect
   ratio (no cropping); images size to width, height auto. */
.portfolio-masonry-section {
  padding: 3rem 2rem;
  background: #f9f9f9;
}

.portfolio-masonry {
  max-width: 1200px;
  margin: 0 auto;
  column-count: 4;
  column-gap: 1rem;
}

.masonry-card {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  background: #fff;
  padding: 5px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.masonry-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* Mid CTA — dark band, so the section-header heading is inverted to white
   (label + subheading stay gold, which reads on the dark ground). */
.portfolio-mid-cta {
  padding: 4rem 2rem;
  background: var(--color-primary, #5A5047);
  text-align: center;
}

.mid-cta-container {
  max-width: 900px;
  margin: 0 auto;
}

.portfolio-mid-cta .section-header h2 {
  color: #fff;
}

.portfolio-mid-cta .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.portfolio-mid-cta .btn {
  display: inline-block;
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm, 4px);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.portfolio-mid-cta .btn-primary {
  background: #fff;
  color: var(--color-primary, #5A5047);
}

.portfolio-mid-cta .btn-primary:hover {
  background: #f0f0f0;
}

.portfolio-mid-cta .btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.portfolio-mid-cta .btn-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

/* Locations Section */
.portfolio-locations {
  padding: 4rem 2rem;
  background: #fff;
}

.locations-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.location-card {
  padding: 1.5rem;
  background: #f9f9f9;
  border-radius: var(--radius-md, 8px);
  text-align: left;
}

.location-card h3 {
  font-size: var(--heading-h3-card);
  font-weight: 400;
  color: var(--color-primary, #5A5047);
  margin: 0 0 0.5rem 0;
}

.location-card p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

.locations-link {
  margin-top: 1rem;
}

.locations-link a {
  color: var(--color-primary, #5A5047);
  text-decoration: none;
  font-weight: 500;
}

.locations-link a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1200px) {
  .portfolio-masonry {
    column-count: 3;
  }
}

@media (max-width: 900px) {
  .portfolio-masonry {
    column-count: 2;
  }

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

@media (max-width: 600px) {
  .portfolio-intro,
  .portfolio-locations {
    padding: 3rem 1.5rem;
  }

  .portfolio-masonry-section {
    padding: 2rem 1rem;
  }

  .portfolio-masonry {
    column-count: 2;
    column-gap: 0.5rem;
  }

  .masonry-card {
    margin-bottom: 0.5rem;
    padding: 3px;
  }

  .intro-cta,
  .portfolio-mid-cta .cta-buttons {
    flex-direction: column;
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }
}
