/* ════════════════════════════════════════════
   BEVIA — Distinctive Kyiv Real Estate
   Shared stylesheet
   ════════════════════════════════════════════ */

:root {
  --cream: #f5f0e8;
  --dark: #1a1a18;
  --darker: #141412;
  --darkest: #0f0e0c;
  --mid: #3a3832;
  --gold: #b8935a;
  --gold-light: #d4aa72;
  --warm-gray: #8c887f;
  --border: rgba(184, 147, 90, 0.25);
  --border-sep: rgba(212, 170, 114, 0.45); /* lighter line between page segments */
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--dark);
  color: var(--cream);
  font-weight: 300;
  overflow-x: hidden;
}

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

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 60px;
  background: linear-gradient(to bottom, rgba(26,26,24,0.95) 0%, transparent 100%);
  transition: background var(--transition), padding var(--transition);
}

nav.scrolled,
nav.solid {
  background: rgba(26,26,24,0.97);
  padding: 16px 60px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.logo-icon { width: 44px; height: 44px; flex-shrink: 0; }

.logo-text { display: flex; flex-direction: column; line-height: 1; }

.logo-en {
  display: flex;
  align-items: flex-start;
  font-family: 'Jost', sans-serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream);
}

.logo-en i {
  font-style: normal;
  font-size: 7px;
  font-weight: 500;
  letter-spacing: 0.18em;
  writing-mode: vertical-rl;
  margin: 1px 0 0 -2px;
  opacity: 0.85;
}

.logo-uk {
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.74em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.7;
  margin-top: 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links > li { position: relative; }

.nav-links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.nav-links a:hover { opacity: 1; color: var(--gold-light); }

/* ── DROPDOWN ── */
.dropdown-toggle { cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.dropdown-toggle::after {
  content: '';
  width: 5px; height: 5px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s;
}

.dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 200px;
  background: rgba(20, 20, 18, 0.98);
  border: 1px solid var(--border);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  backdrop-filter: blur(10px);
}

.dropdown::before {
  content: '';
  position: absolute;
  top: -19px; left: 0; right: 0;
  height: 19px;
}

.nav-links li:hover .dropdown,
.nav-links li.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-links li:hover .dropdown-toggle::after,
.nav-links li.open .dropdown-toggle::after { transform: rotate(225deg) translateY(-2px); }

.dropdown a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
  padding: 11px 24px;
  font-size: 11px;
  letter-spacing: 0.15em;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.dropdown a:hover { background: rgba(184,147,90,0.08); padding-left: 30px; }

.dropdown { min-width: 250px; width: max-content; }

.dropdown a .d-street {
  font-size: 10px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--warm-gray);
  font-style: italic;
  white-space: nowrap;
}

/* ── LANG TOGGLE ── */
.nav-right { display: flex; align-items: center; gap: 28px; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.lang-btn {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: transparent;
  color: var(--warm-gray);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: 'Jost', sans-serif;
}

.lang-btn.active { background: var(--gold); color: var(--dark); }

/* ── BURGER ── */
.burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 110;
}
.burger span {
  width: 26px; height: 1px;
  background: var(--cream);
  transition: transform 0.3s, opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO (home) ── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(20,19,16,0.92) 0%, rgba(20,19,16,0.65) 50%, rgba(20,19,16,0.35) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 100px 60px 60px;
  max-width: 900px;
  animation: fadeUp 1.2s ease both;
  animation-delay: 0.3s;
}

.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(52px, 8vw, 100px);
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.hero-title em { font-style: italic; color: var(--gold-light); }

.hero-subtitle {
  font-size: 15px;
  line-height: 1.75;
  color: rgba(245,240,232,0.75);
  max-width: 520px;
  margin-bottom: 48px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 6px;
  transition: color 0.2s, gap 0.2s;
}

.hero-cta:hover { color: var(--gold-light); gap: 24px; }
.hero-cta::after { content: '→'; }

.hero-scroll {
  position: absolute;
  bottom: 40px; right: 60px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.4;
}

.hero-scroll span {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  writing-mode: vertical-lr;
}

.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── CINEMATIC HERO (slideshow) ── */
.hero-show {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
}

