/* =============================================
   18 Baliza Road — Luxury Property Website
   Design: Modern Luxury | Calterra Realty
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ---- Variables ---- */
:root {
  --navy:       #1c2d3e;
  --navy-light: #243748;
  --gold:       #b8965a;
  --gold-light: #d4af7a;
  --white:      #ffffff;
  --off-white:  #f9f7f4;
  --warm-gray:  #eeeae3;
  --mid-gray:   #9a9589;
  --dark-text:  #2c2825;
  --body-text:  #4a443e;
  --border:     #ddd8cf;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --max-w: 1280px;
  --nav-h: 72px;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--sans); color: var(--dark-text); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =============================================
   NAVIGATION
   ============================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: var(--nav-h);
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.3s ease;
  background: transparent;
}

#navbar.solid {
  background: var(--navy);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}

.nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.nav-logo img {
  height: 56px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.45));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.nav-links a:hover { opacity: 1; color: var(--gold-light); }

.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  opacity: 1 !important;
  padding: 10px 22px;
  border-radius: 2px;
  font-weight: 600 !important;
  letter-spacing: 0.1em;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--gold-light) !important; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all 0.3s;
}

/* =============================================
   HERO
   ============================================= */
#hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-bottom: 80px;
}

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.hero-slide.active { opacity: 1; }

/* Gradient overlay */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.0) 30%,
    rgba(0,0,0,0.55) 75%,
    rgba(0,0,0,0.80) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 48px;
}

.hero-eyebrow {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.hero-address {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 8px;
}

.hero-city {
  font-family: var(--serif);
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
}

.hero-price {
  font-family: var(--sans);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.hero-divider {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 24px;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.hero-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.4);
  padding: 7px 14px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 15px 32px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background 0.25s;
}
.btn-primary:hover { background: var(--gold-light); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 15px 32px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 2px;
  transition: background 0.25s, border-color 0.25s;
}
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: white; }

/* Slider Controls */
.hero-controls {
  position: absolute;
  bottom: 32px;
  right: 48px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
  padding: 0;
}

.hero-dot.active {
  background: var(--gold);
  width: 44px;
}

.hero-nav-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background 0.25s;
}
.hero-nav-btn:hover { background: rgba(255,255,255,0.25); }

/* =============================================
   QUICK STATS BAR
   ============================================= */
#stats-bar {
  background: var(--navy);
  padding: 0;
}

.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 28px 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}

.stat-item:last-child { border-right: none; }

.stat-icon {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.stat-value {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}

/* =============================================
   SECTIONS — General
   ============================================= */
.section-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
  color: var(--dark-text);
  line-height: 1.2;
  margin-bottom: 24px;
}

.section-title.light { color: var(--white); }

.gold-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 32px;
}

/* =============================================
   DESCRIPTION
   ============================================= */
#description {
  padding: 100px 48px;
  background: var(--white);
}

.description-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}

.description-main { }

.description-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.description-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--body-text);
  font-weight: 400;
}

.description-sidebar { }

.features-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 36px 32px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.features-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 6px;
}

.features-card .gold-rule { margin-bottom: 22px; }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--body-text);
  line-height: 1.4;
}

.feature-item::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

/* =============================================
   GALLERY
   ============================================= */
#gallery {
  padding: 80px 48px;
  background: var(--off-white);
}

.gallery-header {
  max-width: var(--max-w);
  margin: 0 auto 40px;
}

.photo-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: 10px;
}

.photo-grid .photo-item {
  overflow: hidden;
  cursor: pointer;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--warm-gray);
}

/* Feature larger first photo */
.photo-grid .photo-item:first-child {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

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

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

.photo-item-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.photo-item:hover .photo-item-overlay { background: rgba(0,0,0,0.2); }

.photo-item-overlay svg {
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s;
  color: white;
}

.photo-item:hover .photo-item-overlay svg { opacity: 1; transform: scale(1); }

/* Gallery Tabs */
.gallery-tabs {
  display: flex;
  gap: 4px;
  margin-top: 28px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.gallery-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  padding: 10px 22px 12px;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid-gray);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  display: flex;
  align-items: center;
  gap: 7px;
}

.gallery-tab:hover { color: var(--dark-text); }

.gallery-tab.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.tab-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--warm-gray);
  color: var(--mid-gray);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 7px;
  min-width: 24px;
}

.gallery-tab.active .tab-count {
  background: var(--gold);
  color: var(--white);
}

/* Panel visibility */
.gallery-panel { display: none; }
.gallery-panel.active { display: grid; }

.gallery-note {
  max-width: var(--max-w);
  margin: 20px auto 0;
  font-size: 0.82rem;
  color: var(--mid-gray);
  font-style: italic;
  text-align: center;
}

/* =============================================
   VIRTUAL TOUR
   ============================================= */
#virtual-tour {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  padding: 80px 48px;
}

.tour-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/photo-05.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.12;
}

.tour-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
}

