/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Inter', -apple-system, sans-serif; color: #2c2c2c; line-height: 1.7; background: #faf9f7; }
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; line-height: 1.2; }
h2 em, h1 em { font-style: italic; color: #7a6c5d; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; }

/* ── Buttons ── */
.btn { display: inline-block; padding: 14px 32px; border-radius: 6px; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.95rem; letter-spacing: 0.02em; transition: all 0.3s ease; cursor: pointer; border: none; }
.btn-primary { background: #5a7a5a; color: white; }
.btn-primary:hover { background: #4a6a4a; transform: translateY(-1px); }
.btn-outline { border: 1.5px solid rgba(255,255,255,0.6); color: white; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,0.15); border-color: white; }
.btn-secondary { background: transparent; color: #5a7a5a; border: 1.5px solid #5a7a5a; }
.btn-secondary:hover { background: #5a7a5a; color: white; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

/* ── Navigation ── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 20px 0; transition: all 0.3s ease; }
.nav.scrolled { background: rgba(250,249,247,0.95); backdrop-filter: blur(12px); padding: 12px 0; box-shadow: 0 1px 20px rgba(0,0,0,0.06); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: white; transition: color 0.3s; }
.nav-logo span { font-weight: 400; margin-left: 4px; opacity: 0.8; }
.nav.scrolled .nav-logo { color: #2c2c2c; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 0.9rem; color: rgba(255,255,255,0.85); transition: color 0.3s; font-weight: 400; }
.nav.scrolled .nav-links a { color: #555; }
.nav-links a:hover { color: white; }
.nav.scrolled .nav-links a:hover { color: #2c2c2c; }
.nav-cta { padding: 10px 22px; border: 1.5px solid rgba(255,255,255,0.5); border-radius: 6px; }
.nav.scrolled .nav-cta { border-color: #5a7a5a; color: #5a7a5a !important; }
.nav.scrolled .nav-cta:hover { background: #5a7a5a; color: white !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: white; margin: 5px 0; transition: all 0.3s; }
.nav.scrolled .nav-toggle span { background: #2c2c2c; }

/* ── Hero ── */
.hero { height: 100vh; min-height: 700px; position: relative; display: flex; align-items: center; justify-content: center; text-align: center; background: url('images/hero.jpg') center/cover no-repeat; color: white; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,20,0.4) 0%, rgba(20,30,20,0.6) 100%); }
.hero-content { position: relative; z-index: 1; max-width: 800px; padding: 0 24px; }
.hero h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 20px; font-weight: 700; letter-spacing: -0.02em; }
.hero-sub { font-size: clamp(1.05rem, 2vw, 1.3rem); opacity: 0.9; margin-bottom: 40px; font-weight: 300; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); z-index: 1; text-align: center; }
.hero-scroll span { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.15em; opacity: 0.6; margin-bottom: 8px; }
.hero-scroll-line { width: 1px; height: 40px; background: rgba(255,255,255,0.4); margin: 0 auto; animation: scrollPulse 2s ease-in-out infinite; }
@keyframes scrollPulse { 0%, 100% { opacity: 0.4; height: 40px; } 50% { opacity: 1; height: 50px; } }

