/* ═══════════════════════════════════════════════
   PH-A — 533 Leonard Street
   Minimal Vogue Editorial Style
   ═══════════════════════════════════════════════ */

/* ── VARIABLES ──────────────────────────────── */
:root {
  --cream:    #F5F2EC;
  --off-white:#FAFAF7;
  --black:    #0A0A08;
  --charcoal: #1C1C1A;
  --mid:      #5A5752;
  --light:    #9C9890;
  --rule:     #D8D4CC;
  --accent:   #8B7355;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Montserrat', Helvetica, sans-serif;

  --max-w: 1280px;
  --pad-x: 6vw;
  --nav-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--off-white);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 14px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a   { color: inherit; text-decoration: none; }

/* ── SHARED ─────────────────────────────────── */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 1rem;
}

h2 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--charcoal);
}

h2 em { font-style: italic; font-weight: 300; }

h3 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

h3 em { font-style: italic; }

h4 {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: var(--charcoal);
}

p {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.9;
  margin-bottom: 1.2rem;
}

/* ── NAVIGATION ─────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: rgba(250,250,247,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  transition: background 0.3s;
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  font-weight: 400;
  color: var(--charcoal);
}

.nav__links {
  list-style: none;
  display: flex;
  gap: 2.4rem;
}

.nav__links a {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mid);
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--charcoal); }

.nav__menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--charcoal);
}

/* ── MOBILE NAV ─────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--cream);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav ul { list-style: none; text-align: center; }
.mobile-nav ul li { margin-bottom: 2rem; }
.mobile-nav ul a {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 300;
  color: var(--charcoal);
  letter-spacing: 0.04em;
}

.mobile-nav__close {
  position: absolute;
  top: 1.5rem; right: var(--pad-x);
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--charcoal);
  line-height: 1;
}

/* ── HERO ────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--pad-x) 6vh;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
}

.hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  animation: heroZoom 12s ease-out forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to   { transform: scale(1.00); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10,10,8,0.75) 0%,
    rgba(10,10,8,0.25) 50%,
    rgba(10,10,8,0.1) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  animation: fadeUp 1.2s 0.3s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow {
  font-size: 9px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.8rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 0.95;
  color: #fff;
  margin-bottom: 1.2rem;
}

.hero__title em {
  font-style: italic;
  font-weight: 300;
}

.hero__address {
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 2.5rem;
}

.hero__cta {
  display: inline-block;
  font-size: 9.5px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.5);
  padding: 0.85rem 2rem;
  transition: background 0.25s, border-color 0.25s;
}

.hero__cta:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.9);
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem; right: var(--pad-x);
  z-index: 2;
  color: rgba(255,255,255,0.4);
  font-size: 1.2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ── STATEMENT ──────────────────────────────── */
.statement {
  padding: 5rem var(--pad-x);
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}

.statement__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.statement__rule {
  flex: 1;
  height: 1px;
  background: var(--rule);
  display: block;
}

.statement__text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--charcoal);
  text-align: center;
  max-width: 680px;
  flex-shrink: 0;
  margin: 0;
}

/* ── RESIDENCE ──────────────────────────────── */
.residence {
  padding: 7rem var(--pad-x);
  max-width: var(--max-w);
  margin: 0 auto;
}

.residence__header {
  margin-bottom: 4rem;
}

.residence__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 2.5rem;
}

.residence__image-large {
  grid-column: 1;
  grid-row: 1 / 3;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.residence__image-large img {
  transition: transform 0.7s ease;
}

.residence__image-large:hover img {
  transform: scale(1.03);
}

.residence__text {
  grid-column: 2;
  grid-row: 1;
  padding: 0.5rem 0 0 2rem;
}

.residence__text p:last-of-type { margin-bottom: 2rem; }

.residence__specs {
  display: flex;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.spec {
  display: flex;
  flex-direction: column;
}

.spec__num {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--charcoal);
  letter-spacing: 0.04em;
}

.spec__label {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light);
  margin-top: 0.25rem;
}

.residence__image-pair {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding-left: 2rem;
}

.residence__image-pair img {
  aspect-ratio: 1;
  overflow: hidden;
  transition: transform 0.7s ease;
}

.residence__image-pair img:hover {
  transform: scale(1.03);
}

/* ── GALLERY ────────────────────────────────── */
.gallery {
  padding: 7rem var(--pad-x);
  background: var(--cream);
}

.gallery__header {
  max-width: var(--max-w);
  margin: 0 auto 3.5rem;
}

.gallery__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.gallery__item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10,10,8,0);
  transition: background 0.3s;
}

.gallery__item:hover::after {
  background: rgba(10,10,8,0.15);
}

.gallery__item img {
  transition: transform 0.6s ease;
}

.gallery__item:hover img {
  transform: scale(1.05);
}

/* Span some items for visual variety */
.gallery__item:nth-child(1)  { grid-column: span 2; aspect-ratio: 2/1; }
.gallery__item:nth-child(8)  { grid-column: span 2; aspect-ratio: 2/1; }
.gallery__item:nth-child(15) { grid-column: span 2; aspect-ratio: 2/1; }
.gallery__item:nth-child(20) { grid-column: span 2; aspect-ratio: 2/1; }

