@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  /* dark bookend surfaces (header, hero, footer, mobile nav) */
  --black: #262220;
  --charcoal: #322d28;
  --charcoal2: #3c362f;
  --footer-bg: #1c1815;
  --text: #f5f1e8;
  --muted: #b6ac9a;
  --line: rgba(245, 241, 232, 0.12);

  /* light body surfaces */
  --cream: #ede4cf;
  --cream2: #e2d6b9;
  --card: #f5efdf;
  --ink: #2b2521;
  --ink-muted: #6b6255;
  --line-soft: rgba(43, 37, 33, 0.16);

  /* accents */
  --gold: #c9a961;
  --gold-deep: #a3792e;
  --gold-light: #e6cd93;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', Arial, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-weight: 300;
}
h1, h2, h3 { font-family: 'Playfair Display', serif; font-weight: 600; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* Header (dark bookend) */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 6%;
  z-index: 100;
  transition: background 0.35s ease, padding 0.35s ease;
}
header.scrolled {
  background: rgba(38, 34, 32, 0.92);
  backdrop-filter: blur(10px);
  padding: 16px 6%;
  border-bottom: 1px solid var(--line);
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  letter-spacing: 3px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
}
.logo span { color: var(--gold); }
nav { display: flex; align-items: center; }
nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 36px;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  font-weight: 400;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
nav a:hover { color: var(--gold); }
.lang-switch {
  margin-left: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  letter-spacing: 1px;
}
.lang-switch button {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.8rem;
  letter-spacing: 1px;
  padding: 4px 6px;
  font-family: 'Inter', sans-serif;
}
.lang-switch button.active { color: var(--gold); font-weight: 600; }
.lang-switch .sep { color: var(--line); }
.nav-toggle { display: none; }

