/* Villa Serrano — landing page styles.
   Palette + type lifted from the original site: warm off-white, olive/sage
   primary, warm beige accents; Cormorant Garamond headings + Outfit body. */

:root {
  --bg:            hsl(40 20% 97%);
  --surface:       hsl(0 0% 100%);
  --fg:            hsl(30 10% 15%);
  --muted:         hsl(35 15% 92%);
  --muted-fg:      hsl(30 8% 45%);
  --border:        hsl(35 15% 88%);
  --primary:       hsl(80 15% 35%);
  --primary-600:   hsl(80 16% 30%);
  --primary-300:   hsl(80 15% 55%);
  --accent:        hsl(30 30% 85%);
  --graphite:      hsl(30 10% 22%);
  --radius:        .375rem;
  --radius-lg:     .75rem;
  --shadow:        0 10px 30px -12px hsl(30 15% 20% / .18);
  --shadow-sm:     0 2px 10px -4px hsl(30 15% 20% / .15);
  --maxw:          1140px;
  --serif:         "Cormorant Garamond", Georgia, serif;
  --sans:          "Outfit", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------- header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: hsl(40 20% 97% / .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand-mark { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .01em; color: var(--primary-600); }
.brand-sub { font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted-fg); margin-top: 4px; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fg); transition: color .2s; }
.site-nav a:hover { color: var(--primary); }
.nav-cta { padding: 9px 20px; border: 1px solid var(--primary); border-radius: 999px; color: var(--primary) !important; }
.nav-cta:hover { background: var(--primary); color: #fff !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--fg); transition: .25s; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 400;
  font-size: .95rem; letter-spacing: .04em; padding: 14px 32px;
  border-radius: 999px; cursor: pointer; transition: all .22s ease; border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-600); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-block { width: 100%; text-align: center; }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: center;
  background-image: var(--hero-img); background-size: cover; background-position: center;
  color: #fff;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(105deg, hsl(30 10% 12% / .78) 0%, hsl(30 10% 15% / .45) 55%, hsl(30 10% 15% / .15) 100%);
}
.hero-inner { position: relative; z-index: 2; max-width: 760px; padding-top: 60px; padding-bottom: 60px; }
.eyebrow { font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: hsl(40 30% 90%); margin: 0 0 22px; font-weight: 400; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 500; letter-spacing: -.01em; }
.hero-address { font-size: 1.05rem; letter-spacing: .04em; margin: 22px 0 30px; color: hsl(40 20% 92%); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero-stats span {
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 9px 18px; border: 1px solid hsl(0 0% 100% / .4); border-radius: 999px;
  background: hsl(0 0% 100% / .08); backdrop-filter: blur(4px);
}

/* --------------------------------------------------------------- sections */
.section { padding: 96px 0; }
.section-alt { background: var(--muted); }
.section-eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--primary); font-weight: 500; margin: 0 0 16px; }
.section-title { font-size: clamp(1.8rem, 3.4vw, 2.7rem); max-width: 760px; margin-bottom: 20px; color: var(--graphite); }
.section-lead { color: var(--muted-fg); max-width: 640px; margin: 0 0 40px; }
.prose { max-width: 680px; color: hsl(30 9% 28%); }
.prose p { margin: 0 0 18px; }

/* pillars (O Empreendimento) */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.pillar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 24px; box-shadow: var(--shadow-sm); }
.pillar h3 { font-size: 1.45rem; color: var(--primary); margin-bottom: 10px; }
.pillar p { margin: 0; font-size: .95rem; color: var(--muted-fg); }

/* diferenciais */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 52px; }
.feature { padding: 28px 22px; border-left: 2px solid var(--accent); background: var(--surface); border-radius: var(--radius); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-left-color: var(--primary); }
.feature h3 { font-size: 1.35rem; margin-bottom: 8px; color: var(--graphite); }
.feature p { margin: 0; font-size: .92rem; color: var(--muted-fg); }

