/* ─── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #f9f6f1;
  --white:    #ffffff;
  --charcoal: #1c1c1e;
  --dark:     #111115;
  --mid:      #6b6b6b;
  --gold:     #c9a96e;
  --gold-dk:  #a8884c;
  --border:   #e8e3db;
  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans:  'Inter', system-ui, sans-serif;
  --radius:   4px;
  --shadow:   0 4px 32px rgba(0,0,0,.08);
  --shadow-lg:0 12px 64px rgba(0,0,0,.14);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--ff-sans);
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ─── Typography ───────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--ff-serif);
  font-weight: 400;
  line-height: 1.15;
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 1.2rem; }
h4 { font-size: 1.15rem; margin-bottom: .5rem; }

p { line-height: 1.75; color: #4a4a4a; }
p + p { margin-top: .9rem; }

.label {
  font-family: var(--ff-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
  display: block;
}
.label.light { color: var(--gold); }

.section-sub {
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 3rem;
  color: var(--mid);
}

.center { text-align: center; }

/* ─── Layout Helpers ───────────────────────────────────────────── */
.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

section { padding: 7rem 0; }

.bg-light  { background: var(--cream); }
.bg-dark   { background: var(--dark); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* ─── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 2rem;
  border-radius: var(--radius);
  font-family: var(--ff-sans);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: all .25s ease;
  cursor: pointer;
  border: none;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover { background: var(--gold-dk); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(201,169,110,.35); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.55);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn-ghost-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); }

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold-dk); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(201,169,110,.45); }

.btn-large { padding: 1.1rem 2.6rem; font-size: .9rem; }

/* ─── Nav ──────────────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.4rem 0;
  transition: background .3s, padding .3s, box-shadow .3s;
}
#navbar.scrolled {
  background: rgba(17,17,21,.94);
  backdrop-filter: blur(12px);
  padding: .9rem 0;
  box-shadow: 0 2px 24px rgba(0,0,0,.25);
}

.nav-inner {
  width: min(1160px, 92vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--ff-serif);
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: .02em;
}
.nav-logo span {
  display: block;
  font-size: .7rem;
  font-family: var(--ff-sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: -.15rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.4rem;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,.8);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: .6rem 1.3rem;
  border-radius: var(--radius);
  transition: background .2s !important;
}
.nav-cta:hover { background: var(--gold-dk) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--white);
  transition: .25s;
}

/* ─── Mobile Menu ──────────────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--dark);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { list-style: none; text-align: center; }
.mobile-menu li { margin: 1.4rem 0; }
.mobile-menu a {
  font-family: var(--ff-serif);
  font-size: 2.2rem;
  color: var(--white);
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-close {
  position: absolute;
  top: 1.5rem; right: 1.8rem;
  font-size: 1.5rem;
  color: var(--white);
  background: none;
  border: none;
  cursor: pointer;
}

/* ─── Hero ─────────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('photos/building-exterior.png') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(17,17,21,.82) 0%,
    rgba(17,17,21,.55) 60%,
    rgba(17,17,21,.4) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1160px, 92vw);
  margin: 0 auto;
  padding: 6rem 0 4rem;
}

.hero-eyebrow {
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.4rem;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 1.4rem;
}
.hero-content h1 em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,.85);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.7);
  max-width: 480px;
  margin-bottom: 2.8rem;
  line-height: 1.8;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,.5));
  margin: 0 auto;
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: .4; transform: scaleY(1); }
  50%      { opacity: 1;  transform: scaleY(1.1); }
}

/* ─── About ────────────────────────────────────────────────────── */
#about .split-text p { max-width: 440px; }
#about .split-text .btn { margin-top: 2rem; }

.building-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3rem 2.5rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}
.building-stat { text-align: center; }
.building-stat span {
  display: block;
  font-family: var(--ff-serif);
  font-size: 2.8rem;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: .3rem;
}
.building-stat small {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--mid);
}
.divider-v {
  width: 1px;
  height: 60px;
  background: var(--border);
}

/* ─── Units ────────────────────────────────────────────────────── */
.units-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.unit-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  transition: box-shadow .3s, transform .3s;
}
.unit-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.unit-card.featured { border-color: var(--gold); }

