/* ===================================================
   MIRRA TOWNHOMES — Main Stylesheet
   Palette: Sage #6B8065 | Gold #C4A265 | Cream #F5F2ED
   Fonts: Cormorant Garamond (headings) + DM Sans (body) + Montserrat (nav/labels)
   =================================================== */

:root {
  --sage: #6B8065;
  --sage-dark: #4A5A44;
  --sage-light: #8A9E84;
  --gold: #C4A265;
  --gold-light: #D4B87A;
  --gold-dark: #A8894E;
  --cream: #F5F2ED;
  --cream-dark: #EDE8E0;
  --brown: #7A4B3A;
  --teal: #1A5C5E;
  --charcoal: #2A2A2A;
  --text: #3D3D3D;
  --text-light: #777;
  --white: #fff;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --font-nav: 'Montserrat', -apple-system, sans-serif;
  --nav-h: 72px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

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

/* -- Typography -- */
h1,h2,h3,h4 { font-family: var(--font-heading); font-weight: 500; line-height: 1.2; color: var(--charcoal); }
h1 { font-size: clamp(1.5rem, 3.5vw, 2.8rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

.section-label {
  display:block;
  font-family: var(--font-nav);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title { margin-bottom: 16px; }
.section-desc { max-width: 640px; margin: 0 auto 48px; color: var(--text-light); text-align:center; }
.section-inner { max-width: 1200px; margin: 0 auto; padding: clamp(60px,8vw,120px) 24px; }

/* -- Buttons -- */
.btn-primary, .btn-ghost, .form-submit, .nav-cta, .mcta-call, .mcta-register, .desktop-float-cta, .fp-tab {
  text-transform: uppercase;
}
.btn-primary {
  display:inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 20px rgba(196,162,101,0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  position:relative; overflow:hidden;
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(196,162,101,0.4); }
.btn-primary::after {
  content:''; position:absolute; top:0; left:-100%; width:100%; height:100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s;
}
.btn-primary:hover::after { left: 100%; }

.btn-ghost {
  display:inline-block;
  padding: 16px 40px;
  background: transparent;
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,0.5);
  transition: background 0.3s, border-color 0.3s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

/* -- Fade-in animation -- */
.fade-in {
  opacity:0; transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-in.visible { opacity:1; transform: translateY(0); }
.fd1 { transition-delay: 0.1s; }
.fd2 { transition-delay: 0.2s; }
.fd3 { transition-delay: 0.3s; }
.fd4 { transition-delay: 0.4s; }
.fd5 { transition-delay: 0.5s; }

/* ===================================================
   NAVIGATION
   =================================================== */
.mt-nav {
  position: fixed; top:0; left:0; right:0; z-index:50;
  transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}
.nav-transparent { background: transparent; }
.nav-solid { background: rgba(74,90,68,0.95); backdrop-filter: blur(12px); box-shadow: 0 2px 20px rgba(0,0,0,0.15); }
.nav-inner {
  max-width: 1200px; margin:0 auto; padding: 0 24px;
  display:flex; align-items:center; justify-content:space-between; height: var(--nav-h);
}
.nav-logo img { height: 44px; width:auto; filter: brightness(10) drop-shadow(0 1px 3px rgba(0,0,0,0.3)); }
.nav-links {
  display:flex; align-items:center; gap:28px; list-style:none;
}
.nav-links a {
  font-family: var(--font-nav);
  font-size: 0.82rem; font-weight: 500; color: var(--white);
  letter-spacing: 0.04em; text-transform: uppercase;
  transition: color 0.3s;
  position:relative;
}
.nav-links a::after {
  content:''; position:absolute; bottom:-4px; left:0; width:0; height:1.5px;
  background: var(--gold); transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width:100%; }
.nav-cta {
  background: var(--gold) !important; color: var(--white) !important;
  padding: 10px 24px !important; border-radius: 50px !important;
  font-weight: 600 !important;
}
.nav-cta::after { display:none !important; }
.nav-cta:hover { opacity:0.9; }

.mobile-menu-btn { display:none; flex-direction:column; gap:5px; padding:8px; }
.mobile-menu-btn span { display:block; width:24px; height:2px; background:var(--white); transition: transform 0.3s, opacity 0.3s; }
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity:0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ===================================================
   HERO
   =================================================== */
.mt-hero {
  position:relative; height:100svh; height:100vh; min-height:600px; overflow:hidden;
  display:flex; align-items:center; justify-content:center;
}
.hero-video-wrap {
  position:absolute; top:0; left:0; width:100%; height:100%; z-index:1;
  overflow:hidden;
}
/* Vimeo iframe — cover entire hero, always full width + height */
.hero-vimeo {
  position:absolute;
  top:0; left:0;
  width:100vw;
  height:100vh;
  transform: none;
  pointer-events:none;
  border:none;
  object-fit:cover;
}
/* Wrapper for Vimeo to behave like object-fit:cover */
.hero-video-wrap::after {
  content:'';
  display:block;
}
@media (min-aspect-ratio: 16/9) {
  /* Wide screens — match width, overflow height */
  .hero-vimeo { width:100vw; height:56.25vw; top:50%; left:0; transform:translateY(-50%); }
}
@media (max-aspect-ratio: 16/9) {
  /* Tall screens — match height, overflow width */
  .hero-vimeo { height:100vh; width:177.78vh; top:0; left:50%; transform:translateX(-50%); }
}
.hero-video-wrap video {
  position:absolute; top:50%; left:50%; transform: translate(-50%,-50%) scale(1.05);
  min-width:100%; min-height:100%; width:auto; height:auto;
  object-fit:cover;
  -webkit-appearance: none;
}
.hero-video-wrap video::-webkit-media-controls { display:none !important; opacity:0 !important; pointer-events:none !important; }
.hero-video-wrap video::-webkit-media-controls-panel { display:none !important; }
.hero-video-wrap video::-webkit-media-controls-start-playback-button { display:none !important; -webkit-appearance:none !important; }
.hero-video-wrap video::-webkit-media-controls-play-button { display:none !important; }
.hero-video-wrap video::--webkit-media-controls-overlay-play-button { display:none !important; }
.hero-overlay {
  position:absolute; inset:0; z-index:2;
  background: linear-gradient(
    180deg,
    rgba(74,90,68,0.7) 0%,
    rgba(74,90,68,0.5) 40%,
    rgba(74,90,68,0.65) 70%,
    rgba(42,42,42,0.85) 100%
  );
}
.hero-content {
  position:relative; z-index:3;
  text-align:center; padding: 0 24px;
  max-width: 800px;
}
.hero-logo {
  width: clamp(180px, 30vw, 280px);
  margin: 0 auto 32px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.hero-content h1 {
  color: var(--white);
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-intro {
  color: #fff;
  font-size: clamp(0.9rem, 1.8vw, 1.05rem);
  line-height: 1.85;
  max-width: 660px;
  margin: 0 auto 28px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6), 0 0 40px rgba(0,0,0,0.3);
  font-weight: 400;
  letter-spacing: 0.01em;
}
.hero-pills {
  display:flex; flex-wrap:wrap; justify-content:center; gap:12px;
  margin-bottom: 36px;
}
.pill {
  padding: 8px 20px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.hero-ctas { display:flex; flex-wrap:wrap; justify-content:center; gap:16px; }

.hero-scroll-indicator {
  position:absolute; bottom:32px; left:50%; transform:translateX(-50%);
  z-index:3; text-align:center;
}
.hero-scroll-indicator span {
  display:block; color:rgba(255,255,255,0.5); font-size:0.7rem;
  letter-spacing:0.15em; text-transform:uppercase; margin-bottom:8px;
}
.scroll-line {
  width:1px; height:40px; background: rgba(255,255,255,0.2); margin:0 auto;
  position:relative; overflow:hidden;
}
.scroll-line::after {
  content:''; position:absolute; top:-40px; left:0; width:1px; height:40px;
  background: var(--gold);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine { 0%{top:-40px} 100%{top:40px} }

/* ===================================================
   ABOUT
   =================================================== */
.mt-about { background: var(--white); }
.about-grid { display:grid; grid-template-columns: 1fr 1fr; gap:60px; align-items:center; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 16px; color: var(--text-light); }
.about-features {
  display:grid; grid-template-columns: repeat(4, 1fr); gap:16px;
  margin: 32px 0;
  padding: 24px 0;
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
}
.af-item { text-align:center; }
.af-num { display:block; font-family:var(--font-heading); font-size:1.6rem; font-weight:600; color:var(--gold); }
.af-label { font-size:0.72rem; text-transform:uppercase; letter-spacing:0.1em; color:var(--text-light); }

/* Arch trio — single image split across 3 elegant cracked panels */
.arch-trio { display:none; } /* hide old version */

/* Hide the SVG-based version, use the clipped version instead */
.arch-trio-split { display: none; }

/* Clean approach: one image, CSS clip-path with 3 arches */
.arch-trio-clipped {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 2/3;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.arch-trio-clipped.animated {
  opacity: 1;
  transform: translateY(0);
}

.arch-clipped-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  transition: transform 0.8s var(--ease);
  /* 3 arches with gaps — using clip-path polygon */
  clip-path: url(#threeArches);
}
.arch-trio-clipped:hover .arch-clipped-bg {
  transform: scale(1.03);
}

/* Drop shadow on the arches for depth */
.arch-trio-clipped::after {
  content: '';
  position: absolute;
  inset: 0;
  clip-path: url(#threeArches);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
  pointer-events: none;
}

.about-mobile-img { display:none; }
.about-mobile-img img { width:100%; border-radius:24px; }

.arch-frame { border-radius: 100px 100px 8px 8px; overflow:hidden; position:relative; }
.arch-frame img { width:100%; height:100%; object-fit:cover; object-position: center 30%; transition: transform 0.6s var(--ease); }
.arch-frame:hover img { transform: scale(1.05); }

/* ===================================================
   FAST FACTS — brochure-style split layout
   =================================================== */
.mt-facts { padding: 0; overflow: hidden; }
.facts-inner {
  display: grid;
  grid-template-columns: 340px 1fr;
  min-height: 600px;
}

/* Left Panel — sage green */
.facts-left {
  background: var(--sage);
  color: var(--white);
  padding: 56px 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.facts-logo {
  width: 120px; height: auto;
  filter: brightness(10);
  margin-bottom: 36px;
}
.facts-quick { display: flex; flex-direction: column; gap: 0; }
.fq-item {
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.fq-item h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 400;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.7);
}
.fq-item p {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.88rem; line-height: 1.5;
  font-weight: 500;
}
.facts-sales {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.facts-sales p {
  font-size: 0.82rem; line-height: 1.5;
  margin-bottom: 16px;
}
.facts-sales a {
  color: var(--white);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.3s;
}
.facts-sales a:hover { border-color: var(--white); }

/* Right Panel — white with content */
.facts-right {
  background: var(--white);
  padding: 56px 48px;
}
.facts-section {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--cream-dark);
}
.facts-section:last-child { border-bottom: none; margin-bottom: 0; }
.facts-section h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--sage-dark);
  margin-bottom: 16px;
}
.facts-section ul {
  list-style: none; padding: 0; margin: 0;
}
.facts-section ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}
.facts-section ul li::before {
  content: '•';
  position: absolute; left: 0;
  color: var(--sage);
  font-weight: 700;
}

/* Amenities 3-column */
.facts-amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 24px;
}

/* Zero-In highlight box */
.facts-zeroin {
  margin-top: 20px;
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
}
.facts-zeroin h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--sage-dark);
  margin-bottom: 10px;
}
.facts-zeroin ul li { font-weight: 500; }

/* Deposit Structure grid */
.facts-deposit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 32px;
  max-width: 400px;
}
.fd-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--cream);
  font-size: 0.88rem;
  font-family: 'DM Sans', sans-serif;
}
.fd-row span:first-child { font-weight: 600; color: var(--charcoal); }
.fd-row span:last-child { color: var(--text-light); }
.fd-total {
  grid-column: 1 / -1;
  border-bottom: none;
  border-top: 2px solid var(--sage);
  margin-top: 4px;
  padding-top: 12px;
}
.fd-total span:first-child {
  font-size: 1.1rem;
  color: var(--sage-dark);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
}

/* Responsive Facts */
@media(max-width:1024px) {
  .facts-inner { grid-template-columns: 280px 1fr; }
  .facts-left { padding: 40px 28px; }
  .facts-right { padding: 40px 32px; }
}
@media(max-width:767px) {
  .facts-inner {
    grid-template-columns: 1fr;
  }
  .facts-left { padding: 40px 24px; }
  .facts-right { padding: 32px 20px; }
  .facts-amenities-grid { grid-template-columns: 1fr 1fr; }
  .facts-deposit-grid { grid-template-columns: 1fr; }
  .facts-section h3 { font-size: 1.5rem; }
}

/* ===================================================
   HIGHLIGHTS
   =================================================== */
.mt-highlights { background: var(--cream); text-align:center; }
.highlights-grid {
  display:grid; grid-template-columns: repeat(3, 1fr); gap:32px;
  margin-top: 48px;
}
.hl-card {
  background: var(--white); border-radius:16px; overflow:hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  text-align:left;
}
.hl-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.hl-arch {
  height: 220px; overflow:hidden;
  border-radius: 0 0 80px 80px;
  margin: 0 24px;
}
.hl-arch img { width:100%; height:100%; object-fit:cover; transition: transform 0.5s var(--ease); }
.hl-card:hover .hl-arch img { transform: scale(1.06); }
.hl-card h3 {
  padding: 20px 24px 8px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--sage);
}
.hl-card p { padding: 0 24px 24px; font-size:0.9rem; color:var(--text-light); line-height:1.6; }

/* ===================================================
   GALLERY
   =================================================== */
.mt-gallery { background: var(--white); text-align:center; overflow:hidden; }

/* Horizontal Scroll Gallery */
.gallery-slider {
  position: relative;
  padding: 0 0 24px;
}
.gallery-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 8px 60px 16px;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 auto;
  width: 420px;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: center;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  transition: all 0.4s var(--ease);
}
.gallery-slide:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
}
.gallery-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery-slide:hover img { transform: scale(1.06); }

