/* =========================================================
   DAAT HOMES — Design System
   Palette: Obsidian Black / Ivory White / Signature Red
   Type: Fraunces (display/serif) + Manrope (body/sans)
   ========================================================= */

:root {
  /* ---- Brand palette ---- */
  --red: #C8102E;
  --red-deep: #8F0B20;
  --red-soft: #FCE7EA;
  --black: #0A0A0A;
  --black-soft: #171717;
  --ink: #1C1C1C;
  --white: #FFFFFF;
  --ivory: #FAF9F6;
  --stone-100: #F4F3F0;
  --stone-200: #E7E5E0;
  --stone-400: #A9A6A0;
  --stone-600: #6E6B65;

  /* ---- Semantic (light mode default) ---- */
  --bg: var(--ivory);
  --bg-alt: var(--stone-100);
  --surface: var(--white);
  --text: var(--black);
  --text-muted: var(--stone-600);
  --border: var(--stone-200);
  --accent: var(--red);
  --accent-contrast: var(--white);
  --header-bg: rgba(250, 249, 246, 0.85);
  --overlay: rgba(10, 10, 10, 0.55);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Domine', Georgia, 'Times New Roman', serif;

  --container: 1320px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --transition: 0.45s var(--ease);
}

[data-theme="dark"] {
  --bg: #0A0A0A;
  --bg-alt: #141414;
  --surface: #171717;
  --text: #F5F3EF;
  --text-muted: #A9A6A0;
  --border: #2A2A2A;
  --accent: #E23A50;
  --accent-contrast: var(--white);
  --header-bg: rgba(10, 10, 10, 0.75);
  --overlay: rgba(0, 0, 0, 0.65);
}

/* ---------------------------------------------------------
   Reset & base
   --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.7;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); }
h2 { font-size: clamp(2rem, 3.4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.8rem); }
p { margin: 0 0 1em; color: var(--text-muted); }
em { color: var(--accent); font-style: normal; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.hide-mobile { display: inline-flex; }
section { position: relative; }

.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 9999;
  background: var(--accent); color: #fff; padding: 10px 18px; border-radius: var(--radius-sm);
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------
   Eyebrow / labels
   --------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--accent); }
.eyebrow--light { color: #fff; }
.eyebrow--light::before { background: #fff; }
.footer-cta .eyebrow { color: rgba(255,255,255,.9); }
.footer-cta .eyebrow::before { background: rgba(255,255,255,.9); }
.em--dark { color: var(--black); }
.eyebrow--center { justify-content: center; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em; transition: all var(--transition); white-space: nowrap;
  border: 1.5px solid transparent;
}
.btn--sm { padding: 11px 22px; font-size: 0.85rem; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--red-deep); transform: translateY(-2px); }
.btn--ghost { border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--outline-light { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--black); }
.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: var(--accent); }
.btn--block { width: 100%; white-space: normal; }
.btn--whatsapp { background: #1EA952; color: #fff; }
.btn--whatsapp:hover { background: #178c43; transform: translateY(-2px); }

/* ---------------------------------------------------------
   Header
   --------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  backdrop-filter: blur(16px); background: var(--header-bg);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), background var(--transition);
}
.site-header.is-scrolled { border-color: var(--border); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 88px; transition: height var(--transition);
}
.site-header.is-scrolled .site-header__inner { height: 72px; }

.brand { display: flex; align-items: center; line-height: 1; }
.brand__mark { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
.brand__dot { color: var(--accent); }
.brand__sub { font-size: 0.62rem; letter-spacing: 0.35em; color: var(--text-muted); }
.brand--light .brand__mark, .brand--light .brand__sub { color: #fff; }

/* Logo image — sits in a dark pill on light backgrounds so the white mark stays visible */
.brand__logo {
  height: 48px; width: auto; display: block;
  background: var(--black); padding: 8px 14px; border-radius: 10px;
  transition: height var(--transition);
}
.site-header.is-scrolled .brand__logo { height: 42px; }
/* In dark mode the header is already dark — drop the pill so it blends seamlessly */
[data-theme="dark"] .brand__logo { background: transparent; padding: 4px 0; }
/* Footer is always dark — no pill needed */
.brand__logo--footer { background: transparent; padding: 0; height: 60px; }