.tour-header {
  text-align: center;
  margin-bottom: 0;
}

.tour-header .section-label { text-align: center; }

.tour-header .section-title {
  color: var(--white);
  margin-bottom: 16px;
}

.tour-embed-wrapper {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 16px 64px rgba(0,0,0,0.5);
}

.tour-embed-wrapper iframe {
  width: 100%;
  height: 580px;
  border: none;
  display: block;
}

.tour-open-link {
  text-align: center;
  margin-top: 16px;
}

.tour-open-link a {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.tour-open-link a:hover { color: var(--gold-light); }

/* =============================================
   FINANCING / LOAN SCENARIO
   ============================================= */
#financing {
  padding: 100px 48px;
  background: var(--white);
}

.financing-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.financing-header { margin-bottom: 56px; }

.financing-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.loan-card {
  background: var(--navy);
  color: var(--white);
  padding: 48px 44px;
}

.loan-card-header {
  margin-bottom: 32px;
}

.loan-card-header .section-label { color: var(--gold-light); }

.loan-card h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.loan-card .sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.loan-table {
  width: 100%;
  border-collapse: collapse;
}

.loan-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.loan-table tr:last-child { border-bottom: none; }

.loan-table td {
  padding: 13px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
}

.loan-table td:last-child {
  text-align: right;
  font-weight: 500;
  color: var(--white);
}

.loan-table tr.total td {
  padding-top: 20px;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  border-top: 2px solid var(--gold);
  border-bottom: none;
}

.loan-table tr.total td:last-child {
  color: var(--gold-light);
  font-size: 1.15rem;
}

.loan-indent td:first-child {
  padding-left: 16px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55) !important;
}

.qualify-box {
  background: var(--off-white);
  border: 1px solid var(--border);
  padding: 48px 44px;
}

.qualify-box .section-label { margin-bottom: 12px; }

.qualify-box h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 8px;
}

.qualify-box .sub {
  font-size: 0.82rem;
  color: var(--mid-gray);
  margin-bottom: 36px;
}

.qualify-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.qualify-stat:last-of-type { border-bottom: none; }

.qualify-stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-gray);
}

.qualify-stat-value {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
}

.qualify-stat-sub {
  font-size: 0.82rem;
  color: var(--mid-gray);
}

.tax-breakdown {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.tax-breakdown h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 6px;
}

.tax-breakdown .sub {
  font-size: 0.82rem;
  color: var(--mid-gray);
  margin-bottom: 24px;
}

.tax-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.tax-table tr { border-bottom: 1px solid var(--border); }
.tax-table tr:last-child { border-bottom: none; }

.tax-table td {
  padding: 10px 0;
  color: var(--body-text);
}

.tax-table td:last-child {
  text-align: right;
  font-weight: 500;
  color: var(--dark-text);
}

.tax-table tr.tax-total td {
  font-weight: 600;
  color: var(--dark-text);
  border-top: 1px solid var(--dark-text);
  border-bottom: none;
  padding-top: 14px;
}

.financing-disclaimer {
  margin-top: 40px;
  font-size: 0.78rem;
  color: var(--mid-gray);
  line-height: 1.6;
  max-width: 760px;
}

/* =============================================
   CONTACT / FOOTER
   ============================================= */
#contact {
  background: var(--navy);
  padding: 80px 48px 0;
}

.contact-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-left .section-label { color: var(--gold-light); }

.contact-left .section-title {
  color: var(--white);
  margin-bottom: 12px;
}

.contact-left p {
  color: rgba(255,255,255,0.65);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
}

.contact-info-item span:first-child {
  font-size: 1.1rem;
  width: 20px;
  flex-shrink: 0;
}

.contact-right { }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 13px 16px;
  font-size: 0.9rem;
  color: var(--white);
  font-family: var(--sans);
  transition: border-color 0.2s, background 0.2s;
  outline: none;
  border-radius: 2px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.3);
}

.form-group select option { background: var(--navy); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: rgba(255,255,255,0.1);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.form-submit {
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 16px 32px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.25s;
  align-self: flex-start;
}
.form-submit:hover { background: var(--gold-light); }

footer {
  background: var(--navy);
  padding: 28px 48px;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo img {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.5));
  opacity: 0.9;
}

.footer-copy {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold-light); }

/* =============================================
   LIGHTBOX
   ============================================= */
#lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

#lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img-wrap {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.08);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 1.8rem;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  line-height: 1;
  background: none;
  border: none;
  transition: color 0.2s;
}
.lightbox-close:hover { color: white; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.25s;
}
.lightbox-prev { left: -70px; }
.lightbox-next { right: -70px; }
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.2); }

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.1em;
}

/* =============================================
   SUPPLEMENTS PAGE
   ============================================= */
.page-hero {
  height: 380px;
  background: var(--navy);
  display: flex;
  align-items: flex-end;
  padding: 0 48px 56px;
  position: relative;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/photo-03.jpg');
  background-size: cover;
  background-position: center 30%;
  opacity: 0.3;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}

