/* ==========================================================================
   Essence Market — Landing Page
   Identidade visual extraída do material de referência (PDF):
   navy #0D4463 · orange #FD7440 · cream #F8F7F2
   Tipografia: Asap (fonte da marca, licença OFL) em títulos e texto
   ========================================================================== */

:root {
  --navy: #0D4463;
  --navy-dark: #0A3650;
  --navy-darker: #082C42;
  --orange: #FD7440;
  --orange-dark: #E85A2A;
  --cream: #F8F7F2;
  --cream-dark: #EFEBE0;
  --white: #FFFFFF;
  --text-body: #3E4C55;

  --font-heading: 'Asap', system-ui, sans-serif;
  --font-body: 'Asap', system-ui, sans-serif;

  --container-w: 1200px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-pill: 999px;
  --shadow-soft: 0 20px 45px -20px rgba(13, 68, 99, 0.35);
  --shadow-card: 0 12px 30px -14px rgba(13, 68, 99, 0.25);

  --header-h: 84px;
}

/* ---------- Reset ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body, h1, h2, h3, p, ul, figure, form, input, textarea, select, button { margin: 0; }
ul { list-style: none; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.15; }

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

.is-navy { color: var(--navy); }
.is-orange { color: var(--orange); }
.is-cream { color: var(--cream); }
.is-white { color: var(--white); }

.section-title {
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem);
  margin-bottom: 20px;
}
.section-title--center { text-align: center; margin-inline: auto; max-width: 760px; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: var(--white);
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--orange { background: var(--orange); color: var(--white); box-shadow: 0 10px 24px -10px rgba(253,116,64,.6); }
.btn--orange:hover { background: var(--orange-dark); }

.btn--white-outline { background: var(--white); color: var(--navy); }
.btn--white-outline:hover { background: var(--cream); }

.btn--pill { border-radius: var(--radius-pill); }

.btn--cream { background: var(--cream); color: var(--navy); }
.btn--cream:hover { background: var(--white); }

.btn--small { padding: 9px 18px; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(248, 247, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 8px 24px -16px rgba(13,68,99,.35);
  border-color: rgba(13,68,99,.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo img { height: 44px; width: auto; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__link {
  font-weight: 500;
  font-size: .97rem;
  color: var(--navy);
  position: relative;
  padding-block: 4px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--orange); }

.nav__cta { padding: 10px 20px; font-size: .92rem; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  border-radius: 8px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: var(--navy);
  margin-inline: auto;
  transition: transform .25s ease, opacity .25s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8,44,66,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 400;
}
.nav-overlay.is-visible { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(120deg, var(--navy-darker) 0%, var(--navy) 55%, var(--navy) 100%);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 640px;
  gap: 32px;
}
.hero__title {
  font-size: clamp(2.4rem, 1.7rem + 3vw, 3.6rem);
  margin-bottom: 22px;
}
.hero__title span { display: block; }
.hero__desc {
  color: rgba(248,247,242,.9);
  font-size: 1.05rem;
  max-width: 460px;
  margin-bottom: 32px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}

/* ---------- About / Sobre ---------- */
.about { padding: 96px 0; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.about__text p { margin-bottom: 18px; font-size: 1.02rem; }
.about__text p:last-child { margin-bottom: 0; }

/* ---------- Por que investir (Why) ---------- */
.why {
  background: var(--navy);
  padding: 96px 0;
  position: relative;
}
.why__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 56px;
}
.why__grid > .why-card { flex: 0 1 calc((100% - 48px) / 3); }
.why-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 44px 28px 32px;
  text-align: center;
  position: relative;
  margin-top: 34px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.why-card__icon {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  width: 68px;
  height: 68px;
  background: var(--orange);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 10px 20px -8px rgba(253,116,64,.7);
}
.why-card__icon svg { width: 34px; height: 34px; }
.why-card h3 {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 12px;
  margin-top: 8px;
}
.why-card p { font-size: .93rem; color: #55636b; }

.why__cta { display: flex; justify-content: center; margin-top: 56px; }

/* ---------- Condomínios ---------- */
.condo { padding: 100px 0; }
.condo__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: center;
}
.condo__text p { margin-bottom: 24px; font-size: 1.02rem; }
.check-list { margin-bottom: 32px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--navy);
  padding-block: 8px;
  font-size: 1.02rem;
}
.check-list__icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
}
.condo__media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }

