/* ==========================================================================
   HORIIZON RESIDENCE — Design tokens
   Fundo off-white predominante; azul petróleo para contraste e botões;
   dourado champagne apenas em detalhes discretos (eyebrows, filetes).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,340;0,9..144,440;0,9..144,560;1,9..144,440&family=Work+Sans:wght@400;500;600&display=swap');

:root {
  --bg: #FAF9F6;
  --surface: #FFFFFF;

  --ink: #23282C;
  --ink-soft: #59626A;
  --ink-faint: #8A9199;

  --petrol: #21424E;
  --petrol-deep: #152E38;
  --petrol-pale: #E8EEF0;

  --gold: #C2A468;        /* filetes, bordas */
  --gold-text: #8F6E37;   /* texto pequeno com contraste ok no claro */
  --gold-light: #E4CE9E;  /* detalhes sobre fundo escuro */

  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;

  --white: #FFFFFF;
  --line: rgba(35, 40, 44, 0.11);

  --shadow-soft: 0 24px 55px -32px rgba(21, 46, 56, 0.30);
  --shadow-card: 0 14px 34px -24px rgba(21, 46, 56, 0.25);

  --font-display: 'Fraunces', 'Iowan Old Style', serif;
  --font-body: 'Work Sans', 'Segoe UI', sans-serif;

  --container: 1180px;
  --gutter: clamp(1.5rem, 5vw, 4rem);
  --radius: 12px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 560; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }

.icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- tipografia utilitária ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--gold); }

.h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.14; margin-top: 0.9rem; }
.h2 em { font-style: italic; color: var(--petrol); }
.lede { margin-top: 1.1rem; font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--ink-soft); max-width: 58ch; }

/* ---------- botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 220ms var(--ease), background 220ms var(--ease), border-color 220ms var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--petrol); color: var(--white); box-shadow: 0 14px 28px -14px rgba(21, 46, 56, 0.5); }
.btn-primary:hover { background: var(--petrol-deep); transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--petrol-deep); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  padding: 0.8rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line);
  transition: box-shadow 300ms var(--ease);
}
.nav.is-scrolled { box-shadow: 0 8px 24px -18px rgba(21,46,56,0.35), 0 1px 0 var(--line); }
.nav__brand img { height: 44px; width: auto; display: block; }
@media (min-width: 1100px) {
  .nav__brand { margin-left: 100px; }
}
.nav__links { display: flex; gap: 2.2rem; align-items: center; }
.nav__links a { font-size: 0.93rem; font-weight: 500; color: var(--ink-soft); transition: color 200ms; }
.nav__links a:hover { color: var(--petrol); }
.nav__cta { display: flex; align-items: center; gap: 1rem; }
.nav__cta .btn-label-short { display: none; }
.nav__toggle { display: none; background: none; border: none; padding: 0.4rem; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ''; display: block; width: 22px; height: 2px; background: var(--ink); position: relative;
}
.nav__toggle span::before { position: absolute; top: -7px; }
.nav__toggle span::after { position: absolute; top: 7px; }

@media (max-width: 900px) {
  .nav__links { position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 300px); background: var(--bg); flex-direction: column; justify-content: center; align-items: flex-start; padding: 2rem var(--gutter); gap: 1.7rem; transform: translateX(100%); transition: transform 320ms var(--ease); box-shadow: -20px 0 40px rgba(0,0,0,0.08); }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1.1rem; }
  .nav__toggle { display: block; }
  .nav__cta .btn-label-full { display: none; }
  .nav__cta .btn-label-short { display: inline; }
  .nav__cta .btn { padding: 0.8rem 1.25rem; }
  .nav__brand img { height: 36px; }
}

/* ==========================================================================
   HERO — foto cheia com degradê lateral petróleo
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--petrol-deep);
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 65% center;
  transform: scale(1.05);
  animation: hero-settle 1600ms var(--ease) forwards;
}
@keyframes hero-settle { to { transform: scale(1); } }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(15, 32, 39, 0.88) 0%,
    rgba(15, 32, 39, 0.68) 34%,
    rgba(15, 32, 39, 0.28) 62%,
    rgba(15, 32, 39, 0.02) 85%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 7.5rem var(--gutter) 4rem;
  max-width: 720px;
  color: var(--white);
}
@media (min-width: 1100px) {
  .hero__content { margin-left: 100px; max-width: 820px; }
}
.hero__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}
.hero__title {
  margin-top: 1rem;
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 1.05;
  max-width: 17ch;
}
.hero__title em { font-style: italic; color: var(--gold-light); }
.hero__sub {
  margin-top: 1.2rem;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,0.88);
  max-width: 48ch;
}
.hero__chips { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }
.hero__chips li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(6px);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
}
.hero__chips .icon { width: 19px; height: 19px; color: var(--gold-light); }
.hero__price {
  margin-top: 1.8rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.hero__price strong {
  display: block;
  margin-top: 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 560;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold-light);
}
.hero__actions { margin-top: 1.6rem; }

@media (max-width: 720px) {
  .hero { align-items: flex-end; }
  .hero__scrim {
    background: linear-gradient(0deg,
      rgba(15, 32, 39, 0.96) 0%,
      rgba(15, 32, 39, 0.82) 40%,
      rgba(15, 32, 39, 0.55) 70%,
      rgba(15, 32, 39, 0.28) 100%);
  }
  .hero__content { padding-top: 8rem; padding-bottom: 3rem; }
  .hero__sub { color: rgba(255,255,255,0.94); }
  .hero__price { color: rgba(255,255,255,0.85); }
}

/* ==========================================================================
   SEÇÕES
   ========================================================================== */
