/* ============================================
   Alzugaray Real Estate — Lorena De Rodas
   Mobile-first luxury real estate site
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Lato', sans-serif;
  color: #2D2D2D;
  background: #FAF8F5;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 4vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 3vw, 1.5rem); }
.gold { color: #C9A96E; }
.uppercase { text-transform: uppercase; letter-spacing: 0.12em; }
.tagline {
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C9A96E;
  font-weight: 400;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(27, 27, 47, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0 1.25rem;
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.3); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
}
.nav-logo { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; }
.nav-logo img { height: 28px; width: auto; border-radius: 4px; margin-top: 0.4rem; }
.nav-logo span {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
}
.nav-links {
  display: none;
  list-style: none;
  gap: 1.5rem;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: #C9A96E; }
.nav-links a.nav-cta {
  background: #C9A96E;
  color: #1B1B2F;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  font-weight: 600;
}
.nav-links a.nav-cta:hover { background: #b8944e; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0; bottom: 0;
  background: rgba(27, 27, 47, 0.98);
  z-index: 999;
  padding: 2rem 1.5rem;
}
.mobile-menu.open { display: flex; flex-direction: column; gap: 0; }
.mobile-menu a {
  display: block;
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: 'Playfair Display', Georgia, serif;
}
.mobile-menu a:hover, .mobile-menu a.active { color: #C9A96E; }
.mobile-menu a.nav-cta-mobile {
  display: inline-block;
  margin-top: 1.5rem;
  background: #C9A96E;
  color: #1B1B2F;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
  text-align: center;
  border-bottom: none;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 1.25rem 3rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27,27,47,0.7) 0%, rgba(27,27,47,0.5) 50%, rgba(27,27,47,0.8) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.hero-content .tagline { margin-bottom: 1rem; color: #C9A96E; }
.hero-content h1 { margin-bottom: 1rem; color: #fff; }
.hero-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}
.btn-gold {
  background: #C9A96E;
  color: #1B1B2F;
}
.btn-gold:hover { background: #b8944e; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { border-color: #C9A96E; color: #C9A96E; }
.btn-whatsapp {
  background: #25D366;
  color: #fff;
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-1px); }
.hero-buttons { display: flex; flex-direction: column; gap: 0.75rem; align-items: center; }

/* --- Sections --- */
.section {
  padding: 4rem 1.25rem;
}
.section-dark {
  background: #1B1B2F;
  color: #fff;
}
.section-light { background: #FAF8F5; }
.section-white { background: #fff; }
.container {
  max-width: 1100px;
  margin: 0 auto;
}
.text-center { text-align: center; }

/* --- About / Intro block --- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
.intro-grid img {
  border-radius: 8px;
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}
.intro-text h2 { margin-bottom: 1rem; }
.intro-text p { margin-bottom: 1.5rem; color: #555; }

/* --- Stats bar --- */
.stats-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 3rem 1.25rem;
  text-align: center;
}
.stat-item h3 {
  font-size: 2rem;
  color: #C9A96E;
  margin-bottom: 0.25rem;
}
.stat-item p {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
}

/* --- Property features list --- */
.features-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
}
.features-list li::before {
  content: '◆';
  color: #C9A96E;
  font-size: 0.6rem;
  margin-top: 0.4rem;
  flex-shrink: 0;
}

/* --- Image gallery grid --- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
}
.gallery-grid img {
  border-radius: 8px;
  width: 100%;
  height: 250px;
  object-fit: cover;
}

/* --- Video embed --- */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin: 2rem 0;
  background: #000;
}
.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* --- Contact section --- */
.contact-block {
  text-align: center;
  padding: 3rem 0;
}
.contact-block h2 { margin-bottom: 1.5rem; }
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2rem;
}
.contact-info a {
  color: #C9A96E;
  font-size: 1.05rem;
  font-weight: 600;
  transition: opacity 0.2s;
}
.contact-info a:hover { opacity: 0.8; }

/* --- Social links --- */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: all 0.3s;
}
.social-links a:hover { background: #C9A96E; }
.social-links a svg { width: 20px; height: 20px; fill: #fff; }

/* --- Footer --- */
.footer {
  background: #111122;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 2rem 1.25rem;
  font-size: 0.8rem;
}
.footer img {
  width: 90%;
  max-width: 320px;
  height: auto;
  margin: 0 auto 1.5rem;
  border-radius: 4px;
  opacity: 0.85;
  object-fit: contain;
}
.footer p { margin-bottom: 0.5rem; }

/* --- Floating WhatsApp Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  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, box-shadow 0.3s;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* --- Divider --- */
.divider {
  width: 60px;
  height: 2px;
  background: #C9A96E;
  margin: 1.5rem auto;
}

/* ============================================
   Tablet (600px+)
   ============================================ */
@media (min-width: 600px) {
  .hero { min-height: 80vh; }
  .hero-buttons { flex-direction: row; }
  .stats-bar { grid-template-columns: repeat(3, 1fr); }
  .intro-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .features-list { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   Desktop (960px+)
   ============================================ */
@media (min-width: 960px) {
  .nav-inner { height: 72px; }
  .nav-logo { flex-direction: row; align-items: center; gap: 0.75rem; }
  .nav-logo img { height: 40px; margin-top: 0; }
  .nav-logo span { font-size: 1rem; }
  .nav-links { display: flex; align-items: center; }
  .hamburger { display: none; }
  .hero { min-height: 90vh; padding-top: 120px; }
  .hero-content h1 { font-size: 3rem; }
  .section { padding: 5rem 2rem; }
  .gallery-grid img { height: 320px; }
}

/* ============================================
   Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
