/* ===========================================================
   Avenue Group Realty — 19 Barberry Place #313
   Warm editorial landing page (21 Palace lineage)
   Palette: parchment / charcoal / champagne gold
   =========================================================== */

:root {
  --parchment: #F4EFE6;
  --ivory:     #FBF8F2;
  --bone:      #ECE6D8;
  --charcoal:  #1C1A17;
  --ink:       #2A2722;
  --mute:      #6E6558;
  --gold:      #B89668;
  --gold-deep: #8E7144;
  --rule:      #D7CFBE;
  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a  { color: inherit; text-decoration: none; }
em { font-style: italic; font-family: var(--serif); font-weight: 400; }

/* Shared section eyebrow + title */
.section-eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-block;
  margin-bottom: 24px;
  font-weight: 500;
}
.section-eyebrow.light { color: var(--gold); }
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin-bottom: 32px;
}
.section-title.light { color: var(--ivory); }
.section-title em { color: var(--gold-deep); }
.section-title.light em { color: var(--gold); }

/* ===========================================================
   NAV
   =========================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(244,239,230,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 18px 40px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.nav-mark {
  display: inline-flex;
  align-items: center;
  width: 300px;
  height: 78px;
  overflow: hidden;
}
.nav-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
  mix-blend-mode: multiply;
}
.nav-links {
  display: flex; gap: 36px; justify-content: center;
}
.nav-links a {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
  transition: color .25s;
}
.nav-links a:hover { color: var(--charcoal); }
.nav-cta {
  justify-self: end;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid var(--charcoal);
  color: var(--charcoal);
  font-weight: 500;
  transition: background .25s, color .25s;
}
.nav-cta:hover { background: var(--charcoal); color: var(--ivory); }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: 1fr auto; padding: 14px 20px; }
  .nav-mark { width: 210px; height: 56px; }
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  overflow: hidden;
  background: var(--charcoal);
}
.hero-image {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: brightness(0.78) saturate(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 18% 58%, rgba(28,26,23,0.82) 0%, rgba(28,26,23,0.50) 26%, rgba(28,26,23,0.08) 54%, transparent 72%),
    linear-gradient(180deg, rgba(28,26,23,0.55) 0%, rgba(28,26,23,0.10) 35%, rgba(28,26,23,0.65) 100%);
}
.hero-mast {
  position: absolute;
  left: 6vw;
  bottom: 14vh;
  color: var(--ivory);
  max-width: 70vw;
  z-index: 2;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: #E6C486;
  margin-bottom: 28px;
  display: block;
  font-weight: 500;
  text-shadow: 0 2px 18px rgba(0,0,0,0.75);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.012em;
  color: var(--ivory);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-num {
  font-size: clamp(80px, 11vw, 180px);
  font-weight: 300;
  color: var(--gold);
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.04em;
  display: inline-block;
}
.hero-line {
  font-size: clamp(36px, 5vw, 80px);
  font-weight: 400;
}
.hero-sub {
  margin-top: 24px;
  font-size: 13px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(251,248,242,0.78);
  font-weight: 400;
}
.hero-meta {
  position: absolute;
  right: 5vw;
  bottom: 5vh;
  display: flex;
  gap: 28px;
  color: rgba(251,248,242,0.82);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  z-index: 2;
}
.hero-meta span:first-child::after {
  content: "";
  display: inline-block; width: 28px; height: 1px;
  background: var(--gold);
  margin-left: 28px; vertical-align: middle;
}

@media (max-width: 720px) {
  .hero-mast { left: 6vw; bottom: 18vh; }
  .hero-meta { right: 6vw; bottom: 5vh; gap: 14px; flex-direction: column; }
}

/* ===========================================================
   FACTS BAND
   =========================================================== */
.facts {
  background: var(--ivory);
  border-bottom: 1px solid var(--rule);
}
.facts-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 56px 40px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}
.fact {
  display: flex; flex-direction: column;
  padding: 0 18px;
  border-left: 1px solid var(--rule);
}
.fact:first-child { border-left: none; padding-left: 0; }
.fact-val {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 12px;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-variant-numeric: lining-nums tabular-nums;
}
.fact-val .sup {
  font-size: 0.45em; vertical-align: super;
  color: var(--gold-deep);
  margin-left: 2px;
  font-family: var(--sans);
}
.fact-lbl {
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}