/* Gallery Arrows */
.gallery-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(107,128,101,0.15);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
  color: var(--sage-dark);
}
.gallery-arrow:hover { background: var(--sage); color: var(--white); border-color: var(--sage); }
.gallery-arrow-left { left: 12px; }
.gallery-arrow-right { right: 12px; }

/* Lightbox */
.lightbox {
  position:fixed; inset:0; z-index:100;
  background: rgba(0,0,0,0.92); backdrop-filter: blur(8px);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition: opacity 0.3s;
}
.lightbox.active { opacity:1; pointer-events:all; }
.lb-img { max-width:90vw; max-height:85vh; border-radius:8px; object-fit:contain; }
.lb-close, .lb-prev, .lb-next {
  position:absolute; color:var(--white); font-size:2rem;
  background: rgba(255,255,255,0.1); border-radius:50%;
  width:48px; height:48px; display:flex; align-items:center; justify-content:center;
  transition: background 0.3s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.2); }
.lb-close { top:24px; right:24px; }
.lb-prev { left:24px; top:50%; transform:translateY(-50%); }
.lb-next { right:24px; top:50%; transform:translateY(-50%); }

/* ===================================================
   LOCATION
   =================================================== */
.mt-location { background: var(--cream); }
.location-grid { display:grid; grid-template-columns: 1fr 1fr; gap:48px; align-items:start; }
.location-info h2 { margin-bottom: 16px; }
.location-info > p { color: var(--text-light); margin-bottom:32px; }
.drive-times { display:flex; flex-direction:column; gap:0; }
.dt-item {
  display:flex; align-items:center; gap:16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.dt-icon { color: var(--gold); flex-shrink:0; }
.dt-item strong { color: var(--sage); font-size:0.95rem; display:block; }
.dt-item span { font-size:0.85rem; color:var(--text-light); }
.location-map { min-height: 500px; border-radius:12px; overflow:hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.1); }
.location-map iframe { width:100%; height:100%; min-height:500px; }

