/* ================================================================
   Wisteria Theme
   Also update the Google Fonts <link> in <head> to:
   <link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600&display=swap" rel="stylesheet" />
   ================================================================ */

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

:root {
  --cream: #f5f0e8;
  --warm-white: #faf8f4;
  --charcoal: #1c1c1e;
  --dark: #2a2825;
  --gold: #b8975a;
  --gold-light: #d4b27a;
  --muted: #7a7367;
  --border: #e0d8cc;
  --shadow: rgba(28, 28, 30, 0.12);
  --body-font: 'Montserrat', sans-serif;
  --headline-font: 'Cormorant Garamond', serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  background: var(--warm-white);
  color: var(--charcoal);
  overflow-x: hidden;
}

/* --- NAV --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
nav.scrolled {
  box-shadow: 0 4px 24px var(--shadow);
}
.nav-logo {
  font-family: var(--headline-font);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}
.nav-links a {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s;
}
.nav-links a:hover {
  color: var(--gold);
}
.nav-cta {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-white);
  background: var(--charcoal);
  padding: 10px 22px;
  text-decoration: none;
  transition:
    background 0.25s,
    color 0.25s;
}
.nav-cta:hover {
  background: var(--gold);
}

/* --- HERO GALLERY --- */
#gallery {
  position: relative;
  height: 100vh;
  overflow: hidden;
  margin-top: 61px;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.slide.active {
  opacity: 1;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.slide.active img {
  transform: scale(1);
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(28, 28, 30, 0.15) 0%, rgba(28, 28, 30, 0.55) 100%);
}
.gallery-headline {
  position: absolute;
  bottom: 80px;
  left: 60px;
  right: 60px;
  color: var(--warm-white);
}
.gallery-headline .pre {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 14px;
  display: block;
}
.gallery-headline h1 {
  font-family: var(--headline-font);
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 18px;
}
.gallery-headline .price {
  font-family: var(--headline-font);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--gold-light);
}
/* Thumbnails */
.thumb-rail {
  position: absolute;
  bottom: 28px;
  right: 40px;
  display: flex;
  gap: 8px;
}
.thumb {
  width: 64px;
  height: 42px;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  transition:
    opacity 0.3s,
    border-color 0.3s;
  overflow: hidden;
}
.thumb.active {
  opacity: 1;
  border-color: var(--gold-light);
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Arrows */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(250, 248, 244, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: background 0.25s;
  z-index: 10;
}
.arrow:hover {
  background: rgba(184, 151, 90, 0.7);
}
.arrow.prev {
  left: 24px;
}
.arrow.next {
  right: 24px;
}
.arrow svg {
  width: 20px;
  height: 20px;
}

/* --- STATS BAR --- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--charcoal);
  color: var(--warm-white);
}
.stat {
  padding: 30px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}
.stat:last-child {
  border-right: none;
}
.stat-num {
  font-family: var(--headline-font);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold-light);
  display: block;
}
.stat-label {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.5);
  margin-top: 4px;
  display: block;
}

/* --- LAYOUT --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

section {
  padding: 90px 0;
}

.section-label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.section-heading {
  font-family: var(--headline-font);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 28px;
}
.divider {
  width: 52px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 32px;
}

/* --- ABOUT --- */
#about .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.about-body p {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 18px;
}
.feature-list {
  list-style: none;
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.feature-list li {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.feature-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.detail-card {
  background: var(--cream);
  padding: 36px;
  border-left: 3px solid var(--gold);
}
.detail-card h3 {
  font-family: var(--headline-font);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 24px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.detail-row:last-child {
  border-bottom: none;
}
.detail-row span:first-child {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail-row span:last-child {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
}

/* --- FULL-BLEED DIVIDER --- */
.full-bleed {
  width: 100%;
  height: 120px;
  display: block;
  background: var(--black);
  object-fit: cover;
}

.bleed-overlay {
  position: relative;
  top: 120px;
  height: 120px;
  background: black;
  opacity: 0.5;
}

/* --- GALLERY GRID --- */
#photos {
  background: var(--cream);
}
.photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 300px 260px 300px;
  gap: 10px;
}
/* Row 1: wide left + tall right spanning 2 rows */
.photo-grid .p1 {
  grid-column: 1;
  grid-row: 1;
}
.photo-grid .p2 {
  grid-column: 2 / 4;
  grid-row: 1;
}
/* Row 2: two equal tiles under the wide left */
.photo-grid .p3 {
  grid-column: 1;
  grid-row: 2;
}
.photo-grid .p4 {
  grid-column: 2;
  grid-row: 2;
}
.photo-grid .p5 {
  grid-column: 3;
  grid-row: 2;
}
/* Row 3: wide left spanning 2 cols + one right */
.photo-grid .p6 {
  grid-column: 1 / 3;
  grid-row: 3;
}
.photo-grid .p7 {
  grid-column: 3;
  grid-row: 3;
}
.photo-grid div {
  overflow: hidden;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition:
    opacity 0.3s,
    transform 0.5s;
}
.photo-grid img:hover {
  opacity: 0.88;
  transform: scale(1.04);
}

/* --- LIGHTBOX --- */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(20, 18, 15, 0.92);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}
#lightbox.open {
  display: flex;
}
#lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
#lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}
#lightbox-close:hover {
  opacity: 1;
}