/* ── Sections ── */
.section { padding: 120px 0; }
.section-dark { background: #2c3028; color: #e8e6e1; }
.section-dark h2 em { color: #a8b89a; }
.section-alt { background: #f2f0ec; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-tag { display: inline-block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.15em; color: #7a6c5d; font-weight: 500; margin-bottom: 12px; }
.section-dark .section-tag { color: #a8b89a; }
.section-header h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 20px; }
.section-lead { max-width: 640px; margin: 0 auto; font-size: 1.1rem; color: #666; line-height: 1.8; }
.section-dark .section-lead { color: #b8b5b0; }

/* ── Pillars (Vision) ── */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.pillar { text-align: center; padding: 32px 24px; }
.pillar-icon { width: 56px; height: 56px; margin: 0 auto 20px; color: #5a7a5a; }
.pillar h3 { font-size: 1.2rem; margin-bottom: 10px; }
.pillar p { font-size: 0.95rem; color: #666; }

/* ── Resilience ── */
.resilience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.res-card { background: rgba(255,255,255,0.06); border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.res-img { height: 240px; background-size: cover; background-position: center; }
.res-body { padding: 32px; }
.res-body h3 { font-size: 1.3rem; margin-bottom: 12px; color: #e8e6e1; }
.res-body p { color: #b8b5b0; font-size: 0.95rem; }
.res-note { margin-top: 12px; font-style: italic; color: #a8b89a; font-size: 0.9rem; }
.res-stats { display: flex; gap: 32px; margin-top: 20px; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.8rem; font-family: 'Playfair Display', serif; color: #a8b89a; }
.stat span { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: #888; }
.res-card-ai { grid-column: 1 / -1; background: linear-gradient(135deg, rgba(90,122,90,0.15), rgba(255,255,255,0.04)); border-color: rgba(90,122,90,0.3); }

/* ── Homes ── */
.homes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.home-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 24px rgba(0,0,0,0.06); transition: transform 0.3s, box-shadow 0.3s; }
.home-card:hover { transform: translateY(-4px); box-shadow: 0 8px 40px rgba(0,0,0,0.1); }
.home-img { height: 260px; background-size: cover; background-position: center; position: relative; }
.home-badge { position: absolute; top: 16px; left: 16px; background: rgba(0,0,0,0.6); color: white; padding: 6px 14px; border-radius: 4px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; }
.home-body { padding: 28px; }
.home-body h3 { font-size: 1.15rem; margin-bottom: 14px; }
.home-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.home-specs span { font-size: 0.8rem; padding: 4px 10px; background: #f2f0ec; border-radius: 20px; color: #666; }
.home-body p { font-size: 0.9rem; color: #666; margin-bottom: 16px; }
.home-price { margin-bottom: 16px; }
.home-price strong { font-size: 1.4rem; font-family: 'Playfair Display', serif; color: #2c2c2c; }
.home-price span { margin-left: 8px; font-size: 0.9rem; color: #999; }

/* ── Lifestyle ── */
.lifestyle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.life-card { padding: 32px; background: white; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }
.life-icon { width: 44px; height: 44px; color: #5a7a5a; margin-bottom: 16px; }
.life-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.life-card p { font-size: 0.9rem; color: #666; }

/* ── Location ── */
.location-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-bottom: 40px; }
.loc-item { text-align: center; padding: 24px 12px; background: #f2f0ec; border-radius: 10px; }
.loc-item strong { display: block; font-size: 1.5rem; font-family: 'Playfair Display', serif; color: #5a7a5a; margin-bottom: 4px; }
.loc-item span { font-size: 0.85rem; color: #666; }
.location-img { height: 400px; background-size: cover; background-position: center; border-radius: 12px; }

/* ── FAQ ── */
.faq-list { max-width: 700px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid #ddd; }
.faq-item summary { padding: 20px 0; font-size: 1.05rem; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: #999; transition: transform 0.3s; }
.faq-item[open] summary::after { content: '-'; }
.faq-item p { padding: 0 0 20px; color: #666; font-size: 0.95rem; }

/* ── Contact ── */
.contact-form { margin-bottom: 48px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 6px; color: #b8b5b0; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 14px 16px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 8px; color: white; font-family: 'Inter', sans-serif; font-size: 0.95rem; transition: border-color 0.3s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: #5a7a5a; }
.form-group select { appearance: none; }
.form-group select option { background: #2c3028; color: white; }
.form-group textarea { resize: vertical; }
.contact-channels { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.channel { text-align: center; }
.channel strong { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: #a8b89a; margin-bottom: 4px; }
.channel span { color: #b8b5b0; font-size: 0.95rem; }

/* ── Footer ── */
.footer { padding: 48px 0; background: #1a1d18; color: #888; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
.footer-brand strong { color: #ccc; font-family: 'Playfair Display', serif; font-size: 1.1rem; display: block; margin-bottom: 4px; }
.footer-brand p { font-size: 0.85rem; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.85rem; transition: color 0.3s; }
.footer-links a:hover { color: #ccc; }
.footer-copy { font-size: 0.8rem; }

/* ── Animations ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in:nth-child(6) { transition-delay: 0.5s; }

/* ── Responsive ── */
@media (max-width: 968px) {
  .pillars, .homes-grid, .lifestyle-grid { grid-template-columns: repeat(2, 1fr); }
  .resilience-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: repeat(3, 1fr); }
  .res-card-ai { grid-column: 1; }
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: rgba(250,249,247,0.98); padding: 20px; gap: 16px; box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
  .nav-links.open { display: flex; }
  .nav-links a { color: #333 !important; }
  .section { padding: 80px 0; }
  .pillars, .homes-grid, .lifestyle-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero h1 { font-size: 2.2rem; }
}