/* ===================================================
   INVESTMENT
   =================================================== */
.mt-investment { background: var(--sage); color: var(--white); text-align:center; }
.mt-investment h2, .mt-investment h3 { color: var(--white); }
.mt-investment .section-desc { color: rgba(255,255,255,0.7); }
.invest-stats { display:grid; grid-template-columns: repeat(4, 1fr); gap:24px; margin-bottom:60px; }
.is-card {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius:16px; padding:32px 20px; text-align:center;
  transition: background 0.3s, transform 0.3s var(--ease);
}
.is-card:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.is-num { display:block; font-family:var(--font-heading); font-size:2.2rem; font-weight:600; color:var(--gold); margin-bottom:8px; }
.is-label { display:block; font-size:0.78rem; text-transform:uppercase; letter-spacing:0.1em; color:rgba(255,255,255,0.7); margin-bottom:12px; }
.is-card p { font-size:0.85rem; color:rgba(255,255,255,0.55); line-height:1.5; }

.invest-reasons { text-align:left; max-width:800px; margin:0 auto; }
.invest-reasons h3 { font-size:1.4rem; margin-bottom:24px; text-align:center; }
.reasons-list { padding-left:24px; }
.reasons-list li {
  margin-bottom:16px; font-size:0.95rem; color:rgba(255,255,255,0.8); line-height:1.6;
}
.reasons-list strong { color: var(--gold); }

/* ===================================================
   DEVELOPER
   =================================================== */