/* ── LIGHTBOX ───────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10,10,8,0.97);
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox__inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__inner img {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox__counter {
  color: rgba(255,255,255,0.4);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-top: 1rem;
  margin-bottom: 0;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  cursor: pointer;
  font-size: 1.4rem;
  transition: color 0.2s;
  padding: 1rem;
  line-height: 1;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover { color: #fff; }

.lightbox__close { top: 1.5rem; right: 2rem; font-size: 2rem; }
.lightbox__prev  { left: 1rem;  top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lightbox__next  { right: 1rem; top: 50%; transform: translateY(-50%); font-size: 2rem; }

/* ── FLOORPLAN ──────────────────────────────── */
.floorplan {
  padding: 7rem var(--pad-x);
}

.floorplan__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 6rem;
  align-items: center;
}

.floorplan__text p { margin-top: 1.5rem; }

.floorplan__image {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--rule);
  cursor: pointer;
}

.floorplan__img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.floorplan__image:hover .floorplan__img { transform: scale(1.02); }

/* ── NEIGHBOURHOOD ──────────────────────────── */
.neighbourhood {
  padding: 7rem var(--pad-x);
  background: var(--charcoal);
  color: var(--cream);
}

.neighbourhood__header {
  max-width: var(--max-w);
  margin: 0 auto 4.5rem;
}

.neighbourhood__header .section-label { color: var(--light); }

.neighbourhood__header h2 { color: var(--cream); }

.neighbourhood__history {
  max-width: var(--max-w);
  margin: 0 auto 6rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 6rem;
  align-items: start;
}

.neighbourhood__history-text h3,
.neighbourhood__history-text p { color: var(--cream); }

.neighbourhood__history-text p { color: rgba(245,242,236,0.65); }

.neighbourhood__history-placeholder {
  aspect-ratio: 3/4;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  color: rgba(245,242,236,0.3);
  letter-spacing: 0.04em;
}

.neighbourhood__history-placeholder .sub {
  font-size: 0.85rem;
  font-family: var(--font-body);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* If you add a real image to the history section, use this class: */
.neighbourhood__history-img img {
  aspect-ratio: 3/4;
  width: 100%;
  object-fit: cover;
}

.neighbourhood__amenities {
  max-width: var(--max-w);
  margin: 0 auto;
}

.neighbourhood__amenities h3 { color: var(--cream); margin-bottom: 3rem; }

.amenities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 4rem;
}

.amenity {}

.amenity__icon {
  display: block;
  font-size: 0.55rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.amenity h4 { color: rgba(245,242,236,0.85); }
.amenity p  { color: rgba(245,242,236,0.5); font-size: 12.5px; }

/* ── TRANSPORT ──────────────────────────────── */
.transport {
  padding: 7rem var(--pad-x);
  background: var(--cream);
  border-top: 1px solid var(--rule);
}

.transport__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.transport__header {
  margin-bottom: 4rem;
}

.transport__address-line {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--light);
  margin-top: 1.2rem;
}

.transport__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem 4rem;
}

.transport__item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.transport__letter {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
  flex-shrink: 0;
  width: 2rem;
  text-align: center;
}

.transport__item h4 { margin-bottom: 0.4rem; }
.transport__item p  { font-size: 12.5px; }

/* ── CONTACT ────────────────────────────────── */
.contact {
  padding: 8rem var(--pad-x);
  text-align: center;
  border-top: 1px solid var(--rule);
}

.contact__inner {
  max-width: 580px;
  margin: 0 auto;
}

.contact__inner h2 { margin-bottom: 1.2rem; }

.contact__sub {
  font-size: 13px;
  color: var(--mid);
  margin-bottom: 2.5rem;
}

.contact__email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-style: italic;
  font-weight: 300;
  color: var(--charcoal);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.2rem;
  transition: border-color 0.25s, color 0.25s;
  letter-spacing: 0.02em;
}

.contact__email:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ── FOOTER ─────────────────────────────────── */
.footer {
  background: var(--charcoal);
  padding: 3.5rem var(--pad-x);
  text-align: center;
}

.footer__inner p {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin: 0.25rem 0;
}

.footer__mark {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}

.footer__small { color: rgba(255,255,255,0.18) !important; }

/* ── RESPONSIVE ─────────────────────────────── */
@media (max-width: 960px) {
  :root { --pad-x: 5vw; }

  .nav__links { display: none; }
  .nav__menu-btn { display: block; }

  .residence__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .residence__image-large { grid-row: 1; aspect-ratio: 4/3; }
  .residence__text        { grid-column: 1; grid-row: 2; padding: 0; }
  .residence__image-pair  { grid-column: 1; grid-row: 3; padding: 0; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:nth-child(1),
  .gallery__item:nth-child(8),
  .gallery__item:nth-child(15),
  .gallery__item:nth-child(20) { grid-column: span 2; }

  .floorplan__inner { grid-template-columns: 1fr; gap: 3rem; }

  .neighbourhood__history { grid-template-columns: 1fr; gap: 3rem; }
  .neighbourhood__history-placeholder { aspect-ratio: 16/9; }
  .amenities__grid { grid-template-columns: 1fr 1fr; }

  .transport__grid { grid-template-columns: 1fr 1fr; }

  .statement__inner { flex-direction: column; gap: 1.5rem; }
  .statement__rule  { width: 60%; height: 1px; }
}

@media (max-width: 600px) {
  :root { --pad-x: 5vw; }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }

  .amenities__grid,
  .transport__grid { grid-template-columns: 1fr; }

  .residence__specs { gap: 1.5rem; }

  .residence__image-pair { grid-template-columns: 1fr 1fr; }
}
