/* ══════════════════════════════════════════════════════════
   Joy Barueri — style-joy.css v1 (estrutura JOY, tokens DESIGN-JOY)
   Standalone CSS (desacoplado do WebAcappella)
   ══════════════════════════════════════════════════════════ */

/* ── Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Verdana,Geneva,'DejaVu Sans',sans-serif;
  background: #FBF7F2;
  color: #1a1a1a;
  margin: 0;
  overflow-x: hidden;
}

/* ── Menu: faixa terracota ao rolar ─────────────── */
#main-nav {
  border-bottom: 3px solid #D1613D;
  transition: box-shadow 0.3s ease;
}
#main-nav.scrolled {
  box-shadow: 0 4px 24px rgba(0,79,99,0.18);
}

/* ── Dropdown ────────────────────────────────────── */
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
  display: block;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  background: #0D4C5D;
  border-top: 3px solid #D1613D;
  z-index: 100;
}
.dropdown-menu a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: #FBF7F2;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: background 0.15s, color 0.15s;
}
.dropdown-menu a:hover {
  background: #D1613D;
  color: #004F63;
}

/* ── Nav links ───────────────────────────────────── */
.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #FBF7F2;
  padding: 0.4rem 0.1rem;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-link:hover {
  color: #D1613D;
  border-bottom-color: #D1613D;
}

/* ── Hero Swiper ─────────────────────────────────── */
.hero-swiper {
  width: 100%;
  height: 100vh;
  min-height: 480px;
}
.hero-swiper .swiper-slide {
  position: relative;
  overflow: hidden;
}
.hero-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-swiper .swiper-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(13,76,93,0.18) 0%,
    rgba(13,76,93,0.52) 60%,
    rgba(13,76,93,0.78) 100%
  );
}
.swiper-pagination-bullet {
  background: #F97320 !important;
  opacity: 0.55;
  width: 10px;
  height: 10px;
}
.swiper-pagination-bullet-active {
  opacity: 1 !important;
  width: 28px !important;
  border-radius: 5px !important;
  transition: width 0.3s ease !important;
}

/* ── Hero copy ───────────────────────────────────── */
.hero-copy {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 2.5rem 1.5rem 5.5rem;
  text-align: center;
}
@media (min-width: 768px) {
  .hero-copy { padding: 3rem 2rem 5rem; }
}

/* ── Gold divider ────────────────────────────────── */
.gold-divider {
  width: 50%;
  max-width: 480px;
  height: 3px;
  background: #D1613D;
  margin-left: auto;
  margin-right: auto;
}

/* ── Placeholder sections ────────────────────────── */
.section-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
  border: 2px dashed #D1613D60;
  border-radius: 8px;
  margin: 2rem;
  padding: 2rem;
  background: #FBF8F2;
  color: #D1613D;
  font-size: 0.85rem;
  font-family: Verdana,Geneva,'DejaVu Sans',sans-serif;
  letter-spacing: 0.05em;
  text-align: center;
}
.section-placeholder h2 {
  font-family: Verdana,Geneva,'DejaVu Sans',sans-serif;
  font-size: 1.5rem;
  color: #004F63;
  margin-bottom: 0.5rem;
}

/* ── Feature cards (Diferenciais) ────────────────── */
.feature-card {
  background: #0D4C5D;
  border: 1px solid rgba(209,97,61,0.2);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: #D1613D;
  transform: translateY(-4px);
}
.feature-card .icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F97320;
}

/* ── Footer ──────────────────────────────────────── */
#footer {
  background: #0D4C5D;
  color: #FBF7F2;
}
.footer-heading {
  font-family: Verdana,Geneva,'DejaVu Sans',sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #D1613D;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.footer-link {
  color: #c8bfb0;
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-link:hover { color: #D1613D; }
.footer-bottom {
  background: #0D4C5D;
  border-top: 1px solid #D1613D30;
}

/* ── CTA botão dourado ───────────────────────────── */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #F97320;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border-radius: 3px;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-gold:hover {
  background: #D1613D;
  transform: translateY(-1px);
}

/* ── Mobile drawer ───────────────────────────────── */
#mobile-drawer {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#mobile-drawer.open {
  transform: translateX(0);
}
#drawer-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,76,93,0.55);
  z-index: 149;
}
#drawer-overlay.open { display: block; }