.hs-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.hs-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.hs-slide.active { opacity: 1; }
.hs-slide.active img { animation: kenburns 9s ease-out forwards; }

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.09); }
}

.hero-show::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,24,0.94) 0%, rgba(26,26,24,0.25) 45%, rgba(26,26,24,0.45) 100%);
  z-index: 2;
}

.hs-content {
  position: absolute;
  left: 60px; right: 60px; bottom: 72px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.hs-title-wrap { max-width: 800px; }

.hs-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(46px, 7.4vw, 104px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}

.hs-title em { font-style: italic; color: var(--gold-light); }

.hs-sub {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(245,240,232,0.78);
  max-width: 500px;
  margin-bottom: 38px;
}

.hs-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hs-actions .btn-outline {
  background: rgba(26,26,24,0.3);
  border-color: rgba(245,240,232,0.4);
  backdrop-filter: blur(4px);
}

.hs-meta {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.hs-caption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 17px;
  color: rgba(245,240,232,0.85);
}

.hs-counter {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--warm-gray);
}

.hs-counter b { color: var(--gold); font-weight: 500; }

.hs-bar {
  width: 130px;
  height: 1px;
  background: rgba(245,240,232,0.2);
  position: relative;
  overflow: hidden;
}

.hs-bar i {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 100%;
  background: var(--gold);
  transform-origin: left;
  animation: hsbar 6.5s linear forwards;
}

@keyframes hsbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.hero-scrolldown {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── SECTIONS ── */
section { padding: 120px 60px; }

/* thin light-gold separators between page segments */
.properties, .intro, .services { border-top: 1px solid var(--border-sep); }

.section-eyebrow {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 32px;
}

.section-title em { font-style: italic; color: var(--gold-light); }

.section-body {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(245,240,232,0.72);
  max-width: 600px;
}

.divider {
  width: 60px; height: 1px;
  background: var(--gold);
  margin: 40px 0;
  opacity: 0.5;
}

/* ── BUTTONS ── */
.btn-solid,
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 36px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, gap 0.2s, border-color 0.2s;
}

.btn-solid { color: var(--dark); background: var(--gold); border: 1px solid var(--gold); }
.btn-solid:hover { background: var(--gold-light); border-color: var(--gold-light); gap: 24px; }
.btn-solid::after { content: '→'; }

.btn-outline { color: var(--cream); background: transparent; border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold-light); }

/* ── SERVICES ── */
.services { background: var(--dark); }

.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 60px;
}

.service-item {
  padding: 48px;
  border: 1px solid var(--border);
  transition: background var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.service-item:hover { background: rgba(184,147,90,0.04); border-color: rgba(184,147,90,0.4); }
.service-item:hover::before { width: 100%; }

.service-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  font-weight: 300;
  color: rgba(184,147,90,0.15);
  position: absolute;
  top: 24px; right: 32px;
  line-height: 1;
}

.service-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 16px;
}

.service-text {
  font-size: 14px;
  line-height: 1.85;
  color: rgba(245,240,232,0.6);
}

/* ── PILLARS ── */
.pillars {
  background: var(--darker);
  border-top: 1px solid var(--border-sep);
  padding: 0;
}

.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); }

.pillar {
  padding: 60px 48px;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}

.pillar:last-child { border-right: none; }
.pillar:hover { background: rgba(184,147,90,0.04); }

.pillar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 16px;
}

.pillar-text {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(245,240,232,0.6);
}

/* ── PROPERTIES GRID (home) ── */
.properties { background: var(--dark); }

.properties-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 60px;
  gap: 40px;
  flex-wrap: wrap;
}

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

.property-card {
  background: #1e1c18;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color var(--transition);
  text-decoration: none;
  color: var(--cream);
  display: block;
}

.property-card:hover { border-color: var(--gold); }

.property-photo {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.property-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s;
}

.property-card:hover .property-photo img { transform: scale(1.06); }

.property-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,24,0.5) 0%, transparent 40%);
}

.property-info { padding: 24px 28px 28px; }

.property-number {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.property-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
}

.property-address {
  font-size: 12px;
  color: var(--warm-gray);
  letter-spacing: 0.05em;
  font-style: italic;
  min-height: 18px;
}

.property-view {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 5px 12px;
  transition: background 0.2s, color 0.2s;
}