.mt-developer { background: var(--white); }
.dev-grid { display:grid; grid-template-columns: 1fr 1fr; gap:60px; align-items:center; }
.dev-image .arch-frame { height: 480px; }
.dev-builder-logo { height:40px; width:auto; margin: 16px 0 24px; }
.dev-text p { color:var(--text-light); margin-bottom:16px; }
.dev-stats {
  display:flex; gap:32px; margin-top:32px;
  padding-top:24px; border-top: 1px solid var(--cream-dark);
}
.ds-num { display:block; font-family:var(--font-heading); font-size:1.5rem; font-weight:600; color:var(--gold); }
.ds-label { font-size:0.72rem; text-transform:uppercase; letter-spacing:0.1em; color:var(--text-light); }

/* ===================================================
   FLOOR PLANS
   =================================================== */
.mt-floorplans { background: var(--cream); text-align:center; overflow:hidden; }

/* Category filter pills */
.fp-filters {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 24px; flex-wrap: wrap;
}
.fp-filter {
  padding: 8px 20px; border-radius: 50px;
  font-size: 0.78rem; font-weight: 600;
  border: 1.5px solid var(--sage-light);
  color: var(--sage); background: var(--white);
  cursor: pointer; transition: all 0.25s;
  font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; gap: 6px;
}
.fp-filter:hover { border-color: var(--sage); }
.fp-filter.active { background: var(--sage); color: var(--white); border-color: var(--sage); }
.fp-filter-count {
  font-size: 0.65rem;
  background: rgba(255,255,255,0.2);
  padding: 1px 6px; border-radius: 10px;
}
.fp-filter.active .fp-filter-count { background: rgba(255,255,255,0.25); }

/* Slider wrapper with arrows */
.fp-slider-wrap { position: relative; }
.fp-arrow {
  position: absolute; top: 50%; transform: translateY(-80%);
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 1px solid rgba(107,128,101,0.15);
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  font-size: 1rem; cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; color: var(--sage-dark);
}
.fp-arrow:hover { background: var(--sage); color: var(--white); }
.fp-arrow-left { left: 4px; }
.fp-arrow-right { right: 4px; }

/* Tab Navigation */
.fp-tabs { display:flex; justify-content:center; gap:16px; margin-bottom:40px; }
.fp-tab {
  display:flex; flex-direction:column; align-items:center; gap:4px;
  padding: 20px 40px; border-radius:16px;
  font-weight:600; letter-spacing:0.03em;
  border: 2px solid var(--sage-light);
  color: var(--sage); background: var(--white);
  cursor:pointer; transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.fp-tab:hover { border-color: var(--sage); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08); }
.fp-tab.active { background: var(--sage); color: var(--white); border-color: var(--sage); box-shadow: 0 6px 24px rgba(107,128,101,0.3); }
.fp-tab-icon { font-size:1.6rem; line-height:1; }
.fp-tab-label { font-size:1rem; font-family:'Cormorant Garamond',serif; }
.fp-tab-sub { font-size:0.7rem; opacity:0.7; font-family:'DM Sans',sans-serif; letter-spacing:0.05em; }
.fp-tab.active .fp-tab-sub { opacity:0.85; }

/* Panels */
.fp-panel { display:none; }
.fp-panel.active { display:block; animation: fadeUp 0.4s ease; }

/* Home Type Cards — Union Glen style */
.fp-types {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 16px;
  padding: 8px 40px 20px;
  margin-bottom: 48px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.fp-types::-webkit-scrollbar { display: none; }
.fpt-card {
  flex: 0 0 280px;
  max-width: 280px;
  scroll-snap-align: start;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(107,128,101,0.1);
  box-shadow: 0 3px 14px rgba(0,0,0,0.05);
  transition: all 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}
.fpt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(107,128,101,0.15);
}
/* Card image with exterior/plan toggle */
.fpt-img-wrap {
  position: relative;
  overflow: hidden;
  background: var(--white);
  cursor: zoom-in;
}
.fpt-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.35s ease, transform 0.5s var(--ease);
}
.fpt-img-plan {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  pointer-events: none;
}
.fpt-img-plan.fpt-img-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
}
.fpt-img-exterior:not(.fpt-img-active) {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
  pointer-events: none;
}
.fpt-card:hover .fpt-img-active { transform: scale(1.03); }

/* Badge */
.fpt-badge {
  position: absolute; top: 8px; left: 8px;
  background: var(--sage); color: var(--white);
  padding: 4px 10px; border-radius: 50px;
  font-size: 0.65rem; font-weight: 600; letter-spacing: 0.05em;
  font-family: 'DM Sans', sans-serif;
  z-index: 3;
}

/* Toggle pills inside card */
.fpt-toggle {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  display: flex;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(10px);
  border-radius: 50px; padding: 3px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 3;
}
.fpt-tog-btn {
  padding: 5px 12px; border: none; border-radius: 50px;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.03em;
  cursor: pointer; transition: all 0.25s;
  background: transparent; color: var(--text-light);
  font-family: 'DM Sans', sans-serif;
}
.fpt-tog-btn.active {
  background: var(--sage); color: var(--white);
  box-shadow: 0 2px 6px rgba(107,128,101,0.3);
}
.fpt-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.fpt-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 2px;
}
.fpt-model {
  font-size: 0.7rem;
  color: var(--sage);
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.fpt-specs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cream);
}
.fpt-spec { text-align: center; flex: 1; }
.fpt-spec-val {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--sage-dark);
}
.fpt-spec-label {
  display: block;
  font-size: 0.6rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 1px;
}
.fpt-features {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  flex: 1;
}
.fpt-features li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
  font-size: 0.72rem;
  color: var(--text-light);
  line-height: 1.45;
}
.fpt-features li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sage-light);
}
.fpt-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
.fpt-type {
  font-size: 0.68rem; font-weight: 600;
  color: var(--sage); background: rgba(107,128,101,0.1);
  padding: 3px 10px; border-radius: 50px;
  letter-spacing: 0.04em; font-family: 'DM Sans', sans-serif;
}
.fpt-footer {
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 14px; border-top: 1px solid var(--cream);
  margin-top: auto;
}
.fpt-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gold-dark);
}
.fpt-btn {
  width: 100%;
  background: var(--sage) !important;
  color: var(--white) !important;
  padding: 14px !important;
  border-radius: 50px !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}
.fpt-btn:hover { background: var(--sage-dark) !important; }

