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

@font-face {
  font-family: 'Kalieb Luxury';
  src: url('../fonts/kaliebluxury-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ivory: #f4f1eb;
  --ivory-dim: #e9e4da;
  --charcoal: #171614;
  --charcoal-soft: #211f1c;
  --gold: #b48a52;
  --gold-light: #d4b483;
  --line: rgba(23,22,20,0.12);
  --line-light: rgba(244,241,235,0.18);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --title: 'Kalieb Luxury', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
  scroll-behavior: auto;
}

body {
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  cursor: default;
}

img { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 18px;
}

.split-heading, .stats-title, .hero-title {
  font-family: var(--title);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.split-heading { font-size: clamp(34px, 4.2vw, 58px); }

.body-lg {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(23,22,20,0.72);
  max-width: 46ch;
  margin-bottom: 22px;
  font-weight: 300;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
  width: fit-content;
}
.link-arrow i { font-style: normal; transition: transform .3s ease; }
.link-arrow:hover i { transform: translateX(6px); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  border-radius: 2px;
  transition: all .4s cubic-bezier(.16,1,.3,1);
}
.btn-outline {
  border: 1px solid var(--line-light);
  color: var(--ivory);
}
.btn-outline:hover { background: var(--ivory); color: var(--charcoal); }
.btn-solid {
  background: var(--charcoal);
  color: var(--ivory);
  width: 100%;
}
.btn-solid:hover { background: var(--gold); color: var(--charcoal); }

.img-mask { overflow: hidden; position: relative; }
.img-mask img { will-change: transform; transform: scale(1.08); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
}
.preloader-logo {
  width: clamp(150px, 20vw, 220px);
  height: auto;
  opacity: 0;
}

/* ---------- Custom cursor ---------- */
.cursor-dot {
  position: fixed;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor-dot { display: block; }
}
.cursor-dot.grow { width: 46px; height: 46px; background: var(--gold-light); }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 26px 0;
  transition: background .4s ease, padding .4s ease, backdrop-filter .4s ease;
}
.site-header.scrolled {
  padding: 16px 0;
  background: rgba(244,241,235,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; }
.logo-img {
  height: 40px;
  width: auto;
  transition: filter .4s ease;
}
.site-header.scrolled .logo-img { filter: invert(1) brightness(0.15); }

.main-nav { display: flex; align-items: center; gap: 40px; }
.main-nav a {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ivory);
  font-weight: 500;
  position: relative;
  transition: color .4s ease;
}
.site-header.scrolled .main-nav a { color: var(--charcoal); }
.site-header.scrolled .main-nav.open a { color: var(--ivory); }
.main-nav a:not(.nav-cta)::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: currentColor;
  transition: width .35s ease;
}
.main-nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  border: 1px solid currentColor;
  padding: 10px 22px;
  border-radius: 2px;
}

.menu-toggle { display: none; width: 26px; height: 18px; position: relative; z-index: 401; }
.menu-toggle span {
  position: absolute; left: 0; width: 100%; height: 1px; background: var(--ivory);
  transition: transform .3s ease, top .3s ease, bottom .3s ease, opacity .3s ease;
}
.site-header.scrolled .menu-toggle span { background: var(--charcoal); }
.menu-toggle span:first-child { top: 0; }
.menu-toggle span:last-child { bottom: 0; }
.menu-toggle.active span { background: var(--ivory); }
.site-header.scrolled .menu-toggle.active span { background: var(--ivory); }
.menu-toggle.active span:first-child { top: 50%; transform: translateY(-50%) rotate(45deg); }
.menu-toggle.active span:last-child { bottom: 50%; transform: translateY(50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--charcoal);
}
.hero-media { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(17,16,14,0.35) 0%, rgba(17,16,14,0.25) 45%, rgba(17,16,14,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 100px;
  color: var(--ivory);
}
.hero-content > * { max-width: 900px; }
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 22px;
  font-weight: 500;
}
.hero-title {
  font-size: clamp(40px, 10vw, 100px);
  color: var(--ivory);
  margin-bottom: 26px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero-title .word { display: inline-block; will-change: transform; }
.hero-title .line:last-child .word:first-child { font-style: italic; font-weight: 300; opacity: 0.85; }
.hero-sub {
  font-size: 18px;
  line-height: 1.6;
  max-width: 42ch;
  color: rgba(244,241,235,0.78);
  margin-bottom: 34px;
  font-weight: 300;
}

.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute;
  right: clamp(24px, 5vw, 64px);
  bottom: 40px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--ivory);
}
.hero-scroll span {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  opacity: 0.7;
}
.scroll-line { width: 1px; height: 60px; background: rgba(244,241,235,0.25); position: relative; overflow: hidden; }
.scroll-line i { position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--gold-light); animation: scrollDrop 2.2s ease-in-out infinite; }
@keyframes scrollDrop {
  0% { top: -100%; }
  50% { top: 0%; }
  100% { top: 100%; }
}