.property-card:hover .property-view { background: var(--gold); color: var(--dark); }

/* ── INTRO / ABOUT ── */
.intro {
  background: var(--dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.intro-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(22px, 3vw, 32px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.55;
  border-left: 2px solid var(--gold);
  padding-left: 32px;
  opacity: 0.9;
}

.intro-quote cite {
  display: block;
  font-family: 'Jost', sans-serif;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 24px;
}

/* ── DIRECTOR ── */
.director {
  background: var(--darker);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.director-content {
  padding: 120px 60px;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.director-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 300;
  margin-bottom: 6px;
}

.director-title-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 36px;
}

/* ── CONTACT ── */
.contact {
  background: var(--darkest);
  border-top: 1px solid var(--border-sep);
}

.contact-header { margin-bottom: 60px; }

.contact-people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.contact-person {
  border: 1px solid var(--border);
  background: var(--darker);
  padding: 48px;
  transition: border-color var(--transition);
}

.contact-person:hover { border-color: rgba(184,147,90,0.45); }

.person-tag {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--border);
  padding: 6px 14px;
  margin-bottom: 26px;
}

.person-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 4px;
}

.person-role {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 28px;
}

.contact-extra {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 50px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.contact-details { display: flex; flex-direction: column; justify-content: center; }

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.contact-item:last-child { border-bottom: none; margin-bottom: 0; }

.contact-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.contact-value {
  font-size: 16px;
  color: var(--cream);
  text-decoration: none;
  transition: color 0.2s;
}

a.contact-value:hover { color: var(--gold-light); }

.contact-form { display: flex; flex-direction: column; justify-content: center; }

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--warm-gray);
  margin-bottom: 10px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 300;
  padding: 10px 0;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus { border-bottom-color: var(--gold); }

.form-group textarea { resize: none; height: 100px; }

/* ── FOOTER ── */
footer {
  background: #080806;
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  gap: 24px;
}

.footer-logo { display: flex; align-items: center; gap: 11px; }
.footer-logo .logo-icon { width: 34px; height: 34px; }
.footer-logo .logo-en { font-size: 15px; }
.footer-logo .logo-uk { font-size: 8px; letter-spacing: 0.72em; margin-top: 4px; }

.footer-tagline {
  font-size: 12px;
  color: var(--warm-gray);
  font-style: italic;
  text-align: center;
}

.footer-copy {
  font-size: 10px;
  color: rgba(140,136,127,0.5);
  letter-spacing: 0.1em;
}

/* ════════════════════════════
   APARTMENT DETAIL PAGE
   ════════════════════════════ */

.apt-hero {
  position: relative;
  height: 72vh;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.apt-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.apt-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26,26,24,0.95) 0%, rgba(26,26,24,0.35) 45%, rgba(26,26,24,0.3) 100%);
}

.apt-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 60px 70px;
  animation: fadeUp 1s ease both 0.2s;
}

.apt-hero-content .hero-eyebrow { margin-bottom: 14px; }

.apt-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 300;
  line-height: 1.05;
}

.apt-hero-address {
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(245,240,232,0.75);
  font-style: italic;
  display: flex;
  align-items: center;
  gap: 10px;
}

.apt-hero-address::before { content: '⌖'; color: var(--gold); font-style: normal; font-size: 16px; }

/* breadcrumb */
.apt-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.apt-breadcrumb a { color: rgba(245,240,232,0.6); text-decoration: none; transition: color 0.2s; }
.apt-breadcrumb a:hover { color: var(--gold-light); }
.apt-breadcrumb span { color: var(--gold); }

/* apartment quick facts bar */
.apt-facts {
  background: var(--darker);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.apt-fact {
  padding: 36px 48px;
  border-right: 1px solid var(--border);
}

.apt-fact:last-child { border-right: none; }

.apt-fact-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.apt-fact-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
}

.apt-fact-value.placeholder { color: var(--warm-gray); font-style: italic; font-size: 16px; }

/* ── GALLERY ── */
.gallery { background: var(--dark); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 60px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4 / 3;
  background: #1e1c18;
  border: 1px solid transparent;
  transition: border-color var(--transition);
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.6s;
}

.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover { border-color: var(--gold); }

