/* ===== VARIABLES ===== */
:root {
  /* Light theme — warm cream backgrounds, dark forest text */
  --lp-bg:          #f2ede4;   /* primary background */
  --lp-bg-alt:      #ece6db;   /* alternating section bg */
  --lp-bg-card:     #ffffff;   /* card surfaces */

  --lp-nav:         #1e2d1a;   /* nav + footer — dark forest */
  --lp-forest:      #3d5e30;   /* green band sections */
  --lp-forest-mid:  #2d4a22;   /* deeper forest */

  --lp-green:       #4a7a3a;   /* primary accent (replaces amber) */
  --lp-green-on-dark: #7ec462; /* lighter green for use on dark bg */
  --lp-sage:        #b8d4a0;   /* sage on dark bg */
  --lp-sage-mid:    #6a9e55;   /* sage on light bg */

  /* Text on light backgrounds */
  --lp-text:        #1e2d1a;
  --lp-text-dark:   #2b2419;   /* warm dark brown — headings */
  --lp-text-muted:  rgba(30,45,26,0.65);
  --lp-text-faint:  rgba(30,45,26,0.38);
  --lp-border:      rgba(30,45,26,0.10);
  --lp-border-card: rgba(30,45,26,0.14);

  /* Text on dark backgrounds (nav, hero, stats, footer) */
  --lp-cream:       #ede8e0;
  --lp-cream-muted: rgba(237,232,224,0.60);
  --lp-cream-faint: rgba(237,232,224,0.35);
  --lp-border-dark: rgba(237,232,224,0.08);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--lp-bg);
  color: var(--lp-text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { display: block; width: 100%; height: 100%; object-fit: cover; }

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  line-height: 1.2;
  color: var(--lp-text-dark);
}

h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.5vw, 38px); }
h3 { font-size: 18px; }

/* ===== LAYOUT ===== */
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 80px 32px;
}

.section-label {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lp-green);
  margin-bottom: 12px;
}

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-body {
  color: var(--lp-text-muted);
  font-size: 17px;
  margin-top: 12px;
}

/* ===== NAV ===== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--lp-bg-alt);
  border-bottom: 1px solid var(--lp-border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo { display: flex; flex-direction: column; gap: 0; flex-shrink: 0; }

.logo-primary {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--lp-text-dark);
  line-height: 1;
}

.amber { color: var(--lp-green); }

.logo-location {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lp-text-faint);
  margin-top: 4px;
}

.logo-sub {
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(30,45,26,0.28);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
  margin: 0 auto;
}

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  color: var(--lp-text-muted);
  transition: color 0.2s;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-links a:hover { color: var(--lp-text-dark); }

.btn-inquire {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid var(--lp-green);
  background: var(--lp-green);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 3px;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-inquire:hover {
  background: var(--lp-forest);
  border-color: var(--lp-forest);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--lp-text-dark);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--lp-bg-alt);
  padding: 20px 32px 24px;
  border-top: 1px solid var(--lp-border);
}

.nav-mobile ul { list-style: none; }

.nav-mobile li { border-bottom: 1px solid var(--lp-border); }

.nav-mobile a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  color: var(--lp-text-muted);
}

.nav-mobile .btn-inquire {
  display: inline-block;
  margin-top: 20px;
}

/* ===== HERO ===== */
#hero {
  position: relative;
  height: 460px;
  background: linear-gradient(to bottom, #9aa583 0%, #a9a98a 48%, #c3b794 100%);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding-top: 64px;
}

.hero-mountains {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(224,217,200,0.55) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px 0;
}

.hero-content h1,
.hero-content h2 {
  max-width: none;
  font-size: clamp(28px, 4.2vw, 44px);
}

.hero-sub { max-width: 520px; }

/* Hero overrides — dark text on the light sage backdrop */
.hero-content .section-label,
.hero-content .hero-label { color: var(--lp-forest); }
.hero-content h1,
.hero-content h2 { color: var(--lp-text-dark); }
.hero-sub { color: rgba(43,36,25,0.72); }

.hero-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(43,36,25,0.55);
  transition: color 0.2s;
}

.hero-scroll:hover { color: var(--lp-text-dark); }

/* ===== STATS BAND ===== */
#stats {
  background: var(--lp-bg-alt);
  border-bottom: 1px solid var(--lp-border);
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  padding: 28px 32px;
  border-right: 1px solid var(--lp-border);
  text-align: center;
}

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

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--lp-green);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lp-text-faint);
}

