/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --ink: #111827;
  --ink-soft: #1f2937;
  --slate: #374151;
  --stone: #6b7280;
  --mist: #9ca3af;
  --cloud: #e5e7eb;
  --pearl: #f3f4f6;
  --snow: #f9fafb;
  --white: #ffffff;
  --accent: #111827;
  --accent-hover: #1f2937;
  --green: #059669;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== TYPOGRAPHY ===== */
h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  margin-bottom: 20px;
}

h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.eyebrow {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 8px;
}

.lead {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--slate);
}

.section-desc {
  max-width: 520px;
  margin: 0 auto;
  color: var(--stone);
  font-size: 1rem;
}

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--cloud);
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-cta + .nav-cta-email {
  margin-left: -16px;
}

.nav-links a {
  color: var(--stone);
  font-size: 0.8125rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink) !important;
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--ink-soft) !important;
}

.nav-cta-email {
  background: var(--white) !important;
  color: var(--ink) !important;
  border: 1px solid var(--cloud);
}

.nav-cta-email:hover {
  background: var(--snow) !important;
  border-color: var(--mist);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 12px 28px;
  border-radius: 100px;
  transition: all 0.2s var(--ease);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-lg { padding: 16px 40px; font-size: 0.9375rem; }

/* ===== HERO LISTING ===== */
.hero-listing {
  padding: 40px 0 0;
}

.listing-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.listing-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

.listing-location {
  font-size: 0.875rem;
  color: var(--stone);
  margin-top: 4px;
}

.listing-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--cloud);
}

.listing-stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.listing-stat-value {
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.listing-stat-label {
  font-size: 0.8125rem;
  color: var(--stone);
}

.listing-stat-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--mist);
}

/* Hero Mosaic */
.hero-mosaic {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 450px;
  gap: 6px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.mosaic-main {
  position: relative;
  cursor: pointer;
}

.mosaic-main img {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
  display: block;
}

.mosaic-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.25) 60%, transparent 100%);
}

.mosaic-overlay .eyebrow {
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}

.mosaic-overlay h2 {
  color: var(--white);
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.mosaic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
}

.mosaic-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.3s;
}

.mosaic-grid img:hover { opacity: 0.85; }

.hero-desc {
  max-width: 720px;
  margin-top: 24px;
  line-height: 1.8;
  color: var(--slate);
  font-size: 1rem;
}

/* ===== SECTIONS ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--snow); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}

.about-text h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.about-text p { margin-bottom: 16px; }

.included-card {
  background: var(--snow);
  border: 1px solid var(--cloud);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.included-card h3 {
  font-size: 1.125rem;
  margin-bottom: 12px;
}

.included-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--stone);
  margin-bottom: 20px;
}

.amenities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.amenity-tag {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--cloud);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--slate);
  background: var(--white);
  transition: border-color 0.2s;
}

.amenity-tag:hover { border-color: var(--mist); }

.included-note {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--stone);
  font-style: italic;
}

/* ===== FLOOR SECTIONS ===== */
.floor-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}

.floor-layout-reverse { direction: rtl; }
.floor-layout-reverse > * { direction: ltr; }

.floor-text p { margin-bottom: 16px; line-height: 1.8; font-size: 1rem; color: var(--slate); }

/* ===== PHOTO GALLERY SLIDER ===== */
.photo-gallery { display: flex; flex-direction: column; }

.gallery-hero {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.gallery-hero-track {
  position: relative;
  width: 100%;
  height: 440px;
}

.gallery-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  cursor: pointer;
}

.gallery-hero-img.active { opacity: 1; }

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: var(--white);
  color: var(--ink);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s var(--ease);
  opacity: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.gallery-hero:hover .gallery-arrow { opacity: 1; }
.gallery-arrow:hover { transform: translateY(-50%) scale(1.08); box-shadow: 0 4px 16px rgba(0,0,0,0.18); }
.gallery-arrow-prev { left: 12px; }
.gallery-arrow-next { right: 12px; }

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.gallery-thumb {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  opacity: 0.45;
  transition: all 0.2s var(--ease);
  border: 2px solid transparent;
}

.gallery-thumb:hover { opacity: 0.75; }
.gallery-thumb.active { opacity: 1; border-color: var(--ink); }

