/* ===========================================================
   Edify One — Meia Praia, Itapema
   =========================================================== */

:root {
  --bg: #f6f6f4;
  --bg-alt: #ecebe6;
  --sand: #e2ddd0;
  --ink: #1b1c1f;
  --graphite: #24262b;
  --graphite-soft: #3d3f45;
  --text-soft: #6b6d70;
  --bronze: #8a7358;
  --bronze-soft: #c7b393;
  --line: #dcdad2;
  --white: #ffffff;
  --radius: 2px;
  --transition: 320ms cubic-bezier(.4,0,.2,1);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope", "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--graphite-soft);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, select { font-family: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; line-height: 1.04; color: var(--ink); margin: 0 0 0.3em; }
p { margin: 0 0 1em; }
::selection { background: var(--sand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 14px 22px; z-index: 200; border-radius: 0 0 6px 0;
}
.skip-link:focus { left: 0; }

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

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase; letter-spacing: 0.2em; font-size: 0.66rem; font-weight: 700;
  color: var(--bronze); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: currentColor; }
.eyebrow-dark { color: var(--sand); }

.lead { max-width: 48ch; color: var(--text-soft); font-size: 1.02rem; line-height: 1.75; }
.lead-sm { color: var(--text-soft); font-size: 0.95rem; line-height: 1.7; max-width: 40ch; }
.lead-dark { color: rgba(255,255,255,0.7); }
.lead-xl { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2.2rem); color: var(--ink); letter-spacing: -0.01em; line-height: 1.3; max-width: 16ch; margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 30px; border-radius: var(--radius); font-weight: 700; font-size: 0.76rem;
  letter-spacing: 0.04em; text-transform: uppercase;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.btn-solid { background: var(--ink); color: #fff; }
.btn-solid:hover { background: var(--bronze); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.header.is-solid .btn-outline { border-color: var(--ink); color: var(--ink); }
.header.is-solid .btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-ink { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline-ink:hover { background: var(--ink); color: #fff; }
.btn-text {
  background: transparent; border: none; padding: 0; text-transform: none; letter-spacing: 0;
  color: rgba(255,255,255,0.9); font-size: 0.92rem; font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.4); border-radius: 0; padding-bottom: 2px;
  transition: color var(--transition), border-color var(--transition);
}
.btn-text:hover { color: var(--bronze); border-color: var(--bronze); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: transparent; border-bottom: 1px solid transparent;
  transition: background var(--transition), border-color var(--transition);
}
.header.is-solid { background: rgba(246,246,244,0.94); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; padding: 22px 20px; gap: 20px; }
.header-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; color: #fff; transition: color var(--transition); }
.header-logo span { font-weight: 400; opacity: 0.7; }
.header.is-solid .header-logo { color: var(--ink); }

/* ---------- Hero (lateral, sem full-bleed) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; background: var(--ink); color: #fff; }
.hero-text { position: relative; z-index: 1; padding: 130px 20px 40px; }
.hero-kicker { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.28em; color: var(--bronze-soft); margin-bottom: 20px; }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 11vw, 5.6rem); line-height: 0.98; margin: 0; }
.hero h1 span { color: var(--sand); }
.hero-sub { font-size: 0.92rem; font-weight: 500; letter-spacing: 0.03em; color: rgba(255,255,255,0.65); margin: 22px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 26px; margin-top: 32px; }
.hero-media { position: relative; flex: 1; min-height: 46vh; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 78% center; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,28,31,0.35) 0%, rgba(27,28,31,0) 30%); }

@media (min-width: 1024px) {
  .hero { flex-direction: row; align-items: stretch; }
  .hero-text { flex: 0 0 40%; display: flex; flex-direction: column; justify-content: center; padding: 0 0 0 6vw; }
  .hero-media { flex: 0 0 60%; min-height: auto; }
  .hero-media::after { background: linear-gradient(90deg, rgba(27,28,31,0.55) 0%, rgba(27,28,31,0) 26%); }
}

/* ---------- Impacto / números ---------- */
.impact { padding: 72px 0; background: var(--ink); color: #fff; }
.impact-grid { display: grid; gap: 40px 24px; grid-template-columns: repeat(2, 1fr); }
.impact-num { display: flex; flex-direction: column; gap: 8px; }
.impact-num b { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4.4vw, 3.1rem); line-height: 1; color: #fff; letter-spacing: -0.02em; }
.impact-num span { font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.55); }

@media (min-width: 900px) {
  .impact-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Horizonte como conceito ---------- */
.horizon { display: flex; flex-direction: column; }
.horizon-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.horizon-media img { width: 100%; height: 100%; object-fit: cover; }
.horizon-text { padding: 64px 20px; max-width: 760px; }
.horizon-media-wide { aspect-ratio: 16/7; }

@media (min-width: 1024px) {
  .horizon-text { padding: 88px 8vw; }
}

/* ---------- Residências ---------- */
.residences { padding: 100px 0 0; }
.residences-head { max-width: 640px; margin-bottom: 48px; }
.residences-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.residences-flow { display: grid; gap: 16px; padding: 0 20px; }
.residences-media { position: relative; overflow: hidden; }
.residences-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s cubic-bezier(.16,1,.3,1); }
.residences-media:hover img { transform: scale(1.035); }
.residences-media-a { aspect-ratio: 4/5; }
.residences-media-b { aspect-ratio: 16/7; }
.residences-media-c { aspect-ratio: 4/5; }

@media (min-width: 1024px) {
  .residences-flow { grid-template-columns: 1fr 1fr; grid-template-areas: "a b" "c b"; gap: 20px; }
  .residences-media-a { grid-area: a; aspect-ratio: 4/3; }
  .residences-media-b { grid-area: b; aspect-ratio: auto; height: 100%; }
  .residences-media-c { grid-area: c; aspect-ratio: 4/3; }
}

/* ---------- Tecnologia ---------- */
.technology { background: var(--graphite); color: #fff; padding: 100px 0; }
.technology-grid { display: grid; gap: 40px; }
.technology h2 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); max-width: 12ch; }
.technology-media { position: relative; aspect-ratio: 16/10; overflow: hidden; border-radius: 4px; background: #000; }
.technology-media video { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (min-width: 1024px) {
  .technology-grid { grid-template-columns: 0.9fr 1.3fr; align-items: center; gap: 64px; }
}

/* ---------- Home Club ---------- */
.homeclub { padding: 100px 0; }
.homeclub-head { max-width: 640px; margin-bottom: 48px; }
.homeclub-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.homeclub-grid { display: grid; gap: 14px; padding: 0 20px; grid-template-columns: repeat(2, 1fr); }
.homeclub-item { position: relative; overflow: hidden; }
.homeclub-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s cubic-bezier(.16,1,.3,1); }
.homeclub-item:hover img { transform: scale(1.035); }
.homeclub-a { aspect-ratio: 4/3; grid-column: span 2; }
.homeclub-b { aspect-ratio: 4/3; }
.homeclub-c { aspect-ratio: 4/3; }
.homeclub-d { aspect-ratio: 4/3; }
.homeclub-e { aspect-ratio: 4/3; }

@media (min-width: 900px) {
  .homeclub-grid { grid-template-columns: repeat(6, 1fr); }
  .homeclub-a { grid-column: span 4; aspect-ratio: 16/9; }
  .homeclub-b { grid-column: span 2; aspect-ratio: 3/4; }
  .homeclub-c { grid-column: span 2; }
  .homeclub-d { grid-column: span 2; }
  .homeclub-e { grid-column: span 2; }
}

/* ---------- Triplex ---------- */
.triplex { background: var(--ink); color: #fff; padding: 100px 0; }
.triplex-head { max-width: 640px; margin-bottom: 48px; }
.triplex-head h2 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
.triplex-grid { display: grid; gap: 16px; padding: 0 20px; }
.triplex-item { position: relative; }
.triplex-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.triplex-caption { margin: 12px 0 0; font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.55); }

@media (min-width: 900px) {
  .triplex-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Tour 360 ---------- */
.tour360 { padding: 100px 0; background: var(--bg-alt); }
.tour360-grid { display: grid; gap: 32px; }
.tour360-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.tour360-media img { width: 100%; height: 100%; object-fit: cover; }
.tour360-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }

@media (min-width: 1024px) {
  .tour360-grid { grid-template-columns: 1.2fr 1fr; align-items: center; gap: 64px; }
}

/* ---------- Localização ---------- */
.location { padding: 100px 0; }
.location-grid { display: grid; gap: 36px; }
.location h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.location-address { font-style: normal; font-size: 0.98rem; line-height: 1.85; color: var(--text-soft); border-top: 1px solid var(--line); padding-top: 22px; }

@media (min-width: 900px) {
  .location-grid { grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
  .location-address { border-top: none; border-left: 1px solid var(--line); padding-top: 0; padding-left: 36px; }
}

/* ---------- Formulário ---------- */
.form-section { background: var(--graphite); color: #fff; padding: 100px 0; }
.form-section h2 { color: #fff; }
.form-grid { display: grid; gap: 44px; }
.form-intro { max-width: 360px; }
.lead-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.55); }
.field input, .field select {
  background: transparent; border: none; border-bottom: 1px solid rgba(255,255,255,0.25);
  padding: 12px 0; font-size: 0.95rem; color: #fff; font-family: var(--font);
}
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff88'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; background-size: 20px; }
.field select option { color: #111; }
.field input::placeholder { color: rgba(255,255,255,0.32); }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--bronze); }
.field-error { font-size: 0.72rem; color: #e0a06a; min-height: 1.2em; margin: 0; }
.field-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 0.78rem; color: rgba(255,255,255,0.6); line-height: 1.5; }
.field-consent input { margin-top: 3px; accent-color: var(--bronze); }
.form-microcopy { font-size: 0.76rem; line-height: 1.6; color: rgba(255,255,255,0.4); margin: 0; }

@media (min-width: 1024px) {
  .form-grid { grid-template-columns: 5fr 7fr; align-items: start; }
}

/* ---------- Footer ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 48px 0 32px; }
.footer-row { display: flex; flex-direction: column; gap: 24px; justify-content: space-between; }
.footer-logo { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; color: var(--ink); margin: 0; }
.footer-logo span { font-weight: 400; opacity: 0.6; }
.footer-meta { font-size: 0.8rem; color: var(--text-soft); margin: 6px 0 0; }
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 0.8rem; }
.footer-links a { color: var(--text-soft); transition: color var(--transition); }
.footer-links a:hover { color: var(--ink); }
.footer-legal { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; font-size: 0.72rem; color: #9a978d; }
.footer-legal p { margin: 0; }

@media (min-width: 900px) {
  .footer-row { flex-direction: row; }
  .footer-links { align-items: flex-end; }
}

/* ---------- WhatsApp + sticky CTA ---------- */
.whatsapp-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}
.whatsapp-fab.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.whatsapp-fab[hidden] { display: none; }
.whatsapp-fab:hover { background: var(--bronze); }
@media (max-width: 1023px) { .whatsapp-fab { bottom: 88px; } }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: rgba(27,28,31,0.97); backdrop-filter: blur(10px);
  transform: translateY(100%); transition: transform var(--transition);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.sticky-cta.is-visible { transform: translateY(0); }
@media (min-width: 1024px) { .sticky-cta { display: none; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(.16,1,.3,1), transform 0.9s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive base ---------- */
@media (max-width: 1023px) {
  .impact, .horizon-text, .residences, .technology, .homeclub, .triplex, .tour360, .location, .form-section { padding-top: 64px; padding-bottom: 64px; }
  .residences { padding-bottom: 0; }
}
