/* =========================================================
   DESIGN TOKENS — change these values to re-theme the whole site
   ========================================================= */
:root {
  --ink: #1E2A26;        /* deep forest charcoal - main dark background */
  --ink-light: #2A3B35;  /* slightly lighter panel background */
  --linen: #F6F2EA;      /* warm off-white - light sections & text on dark */
  --brass: #B8923D;      /* gold accent - buttons, highlights */
  --brass-light: #E8C877;/* glow color for windows */
  --sage: #7C8F7A;       /* muted secondary green */
  --text-dark: #24302B;  /* body text on light backgrounds */

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Karla', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--linen);
  line-height: 1.6;
}

/* Scroll-reveal: elements start hidden/slightly lower, JS adds .visible when in view */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
}

em { font-style: italic; color: var(--brass); }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brass);
  margin-bottom: 8px;
}
.eyebrow.center, h2.center { text-align: center; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 2px;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, background 0.2s ease;
}
.btn-primary {
  background: var(--brass);
  color: var(--ink);
}
.btn-primary:hover { background: var(--brass-light); transform: translateY(-2px); }

/* =========================================================
   NAVIGATION
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink);
  padding: 18px 0;
}
.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--linen);
  font-weight: 700;
}
.logo span { color: var(--brass); }
.logo span.logo-location {
  color: var(--linen);
  font-size: 0.85rem;
  font-weight: 400;
  font-family: var(--font-body);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--linen);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links a:hover { color: var(--brass); }
.nav-toggle { display: none; background: none; border: none; color: var(--linen); font-size: 1.5rem; cursor: pointer; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  background: var(--ink);
  color: var(--linen);
  position: relative;
  overflow: hidden;
  padding: 80px 0 100px;
}
.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(184,146,61,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}
.hero-sub {
  color: var(--sage);
  font-size: 1.05rem;
  max-width: 440px;
  margin-bottom: 32px;
}

/* Building illustration */
.hero-visual { display: flex; justify-content: center; }
.building-svg { width: 100%; max-width: 340px; height: auto; }
.building-outline {
  fill: var(--ink-light);
  stroke: var(--sage);
  stroke-width: 2;
}
.building-roof { fill: var(--ink-light); stroke: var(--sage); stroke-width: 2; }
.door { fill: var(--sage); opacity: 0.5; }

/* Windows: generated in JS, styled here */
.window {
  fill: #3A4A44;
  transition: fill 0.6s ease;
}
.window.lit {
  fill: var(--brass-light);
  filter: drop-shadow(0 0 6px var(--brass-light));
}

/* =========================================================
   ABOUT
   ========================================================= */
.about { padding: 100px 0; }
.about-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.photo-placeholder {
  background: var(--ink-light);
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 4px;
  padding: 20px;
  gap: 12px;
}
.about-illustration { width: 70%; max-width: 220px; }
.ai-building { fill: none; stroke: var(--sage); stroke-width: 2; }
.ai-roof { fill: var(--sage); opacity: 0.6; }
.ai-window { fill: var(--brass-light); opacity: 0.85; }
.ai-door { fill: var(--sage); opacity: 0.5; }
.ai-ground { stroke: var(--sage); stroke-width: 1.5; opacity: 0.5; }
.ai-sun { fill: var(--brass); opacity: 0.4; }
.swap-label {
  font-size: 0.78rem;
  color: var(--sage);
  letter-spacing: 0.02em;
}
.photo-real {
  padding: 0;
  overflow: hidden;
}
.photo-real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery { padding: 100px 0; background: var(--ink-light); }
.gallery h2 { font-size: 2.2rem; margin-bottom: 48px; }
.gallery-category { margin-bottom: 44px; }
.gallery-category:last-child { margin-bottom: 0; }
.gallery-category h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brass);
  margin-bottom: 16px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 4px;
  background: var(--ink);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.about-text h2 { font-size: 2.2rem; margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; color: #4A554F; }

/* =========================================================
   LOCATION HIGHLIGHTS
   ========================================================= */
.location { padding: 80px 0 100px; background: var(--ink); color: var(--linen); }
.location h2 { font-size: 2.2rem; margin-bottom: 44px; }
.location-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.location-card {
  text-align: center;
  padding: 28px 16px;
  background: var(--ink-light);
  border-radius: 6px;
}
.location-icon { font-size: 2.2rem; display: block; margin-bottom: 12px; }
.location-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--brass);
  margin-bottom: 6px;
}
.location-card p { color: var(--sage); font-size: 0.9rem; }

/* =========================================================
   APARTMENTS
   ========================================================= */
.apartments { padding: 100px 0; background: var(--ink-light); }
.apartments h2 { font-size: 2.2rem; margin-bottom: 48px; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 800px;
  margin: 0 auto;
}
.card {
  background: var(--linen);
  padding: 24px;
  border-radius: 4px;
}
.card-photo {
  background: var(--ink);
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  margin-bottom: 16px;
  padding: 16px;
  overflow: hidden;
}
.card-photo-real { padding: 0; }
.card-photo-real img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.plan-icon { width: 100%; max-width: 160px; }
.plan-outline { fill: none; stroke: var(--sage); stroke-width: 1.5; }
.plan-wall { stroke: var(--sage); stroke-width: 1.5; }
.plan-room { fill: var(--brass); opacity: 0.25; }
.plan-dot { fill: var(--brass-light); }
.card h3 { font-size: 1.3rem; margin-bottom: 6px; }
.price { color: var(--brass); font-weight: 700; margin-bottom: 10px; }
.card p:last-child { color: #5A655F; font-size: 0.95rem; }

/* =========================================================
   AMENITIES
   ========================================================= */
.amenities { padding: 100px 0; }
.amenities h2 { font-size: 2.2rem; margin-bottom: 48px; }
.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}
.amenity {
  text-align: center;
  padding: 20px;
}
.amenity-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.note { color: var(--sage); font-size: 0.85rem; margin-top: 32px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { padding: 100px 0; background: var(--ink); color: var(--linen); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.contact h2 { font-size: 2.2rem; margin-bottom: 16px; }
.contact-details { list-style: none; margin-top: 24px; }
.contact-details li { margin-bottom: 10px; color: var(--sage); }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 6px;
  color: var(--sage);
}
.contact-form input,
.contact-form textarea {
  background: var(--ink-light);
  border: 1px solid var(--sage);
  border-radius: 3px;
  padding: 10px 12px;
  color: var(--linen);
  font-family: var(--font-body);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.form-note { font-size: 0.85rem; color: var(--brass-light); min-height: 1.2em; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--ink);
  color: var(--sage);
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
  border-top: 1px solid var(--ink-light);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 800px) {
  .hero-inner, .about-inner, .contact-inner {
    grid-template-columns: 1fr;
  }
  .hero-visual { order: -1; max-width: 260px; margin: 0 auto; }
  .hero h1 { font-size: 2.2rem; }
  .card-grid { grid-template-columns: 1fr; }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .location-grid { grid-template-columns: repeat(2, 1fr); }
  .location-card:last-child { grid-column: span 2; }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    right: 24px;
    background: var(--ink);
    padding: 16px 24px;
    border-radius: 4px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .window { transition: none; }
  .btn-primary:hover { transform: none; }
}