/* split layout (unidades / experiencia / localizacao / contato) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 72px; }
.split-reverse .split-media { order: 2; }
.split-media img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.spec-headline { display: flex; align-items: baseline; gap: 12px; margin: 26px 0 20px; }
.spec-area { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; color: var(--primary); }
.spec-note { color: var(--muted-fg); font-size: .95rem; }
.spec-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.spec-list li { position: relative; padding-left: 22px; color: hsl(30 9% 28%); }
.spec-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary-300); }

.feature-title { font-size: 1.8rem; color: var(--graphite); margin-bottom: 14px; }

/* tabs (plantas) */
.tabs { margin-top: 8px; }
.tab-buttons { display: inline-flex; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 5px; margin-bottom: 32px; }
.tab-btn { font-family: var(--sans); font-size: .9rem; padding: 10px 26px; border: 0; background: transparent; color: var(--muted-fg); border-radius: 999px; cursor: pointer; transition: .2s; }
.tab-btn.is-active { background: var(--primary); color: #fff; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.plan-figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.plan-figure img { margin: 0 auto; max-height: 620px; width: auto; }
.plan-figure figcaption { text-align: center; margin-top: 18px; color: var(--muted-fg); font-size: .95rem; }
.plan-figure figcaption strong { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--graphite); font-weight: 500; margin-bottom: 4px; }

/* localizacao map */
.map-embed { position: relative; padding-bottom: 75%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-caption { text-align: center; color: var(--muted-fg); font-size: .9rem; margin-top: 14px; }
.check-list { list-style: none; padding: 0; margin: 28px 0 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 14px; color: hsl(30 9% 28%); }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 600; }

/* implantacao */
.implantacao-figure { margin: 40px 0 0; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.implantacao-figure img { margin: 0 auto; }

/* galeria */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.gallery a { display: block; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery img { aspect-ratio: 4/3; object-fit: cover; width: 100%; transition: transform .4s ease; }
.gallery a:hover img { transform: scale(1.06); }
.zoomable { cursor: zoom-in; }

/* contato form */
.contato { background: linear-gradient(180deg, var(--bg) 0%, var(--muted) 100%); }
.contact-lines { list-style: none; padding: 0; margin: 30px 0 0; }
.contact-lines li { margin-bottom: 12px; font-size: 1.05rem; }
.contact-lines a { color: var(--primary); transition: color .2s; }
.contact-lines a:hover { color: var(--primary-600); text-decoration: underline; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-fg); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--fg);
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg); transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--primary-300); box-shadow: 0 0 0 3px hsl(80 15% 55% / .18);
}
.field textarea { resize: vertical; }
.form-consent { font-size: .82rem; color: var(--muted-fg); text-align: center; margin: 16px 0 0; }
.form-success { text-align: center; padding: 20px 0; }
.form-success h3 { font-size: 1.9rem; color: var(--primary); margin-bottom: 12px; }
.form-success p { color: var(--muted-fg); margin-bottom: 24px; }
.form-error { background: hsl(8 60% 96%); border: 1px solid hsl(8 55% 85%); color: hsl(8 55% 40%); padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: .9rem; }
.field-error { display: block; color: hsl(8 60% 48%); font-size: .82rem; margin-top: 6px; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--graphite); color: hsl(40 15% 82%); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-mark { color: #fff; font-size: 1.6rem; }
.footer-brand p { margin-top: 14px; font-size: .92rem; max-width: 340px; color: hsl(40 12% 70%); }
.footer-contact h4 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: hsl(40 20% 88%); margin-bottom: 16px; font-weight: 500; }
.footer-contact p { margin: 0 0 10px; font-size: .92rem; }
.footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-legal { font-size: .85rem; color: hsl(40 10% 62%); }
.footer-legal .fineprint { margin-top: 12px; font-size: .78rem; }

/* whatsapp float */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 8px 22px -6px hsl(140 60% 25% / .6);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* -------------------------------------------------------------- lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: hsl(30 10% 8% / .92); display: none; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 95vw; max-height: 88vh; width: auto; border-radius: var(--radius); box-shadow: 0 20px 60px -10px #000; }
.lightbox-caption { position: absolute; bottom: 24px; left: 0; right: 0; text-align: center; color: hsl(40 15% 85%); font-size: .9rem; letter-spacing: .04em; }
.lightbox-close { position: absolute; top: 22px; right: 28px; background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; opacity: .8; }
.lightbox-close:hover { opacity: 1; }

/* ---------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .pillars, .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-reverse .split-media { order: 0; }
  .split-media img { max-height: 380px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 0; background: var(--bg); border-bottom: 1px solid var(--border);
    max-height: 0; overflow: hidden; transition: max-height .3s ease; padding: 0 24px;
  }
  .site-nav.is-open { max-height: 420px; padding: 12px 24px 20px; }
  .site-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav-cta { border: 0 !important; padding: 12px 0 !important; color: var(--primary) !important; }
  .spec-list { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; }
}
@media (max-width: 480px) {
  .pillars, .features, .gallery { grid-template-columns: 1fr; }
  .form-card { padding: 26px; }
}