/* Availability Banner */
.fp-availability {
  background: linear-gradient(135deg, var(--cream) 0%, var(--white) 100%);
  border-radius: 20px;
  padding: 48px;
  border: 1px solid rgba(107,128,101,0.1);
  text-align: center;
  margin-bottom: 24px;
}
.fp-availability h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: var(--sage-dark);
  margin-bottom: 12px;
}
.fp-availability p {
  color: var(--text-light);
  max-width: 500px;
  margin: 0 auto 24px;
  font-size: 0.95rem;
}
.fp-avail-checks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
}
.fp-avail-checks span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text);
}
.fp-avail-checks svg { color: var(--sage); flex-shrink: 0; }

/* Responsive Home Type Cards */
@media(max-width:1024px) {
  .fpt-card { flex: 0 0 260px; max-width: 260px; }
}
@media(max-width:767px) {
  .fp-types {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 0 20px 16px;
    scrollbar-width: none;
    scroll-behavior: smooth;
  }
  .fp-types::-webkit-scrollbar { display: none; }
  .fpt-card {
    flex: 0 0 80vw;
    max-width: 80vw;
    scroll-snap-align: center;
  }
  .fpt-info { padding: 14px; }
  .fpt-name { font-size: 1.1rem; }
  .fpt-features { display: none; }
  .fpt-btn { padding: 11px 16px !important; font-size: 0.76rem !important; }
  .fp-filters { gap: 6px; }
  .fp-filter { padding: 7px 14px; font-size: 0.72rem; }
  .fp-arrow { display: none; }
  .fp-availability { padding: 32px 20px; }
  .fp-availability h3 { font-size: 1.4rem; }
  .fp-avail-checks { gap: 10px; }
  .fp-avail-checks span { font-size: 0.78rem; }
}

/* OLD grid styles — kept for backward compat but hidden */
.fp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
.fp-grid-seabrook { grid-template-columns: repeat(3, 1fr); }

.fp-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  border: 1px solid rgba(107,128,101,0.08);
}
.fp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(107,128,101,0.15);
  border-color: rgba(107,128,101,0.2);
}

/* Card Viewer — exterior/plan toggle */
.fp-card-viewer {
  position: relative;
  overflow: hidden;
  background: #f8f7f5;
  aspect-ratio: 4/3;
}
.fp-card-seabrook .fp-card-viewer { aspect-ratio: 3/4; }
.fp-viewer-img {
  position: absolute; inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.fp-viewer-img.fp-viewer-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}
.fp-viewer-img img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.4s ease;
}
.fp-card:hover .fp-viewer-img img { transform: scale(1.03); }

/* Viewer Toggle Buttons */
.fp-viewer-toggle {
  position: absolute; bottom: 12px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-radius: 50px;
  padding: 3px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  z-index: 5;
}
.fp-vt-btn {
  padding: 6px 16px;
  border: none; border-radius: 50px;
  font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.25s ease;
  background: transparent;
  color: var(--text-light);
  font-family: 'DM Sans', sans-serif;
}
.fp-vt-btn.active {
  background: var(--sage);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(107,128,101,0.3);
}

/* Badge */
.fp-card-badge {
  position: absolute; top:12px; left:12px;
  background: var(--sage); color: var(--white);
  padding: 6px 14px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-family: 'DM Sans', sans-serif;
}
.fp-badge-seabrook { background: var(--brown); }

/* Zoom Button */
.fp-zoom-btn {
  position: absolute; bottom:12px; right:12px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(8px);
  border: none; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  color: var(--sage-dark);
}
.fp-card:hover .fp-zoom-btn { opacity: 1; }
.fp-zoom-btn:hover { background: var(--sage); color: var(--white); }

/* Card Info */
.fp-card-info { padding: 20px 24px 24px; }
.fp-card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 600;
  color: var(--charcoal); margin-bottom: 10px;
}
.fp-card-specs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
}
.fp-card-specs span {
  background: var(--cream);
  padding: 4px 12px; border-radius: 50px;
  font-size: 0.72rem; font-weight: 500;
  color: var(--sage-dark); letter-spacing: 0.03em;
  font-family: 'DM Sans', sans-serif;
}
.fp-card-details p {
  font-size: 0.82rem; line-height: 1.6;
  color: var(--text-light); margin-bottom: 12px;
}
.fp-card-actions { margin-bottom: 12px; }
.fp-view-plan {
  background: none; border: 1.5px solid var(--sage);
  color: var(--sage); padding: 8px 20px;
  border-radius: 50px; font-size: 0.78rem;
  font-weight: 600; cursor: pointer;
  transition: all 0.3s;
  font-family: 'DM Sans', sans-serif;
}
.fp-view-plan:hover { background: var(--sage); color: var(--white); }
.fp-card-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 10px;
}
.fp-card-type {
  font-size: 0.7rem; font-weight: 600;
  color: var(--sage); background: rgba(107,128,101,0.1);
  padding: 3px 10px; border-radius: 50px;
  letter-spacing: 0.04em;
  font-family: 'DM Sans', sans-serif;
}
.fp-card-desc {
  font-size: 0.8rem; line-height: 1.55;
  color: var(--text-light); margin-bottom: 14px;
}
.fp-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--cream);
}
.fp-card-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem; font-weight: 600;
  color: var(--gold-dark);
}
.fp-full-btn {
  background: none; border: 1.5px solid var(--sage-light);
  color: var(--sage); padding: 6px 16px;
  border-radius: 50px; font-size: 0.72rem;
  font-weight: 600; cursor: pointer;
  transition: all 0.3s;
  font-family: 'DM Sans', sans-serif;
}
.fp-full-btn:hover { background: var(--sage); color: var(--white); }

/* Swipe hint, counter & progress bar */
.fp-swipe-hint {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 16px 20px 4px;
  font-family: 'DM Sans', sans-serif;
}
.fp-counter {
  background: var(--sage);
  color: var(--white);
  padding: 5px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.fp-swipe-text {
  font-size: 0.78rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}
.fp-swipe-text::after {
  content: '→';
  font-size: 1rem;
  animation: swipeArrow 1.5s ease-in-out infinite;
}
@keyframes swipeArrow {
  0%,100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(6px); opacity: 1; }
}