.gallery-item::after {
  content: '+';
  position: absolute;
  bottom: 14px; right: 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  color: var(--cream);
  opacity: 0;
  transition: opacity 0.3s;
  text-shadow: 0 1px 8px rgba(0,0,0,0.6);
}

.gallery-item:hover::after { opacity: 0.9; }

.gallery-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 50px auto 0;
  background: none;
  border: 1px solid var(--border);
  color: var(--cream);
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 15px 40px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.gallery-more:hover { border-color: var(--gold); color: var(--gold-light); }

/* ── LIGHTBOX ── */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 9, 7, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox img {
  max-width: 88vw;
  max-height: 86vh;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26,26,24,0.7);
  border: 1px solid var(--border);
  color: var(--cream);
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 22px;
  transition: background 0.2s, color 0.2s;
}

.lightbox-btn:hover { background: var(--gold); color: var(--dark); }
.lightbox-btn.prev { left: 24px; }
.lightbox-btn.next { right: 24px; }

.lightbox-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 34px;
  font-weight: 200;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s, transform 0.2s;
}

.lightbox-close:hover { color: var(--gold-light); transform: rotate(90deg); }

.lightbox-counter {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--warm-gray);
}

/* ── VIDEO TILE (first item of gallery grid) ── */
.gallery-item.gallery-video {
  grid-row: span 2;
  aspect-ratio: auto;
  cursor: default;
}

.gallery-item.gallery-video:hover { border-color: var(--gold); }
.gallery-item.gallery-video::after { content: none; }

.gallery-item.gallery-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.gallery-video-badge {
  position: absolute;
  top: 14px; left: 16px;
  z-index: 2;
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--cream);
  background: rgba(26,26,24,0.75);
  border: 1px solid var(--border);
  padding: 5px 12px;
  pointer-events: none;
}

/* ── MAP + DETAILS ── */
.apt-location {
  background: var(--dark);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 5fr 4fr;
  gap: 70px;
  align-items: stretch;
}

.apt-map {
  position: relative;
  min-height: 460px;
  border: 1px solid var(--border);
  background: var(--darker);
}

.apt-map iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(1) invert(0.9) contrast(0.9) sepia(0.25);
}

/* gold marker overlaid on the map centre (the embed centres on the address) */
.apt-map .map-pin {
  position: absolute;
  left: 50%; top: 50%;
  width: 36px; height: 48px;
  transform: translate(-50%, -100%);
  pointer-events: none;
  z-index: 5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 32'%3E%3Cpath d='M12 0C5.4 0 0 5.4 0 12c0 9 12 20 12 20s12-11 12-20C24 5.4 18.6 0 12 0z' fill='%23b8935a'/%3E%3Ccircle cx='12' cy='12' r='4.5' fill='%231a1a18'/%3E%3C/svg%3E") no-repeat center / contain;
  filter: drop-shadow(0 5px 8px rgba(0,0,0,0.55));
  animation: pinDrop 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes pinDrop {
  from { opacity: 0; transform: translate(-50%, -160%); }
  to { opacity: 1; transform: translate(-50%, -100%); }
}

.apt-map-note {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(20,20,18,0.92);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--warm-gray);
  text-align: center;
}

/* realtor card */
.realtor-card {
  border: 1px solid var(--border);
  padding: 48px;
  background: var(--darker);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.realtor-card .section-eyebrow { margin-bottom: 14px; }

.realtor-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  margin-bottom: 4px;
}

.realtor-role {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 30px;
}

.realtor-line {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.realtor-line:last-of-type { border-bottom: none; }

.realtor-line .contact-label { margin-bottom: 4px; }

.realtor-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* prev / next apartment nav */
.apt-pagenav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
  background: var(--darkest);
  padding: 0;
}

.apt-pagenav a {
  padding: 44px 60px;
  text-decoration: none;
  color: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.3s;
}

.apt-pagenav a:hover { background: rgba(184,147,90,0.05); }
.apt-pagenav a:first-child { border-right: 1px solid var(--border); }
.apt-pagenav a.next-apt { text-align: right; align-items: flex-end; }

.apt-pagenav .pn-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}

.apt-pagenav .pn-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
}

/* ════════════════════════════
   CONTRACT PAGE
   ════════════════════════════ */

