/* =========================================================
   EP209 · Essential Perdizes — Site de divulgação
   ========================================================= */

:root {
  --cream:      #f6f1e9;
  --cream-2:    #efe7da;
  --paper:      #fffdf9;
  --ink:        #2b2723;
  --ink-soft:   #5c554c;
  --wood:       #b07b4c;
  --terra:      #c05f2c;
  --terra-dark: #9c4a1f;
  --teal:       #2f6f7e;
  --line:       #e2d8c8;
  --shadow:     0 18px 50px -22px rgba(43, 39, 35, .35);
  --radius:     16px;
  --maxw:       1180px;
  --font-head:  "Fraunces", "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }

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

.eyebrow {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--terra-dark);
}

.section { padding: 96px 0; }
.section--tint { background: var(--paper); }
.section__head { max-width: 640px; margin-bottom: 48px; }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 14px 0 16px; }
.section__head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn--primary { background: var(--terra); color: #fff; box-shadow: 0 12px 30px -12px rgba(192, 95, 44, .7); }
.btn--primary:hover { background: var(--terra-dark); transform: translateY(-2px); }
.btn--ghost { border-color: currentColor; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.btn--light { background: var(--cream); color: var(--ink); }
.btn--light:hover { background: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 233, .82);
  backdrop-filter: saturate(150%) blur(12px);
  -webkit-backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.site-header.is-stuck { border-color: var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px; /* guarantees breathing room between brand and nav even when both are at their nowrap content width */
  height: 72px;
  max-width: 1450px; /* header needs more room than body sections now that it carries 7 nav links + the full brand name */
}
.brand { display: flex; align-items: baseline; gap: 10px; font-family: var(--font-head); }
.brand__mark { font-size: 1.35rem; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.brand__sub { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: 14px; }
.nav a { font-size: .92rem; font-weight: 500; color: var(--ink-soft); transition: color .15s ease; white-space: nowrap; }
.nav a:hover { color: var(--ink); }
.nav .btn { padding: 11px 20px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(18,13,9,.55) 0%, rgba(18,13,9,.30) 38%, rgba(18,13,9,.55) 70%, rgba(18,13,9,.90) 100%),
    linear-gradient(90deg, rgba(18,13,9,.55) 0%, rgba(18,13,9,.12) 55%, rgba(18,13,9,0) 100%);
}
.hero__inner { position: relative; z-index: 1; padding-bottom: 72px; padding-top: 120px; }
.hero__inner .eyebrow { color: #f3c9a9; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin: 18px 0 20px; max-width: 14ch; }
.hero p { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 52ch; color: rgba(255,255,255,.9); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 30px; padding: 10px 18px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  font-size: .9rem;
  backdrop-filter: blur(4px);
}
.hero__badge strong { font-weight: 700; }

/* ---------- Stats strip ---------- */
.stats {
  background: var(--ink);
  color: var(--cream);
}
.stats ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  padding: 26px 0;
  text-align: center;
}
.stats li { font-size: .95rem; letter-spacing: .02em; position: relative; }
.stats li::before { content: "·"; position: absolute; left: -22px; color: var(--wood); }
.stats li:first-child::before { display: none; }
.stats li strong { font-family: var(--font-head); font-size: 1.15rem; margin-right: 6px; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.about__text p { margin-bottom: 18px; color: var(--ink-soft); }
.about__text p.lead { font-size: 1.2rem; color: var(--ink); font-family: var(--font-head); line-height: 1.4; }
.about__media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); height: 100%; object-fit: cover; }
.about__media img:first-child { grid-row: span 2; }

/* ---------- Feature cards ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--cream-2); color: var(--terra-dark);
  margin-bottom: 18px;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { font-size: .95rem; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery {
  columns: 3;
  column-gap: 14px;
}
.gallery button {
  border: 0; padding: 0; margin: 0 0 14px; width: 100%;
  background: none; cursor: pointer; display: block;
  border-radius: 12px; overflow: hidden;
  break-inside: avoid;
}
.gallery img { width: 100%; transition: transform .4s ease, filter .3s ease; }
.gallery button:hover img { transform: scale(1.04); filter: brightness(1.05); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(18, 14, 10, .93);
  display: none;
  align-items: center; justify-content: center;
  padding: 4vh 4vw;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 10px; }
.lightbox__btn {
  position: absolute; background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  width: 52px; height: 52px; font-size: 1.4rem; cursor: pointer;
  display: grid; place-items: center; transition: background .15s ease;
}
.lightbox__btn:hover { background: rgba(255,255,255,.25); }
.lightbox__btn--close { top: 22px; right: 22px; }
.lightbox__btn--prev { left: 3vw; top: 50%; transform: translateY(-50%); }
.lightbox__btn--next { right: 3vw; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .85rem; letter-spacing: .1em; }

/* ---------- Amenities ---------- */
.amenities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.amenity-group h3 { font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.amenity-group ul { list-style: none; }
.amenity-group li { font-size: .93rem; color: var(--ink-soft); padding: 7px 0 7px 24px; position: relative; }
.amenity-group li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--wood);
}