/* ---------- Depoimentos ---------- */
.testimonials {
  background: var(--navy);
  padding: 96px 0 110px;
}
.testimonials__lead {
  color: rgba(248,247,242,.85);
  text-align: center;
  max-width: 800px;
  margin: 0 auto 56px;
}
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.video-card {
  position: relative;
  border: none;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-dark);
  aspect-ratio: 9 / 16;
  transition: transform .25s ease, box-shadow .25s ease;
}
.video-card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow-soft); }
.video-card img { width: 100%; height: 100%; object-fit: cover; }
.video-card__play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  padding-left: 4px;
  transition: background .2s ease;
}
.video-card:hover .video-card__play { background: var(--orange); color: var(--white); }
.video-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }
/* Grade com os vídeos reais: 2 cards maiores e centralizados */
.testimonials__grid--videos {
  grid-template-columns: repeat(2, 1fr);
  max-width: 640px;
  margin-inline: auto;
  gap: 24px;
}
/* Play na parte de baixo para não cobrir rosto nem o nome gravado no vídeo */
.testimonials__grid--videos .video-card__play { top: auto; bottom: 22px; transform: translateX(-50%); }
.testimonials__more { text-align: center; margin-top: 28px; }
.testimonials__more a { color: var(--orange); font-weight: 600; }
.testimonials__more a:hover { text-decoration: underline; }

.testimonials__bottom {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.testimonials__cta { display: flex; justify-content: center; }

.carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--orange);
  box-shadow: var(--shadow-soft);
}
.carousel__track {
  display: flex;
  transition: transform .5s cubic-bezier(.65,0,.35,1);
}
.carousel__slide {
  min-width: 100%;
  aspect-ratio: 4 / 3.1;
}
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.85);
  color: var(--navy);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.carousel__arrow:hover { background: var(--white); }
.carousel__arrow--prev { left: 16px; }
.carousel__arrow--next { right: 16px; }
.carousel__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel__dots { gap: 0; }
/* Área de toque de 24px; o ponto visível é o ::before */
.carousel__dots button {
  width: 24px; height: 24px;
  border: none;
  background: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel__dots button::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,.55);
}
.carousel__dots button.is-active::before { background: var(--white); width: 22px; border-radius: 5px; }
.carousel__dots button.is-active { width: 34px; }

/* ---------- FAQ ---------- */
.faq { padding: 100px 0; }
.faq__grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 56px;
  align-items: start;
}
.faq__intro p { margin: 18px 0 28px; font-size: 1.02rem; }

.faq-item {
  border-bottom: 1px solid rgba(13,68,99,.15);
}
.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  text-align: left;
  padding: 20px 4px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
}
.faq-item__icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform .25s ease, background .2s ease;
}
.faq-item__question[aria-expanded="true"] .faq-item__icon {
  transform: rotate(45deg);
  background: var(--orange);
}
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  color: #5b6b74;
}
.faq-item__answer p { padding: 0 4px 20px; }
.faq-item.is-open .faq-item__answer { max-height: 480px; }

/* ---------- Contato ---------- */
.contact {
  background: var(--navy);
  padding: 100px 0 80px;
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 56px;
}
.contact__lead {
  color: rgba(248,247,242,.85);
  margin: 18px 0 36px;
  max-width: 520px;
}

.contact__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.btn__icon { width: 22px; height: 22px; flex-shrink: 0; }
.contact__person { color: rgba(248,247,242,.85); font-size: .95rem; }
.contact__person a { color: var(--orange); font-weight: 600; white-space: nowrap; }
.contact__person a:hover { text-decoration: underline; }