.page-hero {
  position: relative;
  padding: 200px 60px 90px;
  background: var(--darker);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(184,147,90,0.07) 0%, transparent 70%);
}

.page-hero > * { position: relative; }

.contract-wrap {
  max-width: 860px;
  margin: 0 auto;
}

/* request-a-copy card */
.request-card {
  border: 1px solid var(--border);
  background: var(--darker);
  padding: 90px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.request-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
}

.request-icon {
  color: var(--gold);
  width: 56px;
  margin-bottom: 30px;
}

.request-icon svg { width: 100%; height: auto; display: block; }

.request-eyebrow {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}

.request-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  line-height: 1.12;
  margin-bottom: 26px;
}

.request-title em { font-style: italic; color: var(--gold-light); }

.request-text {
  font-size: 15px;
  line-height: 1.85;
  color: rgba(245,240,232,0.72);
  max-width: 480px;
  margin-bottom: 42px;
}

.request-direct {
  margin-top: 30px;
  font-size: 13px;
  color: var(--warm-gray);
  letter-spacing: 0.04em;
}

.request-direct a {
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: border-color 0.2s;
}

.request-direct a:hover { border-color: var(--gold); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.9; }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE ── */
@media (max-width: 1100px) {
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
  .apt-facts { grid-template-columns: repeat(2, 1fr); }
  .apt-fact { border-bottom: 1px solid var(--border); }
}

@media (max-width: 900px) {
  nav { padding: 20px 24px; }
  nav.scrolled, nav.solid { padding: 14px 24px; }

  .burger { display: flex; }

  .nav-links {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 84vw);
    background: rgba(15, 14, 12, 0.98);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 36px 40px;
    gap: 26px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  }

  .nav-links.open { transform: translateX(0); }
  .nav-links { overflow-y: auto; }

  .nav-links a { font-size: 13px; }

  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    border: none;
    border-left: 1px solid var(--border);
    background: transparent;
    padding: 8px 0 0 6px;
    margin-top: 14px;
    display: none;
    min-width: 0;
  }

  .nav-links li.open .dropdown { display: block; }
  .nav-links li:hover .dropdown { transform: none; }
  .dropdown a { padding: 9px 14px; font-size: 12px; }

  section { padding: 80px 24px; }
  .hero-content { padding: 0 24px 80px; }
  .hero-scroll { right: 24px; }
  .apt-hero-content { padding: 0 24px 56px; }

  .intro { grid-template-columns: 1fr; gap: 48px; }
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar { border-right: none; border-bottom: 1px solid var(--border); }
  .pillar:last-child { border-bottom: none; }
  .director-content { padding: 80px 24px; }
  .services-list { grid-template-columns: 1fr; }
  .contact-people { grid-template-columns: 1fr; }
  .contact-person { padding: 32px 24px; }
  .contact-extra { flex-direction: column; gap: 24px; }

  .hs-content { left: 24px; right: 24px; bottom: 56px; flex-direction: column; align-items: flex-start; }
  .hs-meta { align-items: flex-start; text-align: left; }
  footer { flex-direction: column; text-align: center; padding: 40px 24px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .apt-location { grid-template-columns: 1fr; gap: 40px; }
  .apt-map { min-height: 340px; }
  .realtor-card { padding: 36px 28px; }
  .apt-pagenav { grid-template-columns: 1fr; }
  .apt-pagenav a:first-child { border-right: none; border-bottom: 1px solid var(--border); }
  .apt-pagenav a { padding: 32px 24px; }
  .request-card { padding: 60px 26px; }
  .page-hero { padding: 150px 24px 70px; }
}

@media (max-width: 600px) {
  .properties-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .apt-facts { grid-template-columns: 1fr; }
  .apt-fact { border-right: none; padding: 28px 24px; }

  /* lightbox: full-width image, thumb-friendly controls at the bottom */
  .lightbox img { max-width: 100vw; max-height: 74vh; }
  .lightbox-btn {
    top: auto; bottom: 28px;
    transform: none;
    width: 52px; height: 48px;
  }
  .lightbox-btn.prev { left: calc(50% - 64px); }
  .lightbox-btn.next { right: calc(50% - 64px); }
  .lightbox-counter { bottom: 92px; }
}