/* Hero (dark bookend, sits on photo) */
.hero {
  height: 100vh;
  min-height: 640px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  background: #000;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('hero.jpg') center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(38,34,32,0.55) 0%, rgba(38,34,32,0.25) 35%, rgba(38,34,32,0.65) 75%, rgba(38,34,32,0.96) 100%);
}
.hero-content { position: relative; z-index: 2; }
.hero p.eyebrow {
  letter-spacing: 5px;
  color: var(--gold);
  font-size: 0.8rem;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero h1 {
  color: var(--text);
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.15;
  max-width: 920px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.6);
}
.hero h1 span { color: var(--gold); font-style: italic; }
.hero p.sub {
  margin: 24px auto 0;
  max-width: 560px;
  color: #ded8ca;
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 300;
}
.hero-btns {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.btn {
  padding: 16px 36px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  border: 1px solid var(--gold-deep);
  font-weight: 500;
}
.btn-primary { background: var(--gold); color: #201c19; border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn-outline { color: var(--ink); background: transparent; }
.btn-outline:hover { background: rgba(163, 121, 46, 0.08); }

/* on-dark contexts (hero, footer) need light outline buttons */
.hero .btn-outline, footer .btn-outline {
  color: var(--text);
  border-color: var(--gold);
}
.hero .btn-outline:hover, footer .btn-outline:hover { background: rgba(201, 169, 97, 0.14); }

.scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 3px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 2;
}
.scroll-cue .line { width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); animation: scrollmove 1.8s infinite; }
@keyframes scrollmove { 0% { opacity: 0; transform: translateY(0); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

section { position: relative; padding: 120px 6%; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head .eyebrow { color: var(--gold-deep); letter-spacing: 4px; font-size: 0.78rem; text-transform: uppercase; display: block; margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 18px; color: var(--ink); }
.section-head p { color: var(--ink-muted); line-height: 1.8; font-weight: 300; }

/* About (light) */
.about { background: var(--cream2); display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-img { width: 100%; height: 480px; background: url('hero.jpg') center/cover no-repeat; box-shadow: 0 30px 60px rgba(43,37,33,0.22); position: relative; }
.about-img::after { content: ""; position: absolute; inset: 16px; border: 1px solid var(--gold); pointer-events: none; }
.about-text .eyebrow { color: var(--gold-deep); letter-spacing: 4px; font-size: 0.78rem; text-transform: uppercase; display: block; margin-bottom: 16px; }
.about-text h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin-bottom: 22px; color: var(--ink); }
.about-text p { color: var(--ink-muted); line-height: 1.9; margin-bottom: 18px; font-weight: 300; }
.stats { display: flex; gap: 46px; margin-top: 34px; }
.stats div h3 { font-size: 1.9rem; color: var(--gold-deep); }
.stats div p { color: var(--ink-muted); font-size: 0.82rem; margin-top: 6px; letter-spacing: 0.5px; }

/* Amenities (light, unused currently but kept in sync) */
.amenities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px; max-width: 1200px; margin: 0 auto; background: var(--line-soft); }
.amenity-card { background: var(--cream); padding: 48px 30px; text-align: center; transition: background 0.3s ease; }
.amenity-card:hover { background: var(--card); }
.amenity-icon { width: 54px; height: 54px; margin: 0 auto 22px; border: 1px solid var(--gold-deep); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: var(--gold-deep); }
.amenity-card h3 { font-size: 1.05rem; margin-bottom: 12px; font-weight: 600; color: var(--ink); }
.amenity-card p { color: var(--ink-muted); font-size: 0.88rem; line-height: 1.7; font-weight: 300; }

/* Apartments teaser / grid (light) */
.apts { background: var(--cream); }
.apts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 34px; max-width: 1200px; margin: 0 auto; }
.apt-card { background: var(--card); overflow: hidden; border: 1px solid var(--line-soft); box-shadow: 0 10px 30px rgba(43,37,33,0.08); transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.apt-card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 20px 40px rgba(43,37,33,0.12); }
.apt-card { cursor: pointer; }
.apt-img { height: 260px; background-color: #f4f0e8; background-position: center; background-size: contain; background-repeat: no-repeat; position: relative; overflow: hidden; }
.apt-img-hint {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(38,34,32,0.85), transparent);
  color: var(--gold-light);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-align: center;
  padding: 26px 10px 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.apt-card:hover .apt-img-hint { opacity: 1; transform: translateY(0); }

/* Walkthrough modal (stays dark for image focus) */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(6, 5, 4, 0.94);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 30px;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-box {
  position: relative;
  width: 100%; max-width: 1100px; height: 82vh;
  background: #f4f0e8;
  border: 1px solid var(--gold);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.modal-img-wrap {
  flex: 1; overflow: hidden; position: relative; background: #f4f0e8;
  cursor: zoom-in;
  touch-action: none;
}
.modal-img-wrap.zoomed { cursor: grab; }
.modal-img-wrap.dragging { cursor: grabbing; }
.modal-img {
  width: 100%; height: 100%; object-fit: contain;
  transform-origin: center center;
  transition: transform 0.08s linear;
  user-select: none;
}
.modal-img-wrap.dragging .modal-img { transition: none; }
.modal-close {
  position: absolute; top: 14px; right: 18px; z-index: 5;
  background: var(--black); color: var(--text);
  border: 1px solid var(--line);
  width: 38px; height: 38px; border-radius: 50%;
  font-size: 1.4rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { border-color: var(--gold); color: var(--gold); }
.modal-caption {
  background: var(--black);
  padding: 18px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.modal-caption-row { display: flex; align-items: center; gap: 14px; }
.modal-caption-row .tag { color: var(--gold); font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase; }
.modal-caption-row span:last-child { color: var(--muted); font-size: 0.85rem; }
.modal-zoom-controls { display: flex; align-items: center; gap: 10px; }
.modal-zoom-btn {
  background: none; border: 1px solid var(--gold); color: var(--gold);
  width: 34px; height: 34px; font-size: 1rem; line-height: 1;
  cursor: pointer; transition: background 0.2s ease;
  display: flex; align-items: center; justify-content: center;
}
.modal-zoom-btn#tourZoomReset { width: auto; padding: 0 14px; font-size: 0.72rem; letter-spacing: 1px; text-transform: uppercase; }
.modal-zoom-btn:hover { background: rgba(201, 169, 97, 0.12); }

@media (max-width: 640px) {
  .modal-box { height: 76vh; }
  .modal-caption { flex-direction: column; align-items: flex-start; }
  .modal-caption-row { margin-left: 0; }
}
.apt-body { padding: 30px; }
.apt-body .tag { color: var(--gold-deep); font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase; }
.apt-body h3 { margin: 12px 0 14px; font-size: 1.05rem; font-family: 'Inter', sans-serif; font-weight: 500; color: var(--ink); letter-spacing: 0.5px; }
.apt-body ul { list-style: none; color: var(--ink-muted); font-size: 0.88rem; line-height: 2.1; margin-bottom: 22px; font-weight: 300; }
.apt-body ul li:before { content: "— "; color: var(--gold-deep); }
.apt-body a.inquire { color: var(--gold-deep); font-size: 0.82rem; letter-spacing: 1.5px; text-decoration: none; text-transform: uppercase; border-bottom: 1px solid var(--gold-deep); padding-bottom: 4px; }
.apt-body a.inquire:hover { color: var(--gold); border-color: var(--gold); }

.apts-cta { text-align: center; margin-top: 60px; }
.apts-cta .btn-outline { color: var(--ink); border-color: var(--gold-deep); }
.apts-cta .btn-outline:hover { background: rgba(163, 121, 46, 0.08); }

/* Contact (light) */
.contact { text-align: center; background: var(--cream2); }
.contact-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  max-width: 1100px; margin: 0 auto; align-items: stretch;
}
.contact-card {
  background: var(--card); border: 1px solid var(--line-soft);
  padding: 44px 30px; display: flex; flex-direction: column; align-items: center;
  text-align: center; transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(43,37,33,0.06);
}
.contact-card:hover { border-color: var(--gold); box-shadow: 0 20px 40px rgba(43,37,33,0.12); }
.contact-icon {
  width: 54px; height: 54px; margin-bottom: 22px;
  border: 1px solid var(--gold-deep); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--gold-deep);
}
.contact-card h3 { font-size: 1.15rem; margin-bottom: 12px; color: var(--ink); }
.contact-card p { color: var(--ink-muted); font-size: 0.88rem; line-height: 1.7; font-weight: 300; margin-bottom: 26px; }
.contact-card .btn { margin-top: auto; word-break: break-word; color: var(--ink); border-color: var(--gold-deep); }
.contact-card .btn:hover { background: rgba(163, 121, 46, 0.08); }
.btn-group { display: flex; flex-direction: column; gap: 12px; margin-top: auto; width: 100%; }
.btn-group .btn { margin-top: 0; }
.contact-card-map { padding: 0; overflow: hidden; }
.contact-card-map .contact-icon { margin-top: 34px; }
.contact-card-map h3,
.contact-card-map p { padding: 0 24px; }
.contact-card-map p { margin-bottom: 22px; }
.map-embed { width: 100%; flex: 1; min-height: 220px; }
.map-embed iframe { width: 100%; height: 100%; display: block; min-height: 220px; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Footer (dark bookend) */
footer { background: var(--footer-bg); padding: 56px 6% 34px; text-align: center; color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); }
footer .logo { margin-bottom: 22px; justify-content: center; display: flex; }
.footer-contact {
  display: flex; justify-content: center; align-items: center; flex-wrap: wrap;
  gap: 10px 34px; padding-bottom: 22px; margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.footer-contact-item { display: inline-flex; align-items: center; gap: 9px; font-size: 0.88rem; color: var(--text); }
.footer-contact-item a { text-decoration: none; }
.footer-contact-item a:hover { color: var(--gold); }
.footer-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border: 1px solid var(--gold); border-radius: 50%;
  font-size: 0.75rem; color: var(--gold); flex-shrink: 0;
}
footer .foot-links { margin: 20px 0; }
footer .foot-links a { color: var(--muted); text-decoration: none; margin: 0 14px; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; }
footer .foot-links a:hover { color: var(--gold); }

/* Apartments page hero (dark bookend, no bg photo) */
.page-hero {
  padding: 180px 6% 90px;
  text-align: center;
  background: linear-gradient(180deg, var(--charcoal), var(--black));
  border-bottom: 1px solid var(--line);
}
.page-hero .eyebrow { color: var(--gold); letter-spacing: 4px; font-size: 0.8rem; text-transform: uppercase; display: block; margin-bottom: 16px; }
.page-hero h1 { color: var(--text); font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-hero p { color: var(--muted); max-width: 620px; margin: 20px auto 0; line-height: 1.8; font-weight: 300; }

@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; }
  .about-img { height: 320px; }
  nav { position: fixed; top: 0; right: -100%; height: 100vh; width: 270px; background: var(--charcoal); flex-direction: column; padding: 110px 34px; transition: right 0.3s ease; align-items: flex-start; }
  nav.open { right: 0; }
  nav a { margin: 0 0 28px 0; display: block; }
  .lang-switch { margin: 0; }
  .nav-toggle { display: block; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; z-index: 200; }
}