.main-nav ul { display: flex; gap: 40px; }
.main-nav a { font-size: 0.92rem; font-weight: 500; position: relative; padding: 6px 0; }
.main-nav a::after {
  content: ''; position: absolute; bottom: 0; left: 0; height: 1.5px; width: 0;
  background: var(--accent); transition: width var(--transition);
}
.main-nav a:hover::after, .main-nav a.is-active::after { width: 100%; }
.main-nav a.is-active { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 32px; }
.nav-toggle span { height: 2px; background: var(--text); border-radius: 2px; transition: all .3s; }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero {
  position: relative; height: 100vh; min-height: 640px; overflow: hidden;
  display: flex; align-items: flex-end; color: #fff;
}
.hero-slide {
  position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease);
  z-index: 0;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img, .hero-slide video {
  width: 100%; height: 100%; object-fit: cover; transform: scale(1.08);
}
.hero-slide.is-active img, .hero-slide.is-active video { animation: heroZoom 8s var(--ease) forwards; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(10,10,10,.45) 0%, rgba(10,10,10,.4) 40%, rgba(10,10,10,.92) 100%);
}
.hero-content { position: relative; z-index: 3; width: 100%; padding-bottom: 90px; }
.hero-content .eyebrow { color: #fff; }
.hero-content .eyebrow::before { background: var(--accent); }
.hero-content h1 { color: #fff; max-width: 900px; }
.hero-content p { color: rgba(255,255,255,.78); max-width: 560px; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 40px; right: 40px; z-index: 3; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .75rem;
  letter-spacing: .2em; text-transform: uppercase;
}
.hero-scroll span { display: block; width: 1px; height: 40px; background: rgba(255,255,255,.5); position: relative; overflow: hidden; }
.hero-scroll span::after {
  content:''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: #fff;
  animation: scrollLine 2s var(--ease) infinite;
}
@keyframes scrollLine { to { top: 100%; } }
.hero-dots { position: absolute; z-index: 3; bottom: 40px; left: 40px; display: flex; gap: 10px; }
.hero-dots button { width: 34px; height: 3px; background: rgba(255,255,255,.35); border-radius: 3px; transition: background .3s; }
.hero-dots button.is-active { background: #fff; }

/* ---------------------------------------------------------
   Sections generic
   --------------------------------------------------------- */
.section { padding: 120px 0; }
.section--tight { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--black); color: #fff; }
.section--dark p { color: rgba(255,255,255,.65); }
.section--dark h2, .section--dark h3 { color: #fff; }

/* ---- Overview / About split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split > * { min-width: 0; }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4/5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media__badge {
  position: absolute; bottom: 24px; left: 24px; background: var(--surface); color: var(--text);
  padding: 20px 26px; border-radius: var(--radius-md); box-shadow: 0 20px 50px rgba(0,0,0,.15);
}
.split-media__badge strong { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--accent); }
.split-media__badge span { font-size: .8rem; color: var(--text-muted); }

/* ---- Services grid (Bordered Accent Cards) ---- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 40px 32px; overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; height: 4px; width: 48px;
  background: var(--accent); border-radius: 0 0 4px 0; transition: width var(--transition);
}
.service-card:hover {
  transform: translateY(-6px); border-color: transparent;
  box-shadow: 0 24px 50px rgba(0,0,0,.12);
}
.service-card:hover::before { width: 100%; }
.service-card__icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--red-soft); color: var(--accent);
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
  transition: background var(--transition), color var(--transition);
}
.service-card:hover .service-card__icon { background: var(--accent); color: #fff; }
.service-card h3 { margin-bottom: 10px; }
[data-theme="dark"] .service-card__icon { background: rgba(226,58,80,.15); }
[data-theme="dark"] .service-card:hover { box-shadow: 0 24px 50px rgba(0,0,0,.5); }


/* ---- Stats ---- */
.stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat-item { padding: 20px; border-right: 1px solid rgba(255,255,255,.12); }
.stat-item:last-child { border-right: none; }
.stat-item strong { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.6rem); color: var(--accent); }
.stat-item span { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); }

/* ---- Founder ---- */
.founder { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 80px; align-items: center; }
.founder > * { min-width: 0; }
.founder-media { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3/4; }
.founder-media img { width: 100%; height: 100%; object-fit: cover; }
.founder-quote { font-family: var(--font-display); font-size: clamp(1.4rem, 2.2vw, 2rem); font-style: italic; margin: 24px 0; color: var(--text); }
.founder-name { font-weight: 700; }
.founder-role { color: var(--accent); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }

/* ---- Property cards ---- */
.property-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.property-grid--2 { grid-template-columns: repeat(2, 1fr); }
.property-card {
  background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.property-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px rgba(0,0,0,.12); }
.property-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.property-card:hover .property-card__media img { transform: scale(1.08); }
.property-card__tag {
  position: absolute; top: 16px; left: 16px; background: var(--accent); color: #fff; font-size: .72rem;
  padding: 6px 14px; border-radius: 999px; letter-spacing: .05em; text-transform: uppercase; font-weight: 700;
}
.property-card__price {
  position: absolute; bottom: 16px; left: 16px; background: rgba(10,10,10,.75); backdrop-filter: blur(6px);
  color: #fff; padding: 8px 16px; border-radius: var(--radius-sm); font-weight: 700; font-family: var(--font-display);
}
.property-card__body { padding: 26px; }
.property-card__body h3 { margin-bottom: 6px; font-size: 1.25rem; }
.property-card__loc { font-size: .85rem; color: var(--text-muted); margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.property-card__meta { display: flex; flex-wrap: wrap; gap: 12px 18px; font-size: .82rem; color: var(--text-muted); padding-top: 16px; border-top: 1px solid var(--border); }
.property-card__meta span { display: flex; align-items: center; gap: 6px; }

/* ---- Carousel (featured properties, testimonials) ---- */
.carousel-track { display: flex; gap: 32px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; flex: 0 0 auto; }
.carousel-nav { display: flex; gap: 12px; justify-content: flex-end; margin-bottom: 32px; }
.carousel-nav button {
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; transition: all .25s;
}
.carousel-nav button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.section-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; gap: 16px 24px; }

/* ---- Why choose us ---- */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.why-item { display: flex; gap: 20px; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-md); }
.why-item__num { font-family: var(--font-display); font-size: 1.8rem; color: var(--accent); flex-shrink: 0; }

/* ---- Investment section ---- */
.invest-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; }
.invest-card img { width: 100%; height: 100%; object-fit: cover; }
.invest-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.85) 100%); }
.invest-card__body { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px; z-index: 2; color: #fff; }
.invest-card__roi { display: inline-block; background: var(--accent); padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; margin-bottom: 12px; }

/* ---- Testimonials ---- */
.testimonial-card {
  width: min(560px, 85vw); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 44px; position: relative;
}
.testimonial-card__quote { font-family: var(--font-display); font-size: 1.25rem; font-style: italic; margin-bottom: 24px; color: var(--text); }
.testimonial-card__person { display: flex; align-items: center; gap: 14px; }
.testimonial-card__person img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.testimonial-card__stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 16px; }

