/* 42550 Pegasus Way — styles
   Palette: warm pine, stone, and cream. Change colors here only. */

:root {
  --cream: #f6f1e9;
  --paper: #fbf8f3;
  --ink: #1f1a16;
  --ink-soft: #4a423b;
  --stone: #8b8178;
  --pine: #2f4a3a;
  --pine-deep: #22362b;
  --ember: #b5643a;
  --line: rgba(31, 26, 22, 0.12);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --wrap: 1120px;
  --narrow: 720px;
  --radius: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}

img, video { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h3 { font-size: 1.35rem; margin-bottom: 0.4em; }

p { margin: 0 0 1em; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin: 0 auto; }
.narrow { max-width: var(--narrow); }

section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
  font-weight: 600;
  margin-bottom: 1rem;
}

.lede { font-size: 1.15rem; color: var(--ink-soft); }

.fine { font-size: 0.85rem; color: var(--stone); line-height: 1.5; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-align: center;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ember); color: #fff; border-color: var(--ember); }
.btn-primary:hover { background: #a0562f; }
.btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.6); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,0.26); }
.btn-outline { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn-outline:hover { background: var(--pine); color: #fff; }

.cta-row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Top bar */
.topbar {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
  color: #fff;
}
.brand {
  font-family: var(--serif);
  font-size: 1.15rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.topnav { display: flex; gap: 1.5rem; font-size: 0.9rem; font-weight: 500; }
.topnav a { text-decoration: none; opacity: 0.9; }
.topnav a:hover { opacity: 1; }
.topnav-cta { border-bottom: 1.5px solid rgba(255,255,255,0.7); }
@media (max-width: 720px) {
  .topnav a:not(.topnav-cta) { display: none; }
}

/* Hero */
.hero {
  position: relative;
  height: clamp(560px, 100svh, 920px);
  display: grid;
  align-items: end;
  color: #fff;
  padding: 0;
  overflow: hidden;
  background: var(--pine-deep);
}
.hero-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,0) 45%, rgba(20,15,12,0.85) 100%);
}
.hero-content {
  position: relative;
  width: min(var(--wrap), 100% - 2.5rem);
  margin: 0 auto;
  padding: 0 0 clamp(2.5rem, 6vw, 5rem);
}
.hero .eyebrow { color: rgba(255,255,255,0.8); }
.hero h1 { margin-bottom: 0.5rem; text-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.hero-address { font-size: 1.05rem; opacity: 0.92; margin-bottom: 0.4rem; }
.hero-price {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: 1.6rem;
}
.hero-scroll { margin-top: 2rem; font-size: 0.85rem; opacity: 0.75; }
.hero-scroll a { text-decoration: none; }

/* Facts */
.facts { background: var(--pine); color: #fff; padding: 2.5rem 0 1.5rem; }
.facts-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.25rem;
  text-align: center;
}
.fact { display: flex; flex-direction: column; gap: 0.2rem; }
.fact-num { font-family: var(--serif); font-size: clamp(1.7rem, 3.5vw, 2.4rem); line-height: 1; }
.fact-label { font-size: 0.78rem; letter-spacing: 0.04em; opacity: 0.8; text-transform: uppercase; }
.facts-note { margin-top: 1.5rem; font-size: 0.78rem; opacity: 0.65; text-align: center; }
@media (max-width: 860px) { .facts-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .facts-grid { grid-template-columns: repeat(2, 1fr); } }

/* Intro */
.intro { background: var(--cream); }

/* Video */
.video { background: var(--paper); }
.video-frame {
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.45);
  aspect-ratio: 16 / 9;
}
.video-frame video { width: 100%; height: 100%; object-fit: contain; }
.caption { margin-top: 0.9rem; font-size: 0.85rem; color: var(--stone); }

/* Gallery */
.gallery { background: var(--cream); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 0.75rem;
}
.tile {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd;
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.tile:hover img { transform: scale(1.03); }
.tile-wide { grid-column: span 2; }
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
}

/* Living cards */
.living { background: var(--paper); }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.card p { margin: 0; color: var(--ink-soft); font-size: 0.98rem; }

/* Features */
.features { background: var(--pine-deep); color: #fff; }
.features .lede { color: rgba(255,255,255,0.78); max-width: var(--narrow); }
.feature-list {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 3rem;
}
.feature-list li {
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.82);
  font-size: 0.98rem;
}
.feature-list strong { display: block; color: #fff; font-weight: 600; margin-bottom: 0.15rem; }

/* Expansion */
.expansion { background: var(--cream); }

/* Location */
.location { background: var(--paper); }
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 1rem;
}
.near { padding-left: 1.1rem; margin: 0 0 1.5rem; color: var(--ink-soft); }
.near li { margin-bottom: 0.25rem; }
.map-frame {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 820px) { .location-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { background: var(--cream); text-align: center; }
.contact .lede { margin-left: auto; margin-right: auto; }
.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0 1.5rem;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
}
.contact-card h3 { margin-bottom: 0.2rem; }
.contact-card .phone {
  display: block;
  font-size: 1.25rem;
  text-decoration: none;
  color: var(--pine);
  margin-bottom: 1.1rem;
  font-weight: 500;
}
.contact-card .cta-row { justify-content: center; }
.share { color: var(--ink-soft); font-size: 0.95rem; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: 2.5rem 0 6rem; font-size: 0.9rem; }
.footer .fine { color: rgba(255,255,255,0.5); }

/* Sticky mobile bar */
.stickybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: none;
  gap: 0.6rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(31, 26, 22, 0.96);
  backdrop-filter: blur(8px);
}
.stickybar .btn { flex: 1; }
@media (max-width: 720px) {
  .stickybar { display: flex; }
}
@media (min-width: 721px) {
  .footer { padding-bottom: 2.5rem; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  z-index: 100;
  background: rgba(10, 8, 6, 0.95);
  display: grid;
  place-items: center;
}
.lightbox[hidden] { display: none; }
.lb-img { max-width: 94vw; max-height: 88vh; object-fit: contain; border-radius: 4px; }
.lightbox button {
  position: absolute;
  background: none;
  border: 0;
  color: #fff;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  opacity: 0.8;
}
.lightbox button:hover { opacity: 1; }
.lb-close { top: 0.8rem; right: 1rem; }
.lb-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.5rem; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .tile img { transition: none; }
}
