/* =====================================================================
   AS REALTY — STYLESHEET
   Design direction: Sotheby's-Realty-inspired — navy/charcoal + white,
   muted gold accent, serif headings, uppercase letter-spaced sans-serif
   navigation, large full-bleed photography, generous whitespace.
   ===================================================================== */

:root {
  --navy: #12203a;
  --navy-deep: #0b1626;
  --charcoal: #1c1c1c;
  --white: #ffffff;
  --off-white: #f7f5f1;
  --gold: #b9975b;
  --gold-light: #d8c090;
  --line: rgba(255, 255, 255, 0.25);
  --line-dark: rgba(18, 32, 58, 0.15);
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: opacity 0.6s linear !important; transform: none !important; }
  .gallery-grid .g-item img { transition: none; }
  .gallery-grid .g-item:hover img { transform: none; }
}

.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9em;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

section { padding: 96px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 15px 36px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  background: transparent;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}
.btn-light { color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--navy); }
.btn-dark { color: var(--navy); }
.btn-dark:hover { background: var(--navy); color: var(--white); }
.btn-gold { color: var(--gold); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold); color: var(--navy-deep); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 40px;
  background: linear-gradient(to bottom, rgba(11,22,38,0.75), transparent);
  transition: background 0.4s ease, padding 0.4s ease;
}
.site-header.scrolled {
  background: var(--navy-deep);
  padding: 14px 40px;
  box-shadow: 0 2px 18px rgba(0,0,0,0.25);
}

.logo { display: flex; align-items: center; gap: 12px; color: var(--white); }
.logo svg { width: 42px; height: 42px; flex-shrink: 0; }
.logo-text { line-height: 1.1; }
.logo-text .wordmark {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 0.06em;
}
.logo-text .subtext {
  font-family: var(--font-sans);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: var(--white);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, opacity 0.3s ease;
}
.nav-links a:hover { border-color: var(--gold); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-size: 1.6rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  color: var(--white);
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 2.2s ease-in-out, transform 8s ease-out;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,22,38,0.42) 0%, rgba(11,22,38,0.2) 45%, rgba(11,22,38,0.65) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
}
.hero-content .eyebrow { color: var(--gold-light); text-align: center; }
.hero-content h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  max-width: 900px;
  margin-bottom: 0.4em;
}
.hero-content p {
  max-width: 620px;
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 2em;
  color: rgba(255,255,255,0.9);
}
.hero-buttons { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }

.hero-caption {
  position: absolute;
  left: 40px;
  bottom: 34px;
  z-index: 3;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  border-left: 2px solid var(--gold);
  padding-left: 12px;
}

.hero-dots {
  position: absolute;
  right: 40px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.hero-dots button.active { background: var(--gold); border-color: var(--gold); }

/* ---------- Highlights strip ---------- */
.highlights {
  background: var(--navy-deep);
  color: var(--white);
  padding: 34px 0;
}
.highlights .container {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 48px;
  justify-content: center;
  text-align: center;
}
.highlights .item {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.highlights .item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 4px;
}

/* ---------- Section headings ---------- */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.section-head p { color: #555; font-weight: 300; }
.rule {
  width: 56px; height: 1px;
  background: var(--gold);
  margin: 22px auto 0;
}

/* ---------- Building section ---------- */
.building-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
.building-photo-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line-dark);
}
.building-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-photo {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(135deg, #e7e2d8, #d9d2c2);
  color: #8a8067;
  text-align: center;
  padding: 20px;
}
.placeholder-photo svg { width: 46px; height: 46px; opacity: 0.6; }
.placeholder-photo span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.building-info h3 {
  font-size: 1.9rem;
  margin-bottom: 0.3em;
}
.building-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin: 22px 0 28px;
  padding: 20px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.building-meta div span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.building-meta div strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}
.amenity-list {
  list-style: none;
  padding: 0; margin: 0 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}
.amenity-list li {
  font-size: 0.92rem;
  padding-left: 20px;
  position: relative;
}
.amenity-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 8px; height: 1px;
  background: var(--gold);
}

/* ---------- Neighborhood ---------- */
.neighborhood {
  background: var(--navy);
  color: var(--white);
}
.neighborhood .section-head p { color: rgba(255,255,255,0.75); }
.neighborhood .section-head h2 { color: var(--white); }

.proximity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 64px;
}
.proximity-card {
  background: var(--navy);
  padding: 30px 26px;
}
.proximity-card .dist {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  color: var(--gold-light);
  margin-bottom: 6px;
}
.proximity-card .name { font-size: 0.95rem; margin-bottom: 4px; }
.proximity-card .approx {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.map-frame {
  border: 1px solid var(--line);
  height: 420px;
  overflow: hidden;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.15) contrast(1.05); }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.gallery-grid .g-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.gallery-grid .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-grid .g-item:hover img { transform: scale(1.06); }
.gallery-grid .g-item.placeholder-photo { aspect-ratio: 1 / 1; }

.gallery-subhead { margin-bottom: 24px; }
.gallery-subhead .eyebrow { font-size: 0.68rem; }
.gallery-subhead-spaced { margin-top: 56px; }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.contact-details h3 { font-size: 1.6rem; }
.contact-details .field { margin-bottom: 22px; }
.contact-details .field span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.fh-notice {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8rem;
  color: #555;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #555;
  margin-bottom: 8px;
}
input, textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-dark);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--charcoal);
}
input:focus, textarea:focus { outline: 1px solid var(--gold); }
textarea { resize: vertical; min-height: 120px; }
.form-status {
  margin-top: 16px;
  font-size: 0.85rem;
}
.form-status.success { color: #2f6b3a; }
.form-status.error { color: #a13d3d; }

/* ---------- About ---------- */
.about-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-wrap .mark {
  display: flex;
  justify-content: center;
}
.about-wrap .mark svg { width: 180px; height: 180px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.65);
  padding: 48px 0 28px;
  font-size: 0.82rem;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.footer-grid .logo .wordmark, .footer-grid .logo .subtext { color: inherit; }
.footer-links { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }
.footer-links a:hover { color: var(--gold-light); }
.footer-bottom {
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .building-grid, .contact-wrap, .about-wrap { grid-template-columns: 1fr; gap: 40px; }
  .amenity-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: 78%;
    max-width: 320px;
    background: var(--navy-deep);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 99;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  section { padding: 64px 0; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-caption, .hero-dots { display: none; }
}
