:root {
  --red: #B91C2B;
  --red-bright: #E63946;
  --ink: #221512;
  --ink-soft: #5a4a46;
  --cream: #FBF3EE;
  --cream2: #F5E8E0;
  --gold: #C9A227;
  --white: #ffffff;
  --radius: 16px;
  --display: 'Fraunces', serif;
  --body: 'Nunito', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--display); margin: 0 0 .4em; line-height: 1.15; }

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

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

.eyebrow {
  display: inline-block;
  color: var(--red);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(185, 28, 43, .28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(185, 28, 43, .36); }

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: #fff; }

.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; margin-top: 18px; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Floating menu */
.floating-menu {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-width: 200px;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(34, 21, 18, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 48px rgba(34,21,18,.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity .18s ease-out, transform .18s ease-out, visibility .18s;
}
.nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}
.nav a {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 10px;
  transition: background .15s;
}
.nav a:hover { background: var(--cream2); }

.nav-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid rgba(34, 21, 18, 0.12);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  padding: 12px 20px;
  box-shadow: 0 14px 34px rgba(34,21,18,.16);
  transition: transform .15s, box-shadow .15s;
}
.nav-toggle:hover { transform: translateY(-2px); }

/* Hero */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(34,21,18,.88) 0%, rgba(34,21,18,.72) 45%, rgba(185,28,43,.55) 100%);
}
.hero-portrait {
  position: absolute;
  right: 48px;
  bottom: 0;
  z-index: 1;
  width: 340px;
  height: 94%;
  pointer-events: none;
}
.hero-portrait-img {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  object-fit: contain;
  object-position: bottom right;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  filter: drop-shadow(0 30px 44px rgba(0,0,0,.4));
}
.hero-portrait-img.is-active { opacity: 1; }
@media (max-width: 1024px) {
  .hero-portrait {
    right: auto;
    left: 50%;
    top: 0;
    bottom: 0;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
  }
  .hero-portrait-img { object-position: bottom center; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 110px 24px 70px;
  margin: 0 auto;
  margin-left: max(24px, calc((100vw - 1200px) / 2));
  color: #fff;
}
.hero-inner .eyebrow { color: var(--gold); }
.hero h1 { font-size: clamp(34px, 5vw, 54px); color: #fff; }
.hero .lede { font-size: 17px; color: rgba(255,255,255,0.88); max-width: 540px; margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }
.hero .btn-ghost { border-color: rgba(255,255,255,0.6); color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,0.85); }

/* Marquee */
.marquee {
  overflow: hidden;
  background: var(--ink);
  padding: 14px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 24s linear infinite;
}
.marquee-item {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 600; font-size: 16px;
  color: rgba(255,255,255,0.92);
  padding: 0 28px;
  white-space: nowrap;
}
.marquee-dot { width: 7px; height: 7px; border-radius: 999px; background: var(--red-bright); }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Sections */
.section { padding: 90px 24px; }
.section-alt { background: var(--cream2); }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-header { max-width: 640px; margin-bottom: 48px; }
.subtitle { color: var(--ink-soft); font-size: 15.5px; }

/* Property cards */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.property-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(34,21,18,.08);
  display: flex;
  flex-direction: column;
}

.property-gallery { position: relative; }
.property-main-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  background: var(--cream2);
}
.property-thumbs {
  display: flex;
  gap: 6px;
  padding: 8px;
  background: var(--ink);
  overflow-x: auto;
}
.thumb {
  flex: 0 0 56px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  opacity: .6;
  transition: opacity .2s ease, border-color .2s ease;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active, .thumb:hover { opacity: 1; border-color: var(--red-bright); }

.property-body { padding: 26px 24px 28px; }
.property-tag {
  display: inline-block;
  background: var(--cream2);
  color: var(--red);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.property-card h3 { font-size: 19px; margin-bottom: 8px; }
.property-price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  color: var(--red);
  margin-bottom: 14px;
}
.property-specs {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-soft);
}
.property-desc { font-size: 14px; color: var(--ink-soft); margin: 0; }

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 26px;
  box-shadow: 0 10px 28px rgba(34,21,18,.06);
}
.service-icon { font-size: 30px; margin-bottom: 14px; }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

/* About */
.about-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  align-items: center;
}
.about-photo img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid #fff;
  box-shadow: 0 16px 36px rgba(34,21,18,.14);
}
.about-role { color: var(--red); font-weight: 800; font-size: 14px; margin-bottom: 14px; }
.about-text p:not(.about-role) { color: var(--ink-soft); font-size: 15.5px; max-width: 560px; }
.about-ig {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 14px; color: var(--ink);
  margin-top: 10px;
}
.about-ig:hover { color: var(--red); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  max-width: 600px;
}
.contact-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 10px 28px rgba(34,21,18,.06);
  text-align: center;
  transition: transform .2s ease;
}
.contact-card:hover { transform: translateY(-4px); }
.contact-icon { font-size: 28px; margin-bottom: 10px; }
.contact-card h3 { font-size: 16px; margin-bottom: 4px; }
.contact-card p { margin: 0; color: var(--ink-soft); font-weight: 700; font-size: 14px; }

/* Footer */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 28px 24px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 13px;
}

/* Mobile WhatsApp bar */
.mobile-order-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: #25D366;
  color: #fff;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 -8px 20px rgba(0,0,0,.12);
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 90;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  box-shadow: 0 10px 24px rgba(0,0,0,.18);
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

@media (max-width: 860px) {
  .about-inner { grid-template-columns: 1fr; text-align: center; }
  .about-photo { width: 160px; margin: 0 auto; }
  .about-text p:not(.about-role) { margin-left: auto; margin-right: auto; }
}

@media (max-width: 720px) {
  .floating-menu { bottom: 76px; }
  .hero-inner { margin-left: auto; padding-left: 24px; padding-right: 24px; text-align: left; }
  .mobile-order-bar { display: flex; }
  .section { padding: 64px 20px; }
  body { padding-bottom: 64px; }

  .property-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .property-thumbs { display: none; }
  .property-main-img { height: 110px; }
  .property-body { padding: 12px 10px 14px; }
  .property-tag { font-size: 8.5px; padding: 3px 7px; margin-bottom: 7px; }
  .property-card h3 { font-size: 13px; line-height: 1.25; margin-bottom: 4px; }
  .property-price { font-size: 16px; margin-bottom: 7px; }
  .property-specs { grid-template-columns: 1fr; gap: 3px; font-size: 10px; margin-bottom: 7px; }
  .property-desc { display: none; }
  .property-card .btn { padding: 8px 6px; font-size: 11px; min-height: 36px; }
}
