/* =========================================================
   CHÁCARA J. THOMPSON — estilos
   ========================================================= */

:root {
  --blue-deep: #123F5A;
  --blue-main: #2F6F9F;
  --blue-light: #DCECF5;
  --bg-light: #F7FAFC;
  --white: #FFFFFF;
  --gold: #D9A441;
  --gold-dark: #B9862F;

  --text-main: #1D3644;
  --text-soft: #4C6472;
  --text-muted: #7A93A0;

  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(18, 63, 90, 0.06);
  --shadow-md: 0 10px 30px rgba(18, 63, 90, 0.12);
  --shadow-lg: 0 20px 50px rgba(18, 63, 90, 0.18);

  --container-w: 1180px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-main);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-title);
  color: var(--blue-deep);
  margin: 0;
  line-height: 1.2;
}

p { margin: 0; }

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.container--narrow {
  max-width: 780px;
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-main);
  margin-bottom: 10px;
}
.eyebrow--light { color: var(--blue-light); }
.eyebrow--gold { color: var(--gold-dark); }

.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  margin-bottom: 16px;
}

.section__lead {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 560px;
  margin-bottom: 14px;
}
.section__lead--center {
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.section__head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}
.section:not(.section--tint) .split .section__head { text-align: left; }

.link-arrow {
  display: inline-block;
  font-weight: 600;
  color: var(--blue-main);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.link-arrow:hover { border-color: var(--blue-main); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue-main);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--ghost-light {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.7);
  backdrop-filter: blur(4px);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--blue-main);
  border: 1.5px solid var(--blue-main);
}
.btn--outline:hover { background: var(--blue-light); }
.btn--sm { padding: 10px 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  padding: 18px 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.navbar.is-scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  padding: 12px 0;
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar__logo {
  font-family: var(--font-title);
  font-size: 21px;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
}
.navbar__logo span { color: var(--gold); }
.navbar.is-scrolled .navbar__logo { color: var(--blue-deep); }

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  opacity: 0.92;
  transition: opacity var(--transition), color var(--transition);
}
.nav-link:hover { opacity: 1; }
.navbar.is-scrolled .nav-link { color: var(--text-main); }

.navbar__cta { margin-left: 6px; }

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  z-index: 600;
}
.navbar__burger span {
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.navbar.is-scrolled .navbar__burger span { background: var(--blue-deep); }
.navbar__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.is-open span:nth-child(2) { opacity: 0; }
.navbar__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.navbar__burger.is-open span { background: var(--blue-deep); }

.navbar__overlay {
  position: fixed;
  inset: 0;
  background: rgba(18,63,90,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  z-index: 450;
}
.navbar__overlay.is-active { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: var(--white);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,63,90,0.55) 0%, rgba(18,63,90,0.45) 40%, rgba(18,63,90,0.75) 100%);
}
.hero__media.ph {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-main));
}
.hero__media.ph .hero__img { opacity: 0; }
.hero__media.ph::after {
  content: '📷 Foto de capa pendente — hero-piscina.jpg';
  position: absolute; top: 100px; right: 24px;
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  text-align: right;
  max-width: 220px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 110px;
  padding-bottom: 140px;
  max-width: 720px;
}
.hero__title {
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: -0.01em;
}
.hero__subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.92);
  max-width: 520px;
  margin-bottom: 34px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__ctas--center { justify-content: center; }

.hero__badges {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 1;
  background: rgba(18,63,90,0.55);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero__badges-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  flex-wrap: wrap;
}
.badge { display: flex; flex-direction: column; align-items: flex-start; }
.badge__num { font-family: var(--font-title); font-size: 30px; font-weight: 700; color: var(--gold); line-height: 1; }
.badge__label { font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 4px; }
.badge--text { justify-content: center; }
.badge__label--big { font-size: 15px; font-weight: 600; color: var(--white); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section--tint { background: var(--bg-light); }

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split--reverse .split__text { order: 2; }
.split--reverse .split__media { order: 1; }

.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4/3.2;
}
.split__media--map { aspect-ratio: 4/3.4; }
.split__media--map iframe { width: 100%; height: 100%; border: 0; }

.img-cover { width: 100%; height: 100%; object-fit: cover; }

.split__media.ph {
  background: var(--blue-light);
  display: flex; align-items: center; justify-content: center;
}
.split__media.ph::after {
  content: '📷 Foto: vista geral da chácara';
  color: var(--blue-main);
  font-size: 14px;
  padding: 20px;
  text-align: center;
}
.split__media.ph img { display: none; }