.hero-marquee {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  border-top: 1px solid rgba(244,241,235,0.15);
  overflow: hidden;
  padding: 12px 0;
  background: rgba(17,16,14,0.35);
}
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: rgba(244,241,235,0.55);
  white-space: nowrap;
  padding-right: 0;
}

/* ---------- Intro ---------- */
.intro { padding: 160px 0; background: var(--ivory); }
.intro-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.intro-media { aspect-ratio: 4/5; }
.intro-media .img-mask { width: 100%; height: 100%; border-radius: 2px; }
.intro-text .eyebrow { margin-bottom: 20px; }
.intro-text h2 { margin-bottom: 30px; }
.link-arrow { margin-top: 8px; }

/* ---------- Services ---------- */
.services { padding: 60px 0 170px; background: var(--ivory); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service-item {
  background: var(--ivory);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
}
.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 22px;
}
.service-item h3 {
  font-family: var(--title);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 28px);
  margin-bottom: 14px;
}
.service-item p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(23,22,20,0.65);
  font-weight: 300;
}

/* ---------- Stats ---------- */
.stats {
  position: relative;
  background: var(--charcoal);
  color: var(--ivory);
  padding: 170px 0;
}
.stats-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stats .eyebrow { color: var(--gold-light); }
.stats-title {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 90px;
  max-width: 16ch;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(30px, 5vw, 60px);
  width: 100%;
  max-width: 900px;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num, .stat-suffix {
  font-family: var(--serif);
  font-size: clamp(44px, 5vw, 72px);
  color: var(--gold-light);
  line-height: 1;
  font-weight: 400;
}
.stat-suffix { display: inline; }
.stat p {
  margin-top: 18px;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: rgba(244,241,235,0.6);
  max-width: 20ch;
  font-weight: 300;
}

/* ---------- Properties ---------- */
.properties { padding: 170px 0 60px; background: var(--ivory); }
.section-head { margin-bottom: 90px; max-width: 700px; }
.section-head .split-heading { margin-top: 4px; }

.property-list { display: flex; flex-direction: column; }
.property-card {
  border-top: 1px solid var(--line);
  padding: 90px 0;
}
.property-card:last-child { border-bottom: 1px solid var(--line); }
.property-media {
  height: 62vh;
  min-height: 400px;
  max-height: 720px;
  margin: 0 auto;
  max-width: 1200px;
  border-radius: 2px;
}
.property-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
}
.property-loc {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 500;
}
.property-text h3 {
  font-family: var(--title);
  font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 14px;
}
.property-desc {
  font-size: 16px;
  color: rgba(23,22,20,0.65);
  max-width: 48ch;
  margin-bottom: 18px;
  line-height: 1.6;
}
.property-specs { display: flex; flex-wrap: wrap; row-gap: 10px; gap: 22px; }
.property-specs span {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(23,22,20,0.5);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.property-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  text-align: right;
}
.property-price > span {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
}