.section { padding: clamp(4.5rem, 8vw, 7rem) 0; background: var(--bg); }
.section--soft { background: var(--petrol-pale); }
.section-head { max-width: 680px; margin-bottom: clamp(2.2rem, 4.5vw, 3.5rem); }
.section-cta { margin-top: clamp(2.2rem, 4vw, 3rem); text-align: center; }

/* ---------- FOTO GRANDE DA PRAIA (full bleed) ---------- */
.beach-hero { position: relative; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.beach-hero img { width: 100%; height: clamp(420px, 82vh, 720px); object-fit: cover; }
@media (max-width: 720px) {
  .beach-hero img { object-position: 66% center; }
}
.beach-hero figcaption {
  position: absolute;
  left: var(--gutter); bottom: 1.4rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(15, 32, 39, 0.62);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 500;
}

.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: translateY(0); transition: opacity 550ms var(--ease), transform 550ms var(--ease); }

/* ---------- SOBRE ---------- */
.about { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow-card); }
.about__body p { margin-top: 1.1rem; color: var(--ink-soft); }
.about__body .h2 + p { margin-top: 1.3rem; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } }

/* ---------- DIFERENCIAIS (grid de cards) ---------- */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.9rem;
}
.spec-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.05rem 1.15rem;
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease);
}
.spec-card:hover { border-color: var(--gold); box-shadow: var(--shadow-card); }
.spec-card .icon { color: var(--petrol); width: 26px; height: 26px; }

/* ---------- CARROSSEL ---------- */
.carousel { position: relative; margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: var(--gutter);
  cursor: grab;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.carousel__slide {
  position: relative;
  flex: 0 0 auto;
  scroll-snap-align: center;
  border-radius: var(--radius);
  overflow: hidden;
}
.carousel__slide img { height: 100%; width: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.carousel__slide figcaption {
  position: absolute;
  left: 1.1rem; bottom: 1.1rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: rgba(15, 32, 39, 0.62);
  backdrop-filter: blur(6px);
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 500;
}

.carousel--hero .carousel__slide {
  width: min(920px, 86vw);
  height: clamp(380px, 62vh, 580px);
}
.carousel--gallery .carousel__slide {
  height: clamp(300px, 44vh, 440px);
  width: auto;
}
.carousel--gallery .carousel__slide img { width: auto; }

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--petrol);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  transition: background 200ms, transform 200ms;
  z-index: 2;
}
.carousel__btn:hover { background: var(--petrol-pale); transform: translateY(-50%) scale(1.05); }
.carousel__btn--prev { left: calc(var(--gutter) - 24px); }
.carousel__btn--next { right: calc(var(--gutter) - 24px); }
.carousel__btn .icon { width: 20px; height: 20px; }
@media (max-width: 760px) { .carousel__btn { display: none; } }