/* ---------- Condo ---------- */
.condo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.condo-card {
  border-radius: var(--radius); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.condo-card figure { aspect-ratio: 4 / 3; overflow: hidden; }
.condo-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.condo-card:hover img { transform: scale(1.05); }
.condo-card__body { padding: 20px 22px 24px; }
.condo-card h3 { font-size: 1.12rem; margin-bottom: 6px; }
.condo-card p { font-size: .9rem; color: var(--ink-soft); }

/* ---------- Neighborhood catalog CTA ---------- */
.loc-catalog {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(120deg, var(--ink) 0%, #3a332b 100%);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.loc-catalog:hover { transform: translateY(-3px); }
.loc-catalog__text h3 { font-size: 1.3rem; margin-bottom: 6px; color: #fff; }
.loc-catalog__text p { font-size: .92rem; color: rgba(246,241,233,.75); max-width: 56ch; }
.loc-catalog__cta {
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  background: var(--terra); color: #fff;
  padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: .92rem;
  transition: background .18s ease;
}
.loc-catalog__cta svg { width: 16px; height: 16px; }
.loc-catalog:hover .loc-catalog__cta { background: var(--terra-dark); }

/* ---------- Location ---------- */
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.loc-text p { color: var(--ink-soft); margin-bottom: 16px; }
.loc-dist { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.loc-dist h4 { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terra-dark); margin-bottom: 12px; }
.loc-dist ul { list-style: none; }
.loc-dist li { display: flex; justify-content: space-between; gap: 14px; font-size: .9rem; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.loc-dist li span:last-child { color: var(--ink-soft); white-space: nowrap; }
.loc-map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); min-height: 420px; }
.loc-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; }
.loc-addr { margin-top: 18px; font-size: .9rem; color: var(--ink-soft); }

/* ---------- Reserve CTA ---------- */
.reserve {
  background: var(--ink);
  color: var(--cream);
  text-align: center;
}
.reserve h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 16px; }
.reserve p { color: rgba(246,241,233,.75); max-width: 46ch; margin: 0 auto 14px; }
.reserve__price { font-family: var(--font-head); font-size: 1.5rem; margin: 26px 0 8px; }
.reserve__price strong { color: #fff; }
.reserve__note { font-size: .8rem; color: rgba(246,241,233,.55); }
.reserve__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }

/* ---------- Footer ---------- */
.site-footer { background: #201c18; color: rgba(246,241,233,.7); padding: 54px 0 110px; font-size: .88rem; } /* extra bottom padding keeps text clear of the fixed float-actions buttons */
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.site-footer .brand__mark { color: var(--cream); }
.site-footer a { color: var(--cream); border-bottom: 1px solid rgba(246,241,233,.3); }
.site-footer__legal { max-width: 42ch; }

/* ---------- Floating action buttons ---------- */
.float-actions {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  display: flex; align-items: center; gap: 12px;
}
.float-book { box-shadow: 0 16px 40px -12px rgba(192, 95, 44, .8); }
.float-wa {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 22px; border-radius: 999px;
  background: #25d366; color: #fff; font-weight: 600; font-size: .95rem;
  box-shadow: 0 16px 40px -12px rgba(37, 211, 102, .8);
  transition: transform .18s ease, background .18s ease;
}
.float-wa:hover { background: #1ebe5b; transform: translateY(-2px); }
.float-wa svg { width: 20px; height: 20px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
/* Nav switches to the mobile menu earlier than the general layout breakpoint
   below — with 7 links + the Reservar button, it starts wrapping awkwardly
   on common notebook widths (1280–1366px) well before 960px. */
@media (max-width: 1360px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--line);
    padding: 12px 24px 22px;
    transform: translateY(-120%); transition: transform .3s ease;
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); white-space: normal; }
  .nav .btn { margin-top: 14px; justify-content: center; }
  .nav-toggle { display: block; }
}

@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .about__grid { grid-template-columns: 1fr; gap: 36px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .gallery { columns: 2; }
  .amenities { grid-template-columns: repeat(2, 1fr); }
  .condo-grid { grid-template-columns: repeat(2, 1fr); }
  .loc-grid { grid-template-columns: 1fr; gap: 34px; }
  .loc-catalog { flex-direction: column; align-items: flex-start; text-align: left; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .features { grid-template-columns: 1fr; }
  .gallery { columns: 1; }
  .amenities { grid-template-columns: 1fr; }
  .condo-grid { grid-template-columns: 1fr; }
  .loc-dist { grid-template-columns: 1fr; }
  .about__media { grid-template-columns: 1fr; }
  .about__media img:first-child { grid-row: auto; }
  .hero { min-height: 88vh; }
  .float-actions { right: 14px; bottom: 14px; gap: 9px; }
  .float-wa span { display: none; }
  .float-wa { padding: 13px; }
  .hero__badge { flex-wrap: wrap; gap: 6px 10px; }
  .hero__badge-sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
