/* ==========================================
   GLOBAL STYLES & RESET
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-font: "Cormorant Garamond", serif;
  --secondary-font: "Montserrat", sans-serif;
  --text-dark: #2c2c2c;
  --text-light: #ffffff;
  --accent-gold: #d4a574;
  --accent-dark: #654321;
  --accent-green: #2c5f2d;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--secondary-font);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================
   NAVIGATION
   ========================================== */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--primary-font);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 1px;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.nav-logo-main {
  font-family: var(--primary-font);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-dark);
  letter-spacing: 1px;
}

.nav-logo-sub {
  font-family: var(--secondary-font);
  font-size: 0.85rem;
  color: var(--accent-gold);
  letter-spacing: 1.5px;
  margin-top: 0.2rem;
  margin-left: 0.6rem; /* Subtle offset to push subtitle right */
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.95; /* keeps it softer visually */
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-dark);
}

.nav-link:hover::after {
  width: 100%;
}

/* ==========================================
   PARALLAX SECTIONS
   ========================================== */
.parallax-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  will-change: transform;
  z-index: -1;
}

.parallax-slow,
.parallax-medium {
  transform: translateY(0);
}

/* ==========================================
   HERO SECTION
   ========================================== */
#hero {
  height: 100vh;
  position: relative;
}

#hero .parallax-bg {
  filter: brightness(0.7);
}

.hero-content {
  text-align: center;
  color: var(--text-light);
  z-index: 2;
  animation: fadeInUp 1.5s ease;
}

.hero-title {
  font-family: var(--primary-font);
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-location {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: -1.2rem; /* tighter to the title */
  margin-bottom: 1.5rem; /* more space before subtitle */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  font-family: var(--secondary-font);
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.8rem; /* extra breathing room below location */
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-price {
  font-family: var(--primary-font);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.scroll-down {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-light);
  font-size: 1rem;
  letter-spacing: 2px;
  transition: transform 0.3s ease;
  animation: bounce 2s infinite;
}

.scroll-down:hover {
  transform: translateY(5px);
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   STORY SECTIONS
   ========================================== */
.story-section {
  padding: 8rem 2rem;
  position: relative;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.story-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 4rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.fade-in {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease, transform 1s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   CHAPTER TITLES
   ========================================== */
.chapter-number {
  display: inline-block;
  font-family: var(--primary-font);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--primary-font);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.section-title.centered {
  text-align: center;
}

.year-badge {
  display: inline-block;
  background: var(--accent-dark);
  color: var(--text-light);
  padding: 0.5rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

.story-text {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #333;
}

.story-text p {
  margin-bottom: 1.5rem;
}

.story-text .large-text {
  font-size: 1.4rem;
  line-height: 1.8;
}

.story-text .centered {
  text-align: center;
}

.highlight {
  font-family: var(--primary-font);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-dark);
  font-style: italic;
  padding: 1.5rem 0;
  border-left: 4px solid var(--accent-gold);
  padding-left: 2rem;
  margin: 2rem 0;
}

.highlight-secondary {
  font-family: var(--primary-font);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--accent-green);
  padding: 1rem 0;
}

/* ==========================================
   TRANSITION QUOTE SECTIONS
   ========================================== */
.transition-quote {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 70vh;
  color: var(--text-light);
  font-family: var(--primary-font);
  overflow: hidden;
  isolation: isolate; /* ensures z-index works as expected */
  background: #000; /* fallback */
}

/* Background image layer */
.transition-quote .parallax-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  z-index: 0; /* stays directly behind the overlay and text */
  transform: scale(1.05); /* subtle depth illusion */
  transition: transform 8s ease-out, opacity 2s ease-out;
}

/* Slight dark overlay for contrast */
.transition-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.5)
  );
  z-index: 1;
  pointer-events: none;
}

/* Centered quote text */
.transition-text {
  position: relative;
  z-index: 2;
  font-size: 2.2rem;
  line-height: 1.4;
  padding: 0 2rem;
  max-width: 900px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.5s ease, transform 1.5s ease;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

/* When visible in viewport */
.transition-quote.visible .transition-text {
  opacity: 1;
  transform: translateY(0);
}

.transition-quote.visible .parallax-bg {
  transform: scale(1);
  opacity: 1;
}

/* ==========================================
   TIMELINE SCROLL PROGRESS BAR
   ========================================== */
#timeline {
  position: fixed;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, #654321, #d4a574);
  border-radius: 2px;
  z-index: 9999;
  transition: height 0.3s ease;
}

/* ==========================================
   FEATURE GRIDS
   ========================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Softened, consistent photo style */