/* ---------- INVESTIDOR ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
}
.stat .icon { color: var(--gold-text); width: 26px; height: 26px; }
.stat__value { font-family: var(--font-display); font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-top: 0.8rem; color: var(--petrol); }
.stat__label { margin-top: 0.35rem; color: var(--ink-soft); font-size: 0.93rem; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

/* ---------- LOCALIZACAO ---------- */
.location { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.location p { margin-top: 1.2rem; color: var(--ink-soft); }
.location__map {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.location__map iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .location { grid-template-columns: 1fr; } .location__map { order: -1; } }

/* ---------- PLANTAS ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.2rem, 3vw, 2rem); }
.plan-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}
.plan-card img { border-radius: 6px; background: #fff; }
.plan-card__label { margin-top: 1.2rem; font-family: var(--font-display); font-size: 1.15rem; }
.plan-card__desc { margin-top: 0.3rem; font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- FORM ---------- */
.form-wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  box-shadow: var(--shadow-soft);
}
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; color: var(--ink-soft); }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--ink);
  transition: border-color 200ms;
}
.field input:focus, .field textarea:focus { border-color: var(--petrol); background: var(--white); outline: none; }
.field textarea { resize: vertical; min-height: 96px; }
.form-note { margin-top: 0.9rem; font-size: 0.82rem; color: var(--ink-faint); }
.form-success { display: none; text-align: center; padding: 2rem 1rem; }
.form-success.is-visible { display: block; }
.form-success h3 { font-size: 1.3rem; }
.form-success p { margin-top: 0.6rem; color: var(--ink-soft); }
@media (max-width: 900px) { .form-wrap { grid-template-columns: 1fr; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--petrol-deep); color: rgba(255,255,255,0.72); padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.6rem; }
.footer__top { display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,0.14); }
.footer__brands { display: flex; align-items: center; gap: 1.8rem; flex-wrap: wrap; }
.footer__brands .logo-horiizon { height: 64px; width: auto; }
.footer__brands .logo-rochas { height: 48px; width: auto; }
.footer__links { display: flex; gap: 2rem; flex-wrap: wrap; font-size: 0.93rem; }
.footer__links a:hover { color: var(--white); }
.footer__bottom { padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-size: 0.82rem; color: rgba(255,255,255,0.55); }

/* ==========================================================================
   FAB WHATSAPP
   ========================================================================== */
.fab {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 70;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -10px rgba(18,140,126,0.55);
  transition: transform 220ms var(--ease), background 220ms;
  border: none;
}
.fab:hover { background: var(--whatsapp-dark); transform: translateY(-3px); }
.fab svg { width: 30px; height: 30px; }

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 32, 39, 0.5);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem; z-index: 100;
  opacity: 0; pointer-events: none; transition: opacity 260ms var(--ease);
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--bg); border-radius: 14px; width: min(460px, 100%);
  padding: clamp(1.8rem, 4vw, 2.4rem);
  transform: translateY(14px) scale(0.98); transition: transform 260ms var(--ease);
  max-height: 90vh; overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }
.modal__close {
  position: absolute; top: 1.1rem; right: 1.1rem;
  background: none; border: none; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft); border-radius: 50%;
}
.modal__close:hover { background: var(--petrol-pale); }
.modal h3 { font-size: 1.4rem; padding-right: 2rem; margin-top: 0.7rem; }
.modal p.lede { margin-top: 0.5rem; font-size: 0.95rem; }
.modal form { margin-top: 1.5rem; }