@media (max-width: 820px) {
  .facts-inner { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; padding: 40px 24px; }
  .fact:nth-child(odd) { border-left: none; padding-left: 0; }
  .fact:nth-child(even) { border-left: 1px solid var(--rule); }
}

/* ===========================================================
   OVERVIEW
   =========================================================== */
.overview {
  padding: 140px 40px;
  background: var(--parchment);
}
.overview-grid {
  max-width: 1320px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 96px;
  align-items: end;
}
.overview-image {
  position: relative;
  margin-top: 60px;
}
.overview-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}
.overview-caption {
  position: absolute;
  bottom: -28px; left: 0;
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mute);
}
.overview-copy p {
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 52ch;
}
.overview-copy .overview-sig {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
@media (max-width: 920px) {
  .overview { padding: 80px 24px; }
  .overview-grid { grid-template-columns: 1fr; gap: 60px; }
  .overview-image { margin-top: 0; }
}

/* ===========================================================
   GALLERY
   =========================================================== */
.gallery {
  padding: 140px 40px;
  background: var(--ivory);
}
.gallery-head {
  max-width: 1320px; margin: 0 auto 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  gap: 40px;
}
.gallery-blurb {
  font-size: 14px;
  color: var(--mute);
  max-width: 42ch;
  justify-self: end;
  line-height: 1.7;
}
.gallery-grid {
  max-width: 1320px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.gallery-grid figure {
  position: relative;
  overflow: hidden;
  background: var(--bone);
}
.gallery-grid figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .9s ease;
}
.gallery-grid figure:hover img { transform: scale(1.04); }
.gallery-grid figcaption {
  position: absolute;
  bottom: 14px; left: 14px;
  color: var(--ivory);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0,0,0,0.4);
}
/* Asymmetric editorial grid */
.g-1 { grid-column: span 4; grid-row: span 2; }
.g-2 { grid-column: span 2; grid-row: span 1; }
.g-3 { grid-column: span 2; grid-row: span 1; }
.g-4 { grid-column: span 3; grid-row: span 2; }
.g-5 { grid-column: span 3; grid-row: span 2; }
.g-6 { grid-column: span 2; grid-row: span 1; }
.g-7 { grid-column: span 4; grid-row: span 2; }
.g-8 { grid-column: span 2; grid-row: span 2; }
.g-9 { grid-column: span 2; grid-row: span 1; }
.g-10 { grid-column: span 3; grid-row: span 2; }
.g-11 { grid-column: span 3; grid-row: span 2; }

@media (max-width: 820px) {
  .gallery { padding: 80px 20px; }
  .gallery-head { grid-template-columns: 1fr; }
  .gallery-blurb { justify-self: start; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .g-1, .g-2, .g-3, .g-4, .g-5, .g-6, .g-7, .g-8, .g-9, .g-10, .g-11 { grid-column: span 1; grid-row: span 1; }
}

/* ===========================================================
   FEATURES
   =========================================================== */
.features {
  padding: 140px 40px;
  background: var(--parchment);
}
.features-head {
  max-width: 1320px; margin: 0 auto 72px;
}
.features-grid {
  max-width: 1320px; margin: 0 auto 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.feat {
  background: var(--parchment);
  padding: 40px 32px;
  display: flex; flex-direction: column;
  gap: 14px;
  min-height: 220px;
}
.feat-num {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--gold-deep);
  font-weight: 400;
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-variant-numeric: lining-nums tabular-nums;
  letter-spacing: 0.05em;
}
.feat h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  color: var(--charcoal);
  line-height: 1.2;
}
.feat p {
  font-size: 14px;
  color: var(--mute);
  line-height: 1.7;
}

