/* ---------------- HERO ---------------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-block: 60px;
  /* Same --content-inset as the nav bar (global.css) so the hero title
     lines up with the logo above it and every heading below it. */
  padding-inline: var(--content-inset);
  overflow: hidden;
  background-color: var(--brand-forest);
}
.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  /* Lightened again per Hayden's feedback (Aug 2026) — the video reads as
     "less wow" when it's this dark, even though it still needs to darken
     toward the bottom (where hero-content sits, since .hero uses
     align-items: flex-end) to keep the white title/subtitle/buttons
     readable. A touch lighter across all three stops than before. */
  background: linear-gradient(180deg, rgba(27, 54, 41, 0.1) 0%, rgba(15, 30, 23, 0.28) 60%, rgba(10, 20, 15, 0.45) 100%);
  z-index: 1;
}
/* Nav (.nav-bar, .nav-bar--overlay, .brand-logo-*, .nav-links, .nav-link,
   .nav-cta) now lives in global.css — shared across every page. */
.hero-content {
  max-width: 850px;
  z-index: 2;
  position: relative;
}
.urgency-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(27, 54, 41, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  color: #a3e635;
  margin-bottom: 20px;
}
.status-dot {
  width: 8px;
  height: 8px;
  background-color: #a3e635;
  border-radius: 50%;
  box-shadow: 0 0 10px #a3e635;
}
.hero-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.1;
  /* Matches every other heading site-wide (.section-header h2, .type-title,
     .unit-title, etc. — see global.css / floorplan.css / unit.css). */
  letter-spacing: 0.28em;
  margin-bottom: 12px;
  color: #fff;
}
.hero-subtitle {
  font-size: 24px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.btn-primary {
  background-color: #fff;
  color: var(--brand-forest);
  padding: 16px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn-primary:hover {
  transform: scale(1.02);
  background-color: var(--brand-sage-light);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  color: #fff;
  padding: 16px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background var(--duration-fast) ease;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ---------------- SHOP THE HOMES ---------------- */
.inventory-section {
  padding: 100px 20px;
}
/* .section-header now lives in global.css — shared across pages. */
.unit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.unit-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  color: inherit;
  transition: transform var(--duration-base) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);
  box-shadow: 0 4px 20px rgba(27, 54, 41, 0.05);
  border: 1px solid rgba(27, 54, 41, 0.08);
}
.unit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(27, 54, 41, 0.12);
}
.card-image-wrapper {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
  background-color: var(--brand-sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-image-placeholder {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--brand-sage);
  font-size: 15px;
}
.card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 8px;
}
.unit-type {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand-forest);
}
.availability-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  background-color: var(--brand-sage-light);
  color: var(--brand-forest);
  white-space: nowrap;
}
.availability-badge.low-stock {
  background-color: #fef2f2;
  color: #991b1b;
}
.card-price {
  margin-top: 12px;
}
.price-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #86868b;
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}
.price-value {
  font-size: 20px;
  font-weight: 600;
  color: var(--brand-forest);
}
.card-action {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--brand-sage-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--brand-accent);
  font-size: 13px;
  font-weight: 600;
}
.card-action span {
  transition: transform var(--duration-fast) ease;
}
.unit-card:hover .card-action span {
  transform: translateX(4px);
}

/* ---------------- STORY SECTIONS (Location / Developer) ---------------- */
.story-section {
  padding: 90px 20px;
}
.location-section {
  background: var(--bg-light);
}
.developer-section {
  background: #fff;
}
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.story-grid--reverse {
  direction: rtl;
}
.story-grid--reverse > * {
  direction: ltr;
}
.story-eyebrow {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--brand-accent);
  font-size: 18px;
  margin-bottom: 12px;
}
.story-headline {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 400;
  color: var(--brand-forest);
  line-height: 1.2;
  letter-spacing: 0.28em;
  margin-bottom: 20px;
}
.story-body {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin-bottom: 20px;
  max-width: 46ch;
}
.story-link {
  color: var(--brand-accent);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
}

/* ---- "See What's Nearby" essentials toggle (Location story) ----
   Deliberately collapsed by default and reusing .story-link's existing
   look — the goal (per Hayden's feedback) is a homepage that stays exactly
   as light/streamlined as it is today for anyone who doesn't click, with
   the fuller 9-item list only a click away. */
.nearby-toggle-wrap {
  margin-top: 4px;
}
.nearby-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-body);
}
.nearby-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--brand-accent);
  font-size: 13px;
  line-height: 1;
  transition: transform var(--duration-fast) var(--ease-standard);
}
.nearby-toggle[aria-expanded='true'] .nearby-toggle-icon {
  transform: rotate(45deg); /* + becomes a visual × */
}
/* No [hidden] dance needed — collapsed height is already 0, so a plain
   class toggle animates cleanly (same idea as the teaser-form reveal, just
   without that one's extra hidden-attribute step since there's no
   flash-of-unstyled-content risk here). */
.nearby-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height var(--duration-slow) var(--ease-standard), opacity var(--duration-base) var(--ease-standard);
}
.nearby-panel.is-open {
  /* Generous upper bound, not a real measurement — just needs to clear the
     tallest real layout (9 stacked single-column rows on mobile, with the
     longer values wrapping to 2 lines) so nothing gets clipped. */
  max-height: 1000px;
  opacity: 1;
}
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--brand-sage-light);
}
.nearby-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nearby-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.nearby-value {
  font-size: 15px;
  color: var(--brand-forest);
}
.story-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}
.story-media-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background: var(--brand-sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: var(--brand-sage);
  font-size: 14px;
  font-family: var(--font-accent);
  font-style: italic;
}
.story-media-placeholder--light {
  background: var(--brand-tint);
  color: var(--brand-walnut);
}

/* .site-footer / .footer-* now live in global.css — shared across pages. */

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1024px) {
  .unit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .story-grid,
  .story-grid--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .nearby-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .hero {
    height: 100dvh;
    min-height: 100dvh;
    padding: 40px 24px;
  }
  .hero-title {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: 18px;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .unit-grid {
    grid-template-columns: 1fr;
  }
}