/* ---------- Gallery (native horizontal scroll) ---------- */
.gallery { background: var(--charcoal); color: var(--ivory); padding: 170px 0; }
.gallery-pin { display: flex; flex-direction: column; }
.gallery .eyebrow { color: var(--gold-light); margin-bottom: 40px; }
.gallery-track {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  padding: 0 clamp(24px, 5vw, 64px) 24px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.gallery-track::-webkit-scrollbar { height: 6px; }
.gallery-track::-webkit-scrollbar-track { background: rgba(244,241,235,0.1); }
.gallery-track::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.gallery-item {
  position: relative;
  flex: 0 0 auto;
  width: 30vw;
  min-width: 340px;
  height: 56vh;
  min-height: 380px;
  border-radius: 2px;
  overflow: hidden;
  scroll-snap-align: start;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-item span {
  position: absolute;
  left: 22px; bottom: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--ivory);
  z-index: 1;
}
.gallery-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.55) 100%);
}

/* ---------- Testimonials ---------- */
.testimonials { padding: 170px 0 100px; background: var(--ivory); text-align: center; }
.testimonials .eyebrow { text-align: center; }
.testimonial-track { max-width: 860px; margin: 0 auto; }
.testimonial-slide p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.4;
  font-weight: 400;
  margin-bottom: 30px;
}
.testimonial-slide cite {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

/* ---------- FAQ ---------- */
.faq { padding: 100px 0; background: var(--ivory); }
.faq-inner .section-head { margin-bottom: 60px; }
.faq-list { max-width: 1200px; margin: 0 auto; }
.faq-item {
  border-top: 1px solid var(--line);
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 28px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--title);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
}
.faq-item summary::after { margin-top: 0.15em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 300;
  color: var(--gold);
  transition: transform .3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 0 28px;
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.65;
  color: rgba(23,22,20,0.65);
  font-weight: 300;
}

/* ---------- CTA / Contact ---------- */
.cta { background: var(--charcoal); color: var(--ivory); padding: 160px 0; }
.cta .eyebrow { color: var(--gold-light); }
.cta-inner { max-width: 640px; margin: 0 auto; text-align: center; }
.cta-inner .split-heading { color: var(--ivory); margin-bottom: 26px; }
.cta-inner .body-lg { color: rgba(244,241,235,0.65); margin-left: auto; margin-right: auto; }
.cta-contacts { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 28px; }
.cta-contacts a { font-size: 17px; border-bottom: 1px solid transparent; width: fit-content; transition: border-color .3s ease, color .3s ease; }
.cta-contacts a:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--charcoal); color: var(--ivory); padding-top: 80px; border-top: 1px solid var(--line-light); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 70px;
}
.footer-logo-img { height: auto; width: 126px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-title { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 6px; }
.footer-col a, .footer-col span { font-size: 14.5px; color: rgba(244,241,235,0.65); font-weight: 300; }
.footer-col a:hover { color: var(--ivory); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 26px 0;
  border-top: 1px solid var(--line-light);
  font-size: 12.5px;
  color: rgba(244,241,235,0.45);
}

/* ---------- Reveal helpers (JS-driven) ---------- */
.reveal-up { opacity: 0; transform: translateY(50px); }
[data-reveal] { opacity: 0; transform: translateY(40px); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .container,
  .header-inner,
  .hero-content,
  .stats-pin {
    padding-left: 20px;
    padding-right: 20px;
  }
}

@media (max-width: 980px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .intro-grid { grid-template-columns: 1fr; }
  .intro-media { aspect-ratio: 16/10; }
  .services-grid { grid-template-columns: 1fr; }
  .property-media {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    border-radius: 0;
  }
  .property-info { flex-direction: column; align-items: flex-start; }
  .property-price { align-items: flex-start; text-align: left; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .stats-title { font-size: clamp(26px, 7vw, 34px); margin-bottom: 26px; max-width: 22ch; }
  .stats-grid { grid-template-columns: 1fr; gap: 18px; }
  .stat-num, .stat-suffix { font-size: 32px; }
  .stat p { margin-top: 8px; font-size: 12px; }
  .footer-grid { grid-template-columns: 1fr; }
  .property-media { height: 46vh; }
  .gallery-item { width: 78vw; min-width: 260px; }
}