/* ── Pool parallax (Clube) ────────────────────────── */
.pool-parallax {
  width: 100%;
  height: 340px;
  background-image: url('../imagens/base/base-sessao-lazer-condominio-clube.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
}
@media (min-width: 768px) {
  .pool-parallax {
    height: 520px;
    background-attachment: fixed;
  }
}

/* ── Interessado parallax (CTA) ────────────────── */
.interessado-parallax {
  background-image: url('../imagens/secoes/base_conexao_quero_saber_mais-2.webp');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: scroll;
}
@media (min-width: 768px) {
  .interessado-parallax {
    background-attachment: fixed;
  }
}

/* ── Diferenciais background ─────────────────────── */
.diferenciais-bg {
  background-color: #D1613D;
}

/* ── Clube Swiper (galeria lazer) ─────────────────── */
.clube-swiper {
  position: relative;
  width: 100%;
  padding-bottom: 3.5rem;
}
.clube-swiper .swiper-slide {
  width: 260px;
  flex-shrink: 0;
}
@media (min-width: 768px) {
  .clube-swiper .swiper-slide { width: 300px; }
}
.clube-slide-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s ease;
}
@media (min-width: 768px) {
  .clube-slide-img { height: 220px; }
}
.clube-slide-img:hover {
  transform: scale(1.03);
}
.clube-pagination .swiper-pagination-bullet {
  background: #F97320 !important;
}

/* ── Amenidades list ──────────────────────── */
.amenidades-list {
  list-style: none;
  counter-reset: amenidade;
  padding: 0;
  margin: 0;
  columns: 1;
}
@media (min-width: 640px) {
  .amenidades-list { columns: 2; column-gap: 2rem; }
}
.amenidades-list li {
  counter-increment: amenidade;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0,79,99,0.1);
  font-size: 0.95rem;
  color: #004F63;
  break-inside: avoid;
}
.amenidades-list li::before {
  content: counter(amenidade) ". ";
  font-weight: 700;
  color: #D1613D;
  margin-right: 0.25rem;
}

/* ── Reduced motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-swiper .swiper-slide img,
  #mobile-drawer,
  .btn-gold,
  .feature-card { transition: none !important; }
}

/* ── JOY (S61): tokens DESIGN-JOY e comportamento do menu ── */
:root{--joy-teal:#004F63;--joy-texto:#1F4F66;--joy-terracota:#D1613D;--joy-laranja:#F97320;--joy-creme:#FBF7F2;--joy-creme-2:#FBF8F2;--joy-rodape:#0D4C5D;--joy-ouro:#B89B5E;--joy-urgencia:#1D8A34;--joy-wa-barra:#23413F}
#main-nav{background:linear-gradient(to bottom,rgba(13,76,93,.55),rgba(13,76,93,0));border-bottom-color:transparent;transition:background .3s ease,box-shadow .3s ease}
#main-nav.scrolled{background:#FBF7F2;border-bottom-color:#D1613D}
#main-nav.scrolled .nav-link{color:#004F63}
#main-nav .logo-escuro{display:none}
#main-nav.scrolled .logo-claro{display:none}
#main-nav.scrolled .logo-escuro{display:block}
.nav-link,.btn-gold{font-family:'Montserrat',Verdana,Geneva,sans-serif}
.btn-gold{background:#F97320;color:#fff;border-radius:25px}
.btn-gold:hover{background:#D1613D;color:#fff}
h1.font-display,h2.font-display,h3.font-display{font-weight:400}
#diferenciais h2.font-display,#diferenciais h3{color:#fff!important}
/* fotos do Joy trazem a legenda desenhada no canto inferior esquerdo: no hero e na capa do video o CSS
   desloca o enquadramento para a direita/topo (arquivo original 1280x720, sem recorte) */
.hero-swiper .swiper-slide img,.joy-video-secao .yt-thumb{transform:scale(1.12);transform-origin:right top}
.joy-cta-laranja{background:#F97320!important;color:#fff!important;font-family:'Montserrat',Verdana,Geneva,sans-serif;border-radius:25px!important}
.joy-cta-laranja:hover{background:#D1613D!important}
/* S62: implantacao ampliada ocupa a altura da tela (lightbox sem legenda) */
.gslide-image img[src$="joy-implantacao.webp"]{height:min(calc(100vh - 80px),calc(95vw * 0.75))!important;width:auto!important;max-width:95vw!important;max-height:none!important}