.feature-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 14px; /* softened edges to match card corners */
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Gentle pop effect on hover */
.feature-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.feature-label {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-dark);
}

/* ==========================================
   STATS GRID
   ========================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 15px;
}

.stat-number {
  font-family: var(--primary-font);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #666;
}

/* ==========================================
   PROPERTY HIGHLIGHTS
   ========================================== */
.property-highlights {
  display: flex;
  justify-content: space-around;
  margin: 3rem 0;
  padding: 3rem;
  background: linear-gradient(
    135deg,
    rgba(212, 165, 116, 0.2),
    rgba(101, 67, 33, 0.2)
  );
  border-radius: 20px;
}

.highlight-item {
  text-align: center;
}

.highlight-item h3 {
  font-family: var(--primary-font);
  font-size: 3.5rem;
  color: var(--accent-dark);
  margin-bottom: 0.5rem;
}

.highlight-item p {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #666;
}

/* ==========================================
   EXPERIENCE SECTION (IMAGE OVERLAY VERSION)
   ========================================== */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.experience-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  border-radius: 20px;
  overflow: hidden;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000; /* fallback if image fails */
  color: var(--text-light);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.5s ease;
}

.experience-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  filter: brightness(1.05);
}

/* Subtle dark overlay for text readability */
.experience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2),
    rgba(0, 0, 0, 0.6)
  );
  z-index: 1;
}

/* Content on top of overlay */
.experience-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  max-width: 600px;
}

.experience-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}

.experience-content h3 {
  font-family: var(--primary-font);
  font-size: 2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.7);
}

.experience-content p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #f2f2f2;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   LEGACY LIST
   ========================================== */
.legacy-list {
  margin: 3rem 0;
}

.legacy-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 15px;
  transition: transform 0.3s ease;
}

.legacy-item:hover {
  transform: translateX(10px);
}

.legacy-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.legacy-item p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin: 0;
}

/* ==========================================
   LEGACY PHOTO STYLE (Image-based redesign)
   ========================================== */
.photo-style {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-style:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.legacy-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.2));
  z-index: 1;
}

.legacy-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  font-family: var(--primary-font);
  font-size: 1.3rem;
  font-style: italic;
  text-align: center;
  padding: 2rem;
  max-width: 700px;
}

/* ==========================================
   IMAGE PARALLAX SECTIONS
   ========================================== */
.image-parallax {
  height: 60vh !important;
  min-height: 60vh !important;
  max-height: 60vh !important;
  position: relative;
  overflow: hidden;
  background: #000;
}

.image-parallax .parallax-bg {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: scroll !important;
  z-index: 1 !important;
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
  pointer-events: none;
}

/* ==========================================
   FINAL HERO
   ========================================== */
.final-hero {
  height: 80vh;
  position: relative;
}

.final-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3),
    rgba(0, 0, 0, 0.7)
  );
}

.final-content {
  text-align: center;
  color: var(--text-light);
  z-index: 2;
  position: relative;
}