.contact__side { display: flex; flex-direction: column; gap: 28px; }
.contact__info h3 {
  color: var(--cream);
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.contact__social { display: flex; gap: 14px; margin-bottom: 22px; }
.social-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: transform .2s ease, background .2s ease;
}
.social-icon svg { width: 24px; height: 24px; }
.social-icon--whatsapp { background: #25D366; }
.social-icon--instagram { background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.social-icon:hover { transform: translateY(-3px); }

.contact__email {
  display: block;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 14px;
  word-break: break-word;
}
.contact__address {
  font-style: normal;
  color: rgba(248,247,242,.85);
  line-height: 1.6;
}

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 4px solid var(--orange);
}
.contact__map iframe {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--cream-dark); padding-top: 48px; }
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 40px;
}
.footer__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.footer__list a:not(.btn) {
  font-weight: 500;
  font-size: .93rem;
  color: var(--navy);
}
.footer__list a:not(.btn):hover { color: var(--orange); }
.footer__contact {
  padding-bottom: 24px;
  color: var(--navy);
  font-size: .93rem;
}
.footer__contact a { font-weight: 600; white-space: nowrap; }
.footer__contact a:hover { color: var(--orange); }
.footer__bottom {
  background: var(--orange);
  color: var(--white);
  text-align: center;
  padding: 16px 24px;
  font-size: .85rem;
}

/* ---------- WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px -10px rgba(8,44,66,.55);
  transition: transform .2s ease;
  z-index: 310;
}
.whatsapp-float svg { width: 32px; height: 32px; }
.whatsapp-float:hover { transform: translateY(-3px); }
.whatsapp-float:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 27px;
  bottom: 94px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  border: none;
  font-size: 1.2rem;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s ease, transform .25s ease, background .2s ease;
  z-index: 300;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--orange-dark); }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.modal[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8,44,66,.82);
}
.modal__panel {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 60px 20px 20px;
  max-width: 440px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  text-align: center;
  transform: scale(.92);
  transition: transform .25s ease;
}
.modal[aria-hidden="false"] .modal__panel { transform: scale(1); }
.modal__panel video {
  display: block;
  width: 100%;
  max-height: 72vh;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
}
.modal__caption { font-family: var(--font-heading); font-weight: 600; color: var(--navy); font-size: 1.1rem; margin-bottom: 10px; }
.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--navy);
  color: var(--white);
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .carousel__track, .faq-item__answer { transition: none; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */

/* Notebook / small desktop */
@media (max-width: 1100px) {
  .why__grid > .why-card { flex-basis: calc((100% - 24px) / 2); }
}

/* Tablet */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; min-height: auto; padding-block: 56px 64px; }
  .hero__media { order: -1; max-width: 480px; margin-inline: auto; }
  .hero__title, .hero__desc { text-align: left; }

  .about__grid,
  .condo__grid,
  .contact__grid,
  .faq__grid { grid-template-columns: 1fr; }
  .about__media { order: -1; }
  .condo__media { order: -1; max-width: 480px; margin-inline: auto; width: 100%; }

  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__bottom { grid-template-columns: 1fr; }
  .testimonials__cta { order: 2; }
}

/* Mobile nav */
@media (max-width: 860px) {
  .hamburger { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(340px, 86vw);
    background: var(--cream);
    box-shadow: -18px 0 40px -20px rgba(13,68,99,.4);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility 0s linear .3s;
    z-index: 450;
    padding: 100px 32px 32px;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; transition: transform .3s ease; }
  .nav__list { flex-direction: column; align-items: flex-start; gap: 22px; }
  .nav__cta { order: 99; width: 100%; text-align: center; margin-top: 12px; }
}

@media (min-width: 861px) {
  .nav { display: block; }
}

/* Phones */
@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .container { padding-inline: 18px; }
  .logo img { height: 36px; }

  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { text-align: center; }

  .why__grid > .why-card { flex-basis: 100%; }
  .why-card { margin-top: 40px; }

  .testimonials__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .testimonials__grid--videos .video-card__play { width: 42px; height: 42px; bottom: 12px; font-size: .9rem; }

  .contact__actions { flex-direction: column; align-items: stretch; }

  /* No celular o flutuante cobriria o CTA do hero: aparece após rolar */
  .whatsapp-float { opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s ease, transform .25s ease; }
  .whatsapp-float.is-visible { opacity: 1; pointer-events: auto; transform: none; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__list { flex-direction: column; align-items: flex-start; gap: 14px; }

  .contact__map iframe { height: 220px; }

  .about, .why, .condo, .testimonials, .faq, .contact { padding-block: 64px; }
}