/* ---------- Vídeo (Sobre) ---------- */
.video-block {
  margin-top: 64px;
  text-align: center;
}
.video-block__title {
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 24px;
}
.video-block__frame {
  display: inline-block;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--blue-deep);
  line-height: 0;
}
.video-block__frame video {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  width: auto;
  height: auto;
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat__icon {
  width: 46px; height: 46px;
  margin: 0 auto 16px;
  color: var(--blue-main);
}
.stat__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stat__num {
  display: block;
  font-family: var(--font-title);
  font-size: 44px;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 6px;
}
.stat__label { font-size: 14.5px; color: var(--text-soft); }

/* ---------- Grid / feature cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card__media { aspect-ratio: 4/3; overflow: hidden; background: var(--blue-light); position: relative; }
.feature-card__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-card__media.ph img { display: none; }
.feature-card__media.ph::after {
  content: '📷 Foto';
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-main);
  font-size: 13px;
}
.feature-card__body { padding: 22px 22px 26px; }
.feature-card__icon { font-size: 22px; }
.feature-card__body h3 { font-size: 19px; margin: 8px 0 8px; }
.feature-card__body p { font-size: 14.5px; color: var(--text-soft); }

/* ---------- Mini cards (diferenciais) ---------- */
.mini-card {
  text-align: center;
  padding: 30px 18px;
}
.mini-card__icon { font-size: 30px; display: block; margin-bottom: 14px; }
.mini-card h3 { font-size: 17px; margin-bottom: 8px; }
.mini-card p { font-size: 14px; color: var(--text-soft); }

/* ---------- Showcase (lazer) ---------- */
.showcase {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  grid-auto-rows: 200px;
  gap: 18px;
}
.showcase__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.showcase__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.showcase__item:hover img { transform: scale(1.05); }
.showcase__item--wide { grid-column: span 2; }
.showcase__item--tall { grid-row: span 2; }
.showcase__note { margin-top: 28px; }
.showcase__tag {
  position: absolute;
  left: 14px; bottom: 14px;
  background: rgba(18,63,90,0.72);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.showcase__item.ph { background: var(--blue-light); display: flex; align-items: center; justify-content: center; }
.showcase__item.ph img { display: none; }
.showcase__item.ph::before {
  content: '📷';
  font-size: 22px;
  color: var(--blue-main);
  opacity: 0.6;
}

/* ---------- Addon panel ---------- */
.addon-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 50px;
  align-items: center;
  background: var(--blue-light);
  border-radius: 24px;
  padding: 50px;
}
.addon-list { list-style: none; padding: 0; margin: 24px 0 30px; display: flex; flex-direction: column; gap: 18px; }
.addon-list li { display: flex; gap: 14px; align-items: flex-start; }
.addon-list__icon { font-size: 22px; line-height: 1.4; }
.addon-list strong { color: var(--blue-deep); font-size: 16px; }
.addon-list p { font-size: 14px; color: var(--text-soft); margin-top: 2px; }

.addon-panel__media {
  aspect-ratio: 4/3.4;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.addon-panel__media img { width: 100%; height: 100%; object-fit: cover; }
.addon-panel__media.ph {
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
}
.addon-panel__media.ph img { display: none; }
.addon-panel__media.ph::after {
  content: '📷 Foto: futebol de sabão / cama elástica';
  color: var(--blue-main);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

.addon-panel__media--split {
  aspect-ratio: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: none;
  border-radius: 0;
}
.addon-panel__photo {
  position: relative;
  aspect-ratio: 4/2.5;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.addon-panel__photo img { width: 100%; height: 100%; object-fit: cover; }
.addon-panel__photo.ph { background: var(--white); display: flex; align-items: center; justify-content: center; }
.addon-panel__photo.ph img { display: none; }
.addon-panel__photo.ph::after { content: '📷 Foto'; color: var(--blue-main); font-size: 13px; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  grid-auto-flow: dense;
  gap: 14px;
}
.gallery__item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
  box-shadow: var(--shadow-sm);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item--col3 { grid-column: span 3; }
.gallery__item.ph { background: var(--white); border: 1px dashed var(--blue-main); display: flex; align-items: center; justify-content: center; }
.gallery__item.ph img { display: none; }
.gallery__item.ph::after { content: '📷'; font-size: 20px; color: var(--blue-main); opacity: 0.5; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(18,63,90,0.94);
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__img { max-width: 88vw; max-height: 82vh; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox__close {
  position: absolute; top: 24px; right: 24px;
  color: var(--white); font-size: 22px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--white); font-size: 34px;
  width: 54px; height: 54px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  transition: background var(--transition);
}
.lightbox__nav:hover { background: rgba(255,255,255,0.22); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* ---------- Notice box (regras) ---------- */
/* ---------- CTA final ---------- */
.cta-final {
  background: linear-gradient(160deg, var(--blue-deep), var(--blue-main));
  padding: 100px 0;
  text-align: center;
}
.cta-final__inner { max-width: 620px; margin: 0 auto; }
.cta-final__title {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--white);
  margin-bottom: 14px;
}
.cta-final__text { color: rgba(255,255,255,0.88); font-size: 16.5px; margin-bottom: 34px; }

.center-cta { text-align: center; margin-top: 40px; }

/* ---------- Footer ---------- */
.footer { background: var(--blue-deep); color: rgba(255,255,255,0.75); padding: 60px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer__logo { font-family: var(--font-title); font-size: 20px; color: var(--white); margin-bottom: 12px; }
.footer__logo span { color: var(--gold); }
.footer__text { font-size: 14px; margin-bottom: 6px; color: rgba(255,255,255,0.68); }
.footer__heading { color: var(--white); font-weight: 600; font-size: 14px; margin-bottom: 14px; letter-spacing: 0.03em; }
.footer__col { display: flex; flex-direction: column; }
.footer__col a { display: block; font-size: 14px; margin-bottom: 10px; color: rgba(255,255,255,0.72); transition: color var(--transition); }
.footer__col a:hover { color: var(--gold); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 24px;
  font-size: 13px;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* ---------- WhatsApp float button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 22px; right: 22px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  z-index: 400;
  transition: transform var(--transition);
}
.whatsapp-float:hover { transform: scale(1.07); }
.whatsapp-float svg { width: 30px; height: 30px; fill: var(--white); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .addon-panel { grid-template-columns: 1fr; padding: 36px 26px; }
  .addon-panel__media { order: -1; aspect-ratio: 16/9; }
  .addon-panel__media--split { order: -1; aspect-ratio: auto; }
  .showcase { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .showcase__item--wide { grid-column: span 2; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery__item--big,
  .gallery__item--tall,
  .gallery__item--wide,
  .gallery__item--col3 { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 860px) {
  .split, .split--reverse { grid-template-columns: 1fr; gap: 34px; }
  .split--reverse .split__text, .split--reverse .split__media { order: initial; }
  .stats { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .navbar__menu {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(80vw, 320px);
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    padding: 100px 30px 40px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 550;
    box-shadow: var(--shadow-lg);
  }
  .navbar__menu.is-open { transform: translateX(0); }
  .navbar__menu .nav-link {
    color: var(--text-main);
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-light);
  }
  .navbar__cta { width: 100%; margin-top: 18px; margin-left: 0; justify-content: center; }
  .navbar__burger { display: flex; }

  .hero {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
  }
  .hero__content { padding-top: 130px; padding-bottom: 48px; }
  .hero__badges {
    position: static;
  }
  .hero__badges-inner { justify-content: flex-start; gap: 28px; }

  .section { padding: 64px 0; }
  .grid--3, .grid--4 { grid-template-columns: 1fr 1fr; }
  .showcase { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }

  /* Galeria: layout em colunas fluidas no mobile (em vez de grid),
     para nunca deixar células vazias, independente da quantidade de fotos. */
  .gallery {
    display: block;
    column-count: 2;
    column-gap: 14px;
  }
  .gallery__item {
    display: block;
    width: 100%;
    margin-bottom: 14px;
    break-inside: avoid;
    height: auto;
  }
  .gallery__item img { height: auto; }
  .gallery__item.ph { min-height: 150px; }

  .lightbox__nav { width: 42px; height: 42px; font-size: 26px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

@media (max-width: 520px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .hero__ctas .btn, .hero__ctas .btn--ghost-light { width: 100%; }
  .hero__ctas { flex-direction: column; }
  .hero__badges-inner { flex-direction: column; gap: 16px; }
  .footer__inner { grid-template-columns: 1fr; }
  .whatsapp-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}