.final-content h2 {
  font-family: var(--primary-font);
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.cta-button {
  display: inline-block;
  padding: 1.5rem 4rem;
  background: var(--accent-gold);
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 2px;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-button:hover {
  background: var(--accent-dark);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
  padding: 6rem 2rem;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

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

.contact-container h2 {
  font-family: var(--primary-font);
  font-size: 3.5rem;
  color: var(--accent-dark);
  margin-bottom: 1rem;
}

.contact-intro {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 4rem;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  text-align: left;
}

.contact-item {
  background: #fff;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
  font-family: var(--primary-font);
  font-size: 2rem;
  color: var(--accent-dark);
  margin-bottom: 1.5rem;
}

.contact-item p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

/* CTA Link Button */
.listing-link {
  display: inline-block;
  padding: 1rem 2rem;
  margin-top: 1.5rem;
  background: var(--accent-dark);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.listing-link:hover {
  background: var(--accent-gold);
  transform: translateY(-3px);
}

.listing-image-wrapper {
  margin-top: 2rem;
  text-align: center;
}

.listing-image {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.listing-image:hover {
  transform: scale(1.02);
}

/* Side-by-side layout on larger screens */
@media (min-width: 768px) {
  .listing-footer {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
  }
}

/* ==========================================
   PHOTO GALLERY SECTION
   ========================================== */
.gallery-section {
  padding: 8rem 2rem;
  position: relative;
}

.gallery-content {
  background: rgba(255, 255, 255, 0.95);
  padding: 4rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.gallery-intro {
  text-align: center;
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 4rem;
  font-style: italic;
}

.gallery-subsection {
  margin-bottom: 5rem;
}

.gallery-subsection:last-child {
  margin-bottom: 0;
}

.gallery-subsection-title {
  font-family: var(--primary-font);
  font-size: 2.5rem;
  color: var(--accent-dark);
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid var(--accent-gold);
}

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

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.4s ease;
  background: #f5f5f5;
  cursor: pointer;
}

.photo-item:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

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

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

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9),
    rgba(0, 0, 0, 0.7),
    transparent
  );
  color: var(--text-light);
  padding: 2rem 1.5rem 1rem;
  font-size: 1rem;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.photo-item:hover .photo-caption {
  transform: translateY(0);
}

.photo-featured {
  grid-column: span 2;
}

.photo-featured img {
  height: 400px;
}

/* ==========================================
   FOOTER
   ========================================== */
footer {
  background: var(--accent-dark);
  color: var(--text-light);
  text-align: center;
  padding: 2rem;
  font-size: 0.95rem;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

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

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

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

  .photo-featured {
    grid-column: span 1;
  }

  /* Hide left timeline on tablets and mobile */
  #timeline {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 1rem 1.5rem;
  }

  .nav-logo-main {
    font-size: 1.4rem;
  }

  .nav-logo-sub {
    font-size: 0.7rem;
    letter-spacing: 1px;
  }

  .nav-menu {
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  .hero-content {
    padding: 0 2rem;
  }

  .hero-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .hero-location {
    font-size: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    letter-spacing: 1.5px;
  }

  .hero-price {
    font-size: 2rem;
  }

  .section-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  .story-section {
    padding: 6rem 1.5rem;
  }

  .story-content {
    padding: 2rem 1.5rem;
  }

  .story-text {
    font-size: 1rem;
  }

  .highlight {
    font-size: 1.2rem;
    padding-left: 1.5rem;
  }

  .feature-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .property-highlights {
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 1.5rem;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .contact-item {
    padding: 2rem 1.5rem;
  }

  .parallax-bg {
    background-attachment: scroll;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .photo-item img {
    height: 250px;
  }

  .photo-featured img {
    height: 300px;
  }

  .gallery-content {
    padding: 2rem 1.5rem;
  }

  .gallery-subsection-title {
    font-size: 2rem;
  }

  .transition-text {
    font-size: 1.8rem;
    padding: 0 2rem;
  }

  /* Hide left timeline on mobile, keep only top progress bar */
  #timeline {
    display: none;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 1rem 1.25rem;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-logo-main {
    font-size: 1.3rem;
  }

  .nav-logo-sub {
    font-size: 0.65rem;
    margin-left: 0.4rem;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .hero-content {
    padding: 0 1.5rem;
  }

  .hero-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .hero-location {
    font-size: 0.9rem;
    margin-top: -0.8rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    letter-spacing: 1px;
    line-height: 1.5;
  }

  .hero-price {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .scroll-down {
    font-size: 0.9rem;
  }

  .story-section {
    padding: 4rem 1.25rem;
  }

  .section-title {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .story-content {
    padding: 1.5rem 1.25rem;
  }

  .story-text {
    font-size: 0.95rem;
  }

  .story-text .large-text {
    font-size: 1.1rem;
  }

  .highlight {
    font-size: 1.1rem;
    padding-left: 1rem;
  }

  .highlight-secondary {
    font-size: 1.1rem;
  }

  .property-highlights {
    padding: 1.5rem 1rem;
  }

  .contact-section {
    padding: 4rem 1.25rem;
  }

  .contact-item {
    padding: 1.5rem 1.25rem;
  }

  .gallery-content {
    padding: 1.5rem 1.25rem;
  }

  .gallery-subsection-title {
    font-size: 1.6rem;
  }

  .transition-text {
    font-size: 1.4rem;
    padding: 0 1.5rem;
    line-height: 1.5;
  }

  .final-content {
    padding: 0 1.5rem;
  }

  .final-content h2 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .cta-button {
    padding: 1.2rem 2.5rem;
    font-size: 1rem;
  }

  .legacy-content {
    font-size: 1.1rem;
    padding: 1.5rem 1rem;
  }

  .year-badge {
    font-size: 0.85rem;
    padding: 0.4rem 1.2rem;
  }

  .chapter-number {
    font-size: 0.9rem;
  }
}

/* ==========================================
   GALLERY BUTTON
   ========================================== */
.gallery-button {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: var(--accent-dark);
  color: var(--text-light);
  border: none;
  border-radius: 50px;
  font-family: var(--secondary-font);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.gallery-button:hover {
  background: var(--accent-gold);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   GALLERY MODAL
   ========================================== */
.gallery-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.gallery-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal-content img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-caption {
  margin-top: 2rem;
  color: var(--text-light);
  font-size: 1.3rem;
  text-align: center;
  font-family: var(--primary-font);
  max-width: 800px;
}

.modal-counter {
  margin-top: 1rem;
  color: var(--accent-gold);
  font-size: 1rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 2px;
}

.modal-close {
  position: absolute;
  top: 2rem;
  right: 3rem;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 4rem;
  font-weight: 300;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
  line-height: 1;
  padding: 0;
  width: 50px;
  height: 50px;
}

.modal-close:hover {
  color: var(--accent-gold);
  transform: rotate(90deg);
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--text-light);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  z-index: 10001;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  transform: translateY(-50%) scale(1.1);
}

.modal-prev {
  left: 2rem;
}

.modal-next {
  right: 2rem;
}

/* Mobile responsiveness for modal */
@media (max-width: 768px) {
  .modal-close {
    top: 1rem;
    right: 1rem;
    font-size: 3rem;
  }

  .modal-nav {
    font-size: 1.5rem;
    padding: 0.8rem 1.2rem;
  }

  .modal-prev {
    left: 0.5rem;
  }

  .modal-next {
    right: 0.5rem;
  }

  .modal-caption {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  .modal-counter {
    font-size: 0.9rem;
  }
}

/* ==========================================
   CHAPTER II – SCOPED HERITAGE GRID STYLES
   ========================================== */

/* Keep grid flexible *inside* Chapter II only */
#stewardship .feature-grid,
#stewardship .heritage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

/* Warm card so it doesn't disappear on white story-content panel */
#stewardship .feature-item {
  text-align: center;
  padding: 2rem;
  background: #fff8f3; /* soft ivory for contrast */
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#stewardship .feature-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Photo treatment */
#stewardship .feature-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#stewardship .feature-item:hover img {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Text under photos — use your brand colors that work on light cards */
#stewardship .feature-label {
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--accent-dark);
  margin-bottom: 0.3rem;
  letter-spacing: 0.5px;
}

#stewardship .feature-caption {
  font-size: 0.95rem;
  color: #555;
  font-style: italic;
  line-height: 1.5;
}

/* Responsive—override the global feature-grid rules only for this section */
@media (max-width: 1024px) {
  #stewardship .feature-grid,
  #stewardship .heritage-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  #stewardship .feature-grid,
  #stewardship .heritage-grid {
    grid-template-columns: 1fr;
  }
  #stewardship .feature-item {
    padding: 1.5rem;
  }
  #stewardship .feature-item img {
    width: 84px;
    height: 84px;
  }
}

/* ==========================================
   AGENT SIGNATURE BLOCK
   ========================================== */
.agent-section {
  max-width: 1000px;
  margin: 3.5rem auto 0;
  padding: 0 1.5rem;
}

.agent-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.25rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  padding: 2.5rem;
}

.agent-media {
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-headshot {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4 / 5; /* portrait crop for crisp composition */
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  background: #f7f7f7;
}

/* Typography aligned to your system */
.agent-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.agent-name {
  font-family: var(--primary-font);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-dark);
  line-height: 1.2;
  margin: 0;
}

.agent-broker {
  font-family: var(--secondary-font);
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  color: #555;
  margin-top: -0.25rem;
}

.agent-meta {
  margin-top: 0.5rem;
  display: grid;
  gap: 0.6rem;
}

.meta-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: start;
  gap: 0.75rem;
}

.meta-label {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
}

.meta-value {
  font-size: 1.05rem;
  color: var(--text-dark);
}

.meta-value a {
  color: var(--accent-dark);
  text-decoration: none;
  border-bottom: 1px solid rgba(101, 67, 33, 0.25);
}
.meta-value a:hover {
  border-color: var(--accent-gold);
}

/* Group image full-width banner under the card */
.agent-group {
  margin: 2rem 0 0;
}

.agent-group-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s ease, box-shadow 0.35s ease, filter 0.35s ease;
}

.agent-group-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  filter: brightness(1.02);
}

/* Responsive behavior aligned to your breakpoints */
@media (max-width: 1024px) {
  .agent-card {
    grid-template-columns: 260px 1fr;
    padding: 2rem;
    gap: 1.75rem;
  }
  .agent-headshot {
    max-width: 260px;
  }
}

@media (max-width: 768px) {
  .agent-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .agent-details {
    align-items: center;
  }
  .meta-row {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .agent-group-image {
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .agent-card {
    padding: 1.5rem;
    border-radius: 16px;
  }
  .agent-name {
    font-size: 1.8rem;
  }
  .agent-headshot {
    max-width: 100%;
    border-radius: 14px;
  }
}