/* --- AGENT --- */
#agent .grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 60px;
  align-items: start;
}
.agent-photo-wrap {
  position: relative;
}
.agent-photo-wrap::after {
  content: '';
  position: absolute;
  top: 16px;
  left: 16px;
  right: -16px;
  bottom: -16px;
  border: 1px solid var(--gold);
  z-index: -1;
}
.agent-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
  filter: grayscale(15%);
}
.agent-info h2 {
  font-family: var(--headline-font);
  font-size: 2.2rem;
  font-weight: 300;
  margin-bottom: 4px;
}
.agent-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  display: block;
}
.agent-bio {
  font-size: 0.88rem;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 28px;
}
.agent-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.agent-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--dark);
}
.agent-contact-item .icon {
  width: 32px;
  height: 32px;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.agent-contact-item .icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--gold-light);
  fill: none;
  stroke-width: 1.8;
}
.agent-stats {
  display: flex;
  gap: 28px;
}
.agent-stat {
  text-align: center;
}
.agent-stat-num {
  font-family: var(--headline-font);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--gold);
  display: block;
}
.agent-stat-label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
}

/* --- CONTACT --- */
#contact {
  background: var(--charcoal);
  color: var(--warm-white);
}
#contact .section-heading {
  color: var(--warm-white);
}
#contact .section-label {
  color: var(--gold-light);
}
#contact .divider {
  background: var(--gold);
}
#contact .grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 70px;
  align-items: start;
}
.contact-aside p {
  font-size: 0.85rem;
  line-height: 1.85;
  color: rgba(250, 248, 244, 0.55);
  margin-bottom: 28px;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-detail .icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(184, 151, 90, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-detail .icon svg {
  width: 15px;
  height: 15px;
  stroke: var(--gold-light);
  fill: none;
  stroke-width: 1.8;
}
.contact-detail-text strong {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 3px;
}
.contact-detail-text span {
  font-size: 0.85rem;
  color: rgba(250, 248, 244, 0.7);
}

/* Form */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(250, 248, 244, 0.45);
  margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--warm-white);
  padding: 13px 16px;
  font-family: var(--body-font);
  font-size: 0.83rem;
  outline: none;
  transition:
    border-color 0.25s,
    background 0.25s;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(250, 248, 244, 0.3);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}
.form-group select option {
  background: var(--charcoal);
}
.form-group textarea {
  resize: vertical;
  min-height: 110px;
}
.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--charcoal);
  border: none;
  font-family: var(--body-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.25s,
    transform 0.1s;
}
.btn-submit:hover {
  background: var(--gold-light);
}
.btn-submit:active {
  transform: scale(0.99);
}
#form-success {
  display: none;
  background: rgba(184, 151, 90, 0.15);
  border: 1px solid var(--gold);
  padding: 20px;
  text-align: center;
  color: var(--gold-light);
  font-size: 0.85rem;
  margin-top: 16px;
}

/* --- FOOTER --- */
footer {
  background: #111;
  color: rgba(250, 248, 244, 0.35);
  text-align: center;
  padding: 28px 40px;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}
footer span {
  color: var(--gold);
}

/* --- ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
  #about .grid,
  #agent .grid,
  #contact .grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .photo-grid .p1,
  .photo-grid .p2,
  .photo-grid .p3,
  .photo-grid .p4,
  .photo-grid .p5,
  .photo-grid .p6,
  .photo-grid .p7 {
    grid-column: auto;
    grid-row: auto;
  }
  .photo-grid img {
    height: 200px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .gallery-headline {
    left: 28px;
    right: 28px;
    bottom: 120px;
  }
  .thumb-rail {
    display: none;
  }
  nav {
    padding: 14px 20px;
  }
  .nav-links {
    display: none;
  }
  .container {
    padding: 0 20px;
  }
  section {
    padding: 60px 0;
  }
}
