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

:root {
  --black:  #0a0a0a;
  --dark:   #111111;
  --card:   #1a1a1a;
  --gold:   #c9a84c;
  --gold-lt:#f0d070;
  --white:  #ffffff;
  --grey:   #888888;
  --text:   #e0e0e0;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Lato', sans-serif;
  background: var(--black);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── Navbar ───────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201,168,76,0.25);
}

.nav-inner {
  width: 100%;
  padding: 10px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo img,
.logo svg {
  height: 80px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 100px;
  background-color: #1c1c1c;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(10,10,10,0.1) 0%, rgba(10,10,10,0.45) 55%, rgba(10,10,10,0.92) 100%);
  z-index: 1;
}

/* Decorative grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 79px, rgba(201,168,76,0.04) 80px),
    repeating-linear-gradient(90deg, transparent, transparent 79px, rgba(201,168,76,0.04) 80px);
  pointer-events: none;
  z-index: 2;
}

.hero-badge {
  position: absolute;
  top: 120px;
  left: 5%;
  background: rgba(0,0,0,0.75);
  border-left: 3px solid var(--gold);
  padding: 14px 20px;
  z-index: 3;
}
.badge-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 700;
}
.badge-address {
  display: block;
  font-size: 1rem;
  color: var(--white);
  margin-top: 4px;
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 5%;
  text-align: center;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-divider {
  width: 80px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto 16px;
}

.hero-sub {
  font-size: 1.1rem;
  letter-spacing: 8px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-tagline {
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: var(--gold-lt);
  margin-bottom: 36px;
}

/* ── Buttons ─────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gold);
  color: var(--black);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background 0.2s, transform 0.2s;
}
.btn-primary:hover { background: var(--gold-lt); transform: translateY(-2px); }

.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--gold); color: var(--black); }

/* ── Portfolio ───────────────────────────────────── */
.portfolio {
  padding: 100px 5%;
  background: var(--dark);
}

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

.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white);
}
.section-header h2 .gold { color: var(--gold); }

.tagline-sub {
  margin-top: 10px;
  font-size: 0.8rem;
  letter-spacing: 4px;
  color: var(--gold-lt);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  width: 100%;
}

.prop-card {
  background: var(--card);
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.15);
}

.prop-img {
  width: 100%;
  height: auto;
  display: block;
}


.prop-info {
  padding: 14px 16px 16px;
}
.prop-location {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
}
.prop-status {
  font-size: 0.85rem;
  color: var(--text);
  margin-top: 4px;
}
.prop-status strong { color: var(--gold-lt); }


/* ── About ───────────────────────────────────────── */
.about {
  background: var(--black);
  padding: 90px 5%;
  border-top: 1px solid rgba(201,168,76,0.12);
}

.about-inner { width: 100%; }

.about-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 52px;
  text-align: center;
}

.about-layout {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 0;
  align-items: flex-start;
}

.about-photo-col { line-height: 0; }

.about-photo {
  width: 70%;
  height: auto;
  display: block;
  filter: grayscale(30%);
}