/* Photo */
.unit-photo {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.unit-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.unit-card:hover .unit-photo img { transform: scale(1.04); }

.unit-photo-badge {
  position: absolute;
  top: 1rem; left: 1rem;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 20px;
}

.unit-photo-tag {
  position: absolute;
  top: 1rem; right: 1rem;
  background: var(--gold);
  color: var(--white);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: 20px;
}

/* Carousel */
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .4s cubic-bezier(.4,0,.2,1);
}
.carousel-track img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(17,17,21,.55);
  color: var(--white);
  border: none;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s, background .2s;
  z-index: 3;
}
.carousel-btn.prev { left: .75rem; }
.carousel-btn.next { right: .75rem; }
.unit-photo:hover .carousel-btn { opacity: 1; }
.carousel-btn:hover { background: rgba(17,17,21,.85); }

.carousel-dots {
  position: absolute;
  bottom: .7rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .35rem;
  z-index: 3;
}
.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.carousel-dot.active {
  background: var(--white);
  transform: scale(1.3);
}

/* Body */
.unit-body { padding: 2rem 2rem 2rem; }

.unit-number {
  font-family: var(--ff-serif);
  font-size: 2.2rem;
  color: var(--charcoal);
  line-height: 1;
}
.unit-floor {
  font-size: .76rem;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: .4rem 0 1.4rem;
}

.unit-features {
  list-style: none;
  margin-bottom: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.unit-features li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  color: #4a4a4a;
}
.unit-features svg {
  width: 14px; height: 14px;
  stroke: var(--gold);
  stroke-width: 2.5;
  flex-shrink: 0;
}

.unit-actions {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* ─── Amenities ────────────────────────────────────────────────── */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.amenity { text-align: center; padding: 2rem 1.5rem; }
.amenity-icon {
  width: 56px; height: 56px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  color: var(--gold);
  transition: background .2s, border-color .2s;
}
.amenity:hover .amenity-icon {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.amenity-icon svg { width: 22px; height: 22px; }
.amenity h4 { font-family: var(--ff-serif); font-size: 1.3rem; margin-bottom: .5rem; }
.amenity p { font-size: .9rem; color: var(--mid); }

/* ─── Apply ────────────────────────────────────────────────────── */
#apply h2.light, .label.light { color: var(--white); }
#apply h2 { color: var(--white); }
#apply .section-sub.light { color: rgba(255,255,255,.6); }

.apply-actions {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.apply-note {
  text-align: center;
  font-size: .85rem;
  color: rgba(255,255,255,.45);
}
.apply-note strong { color: rgba(255,255,255,.7); }

/* ─── Contact ──────────────────────────────────────────────────── */
.contact-info { display: flex; flex-direction: column; gap: 1.6rem; margin-top: 2rem; }
.contact-row {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}
.contact-row svg {
  width: 20px; height: 20px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: .15rem;
}
.contact-row strong {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--charcoal);
  margin-bottom: .25rem;
}
.contact-row p, .contact-row a {
  font-size: .92rem;
  color: var(--mid);
  line-height: 1.6;
}
.contact-row a:hover { color: var(--gold); }

.map-embed {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 400px;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ─── Footer ───────────────────────────────────────────────────── */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,.5);
  font-size: .82rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.4rem 0;
  flex-wrap: wrap;
  gap: 1.2rem;
}
.footer-logo {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: .25rem;
}
.footer-links {
  display: flex;
  gap: 2rem;
}
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  text-align: center;
  padding: 1.2rem 0;
}

/* ─── Unit Tabs ────────────────────────────────────────────────── */
.unit-tabs {
  display: flex;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.unit-tab {
  padding: .75rem 2rem;
  border: 1.5px solid var(--border);
  border-radius: 40px;
  background: var(--white);
  font-family: var(--ff-sans);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mid);
  cursor: pointer;
  transition: all .2s;
}
.unit-tab:hover { border-color: var(--gold); color: var(--charcoal); }
.unit-tab.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--white);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Unavailable panel */
.unavailable-panel {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 480px;
  margin: 0 auto;
}
.unavailable-icon {
  width: 64px; height: 64px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--mid);
}
.unavailable-icon svg { width: 26px; height: 26px; }
.unavailable-panel h3 {
  font-family: var(--ff-serif);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}
.unavailable-panel p {
  color: var(--mid);
  margin-bottom: 2rem;
  line-height: 1.75;
}

/* ─── Scroll Animations ────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 620px) {
  section { padding: 4.5rem 0; }
  .units-grid { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: 1fr; }
  .building-card { flex-direction: column; gap: 1.5rem; }
  .divider-v { width: 60px; height: 1px; }
  .apply-actions { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .hero-buttons { flex-direction: column; align-items: flex-start; }
}