.amenities {
  max-width: 1320px; margin: 0 auto;
  padding-top: 60px;
  border-top: 1px solid var(--rule);
}
.amenities-head {
  margin-bottom: 36px;
}
.amenities-head h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  color: var(--charcoal);
  line-height: 1;
}
.amenities-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px 40px;
}
.amenities-list li {
  font-size: 14px;
  color: var(--ink);
  padding: 14px 0 14px 22px;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.amenities-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 22px;
  width: 8px; height: 1px;
  background: var(--gold);
}

@media (max-width: 920px) {
  .features { padding: 80px 24px; }
  .features-grid { grid-template-columns: 1fr; }
  .amenities-list { grid-template-columns: 1fr; }
}

/* ===========================================================
   LOCATION
   =========================================================== */
.location {
  padding: 140px 40px;
  background: var(--bone);
}
.location-grid {
  max-width: 1320px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 96px;
  align-items: start;
}
.location-copy p {
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink);
  margin-bottom: 20px;
  max-width: 50ch;
}
.location-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.loc-card {
  background: var(--bone);
  padding: 36px 28px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 160px;
  justify-content: center;
}
.loc-val {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--charcoal);
  line-height: 1.15;
  font-weight: 500;
}
.loc-lbl {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}

@media (max-width: 920px) {
  .location { padding: 80px 24px; }
  .location-grid { grid-template-columns: 1fr; gap: 56px; }
}

/* ===========================================================
   CTA
   =========================================================== */
.cta {
  position: relative;
  padding: 160px 40px;
  color: var(--ivory);
  overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45) saturate(1.05);
}
.cta-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,26,23,0.35), rgba(28,26,23,0.7));
}
.cta-inner {
  position: relative; z-index: 2;
  max-width: 720px; margin: 0 auto;
  text-align: center;
}
.cta-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 6vw, 96px);
  line-height: 1.0;
  color: var(--ivory);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.cta-title em { color: var(--gold); }
.cta-sub {
  font-size: 16px;
  color: rgba(251,248,242,0.82);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 50ch;
  margin-left: auto; margin-right: auto;
}
.cta-btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 20px 38px;
  background: var(--gold);
  color: var(--charcoal);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 600;
  transition: background .25s, color .25s;
}
.cta-btn:hover { background: var(--ivory); color: var(--charcoal); }
.cta-btn .arrow { font-size: 16px; }
.cta-note {
  margin-top: 24px;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(251,248,242,0.55);
}

/* ===========================================================
   FOOTER
   =========================================================== */
.footer {
  background: var(--charcoal);
  color: var(--ivory);
  padding: 100px 40px 32px;
}
.footer-inner {
  max-width: 1320px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(216,207,190,0.18);
}
.footer-mark {
  font-family: var(--serif);
  font-size: 36px;
  letter-spacing: 0.32em;
  color: var(--ivory);
  margin-bottom: 18px;
  font-weight: 400;
}
.footer-logo {
  display: block;
  width: min(360px, 82vw);
  height: auto;
  margin-bottom: 22px;
}
.footer-tag {
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 28px;
  font-weight: 400;
}
.footer-broker {
  font-size: 13px;
  color: rgba(251,248,242,0.7);
  line-height: 1.7;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-broker a {
  color: rgba(251,248,242,0.78);
  text-decoration: none;
  border-bottom: 1px solid rgba(184,150,104,0.55);
}
.footer-broker a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.footer-right { text-align: left; }
.footer-agent {
  font-family: var(--serif);
  font-size: 40px;
  font-weight: 400;
  color: var(--ivory);
  line-height: 1.1;
  margin-bottom: 10px;
}
.footer-role {
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  font-weight: 500;
}
.footer-contact {
  font-size: 13px;
  color: rgba(251,248,242,0.6);
  margin-bottom: 28px;
  font-style: italic;
}
.footer-listing {
  font-size: 13px;
  color: rgba(251,248,242,0.72);
  line-height: 1.7;
  padding-top: 20px;
  border-top: 1px solid rgba(216,207,190,0.18);
}
.footer-base {
  max-width: 1320px;
  margin: 32px auto 0;
  display: flex; justify-content: space-between; gap: 24px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(251,248,242,0.4);
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .footer { padding: 60px 24px 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 48px; padding-bottom: 48px; }
  .footer-base { flex-direction: column; }
}
