/* ============================================
   331 Sage Meadow — Premium Listing Styles
   ============================================ */

:root {
  --gold: #c9a84c;
  --gold-light: #e4d5a0;
  --dark: #1a1a1a;
  --darker: #111111;
  --charcoal: #2a2a2a;
  --cream: #faf8f4;
  --white: #ffffff;
  --text: #3a3a3a;
  --text-light: #7a7a7a;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Top Bar ---- */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
}

.nav-cta {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding: 10px 24px;
  border: 1px solid var(--gold);
  transition: all 0.3s ease;
}

.nav-cta:hover {
  background: var(--gold);
  color: var(--dark);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.1) 0%,
    rgba(0,0,0,0.2) 40%,
    rgba(0,0,0,0.7) 80%,
    rgba(0,0,0,0.85) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px 80px;
  max-width: 900px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--gold);
  background: rgb(47 35 2 / 55%);
  border: 1px solid var(--gold);
  padding: 8px 20px;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  color: var(--white);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 2px;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 32px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(201, 168, 76, 0.4);
}

/* ---- Value Proposition ---- */
.value-prop {
  padding: 100px 0;
  background: var(--darker);
  text-align: center;
}

.value-prop-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.3);
  padding: 10px 24px;
  margin-bottom: 32px;
}

.value-prop h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 20px;
}

.value-prop-text {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: #b0b0b0;
  max-width: 750px;
  margin: 0 auto 60px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.value-card {
  padding: 36px 24px;
  border: 1px solid rgba(201, 168, 76, 0.15);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, background 0.3s;
}

.value-card:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.05);
}

.value-icon {
  font-size: 28px;
  color: var(--gold);
  margin-bottom: 16px;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 10px;
}

.value-card p {
  font-size: 14px;
  font-weight: 300;
  color: #999;
  line-height: 1.6;
}

/* ---- Section Tags ---- */
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-intro {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 720px;
  margin: 0 auto;
}

/* ---- Gallery Section ---- */
.gallery-section {
  padding: 100px 0 60px;
  background: var(--cream);
  text-align: center;
}

.gallery-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 48px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

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

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

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
  font-size: 13px;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.5px;
  text-align: left;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}

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

/* ---- Outdoor Section ---- */
.outdoor-section {
  padding: 100px 0 80px;
  background: var(--dark);
  text-align: center;
}

.outdoor-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 16px;
}

.outdoor-section .section-intro {
  color: #999;
  margin-bottom: 48px;
}

.outdoor-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 1400px;
  margin: 0 auto;
}

.outdoor-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.outdoor-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.outdoor-item .gallery-caption {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}

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

/* ---- Features Section ---- */
.features-section {
  padding: 100px 0;
  background: var(--white);
  text-align: center;
}

.features-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px 40px;
  text-align: left;
}

.feature-group h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gold);
}

.feature-group ul {
  list-style: none;
}

.feature-group li {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  border-bottom: 1px solid #eee;
}

.feature-group li:last-child {
  border-bottom: none;
}

.feature-group li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

/* ---- Aerial Section ---- */
.aerial-section {
  padding: 100px 0 80px;
  background: var(--cream);
  text-align: center;
}

.aerial-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 16px;
}

.aerial-section .section-intro {
  margin-bottom: 48px;
}

.aerial-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  max-width: 1400px;
  margin: 0 auto 60px;
}

.aerial-item {
  overflow: hidden;
  aspect-ratio: 16/10;
}

.aerial-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

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

.schools-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.school {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.school-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--gold);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.school strong {
  display: block;
  font-size: 14px;
  color: var(--dark);
}

.school span {
  font-size: 12px;
  color: var(--text-light);
}

/* ---- Compare Section ---- */
.compare-section {
  padding: 100px 0;
  background: var(--darker);
  text-align: center;
}

.compare-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 48px;
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 14px;
}

.compare-table th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 16px 20px;
  color: #999;
  border-bottom: 2px solid rgba(201, 168, 76, 0.3);
}

.compare-table th.highlight-col {
  color: var(--gold);
  background: rgba(201, 168, 76, 0.06);
}

.compare-table td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: #aaa;
}

.compare-table td.highlight-col {
  color: var(--white);
  background: rgba(201, 168, 76, 0.06);
  font-weight: 500;
}

.compare-table td:first-child {
  text-align: left;
  font-weight: 500;
  color: #ccc;
}

/* ---- CTA Section ---- */
.cta-section {
  padding: 100px 0;
  background: var(--white);
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 16px;
}

.cta-text {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-light);
  max-width: 650px;
  margin: 0 auto 48px;
}

.agent-cards {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.agent-card {
  background: var(--cream);
  border: 1px solid #e8e4da;
  padding: 36px 40px;
  min-width: 280px;
  text-align: center;
}

.agent-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.agent-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.agent-company {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.agent-phone {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  text-decoration: none;
  padding: 10px 28px;
  border: 2px solid var(--gold);
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.agent-phone:hover {
  background: var(--gold);
  color: var(--white);
}

.agent-license {
  display: block;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.cta-details {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.5px;
}

.cta-details strong {
  color: var(--dark);
}

/* ---- Footer ---- */
.site-footer {
  padding: 40px 0;
  background: var(--darker);
  text-align: center;
  border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.site-footer p {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.footer-disclaimer {
  font-size: 11px;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero {
    min-height: 600px;
  }

  .hero-content {
    padding-bottom: 48px;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat-divider {
    display: none;
  }

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

  .gallery-item-wide {
    grid-column: span 1;
    aspect-ratio: 16/10;
  }

  .outdoor-gallery {
    grid-template-columns: 1fr;
  }

  .aerial-gallery {
    grid-template-columns: 1fr;
  }

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

  .schools-bar {
    gap: 24px;
    flex-direction: column;
    align-items: center;
  }

  .compare-table {
    font-size: 12px;
  }

  .compare-table th,
  .compare-table td {
    padding: 10px 12px;
  }

  .agent-cards {
    flex-direction: column;
    align-items: center;
  }

  .gallery-caption {
    opacity: 1;
    transform: translateY(0);
  }

  .outdoor-item .gallery-caption {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 500px;
  }

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

  .top-bar-inner {
    flex-direction: column;
    gap: 10px;
  }
}