.about-signature {
  height: 120px;
  width: auto;
  display: block;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.about-name {
  font-size: 0.72rem;
  letter-spacing: 4px;
  color: var(--grey);
  text-transform: uppercase;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.about-bio {
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  line-height: 1.85;
  margin-bottom: 36px;
}

.about-footer {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-read-more {
  font-size: 0.85rem;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
  align-self: flex-end;
  transition: color 0.2s;
}
.about-read-more:hover { color: var(--gold); }

.about-compass {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.compass-logo-img {
  height: 30px;
  width: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

.compass-disclaimer {
  font-size: 0.65rem;
  color: var(--grey);
  line-height: 1.5;
  max-width: 300px;
  margin: 0 auto;
}

/* ── Contact ─────────────────────────────────────── */
.contact {
  background: var(--dark);
  padding: 90px 5%;
  text-align: center;
  border-top: 1px solid rgba(201,168,76,0.2);
}

.contact-inner h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 12px;
}

.contact-inner p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 36px;
}

.contact-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ─────────────────────────────────────── */
.footer {
  background: var(--black);
  text-align: center;
  padding: 30px 32px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.footer p {
  font-size: 0.75rem;
  color: var(--grey);
  margin-bottom: 4px;
}
.footer-brokerage { color: #555; }

/* ── Nav active state ────────────────────────────── */
.nav-active { color: var(--gold) !important; }

/* ── Page header (projects.html) ─────────────────── */
.page-header {
  padding: 160px 5% 70px;
  background: var(--black);
  text-align: center;
  border-bottom: 1px solid rgba(201,168,76,0.12);
}

.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--white);
}

/* ── Projects Section ────────────────────────────── */
.projects-section {
  background: var(--black);
  padding: 100px 0 40px;
  border-top: 1px solid rgba(201,168,76,0.12);
}

.projects-section .section-header {
  padding: 0 5%;
  margin-bottom: 60px;
}

.projects-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 5px;
  color: var(--grey);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.projects-empty {
  text-align: center;
  color: var(--grey);
  padding: 60px 5% 100px;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

/* Each project row */
.project-row {
  display: grid;
  grid-template-columns: 62% 38%;
  align-items: center;
  padding: 40px 4% 40px 4%;
  gap: 0;
}

.project-row.row-img-left  { grid-template-columns: 62% 38%; }
.project-row.row-img-right { grid-template-columns: 38% 62%; }

.project-image {
  background: center/cover no-repeat #111;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  width: 100%;
}

.project-text {
  padding: 0 7%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: transparent;
}

.project-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 4px;
  color: var(--grey);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.project-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 6px;
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.project-status {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.project-description {
  font-size: 1rem;
  font-weight: 300;
  color: rgba(224,224,224,0.8);
  line-height: 1.8;
  margin-bottom: 32px;
}

.project-gallery-btn {
  display: inline-block;
  align-self: flex-start;
  padding: 14px 36px;
  border: 2px solid var(--white);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 1px;
  background: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.project-gallery-btn:hover {
  background: var(--white);
  color: var(--black);
}

/* ── Lightbox ────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.96);
  z-index: 600;
  align-items: center;
  justify-content: center;
  padding: 40px 5%;
}

.lightbox.open { display: flex; }

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  z-index: 601;
}

.lightbox-inner {
  width: 100%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.lightbox-header {
  text-align: center;
}

.lightbox-location {
  font-size: 0.7rem;
  letter-spacing: 5px;
  color: var(--gold);
  margin-bottom: 8px;
}

.lightbox-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--white);
  font-weight: 400;
  margin-bottom: 10px;
}

.lightbox-desc {
  font-size: 0.85rem;
  color: var(--grey);
  max-width: 560px;
  line-height: 1.7;
}

.lightbox-carousel {
  width: 100%;
}

.lb-media {
  display: none;
  width: 100%;
  max-height: 56vh;
  object-fit: contain;
  margin: 0 auto;
}

.lb-media.active { display: block; }

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

.lb-btn {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 8px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lb-btn:hover { background: var(--gold); color: var(--black); }

.lb-counter {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--grey);
  min-width: 60px;
  text-align: center;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-photo { max-width: 480px; }
  .about-compass { flex-direction: column; }
}

/* ── Hamburger button ────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

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

@media (max-width: 640px) {
  .hamburger { display: flex; }

  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 100vh;
    background: rgba(10,10,10,0.97);
    backdrop-filter: blur(12px);
    align-items: center;
    justify-content: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    z-index: 150;
  }

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

  .nav-links a {
    font-size: 1.4rem;
    letter-spacing: 4px;
  }

  .hero-badge { left: 5%; top: 100px; }
  .portfolio-grid { grid-template-columns: 1fr; }

  .logo img,
  .logo svg {
    height: 60px;
  }

  .project-row,
  .project-row.row-img-right,
  .project-row.row-img-left {
    grid-template-columns: 1fr;
    padding: 24px 5%;
  }

  .project-image { order: -1; border-radius: 10px; }
  .project-text { padding: 32px 0 0; }
  .project-gallery-btn { align-self: stretch; text-align: center; }

  .lightbox-inner { gap: 16px; }
  .lb-media { max-height: 40vh; }
}