/* ---- Blog cards ---- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.blog-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.blog-card__media { aspect-ratio: 16/10; overflow: hidden; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.blog-card:hover .blog-card__media img { transform: scale(1.06); }
.blog-card__body { padding: 26px; }
.blog-card__cat { color: var(--accent); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.blog-card__date { font-size: .8rem; color: var(--text-muted); margin-top: 12px; }

/* ---- Newsletter band ---- */
.newsletter-band { background: var(--stone-100); border-radius: var(--radius-lg); padding: 64px; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
[data-theme="dark"] .newsletter-band { background: var(--bg-alt); }
.newsletter-band-form { display: flex; gap: 12px; min-width: 380px; }
.newsletter-band-form input { flex: 1; min-width: 0; padding: 16px 20px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }

/* ---- CTA banner ---- */
.cta-banner {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; padding: 100px 60px; text-align: center;
  background: var(--black); color: #fff;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(200,16,46,.35), transparent 60%);
}
.cta-banner > * { position: relative; z-index: 2; }
.cta-banner h2 { color: #fff; max-width: 700px; margin: 0 auto 24px; }
.cta-banner .btn-row { display: flex; gap: 16px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.site-footer { background: var(--black); color: rgba(255,255,255,.7); }
.footer-cta { background: linear-gradient(120deg, var(--red-deep), var(--accent)); padding: 64px 0; }
.footer-cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.footer-cta h2 { color: #fff; margin: 0; }
.footer-cta__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 48px; padding: 80px 24px 60px; }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 22px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a:hover { color: #fff; }
.footer-col--brand p { max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center; font-size: .7rem; font-weight: 700; color: #fff;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.newsletter-form { display: flex; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 10px; margin: 18px 0; }
.newsletter-form input { flex: 1; min-width: 0; background: transparent; border: none; color: #fff; padding: 8px 0; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form button { color: var(--accent); }
.footer-contact { color: rgba(255,255,255,.55); font-size: .88rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; }
.footer-bottom__inner { display: flex; justify-content: space-between; font-size: .8rem; }

/* ---------------------------------------------------------
   WhatsApp FAB & scroll-top
   --------------------------------------------------------- */
.whatsapp-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 900; width: 58px; height: 58px; border-radius: 50%;
  background: #1EA952; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(30,169,82,.4); transition: transform .3s;
}
.whatsapp-fab:hover { transform: scale(1.08); }
.scroll-top {
  position: fixed; bottom: 28px; right: 96px; z-index: 900; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .3s;
}
.scroll-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ---------------------------------------------------------
   Property detail layout, filter form, amenities, payment plans
   (component classes — kept out of inline styles so responsive
   rules below can actually take effect)
   --------------------------------------------------------- */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.filter-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.property-detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; align-items: start; gap: 56px; }
.property-detail-grid > * { min-width: 0; }
.amenities-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.payment-plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.property-meta-row { display: flex; flex-wrap: wrap; gap: 18px; }
.filter-search { grid-column: span 2; min-width: 0; }

/* ---------------------------------------------------------
   Reveal animation base state (GSAP toggles .is-visible)
   --------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(40px); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* Service cards hidden only when JS-driven animation is active (class added by main.js).
   Without JS/GSAP they stay fully visible — no blank section. */
.gsap-ready .service-reveal { opacity: 0; transform: translateY(28px) scale(.97); }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1080px) {
  .split, .founder, .property-detail-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .property-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .filter-grid { grid-template-columns: repeat(3, 1fr); }
  .filter-search { grid-column: span 3; }
}
@media (max-width: 860px) {
  .main-nav { position: fixed; top: 0; right: -100%; height: 100vh; width: min(360px, 85%); background: var(--surface);
    flex-direction: column; padding: 120px 40px; transition: right var(--transition); box-shadow: -20px 0 60px rgba(0,0,0,.15); }
  .main-nav.is-open { right: 0; }
  .main-nav ul { flex-direction: column; gap: 28px; }
  .nav-toggle { display: flex; }
  .hide-mobile { display: none; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .why-grid { grid-template-columns: 1fr; }
  .newsletter-band { flex-direction: column; text-align: center; padding: 40px 28px; }
  .newsletter-band-form { min-width: 0; width: 100%; }
  .filter-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-search { grid-column: span 2; }

  /* Compact black header on mobile (both light & dark mode) */
  .site-header { background: var(--black); border-bottom-color: rgba(255,255,255,.08); }
  .site-header__inner { height: 60px; }
  .site-header.is-scrolled .site-header__inner { height: 56px; }
  .brand__logo, [data-theme="dark"] .brand__logo { height: 36px; background: transparent; padding: 0; }
  .site-header.is-scrolled .brand__logo { height: 34px; }
  .nav-toggle span { background: #fff; }
  .theme-toggle { border-color: rgba(255,255,255,.25); color: #fff; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .services-grid, .property-grid, .blog-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-cta__inner { flex-direction: column; text-align: center; }
  .footer-cta__actions { justify-content: center; width: 100%; }
  .cta-banner { padding: 60px 28px; }
  .hero-scroll { display: none; }
  .form-grid-2, .filter-grid, .amenities-grid { grid-template-columns: 1fr; }
  .filter-search { grid-column: span 1; }
  .header-actions { gap: 8px; }
  .header-actions .btn--sm { padding: 9px 16px; font-size: .82rem; }
  .container { padding: 0 20px; }
  .footer-main { padding: 56px 20px 40px; gap: 36px; }
  .footer-cta { padding: 48px 24px; }
  .footer-bottom__inner { flex-direction: column; gap: 6px; text-align: center; }
  .btn { white-space: normal; text-align: center; }

  /* Hero: center content vertically so the buttons aren't stuck at the bottom edge */
  .hero { align-items: center; min-height: 90vh; }
  .hero-content { padding-bottom: 0; padding-top: 80px; }
  .hero-content p { font-size: 1rem; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { width: 100%; }
  .hero-dots { bottom: 28px; left: 50%; transform: translateX(-50%); }
}

