/* ============================================
   Mi Cuarto — Landing Page Styles
   ============================================ */

/* --- Font Faces --- */
@font-face {
  font-family: 'Font Awesome 6 Free';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('libs/fontawesome/webfonts/fa-solid-900.woff2') format('woff2');
}

@font-face {
  font-family: 'Font Awesome 6 Brands';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('libs/fontawesome/webfonts/fa-brands-400.woff2') format('woff2');
}

/* --- FontAwesome Icon Helper --- */
.fa-solid {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-style: normal;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.fa-brands {
  font-family: 'Font Awesome 6 Brands';
  font-weight: 400;
  font-style: normal;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

.fa-key::before { content: "\f084"; }
.fa-bolt::before { content: "\f0e7"; }
.fa-wifi::before { content: "\f1eb"; }
.fa-bed::before { content: "\f236"; }
.fa-broom::before { content: "\f51a"; }
.fa-shield-halved::before { content: "\f3ed"; }
.fa-location-dot::before { content: "\f3c5"; }
.fa-map-pin::before { content: "\f276"; }
.fa-hospital::before { content: "\f0f8"; }
.fa-users::before { content: "\f0c0"; }
.fa-bus::before { content: "\f207"; }
.fa-bath::before { content: "\f2cd"; }
.fa-circle::before { content: "\f111"; }
.fa-plus::before { content: "\2b"; }
.fa-whatsapp::before { content: "\f232"; }
.fa-envelope::before { content: "\f0e0"; }
.fa-house::before { content: "\f015"; }
.fa-instagram::before { content: "\f16d"; }
.fa-facebook::before { content: "\f09a"; }
.fa-tiktok::before { content: "\e07b"; }

/* --- Custom Properties --- */
:root {
  --color-primary: #1D4ED8;
  --color-accent: #F97316;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-text: #1F2937;
  --color-text-muted: #6B7280;
  --color-border: #E5E7EB;
  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --nav-height: 80px;
  --radius: 16px;
  --radius-sm: 12px;
  --ease-out: cubic-bezier(0.19, 1, 0.22, 1);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

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

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

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

/* --- Base Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
}

/* --- Button Styles --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background-color: #1a44c2;
}

.btn-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background-color: var(--color-accent);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.3s ease;
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background-color: #e5680f;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background-color: var(--color-primary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.3s ease;
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background-color: #1a44c2;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  background-color: transparent;
  color: var(--color-text);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 100px;
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, color 0.3s ease;
}

.btn-outline:hover {
  transform: translateY(-2px);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  transition: transform 0.4s var(--ease-out);
}

.navbar--hidden {
  transform: translateY(-100%);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.5rem;
}

.brand img {
  height: 50px;
  width: auto;
}

.logo-mi {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.35em;
  margin-left: 4px;
  margin-right: -2px;
}

.logo-cuarto {
  font-weight: 800;
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a:hover {
  color: var(--color-primary);
}

.hamburger {
  display: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: all 0.3s;
}

/* --- Mobile Menu --- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
}

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

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  font-size: 1.5rem;
  font-weight: 700;
}

.mobile-menu-links a {
  transition: color 0.3s;
}

.mobile-menu-links a:hover {
  color: var(--color-primary);
}

/* Hamburger active state (X) */
.nav-open .hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}

.nav-open .hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Scroll-Triggered Animation Base Styles --- */
[data-reveal="text"] {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity 0.8s ease, transform 0.8s var(--ease-out);
}

[data-reveal="text"].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="clip"] {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1.2s var(--ease-out);
}

[data-reveal="clip"].revealed {
  clip-path: inset(0 0 0 0);
}

/* --- Custom Cursor --- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #FFFFFF;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}

.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  mix-blend-mode: difference;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out);
}

.cursor-hover .cursor-dot {
  width: 6px;
  height: 6px;
}

.cursor-hover .cursor-outline {
  width: 60px;
  height: 60px;
}

@media (pointer: coarse) {
  .cursor-dot,
  .cursor-outline {
    display: none;
  }
}

/* --- Preloader --- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.preloader .preloader-text {
  overflow: hidden;
}

.preloader .preloader-text span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.8s var(--ease-out);
}

.preloader.loaded .preloader-text span {
  transform: translateY(0);
}

.preloader.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  background-color: var(--color-bg-alt);
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--color-primary);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero-title {
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero-title .text-primary {
  color: var(--color-primary);
}

.reveal-line {
  display: block;
  overflow: hidden;
}

.reveal-line span {
  display: inline-block;
  transform: translateY(100%);
  transition: transform 0.8s var(--ease-out);
}

.page-ready .reveal-line span {
  transform: translateY(0);
}

.page-ready .reveal-line:nth-child(2) span {
  transition-delay: 0.1s;
}

.page-ready .reveal-line:nth-child(3) span {
  transition-delay: 0.2s;
}

.hero-subtitle {
  font-size: 1.125rem;
  max-width: 90%;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  height: 80vh;
  object-fit: cover;
  will-change: transform;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal="text"],
  [data-reveal="clip"] {
    opacity: 1;
    transform: none;
    clip-path: none;
    transition: none;
  }
}

/* --- Marquee --- */
.marquee {
  background-color: var(--color-primary);
  color: #FFFFFF;
  padding: 20px 0;
  overflow: hidden;
  white-space: nowrap;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-scroll 25s linear infinite;
}

.marquee-content {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.marquee-content i {
  font-size: 0.4rem;
  color: var(--color-accent);
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- Benefits --- */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-header p {
  margin-top: 16px;
  font-size: 1.05rem;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.benefit-card {
  padding: 40px 32px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.benefit-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.benefit-card:hover .benefit-icon {
  background: var(--color-primary);
  color: #FFFFFF;
  transform: scale(1.1) rotate(-5deg);
}

.benefit-card h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.benefit-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Houses --- */
.bg-alt {
  background-color: var(--color-bg-alt);
}

.houses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}

.house-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.house-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.house-image {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.house-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.house-card:hover .house-image img {
  transform: scale(1.05);
}

.house-price {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--color-bg);
  color: var(--color-text);
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 0.85rem;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.house-body {
  padding: 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.house-body h3 {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.house-desc {
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.house-features {
  margin-bottom: 24px;
  flex-grow: 1;
}

.house-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.9rem;
}

.house-features i {
  color: var(--color-accent);
  width: 18px;
  text-align: center;
}

/* --- Community / Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 200px 200px 250px;
  gap: 12px;
  margin-top: 48px;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* Layout positions - no gaps */
.gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
.gallery-item:nth-child(2) { grid-column: 3; grid-row: 1; }
.gallery-item:nth-child(3) { grid-column: 4; grid-row: 1 / 3; }
.gallery-item:nth-child(4) { grid-column: 1; grid-row: 2; }
.gallery-item:nth-child(5) { grid-column: 2 / 4; grid-row: 2; }
.gallery-item:nth-child(6) { grid-column: 1 / 3; grid-row: 3; }
.gallery-item:nth-child(7) { grid-column: 3 / 5; grid-row: 3; }

/* Lightbox overlay on hover */
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(29, 78, 216, 0.15);
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover::after {
  opacity: 1;
}

.community-caption {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.4;
  margin-top: 24px;
  text-align: right;
  margin-left: auto;
}

/* --- Lightbox --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 2.5rem;
  color: #FFFFFF;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.3s;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: box-shadow 0.3s, border-color 0.3s;
}

.faq-item.open {
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.3s;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-icon {
  color: var(--color-accent);
  font-size: 1.1rem;
  transition: transform 0.4s var(--ease-out);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  padding-bottom: 28px;
  padding-top: 8px;
}

.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Footer --- */
footer {
  background: var(--color-bg-alt);
  padding: 80px 0 24px;
  border-top: 1px solid var(--color-border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 2rem;
  margin-bottom: 4px;
}

.footer-logo img {
  height: 75px;
  width: auto;
}

.footer-tagline {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.footer-brand > p:last-child {
  max-width: 400px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.footer-contact h4 {
  font-size: 1.25rem;
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--color-accent);
}

.footer-links .fa-whatsapp {
  color: #25D366;
}

.footer-motto {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  margin-top: 8px;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-bottom span {
  color: var(--color-text-muted);
}

.footer-social {
  display: flex;
  gap: 24px;
  justify-content: center;
  font-size: 1.25rem;
}

.footer-social a {
  font-weight: 600;
  color: var(--color-text);
  transition: color 0.3s;
  font-size: 1.25rem;
}

.footer-social a:hover {
  color: var(--color-accent);
}

.footer-legal {
  text-align: right;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.3s;
}

.footer-legal:hover {
  color: var(--color-primary);
}

/* --- Preloader Content --- */
.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.preloader-logo {
  height: 140px;
  width: auto;
}

.preloader-text {
  font-size: 2.5rem;
  font-weight: 700;
  overflow: hidden;
  display: flex;
  align-items: baseline;
}

.preloader-text .logo-mi {
  font-size: 1.1em;
  margin-right: 0.1em;
}

.preloader-tagline {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-primary);
  text-transform: uppercase;
  overflow: hidden;
}

.preloader-tagline {
  transform: translateY(100%);
  transition: transform 0.8s var(--ease-out) 0.2s;
}

.preloader.loaded .preloader-tagline {
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1023px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-subtitle {
    text-align: center;
    max-width: 100%;
  }

  .hero-image img {
    height: 50vh;
  }

  .community-photo--large {
    grid-column: 1 / -1;
    height: 45vh;
  }

  .community-photo--small {
    grid-column: 1 / -1;
    height: 35vh;
    margin-top: 0;
  }

  .community-caption {
    grid-column: 1 / -1;
    text-align: center;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-contact {
    text-align: center;
  }

  .footer-contact .footer-links {
    align-items: center;
  }

  .footer-logo {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .btn-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4, 150px);
  }

  .gallery-item:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
  .gallery-item:nth-child(2) { grid-column: 1; grid-row: 2; }
  .gallery-item:nth-child(3) { grid-column: 2; grid-row: 2; }
  .gallery-item:nth-child(4) { grid-column: 1; grid-row: 3; }
  .gallery-item:nth-child(5) { grid-column: 2; grid-row: 3; }
  .gallery-item:nth-child(6) { grid-column: 1; grid-row: 4; }
  .gallery-item:nth-child(7) { grid-column: 2; grid-row: 4; }

  .houses-grid {
    grid-template-columns: 1fr;
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }

  .hero-ctas a {
    width: 100%;
    text-align: center;
  }

  .footer-bottom {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .footer-legal {
    text-align: center;
  }

  .section {
    padding: 64px 0;
  }
}