/* ===== PRESERVE BAND ===== */
#preserve {
  background: var(--lp-forest);
}

.preserve-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.preserve-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--lp-sage);
  color: var(--lp-sage);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 24px;
  white-space: nowrap;
  flex-shrink: 0;
}

#preserve p {
  font-size: 14px;
  color: rgba(184,212,160,0.8);
  max-width: 600px;
}

/* ===== THE HOUSE ===== */
#house { background: var(--lp-bg); }

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 8px;
  height: 420px;
}

.gallery-main {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  background: var(--lp-bg-alt);
}

.gallery-main .gallery-img {
  transition: transform 0.4s ease;
}

.gallery-main:hover .gallery-img { transform: scale(1.03); }

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(20,21,18,0.85) 0%, transparent 100%);
  padding: 24px 20px 16px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--lp-cream);
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-main:hover .gallery-overlay { opacity: 1; }

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-thumb {
  flex: 1;
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
  background: var(--lp-bg-alt);
}

.gallery-thumb .gallery-img {
  transition: transform 0.4s ease;
}

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

/* ===== DETAILS ===== */
#details { background: var(--lp-bg-alt); }

.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.detail-card {
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border-card);
  border-radius: 4px;
  padding: 28px 24px;
  box-shadow: 0 1px 3px rgba(30,45,26,0.06);
}

.detail-icon {
  color: var(--lp-green);
  margin-bottom: 16px;
}

.detail-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--lp-text);
  margin-bottom: 4px;
}

.detail-card p {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-text-faint);
}

/* ===== RATES ===== */
#rates { background: var(--lp-bg); }

.rates-sub {
  font-size: 13px;
  color: var(--lp-text-faint);
  margin-top: 8px;
  margin-bottom: 40px;
}

.rate-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}

.rate-card {
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border-card);
  border-radius: 4px;
  padding: 32px 28px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(30,45,26,0.06);
}

.rate-card--featured {
  border-color: var(--lp-green);
}

.rate-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lp-text-faint);
  margin-bottom: 16px;
}

.rate-value {
  font-family: 'Playfair Display', serif;
  font-size: 40px;
  color: var(--lp-green);
  line-height: 1;
  margin-bottom: 6px;
}

.rate-unit {
  font-size: 13px;
  color: var(--lp-text-muted);
  margin-bottom: 12px;
}

.rate-savings {
  font-size: 11px;
  color: var(--lp-forest);
  background: rgba(61,94,48,0.10);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
}

.policies h3 {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lp-text-faint);
  margin-bottom: 20px;
}

.policy-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.policy-list li {
  display: flex;
  gap: 12px;
  font-size: 15px;
  color: var(--lp-text-muted);
}

.policy-dot {
  color: var(--lp-green);
  flex-shrink: 0;
  font-weight: 400;
}

.club-note {
  background: rgba(61,94,48,0.08);
  border: 1px solid rgba(61,94,48,0.25);
  border-left: 3px solid var(--lp-forest);
  border-radius: 4px;
  padding: 16px 20px;
}

.club-note p {
  font-size: 14px;
  color: var(--lp-forest);
}

/* ===== FAMILY NOTE ===== */
#note { background: var(--lp-bg-alt); }

#rates .section-inner { padding-bottom: 40px; }
#note .section-inner  { padding: 40px 32px; }
#contact .section-inner { padding-top: 40px; }

.family-note-card {
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border-card);
  border-left: 4px solid var(--lp-green);
  border-radius: 4px;
  padding: 40px 44px;
  box-shadow: 0 1px 3px rgba(30,45,26,0.06);
}

.family-note-card blockquote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--lp-text);
  line-height: 1.6;
  margin-bottom: 24px;
}

.note-attribution {
  font-size: 13px;
  font-weight: 400;
  color: var(--lp-text-faint);
  letter-spacing: 0.04em;
}

/* ===== CONTACT FORM ===== */
#contact { background: var(--lp-bg); }

.contact-inner {
  max-width: 760px !important;
}

.contact-header {
  margin-bottom: 40px;
}

.contact-sub {
  font-size: 15px;
  color: var(--lp-text-muted);
  margin-top: 10px;
}

#inquiry-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-group label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lp-text-faint);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--lp-bg-card);
  border: 1px solid var(--lp-border-card);
  border-radius: 3px;
  padding: 12px 14px;
  color: var(--lp-text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--lp-green);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--lp-text-faint);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(30,45,26,0.38)' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

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

.form-divider {
  border: none;
  border-top: 1px solid var(--lp-border);
  margin: 4px 0;
}