.page-hero-content .section-label { color: var(--gold-light); }

.page-hero-content h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0;
}

/* Supplements sections */
.supplement-section {
  padding: 90px 48px;
}

.supplement-section:nth-child(even) { background: var(--off-white); }
.supplement-section:nth-child(odd) { background: var(--white); }

.supplement-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.solar-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  margin-bottom: 64px;
}

.solar-intro-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--body-text);
  margin-bottom: 18px;
}

.solar-highlights {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  overflow: hidden;
}

.solar-highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}

.solar-highlight-item:last-child { border-bottom: none; }

.solar-highlight-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.solar-highlight-item h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-text);
  margin-bottom: 4px;
}

.solar-highlight-item p {
  font-size: 0.87rem;
  color: var(--body-text);
  line-height: 1.5;
}

.solar-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}

.solar-image-card {
  background: var(--off-white);
  border: 1px solid var(--border);
  overflow: hidden;
}

.solar-image-card img {
  width: 100%;
  height: auto;
  display: block;
}

.solar-image-caption {
  padding: 16px 20px;
  font-size: 0.82rem;
  color: var(--mid-gray);
  font-style: italic;
}

/* Community section */
.community-intro {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: start;
  margin-bottom: 64px;
}

.community-text p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--body-text);
  margin-bottom: 18px;
}

.community-cta-card {
  background: var(--navy);
  color: var(--white);
  padding: 44px 36px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.community-cta-card .section-label { color: var(--gold-light); margin-bottom: 10px; }

.community-cta-card h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 12px;
}

.community-cta-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 28px;
}

.community-cta-card a.btn-primary {
  width: 100%;
  text-align: center;
  display: block;
  box-sizing: border-box;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
}

.amenity-card {
  background: var(--white);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.supplement-section:nth-child(even) .amenity-card { background: var(--off-white); }

.amenity-icon { font-size: 1.8rem; }

.amenity-card h4 {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark-text);
}

.amenity-card p {
  font-size: 0.85rem;
  color: var(--body-text);
  line-height: 1.55;
}

/* =============================================
   MOBILE NAV DRAWER
   ============================================= */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: var(--navy);
  z-index: 999;
  flex-direction: column;
  padding: 24px 32px;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.mobile-nav.open {
  display: flex;
  transform: translateY(0);
}

.mobile-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color 0.2s;
}

.mobile-nav a:hover { color: var(--gold-light); }

.mobile-nav a:last-child { border-bottom: none; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .description-inner { grid-template-columns: 1fr; gap: 48px; }
  .features-card { position: static; }
  .financing-layout { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 56px; }
  .community-intro { grid-template-columns: 1fr; }
  .community-cta-card { position: static; }
  .solar-intro { grid-template-columns: 1fr; gap: 40px; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  #navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero — center content and controls so nothing falls off-screen */
  .hero-content { padding: 0 20px; }

  .hero-controls {
    right: 0;
    left: 0;
    bottom: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
  }

  /* Hide arrows on mobile — users swipe or tap dots */
  .hero-nav-btn { display: none; }

  .hero-dot { width: 20px; }
  .hero-dot.active { width: 32px; }

  /* Stats bar — force 3 columns, 2 rows */
  #stats-bar .stats-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    padding: 0;
  }

  .stat-item {
    min-width: unset;
    padding: 20px 8px;
    border-right: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  /* Remove right border on every 3rd item */
  .stat-item:nth-child(3n) { border-right: none; }

  /* Remove bottom border on last row */
  .stat-item:nth-last-child(-n+3) { border-bottom: none; }

  .stat-value { font-size: 1rem; }
  .stat-label { font-size: 0.6rem; }

  #description,
  #gallery,
  #financing,
  #contact { padding-left: 20px; padding-right: 20px; }

  .supplement-section { padding: 60px 20px; }
  .page-hero { padding: 0 20px 40px; }

  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid .photo-item:first-child { grid-column: span 2; }

  .solar-images { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: 1fr; }

  .footer-inner { flex-direction: column; text-align: center; gap: 16px; }
  .footer-links { flex-wrap: wrap; justify-content: center; }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-img-wrap img { max-height: 80vh; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .photo-grid { grid-template-columns: 1fr; }
  .photo-grid .photo-item:first-child { grid-column: span 1; }
  .hero-tag { font-size: 0.62rem; padding: 5px 10px; }
  .stat-icon { font-size: 1rem; }
}

/* ---- Contact section inline grid responsive ---- */
@media (max-width: 768px) {
  #contact > div > div:first-child {
    grid-template-columns: 1fr !important;
    gap: 48px !important;
    padding: 0 0 56px 0 !important;
  }
  #contact {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
  #virtual-tour {
    padding: 60px 20px;
  }
  .tour-embed-wrapper iframe {
    height: 380px;
  }
}
