/* ===== Variables ===== */
:root {
  --terracotta: #c1633c;
  --terracotta-dark: #a34e2c;
  --cream: #f4ece3;
  --cream-deep: #e7d9c9;
  --stone: #6b5d52;
  --ink: #2c241d;
  --white: #fffdfb;
  --shadow: 0 20px 40px -20px rgba(44, 36, 29, 0.35);
  --radius: 14px;
  --serif: "Cormorant Garamond", "Georgia", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: var(--terracotta-dark);
  font-weight: 500;
  margin-bottom: 10px;
}
.eyebrow.center { text-align: center; }

.section-title { text-align: center; font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: 14px; }
.section-title.center { text-align: center; }
.section-lead {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
  color: var(--stone);
}
.section-lead.center { text-align: center; }

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 100px;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  font-weight: 500;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 12px 24px -10px rgba(193, 99, 60, 0.6);
}
.btn-primary:hover { background: var(--terracotta-dark); transform: translateY(-2px); }
.btn-ghost {
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); }
.btn-small { padding: 10px 22px; font-size: 0.82rem; }

/* ===== Topbar ===== */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  letter-spacing: 0.03em;
}
.topbar-inner a:hover { color: var(--terracotta); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 251, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(44,36,29,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.logo span { color: var(--terracotta); font-style: italic; }

.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--terracotta);
  transition: width 0.25s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  display: block;
  transition: all 0.25s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero-media, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(30,22,15,0.35) 0%, rgba(30,22,15,0.35) 40%, rgba(20,14,9,0.85) 100%);
}
.hero-content {
  position: relative;
  color: #fff;
  padding-bottom: 72px;
  width: 100%;
}
.hero .eyebrow { color: var(--cream); opacity: 0.9; }
.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: #fff;
  margin-bottom: 18px;
}
.hero-tagline {
  max-width: 560px;
  font-size: 1.15rem;
  font-weight: 300;
  color: rgba(255,255,255,0.9);
  margin-bottom: 34px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-facts {
  display: flex;
  gap: 44px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding-top: 28px;
}
.hero-facts div { display: flex; flex-direction: column; }
.hero-facts strong {
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--cream);
}
.hero-facts span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
}

/* ===== Intro ===== */
.intro { background: var(--cream); padding: 90px 0; }
.intro-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.intro h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin-bottom: 22px; }
.intro p { color: var(--stone); font-size: 1.08rem; }

/* ===== Casa / Floors ===== */
.casa { padding: 100px 0; }

.floors {
  display: flex;
  flex-direction: column;
  gap: 70px;
  margin-top: 60px;
}
.floor-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}
.floor-card.reverse .floor-image { order: 2; }
.floor-card.reverse .floor-text { order: 1; }

.floor-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  object-fit: cover;
}
.floor-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  background: var(--cream-deep);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.floor-text h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 16px;
}
.floor-text p { color: var(--stone); }

.amenities {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.amenity {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: var(--ink);
}
.amenity span { font-size: 1.3rem; }

/* ===== Alfedena ===== */
.alfedena { background: var(--ink); color: var(--cream); padding: 100px 0; }
.alfedena-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.alfedena-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 3/4;
  object-fit: cover;
}
.alfedena-text .eyebrow { color: var(--terracotta); }
.alfedena-text h2 {
  color: #fff;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 22px;
}
.alfedena-text p { color: rgba(244, 236, 227, 0.8); margin-bottom: 28px; }
.alfedena-list li {
  padding: 12px 0;
  border-top: 1px solid rgba(244,236,227,0.15);
  font-size: 0.95rem;
  color: rgba(244,236,227,0.85);
}
.alfedena-list li:last-child { border-bottom: 1px solid rgba(244,236,227,0.15); }
.alfedena-list strong { color: var(--terracotta); font-weight: 500; margin-right: 6px; }

/* ===== Gallery ===== */
.galleria { padding: 100px 0; background: var(--white); }
.gallery-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-grid img:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow);
}

/* ===== CTA / Contact ===== */
.cta-band {
  background: linear-gradient(160deg, var(--terracotta) 0%, var(--terracotta-dark) 100%);
  color: #fff;
  padding: 100px 0;
  text-align: center;
}
.cta-band .eyebrow { color: rgba(255,255,255,0.8); }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.8rem); margin-bottom: 16px; }
.cta-band-inner > p { max-width: 520px; margin: 0 auto 48px; color: rgba(255,255,255,0.9); }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 820px;
  margin: 0 auto;
}
.contact-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: background 0.25s ease, transform 0.25s ease;
}
.contact-card:not(.static):hover { background: rgba(255,255,255,0.2); transform: translateY(-3px); }
.contact-icon { font-size: 1.8rem; margin-bottom: 6px; }
.contact-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255,255,255,0.75); }
.contact-value { font-family: var(--serif); font-size: 1.2rem; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: rgba(244,236,227,0.7);
  padding: 48px 0;
  text-align: center;
}
.footer-logo { justify-content: center; margin-bottom: 10px; color: #fff; }
.footer-logo span { color: var(--terracotta); }
.site-footer p { font-size: 0.85rem; margin-top: 4px; }
.footer-contact a:hover { color: var(--terracotta); }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20,14,9,0.94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-nav.prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ===== WhatsApp float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px -8px rgba(37, 211, 102, 0.6);
  z-index: 90;
  transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .floor-card { grid-template-columns: 1fr; gap: 28px; }
  .floor-card.reverse .floor-image { order: 1; }
  .floor-card.reverse .floor-text { order: 2; }
  .alfedena-grid { grid-template-columns: 1fr; gap: 36px; }
  .alfedena-image img { aspect-ratio: 16/10; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .topbar-inner { font-size: 0.68rem; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 1px solid rgba(44,36,29,0.08);
  }
  .main-nav.open { max-height: 320px; }
  .main-nav a { padding: 16px 24px; border-top: 1px solid rgba(44,36,29,0.06); }
  .header-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero { min-height: 92vh; }
  .hero-facts { gap: 26px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid img { height: 160px; }
  .casa, .alfedena, .galleria, .cta-band, .intro { padding: 64px 0; }
}