.form-submit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 8px;
}

.form-privacy {
  font-size: 12px;
  color: var(--lp-text-faint);
}

.form-estimate {
  background: #f0f4f0;
  border: 1px solid #c8d8c8;
  border-radius: 6px;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--lp-text);
}

.form-estimate-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  color: var(--lp-text-faint);
}

.form-estimate-total {
  border-top: 1px solid #c8d8c8;
  margin-top: 6px;
  padding-top: 8px;
  font-weight: 600;
  color: var(--lp-forest);
  font-size: 15px;
}

.form-estimate-deposit {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--lp-text-faint);
}

.btn-amber {
  display: inline-block;
  background: var(--lp-green);
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 12px 28px;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  white-space: nowrap;
}

.btn-amber:hover { background: var(--lp-forest); }
.btn-amber:disabled,
.btn-amber.loading { opacity: 0.6; cursor: not-allowed; }

/* Cream button — for use on the green CTA band */
.btn-cream {
  display: inline-block;
  background: var(--lp-cream);
  color: var(--lp-forest);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 12px 28px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-cream:hover { background: #ffffff; }

.form-error {
  font-size: 13px;
  color: #b05050;
  padding: 10px 14px;
  background: rgba(176,80,80,0.08);
  border-radius: 3px;
  border: 1px solid rgba(176,80,80,0.18);
}

.form-success {
  text-align: center;
  padding: 56px 20px;
}

.form-success-icon {
  width: 52px;
  height: 52px;
  background: rgba(61,94,48,0.12);
  border: 1px solid rgba(61,94,48,0.3);
  color: var(--lp-forest);
  font-size: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success h3 {
  font-size: 24px;
  margin-bottom: 8px;
}

.form-success p {
  font-size: 15px;
  color: var(--lp-text-muted);
}

/* ===== CTA SECTION ===== */
#cta {
  background: var(--lp-forest);
}

.cta-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.cta-text h2 {
  color: var(--lp-sage);
  margin-bottom: 8px;
}

.cta-text p {
  font-size: 15px;
  color: rgba(184,212,160,0.8);
}

.cta-text a {
  color: var(--lp-sage);
  text-decoration: underline;
  text-decoration-color: rgba(184,212,160,0.4);
}

/* ===== FOOTER ===== */
footer {
  background: var(--lp-nav);
  border-top: 0.5px solid var(--lp-border-dark);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-copy,
.footer-address {
  font-size: 12px;
  color: var(--lp-cream-faint);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,11,9,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
}

.lightbox-content {
  position: relative;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-img {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
}

.lightbox-counter {
  font-size: 13px;
  color: var(--lp-cream-faint);
  letter-spacing: 0.08em;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--lp-cream-muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s;
}

.lightbox-close:hover { color: var(--lp-cream); }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30,31,28,0.7);
  border: 1px solid rgba(237,232,224,0.1);
  color: var(--lp-cream);
  font-size: 28px;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-prev { left: -56px; }
.lightbox-next { right: -56px; }

.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(50,52,48,0.9); }

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .nav-links,
  .nav-inner > .btn-inquire { display: none; }
  .nav-hamburger { display: flex; }
  .nav-mobile.open { display: flex; }

  #hero { height: 360px; }

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

  .stat {
    padding: 24px 20px;
    border-bottom: 1px solid var(--lp-border);
  }

  .stat:nth-child(odd)  { border-right: 1px solid var(--lp-border); }
  .stat:nth-child(even) { border-right: none; }
  .stat:nth-child(3),
  .stat:nth-child(4)    { border-bottom: none; }

  .preserve-inner { flex-direction: column; gap: 16px; }

  .gallery-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .gallery-main  { height: 260px; }
  .gallery-thumbs { flex-direction: row; height: 140px; }

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

  .rate-cards {
    grid-template-columns: 1fr;
    max-width: 360px;
  }

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

  .form-submit-row { flex-direction: column; align-items: stretch; }

  .cta-inner { flex-direction: column; align-items: flex-start; gap: 24px; }

  .footer-inner { flex-direction: column; align-items: flex-start; }

  .lightbox-prev { left: -12px; }
  .lightbox-next { right: -12px; }

  .family-note-card { padding: 28px 24px; }

  .section-inner { padding: 56px 20px; }

  #note .section-inner  { padding: 32px 20px; }
  #contact .section-inner { padding-top: 32px; }
}

@media (max-width: 480px) {
  .details-grid { grid-template-columns: 1fr; }
}