/* Progress bar */
.fp-progress-wrap {
  display: none;
  padding: 8px 20px 0;
}
.fp-progress-bar {
  width: 100%;
  height: 3px;
  background: var(--cream-dark);
  border-radius: 3px;
  overflow: hidden;
}
.fp-progress-fill {
  height: 100%;
  background: var(--sage);
  border-radius: 3px;
  transition: width 0.2s ease;
  width: 9%; /* 1/11 default */
}

/* Locked Download CTA */
.fp-download-cta { margin: 48px 0 24px; display:flex; justify-content:center; }
.fp-lock-card {
  background: linear-gradient(135deg, var(--sage-dark) 0%, #3A4A34 100%);
  border-radius: 20px;
  padding: 48px 56px;
  max-width: 560px;
  text-align: center;
  color: var(--white);
  box-shadow: 0 16px 48px rgba(74,90,68,0.25);
  position: relative;
  overflow: hidden;
}
.fp-lock-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(196,162,101,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.fp-lock-icon {
  width: 64px; height: 64px;
  background: rgba(196,162,101,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--gold-light);
}
.fp-lock-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 600;
  margin-bottom: 12px;
}
.fp-lock-desc {
  font-size: 0.9rem; line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
}
.fp-download-lock {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 14px 36px !important;
  font-size: 0.85rem !important;
}
.fp-download-lock:hover { background: var(--gold-light) !important; }
.fp-download-lock svg { flex-shrink: 0; }

/* CTA & Disclaimer */
.fp-cta { margin: 48px 0 24px; }
.fp-cta p { color:var(--text-light); margin-bottom:16px; font-size:0.95rem; }
.fp-disclaimer { font-size:0.72rem; color:var(--text-light); margin-top:16px; max-width:700px; margin-left:auto; margin-right:auto; }

/* Lightbox */
.fp-lightbox {
  display: none; position: fixed; inset: 0; z-index: 99999;
  align-items: center; justify-content: center;
}
.fp-lightbox.active { display: flex; }
.fp-lightbox-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(12px);
}
.fp-lightbox-content {
  position: relative; max-width: 90vw; max-height: 90vh;
  animation: fadeUp 0.3s ease;
}
.fp-lightbox-content img {
  max-width: 90vw; max-height: 85vh;
  object-fit: contain; border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.fp-lightbox-close {
  position: absolute; top: -16px; right: -16px;
  width: 44px; height: 44px;
  background: var(--white); border: none; border-radius: 50%;
  font-size: 1.5rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  color: var(--charcoal); transition: all 0.3s;
  z-index: 10;
}
.fp-lightbox-close:hover { background: var(--sage); color: var(--white); }

@keyframes fadeUp {
  from { opacity:0; transform:translateY(16px); }
  to { opacity:1; transform:translateY(0); }
}

/* Responsive Floor Plans */
@media(max-width:1024px) {
  .fp-grid { grid-template-columns: repeat(2, 1fr); }
  .fp-grid-seabrook { grid-template-columns: repeat(2, 1fr); }
}
@media(max-width:767px) {
  .fp-grid, .fp-grid-seabrook { grid-template-columns: 1fr; gap: 16px; }
  .fp-tabs { flex-direction: column; gap: 12px; align-items: stretch; }
  .fp-tab { flex-direction: row; padding: 16px 24px; gap: 12px; }
  .fp-card-image { aspect-ratio: 16/10; }
  .fp-card-image-tall { aspect-ratio: 3/4; }
  .fp-zoom-btn { opacity: 1; }
}

/* ===================================================
   FAQ
   =================================================== */
.mt-faq { background: var(--white); text-align:center; }
.faq-list { max-width:800px; margin:0 auto; text-align:left; }
.faq-item { border-bottom: 1px solid var(--cream-dark); }
.faq-q {
  width:100%; display:flex; justify-content:space-between; align-items:center;
  padding: 20px 0; font-size:1rem; font-weight:500; color:var(--charcoal);
  text-align:left; cursor:pointer;
  transition: color 0.3s;
}
.faq-q:hover { color: var(--sage); }
.faq-q::after {
  content:'+'; font-size:1.4rem; font-weight:300; color:var(--gold);
  transition: transform 0.3s;
}
.faq-item.active .faq-q::after { content:'\2212'; }
.faq-a {
  max-height:0; overflow:hidden; transition: max-height 0.4s var(--ease), padding 0.4s;
}
.faq-item.active .faq-a { max-height: 300px; padding-bottom: 20px; }
.faq-a p { font-size:0.9rem; color:var(--text-light); line-height:1.7; }

/* ===================================================
   CONTACT
   =================================================== */
.mt-contact { background: var(--cream); }
.contact-grid { display:grid; grid-template-columns: 1fr 1.2fr; gap:48px; align-items:start; }
.contact-info h2 { margin-bottom:16px; }
.contact-info > p { color:var(--text-light); margin-bottom:32px; }
.contact-details { display:flex; flex-direction:column; gap:16px; }
.cd-item {
  display:flex; align-items:center; gap:12px;
  font-size:0.95rem; color:var(--text);
  transition: color 0.3s;
}
a.cd-item:hover { color: var(--sage); }
.cd-item svg { color: var(--gold); flex-shrink:0; }
.contact-calendly { border-radius:12px; overflow:hidden; box-shadow: 0 8px 30px rgba(0,0,0,0.08); background:var(--white); }

/* ===================================================
   FOOTER
   =================================================== */
.mt-footer { background: var(--sage-dark); color: rgba(255,255,255,0.7); }
.footer-inner {
  max-width:1200px; margin:0 auto; padding:60px 24px 40px;
  display:grid; grid-template-columns: 1.2fr 1fr 1fr; gap:48px;
}
.footer-logo { height:48px; width:auto; margin-bottom:16px; }
.footer-tagline { font-size:0.85rem; line-height:1.6; }
.footer-col h4 {
  font-family:var(--font-nav); font-size:0.75rem; font-weight:600;
  text-transform:uppercase; letter-spacing:0.15em; color:var(--gold);
  margin-bottom:20px;
}
.footer-nav ul { list-style:none; }
.footer-nav li { margin-bottom:10px; }
.footer-nav a { font-size:0.85rem; transition: color 0.3s; }
.footer-nav a:hover { color: var(--white); }
.footer-phone { display:block; font-size:1rem; color:var(--white); font-weight:500; margin-bottom:12px; }
.footer-address { font-size:0.85rem; margin-bottom:12px; line-height:1.5; }
.footer-email { font-size:0.85rem; color:var(--gold); }
.footer-bottom {
  max-width:1200px; margin:0 auto; padding:20px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
}
.footer-bottom p { font-size:0.7rem; color:rgba(255,255,255,0.4); max-width:600px; }
.footer-builder { display:flex; align-items:center; gap:12px; }
.footer-builder span { font-size:0.72rem; color:rgba(255,255,255,0.4); }
.footer-builder-logo { height:24px; width:auto; opacity:0.6; }

/* ===================================================
   WHATSAPP FLOAT
   =================================================== */
.whatsapp-float {
  position:fixed; bottom:24px; right:20px; z-index:40;
  width:56px; height:56px; border-radius:50%;
  background: #25D366;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.3s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.1); }

/* ===================================================
   STICKY MOBILE CTA
   =================================================== */
.mobile-cta-bar {
  display:none; position:fixed; bottom:0; left:0; right:0; z-index:45;
  background: var(--sage-dark);
  padding: 0; padding-bottom: env(safe-area-inset-bottom);
}
.mcta-call, .mcta-register {
  width:50%; padding:16px; text-align:center;
  font-size:0.85rem; font-weight:600; letter-spacing:0.05em;
  text-transform:uppercase; display:inline-block;
}
.mcta-call { background: var(--sage); color:var(--white); }
.mcta-register { background: var(--gold); color:var(--white); }

/* Desktop float CTA */
.desktop-float-cta {
  position:fixed; bottom:32px; left:24px; z-index:40;
  padding: 14px 28px; border-radius:50px;
  background: var(--sage); color:var(--white);
  font-size:0.82rem; font-weight:600; letter-spacing:0.05em;
  box-shadow: 0 4px 20px rgba(107,128,101,0.3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.desktop-float-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(107,128,101,0.4); }

/* ===================================================
   MODAL
   =================================================== */
.mt-modal {
  position:fixed; inset:0; z-index:60;
  display:none; align-items:center; justify-content:center;
  transition: opacity 0.3s;
}
.mt-modal.modal-hidden { opacity:0; }
.modal-overlay { position:absolute; inset:0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.modal-content {
  position:relative; z-index:1;
  background: var(--white); color: var(--charcoal);
  border-radius: 24px; padding: 40px 36px;
  max-width: 420px; width: 92%;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  text-align:center;
}
.modal-content h2 {
  color: var(--charcoal);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  margin-bottom: 8px;
}
.modal-subtitle {
  color: var(--text-light) !important;
  font-size: 0.85rem !important;
  line-height: 1.6 !important;
  margin-bottom: 24px !important;
}
.modal-close {
  position:absolute; top:14px; right:18px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cream); border-radius: 50%;
  color: var(--text-light); font-size: 1.3rem;
  transition: all 0.3s; border: none; cursor: pointer;
}
.modal-close:hover { background: var(--sage); color: var(--white); }
.modal-logo {
  height: 48px; width: auto;
  margin: 0 auto 16px;
  filter: none !important;
}
.form-label {
  display: block;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--sage-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  font-family: 'DM Sans', sans-serif;
}
.modal-content h2 { color:var(--white); font-size:1.6rem; margin-bottom:8px; }
.modal-content p { color:rgba(255,255,255,0.7); font-size:0.9rem; margin-bottom:24px; }
.form-group { margin-bottom:12px; }
.form-group input {
  width:100%; padding: 14px 18px;
  background: var(--cream); border: 1px solid rgba(107,128,101,0.2);
  border-radius: 10px; color: var(--charcoal); font-size:0.9rem;
  font-family: var(--font-body);
  transition: border-color 0.3s;
}
.form-phone-group {
  display:flex; align-items:stretch; gap:8px;
}
.phone-prefix {
  padding: 14px 14px;
  background: var(--cream); border: 1px solid rgba(107,128,101,0.2);
  border-radius: 10px; color: var(--text-light);
  font-size: 0.9rem; font-family: var(--font-body); font-weight: 500;
  display:flex; align-items:center; justify-content:center;
  white-space: nowrap; user-select: none;
}
.form-phone-group input { flex:1; }
.form-group input::placeholder { color: var(--text-light); }
.form-group input:focus { outline:none; border-color: var(--sage); }
.form-submit {
  width:100%; padding: 16px;
  background: var(--sage); color:var(--white);
  border:none; border-radius: 50px;
  font-size:0.9rem; font-weight:600; letter-spacing:0.04em;
  cursor:pointer; transition: all 0.3s;
  margin-top:12px;
  box-shadow: 0 4px 16px rgba(107,128,101,0.3);
}
.form-submit:hover { background: var(--sage-dark); transform: translateY(-1px); }
.form-disclaimer { font-size:0.7rem !important; color: var(--text-light) !important; margin-top:16px !important; margin-bottom:0 !important; }
.hidden { display:none !important; }
.success-icon {
  width:64px; height:64px; border-radius:50%;
  background: var(--sage); color:var(--white);
  display:flex; align-items:center; justify-content:center;
  font-size:2rem; margin: 0 auto 20px;
}
.modal-success-state h2 { color: var(--charcoal) !important; }
.modal-success-state p { color: var(--text) !important; }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .about-grid, .dev-grid, .location-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .invest-stats { grid-template-columns: repeat(2, 1fr); }
  .highlights-grid { grid-template-columns: repeat(2, 1fr); }
  .arch-trio-clipped { max-width: 380px; }
  .dev-image .arch-frame { height:360px; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* Mobile nav — full screen overlay */
  .nav-links {
    position:fixed; top:0; left:0; right:0; bottom:0;
    background: rgba(42,52,38,0.98); backdrop-filter: blur(20px);
    display: flex !important;
    flex-direction:column; justify-content:center; align-items:center;
    gap:20px; opacity:0; pointer-events:none; transition: opacity 0.3s;
    z-index: 50;
    padding: 60px 24px;
  }
  .nav-links.open { opacity:1; pointer-events:all; }
  .nav-links li { list-style: none; text-align: center; width: 100%; }
  .nav-links a {
    font-size: 1.3rem !important;
    color: #fff !important;
    font-family: 'Cormorant Garamond', serif !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    padding: 10px 0 !important;
    display: block !important;
    text-decoration: none !important;
    opacity: 0.85;
    transition: opacity 0.3s !important;
  }
  .nav-links a:hover, .nav-links a:active { opacity: 1; }
  .nav-links .nav-cta {
    margin-top: 16px !important;
    background: var(--gold) !important;
    color: #fff !important;
    padding: 14px 40px !important;
    border-radius: 50px !important;
    font-size: 0.9rem !important;
    font-family: 'DM Sans', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.08em !important;
    display: inline-block !important;
  }
  .mobile-menu-btn { display:flex; z-index:51; }

  /* Hide hero logo and VIP button on mobile */
  .hero-logo { display: none !important; }
  .hero-desktop-only { display: none !important; }

  /* Hero — native app feel, full viewport, no overlap */
  .mt-hero {
    height: 100svh; height: 100vh;
    min-height: 100svh; min-height: 100vh;
    position: relative;
    overflow: hidden;
  }
  .hero-video-wrap {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    overflow: hidden;
  }
  /* Mobile handled by max-aspect-ratio rule above */
  .hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.05) 30%, rgba(0,0,0,0.55) 100%);
  }
  .hero-content {
    position: relative;
    z-index: 3;
    padding: 0 24px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    height: calc(100svh - 60px); height: calc(100vh - 60px);
    text-align: center;
    pointer-events: auto;
  }
  h1 { font-size: 2.2rem !important; margin-bottom: 16px !important; }
  .hero-intro {
    font-size: 0.88rem; line-height: 1.75; margin-bottom: 20px;
    max-width: 340px;
    color: #fff !important;
    text-shadow: 0 2px 16px rgba(0,0,0,0.7), 0 0 40px rgba(0,0,0,0.4) !important;
    font-weight: 400;
  }
  .hero-pills { margin-bottom: 16px; gap: 8px; flex-wrap: wrap; justify-content: center; }
  .pill { font-size: 0.68rem; padding: 6px 14px; }
  .hero-ctas {
    flex-direction: column; align-items: center; gap: 10px;
    width: 100%;
  }
  .hero-ctas .btn-primary, .hero-ctas .btn-ghost, .hero-ctas a.btn-ghost {
    width: 100%; max-width: 280px; text-align: center;
    padding: 14px 24px; font-size: 0.8rem;
    display: block;
  }
  .hero-scroll-indicator { bottom: 90px; }

  /* Sections */
  .section-inner { padding: 48px 20px; }
  .section-title { font-size: 1.6rem !important; }

  /* About */
  .about-grid { gap: 24px; }
  .arch-trio-clipped { max-width: 300px; }
  .about-features { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .af-num { font-size: 1.3rem; }

  /* Highlights */
  .highlights-grid { grid-template-columns: 1fr; }
  .hl-arch { height: 180px; border-radius: 0 0 60px 60px; }

  /* Gallery */
  .gallery-slide { width: 85vw; height: 240px; }
  .gallery-track { padding: 8px 16px 16px; gap: 12px; }
  .gallery-arrow { display: none; }

  /* Investment */
  .invest-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .is-card { padding: 20px 14px; }
  .is-num { font-size: 1.5rem; }

  /* Floor Plans — horizontal swipe carousel on mobile */
  .fp-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    /* Left padding shows card edge, right padding peeks next card */
    padding: 0 40px 12px 20px;
    scrollbar-width: none;
    scroll-behavior: smooth;
  }
  .fp-grid::-webkit-scrollbar { display: none; }
  .fp-card {
    flex: 0 0 78vw;
    max-width: 78vw;
    scroll-snap-align: start;
    /* Slight scale-down for non-active, shows peek of next */
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .fp-card-viewer { aspect-ratio: 4/3; }
  .fp-zoom-btn { opacity: 1; }
  .fp-viewer-toggle { bottom: 8px; }
  .fp-vt-btn { padding: 5px 12px; font-size: 0.65rem; }
  .fp-card-info { padding: 16px 18px 20px; }
  .fp-card-name { font-size: 1.2rem; }
  .fp-card-desc { font-size: 0.78rem; display: none; }
  .fp-card-specs span { font-size: 0.68rem; }

  /* Swipe hint + progress bar */
  .fp-swipe-hint { display: flex !important; }
  .fp-progress-wrap { display: block !important; }

  /* Location */
  .location-map { min-height: 300px; }
  .location-map iframe { min-height: 300px; }
  .location-times { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Sticky elements */
  .whatsapp-float { bottom: 80px; right: 16px; width: 50px; height: 50px; }
  .mobile-cta-bar { display: flex; }
  .desktop-float-cta { display: none; }
  body { padding-bottom: 56px; }

  /* Modal */
  .modal-content { padding: 28px 20px 32px; border-radius: 20px; }
  .modal-logo { height: 40px; margin-bottom: 12px; }
  .modal-content h2 { font-size: 1.4rem; }
  .modal-subtitle { font-size: 0.8rem !important; margin-bottom: 20px !important; }

  /* Facts */
  .facts-section h3 { font-size: 1.4rem; }
}

@media (max-width: 390px) {
  h1 { font-size: 1.8rem !important; }
  .hero-intro { font-size: 0.82rem; }
  .section-title { font-size: 1.4rem !important; }
  .fp-card-name { font-size: 1.2rem; }
}