/* ===== ROOFTOP ===== */
.rooftop-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 40px;
}

.rooftop-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius);
}

.rooftop-text h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.rooftop-text p { line-height: 1.8; }

.rooftop-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.rooftop-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: opacity 0.3s;
}

.rooftop-grid img:hover { opacity: 0.85; }

/* ===== MASONRY GALLERY ===== */
.masonry-gallery {
  columns: 4;
  column-gap: 8px;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s var(--ease);
}

.masonry-item:hover img { transform: scale(1.03); }

/* ===== COMMUNITY ===== */
.community-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.community-text h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.community-text p { line-height: 1.8; }

.community-img img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ===== NOTES ===== */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.note-card {
  background: var(--snow);
  border: 1px solid var(--cloud);
  border-radius: var(--radius);
  padding: 32px 24px;
}

.note-card h3 { font-size: 1.125rem; margin-bottom: 10px; }
.note-card p { font-size: 0.9375rem; line-height: 1.7; }

/* ===== CTA ===== */
.section-cta { padding: 40px 0 80px; }

.cta-card {
  text-align: center;
  background: var(--snow);
  border: 1px solid var(--cloud);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
}

.cta-card h2 { margin-bottom: 12px; }
.cta-card > p { color: var(--stone); margin-bottom: 32px; }

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-email {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--cloud);
}

.btn-email:hover {
  border-color: var(--mist);
  background: var(--snow);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.cta-note {
  display: block;
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--mist);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--cloud);
  padding: 40px 0 24px;
  color: var(--stone);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
}

.footer-brand h3 {
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 2px;
}

.footer-brand p { font-size: 0.8125rem; }

.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-size: 0.8125rem; transition: color 0.2s; }
.footer-nav a:hover { color: var(--ink); }


.footer-bottom {
  text-align: center;
  font-size: 0.75rem;
  color: var(--mist);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active { opacity: 1; pointer-events: all; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}

.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { color: white; }
.lightbox-close { top: 20px; right: 24px; font-size: 2rem; padding: 8px; }
.lightbox-prev, .lightbox-next { top: 50%; transform: translateY(-50%); font-size: 3rem; padding: 16px; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid, .community-grid { grid-template-columns: 1fr; gap: 40px; }
  .floor-layout, .floor-layout-reverse { grid-template-columns: 1fr; gap: 32px; direction: ltr; }
  .rooftop-layout { grid-template-columns: 1fr; gap: 32px; }
  .rooftop-grid { grid-template-columns: repeat(2, 1fr); }
  .masonry-gallery { columns: 3; }
  .notes-grid { grid-template-columns: 1fr; }
  .hero-mosaic { grid-template-columns: 1fr; grid-template-rows: auto; gap: 8px; border-radius: 0; overflow: visible; }
  .mosaic-main { border-radius: var(--radius); overflow: hidden; }
  .mosaic-main img { min-height: 300px; }
  .mosaic-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .mosaic-grid img { height: 160px; border-radius: var(--radius-sm); object-position: center; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    z-index: 999;
  }

  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.125rem; color: var(--ink); }
  .nav-toggle { display: flex; }

  .section { padding: 56px 0; }

  .mosaic-main img { min-height: 240px; }
  .mosaic-grid img { height: 130px; }

  .listing-header { flex-direction: column; gap: 16px; }
  .listing-stats { flex-wrap: wrap; gap: 12px; }

  .gallery-hero-track { height: 280px; }
  .gallery-arrow { opacity: 1; }
  .gallery-thumbs { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
  .gallery-thumb { height: 52px; }

  .masonry-gallery { columns: 2; }
  .rooftop-grid { grid-template-columns: 1fr 1fr; }
  .rooftop-image img { height: 280px; }

  .footer-top { flex-direction: column; gap: 20px; text-align: center; }
  .footer-nav { flex-wrap: wrap; justify-content: center; gap: 12px; }
}

@media (max-width: 480px) {
  .gallery-hero-track { height: 240px; }
  .rooftop-grid { grid-template-columns: 1fr; }
  .rooftop-grid img { height: 200px; }
  .masonry-gallery { columns: 2; column-gap: 6px; }
  .masonry-item { margin-bottom: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
