/* ============================================
   CASA DAS PALMEIRAS — Editorial Quiet Luxury
   ============================================ */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ---------- TOKENS ---------- */
:root {
  --bg: #FAF8F3;
  --bg-alt: #F2EDE4;
  --fg: #1F2A24;
  --fg-soft: #5A6660;
  --primary: #2D4A3E;
  --primary-deep: #1A2F26;
  --secondary: #3C5A6B;
  --accent: #B8841F;
  --accent-text: #7A5708;
  --accent-soft: #D9B26A;
  --wood: #7A5A3F;
  --border: #E5DDD0;
  --muted: #EFE9DE;
  --white: #FFFFFF;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --container: 1280px;
  --narrow: 720px;
}

/* ---------- BASE ---------- */
body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
}

@media (min-width: 768px) {
  body { font-size: 18px; }
}

/* ---------- LANGUAGE VISIBILITY ---------- */
html[lang="pt-BR"] .lang-en,
html[lang="en"] .lang-pt {
  display: none;
}

/* ---------- TYPOGRAPHY ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fg-soft);
  margin-bottom: 1.5rem;
}
.eyebrow--light { color: rgba(255,255,255,0.75); }

@media (min-width: 768px) {
  .eyebrow { font-size: 13px; }
}

.h1, .hero__title, .h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.h1, .hero__title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
}
.h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.08;
  margin-bottom: 2rem;
}
.h2--light { color: var(--white); }

.prose p,
.prose__lead {
  font-family: var(--font-body);
  color: var(--fg);
  max-width: 38rem;
}
.prose p {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.prose p:last-child { margin-bottom: 0; }
.prose em {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25em;
  font-weight: 400;
  color: var(--primary);
  display: inline-block;
}
.prose--light p { color: rgba(255,255,255,0.92); }
.prose--light em { color: var(--accent-soft); }
.prose--list p { font-size: 1.0625rem; margin-bottom: 1rem; }

.prose__lead {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.625rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--fg-soft);
  margin-bottom: 2rem;
}
.prose__lead--light { color: rgba(255,255,255,0.9); }

.prose__note {
  font-size: 0.9375rem;
  color: var(--fg-soft);
  margin-top: 2rem;
  font-style: italic;
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container--narrow { max-width: var(--narrow); }

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

.section {
  padding: 5rem 0;
  position: relative;
}
@media (min-width: 768px) {
  .section { padding: 8rem 0; }
}

.section--editorial { background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--primary-deep); color: var(--white); position: relative; overflow: hidden; }
.section--page2-header { background: var(--bg-alt); padding-top: 6rem; }
.section--bridge { padding: 4rem 0; background: var(--bg); }

/* ---------- TOP NAV ---------- */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1rem 0;
  background: transparent;
  transition: background 250ms ease, padding 250ms ease;
}
.topnav.is-scrolled {
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--border);
}
.topnav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
@media (min-width: 768px) {
  .topnav__inner { padding: 0 2rem; }
}
.topnav__brand {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--white);
  transition: color 250ms ease;
}
.topnav.is-scrolled .topnav__brand { color: var(--fg); }

@media (min-width: 768px) {
  .topnav__brand { font-size: 1.25rem; }
}

.topnav__right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (min-width: 768px) {
  .topnav__right { gap: 1.5rem; }
}

.topnav__link {
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--white);
  padding: 0.5rem 0.25rem;
  transition: color 250ms ease;
  display: none;
}
.topnav.is-scrolled .topnav__link { color: var(--fg); }
.topnav__link:hover { color: var(--accent-soft); }
.topnav.is-scrolled .topnav__link:hover { color: var(--accent); }

@media (min-width: 768px) {
  .topnav__link { display: inline-flex; }
}

.topnav__link--accent {
  display: inline-flex;
  border: 1px solid currentColor;
  padding: 0.5rem 1rem;
}
.lang-toggle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.5rem 0.625rem;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.6);
  transition: color 250ms ease, border-color 250ms ease;
  background: transparent;
}
.lang-toggle:hover { border-color: var(--accent-soft); color: var(--accent-soft); }
.topnav.is-scrolled .lang-toggle { color: var(--fg); border-color: var(--border); }
.topnav.is-scrolled .lang-toggle:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  width: 100%;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__img-wrap {
  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(
    to bottom,
    rgba(26, 47, 38, 0.25) 0%,
    rgba(26, 47, 38, 0.05) 22%,
    rgba(26, 47, 38, 0.45) 55%,
    rgba(26, 47, 38, 0.82) 85%,
    rgba(26, 47, 38, 0.92) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  color: var(--white);
}
@media (min-width: 768px) {
  .hero__content { padding: 0 2rem 6rem; max-width: 920px; }
}

.hero__title {
  color: var(--white);
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.hero__sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  line-height: 1.55;
  font-weight: 300;
  color: rgba(255,255,255,0.92);
  max-width: 34rem;
  margin-bottom: 2.5rem;
}
.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.hero__ctas--center {
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero__ctas { flex-direction: row; align-items: center; gap: 1.5rem; }
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 0.9375rem 1.75rem;
  border: 1px solid transparent;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
  cursor: pointer;
  border-radius: 0;
}
.btn--primary {
  background: var(--primary);
  color: var(--bg);
  border-color: var(--primary);
}
.btn--primary:hover {
  background: var(--primary-deep);
  border-color: var(--primary-deep);
}
.btn--accent {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn--accent:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  color: var(--primary-deep);
}
.btn--big {
  padding: 1.125rem 2.25rem;
  font-size: 1rem;
}
.btn--ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.section:not(.section--dark) .btn--ghost {
  color: var(--fg);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: var(--accent-soft);
  color: var(--accent-soft);
}
.section:not(.section--dark) .btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn .arrow { display: inline-block; transition: transform 200ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- FIGURES ---------- */
.figure {
  margin: 4rem 0;
  overflow: hidden;
}
.figure img {
  width: 100%;
  height: auto;
  display: block;
}
.figure--wide {
  max-width: 1280px;
  margin: 4rem auto;
  padding: 0 1.25rem;
}
@media (min-width: 768px) {
  .figure--wide { padding: 0 2rem; margin: 5rem auto; }
}
/* Evita soma dupla de respiro nas bordas da seção (padding da seção já cuida) */
.section > .figure--wide:last-child { margin-bottom: 0; }
.section > .figure--wide:first-child { margin-top: 0; }
.figure--fullbleed {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 0;
}
.figure--fullbleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.section--dark .container { position: relative; z-index: 1; }

/* ---------- AERIAL SECTION (entre hero e §2) ---------- */
.section--aerial {
  background: var(--primary-deep);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.figure--aerial {
  margin: 0;
  width: 100%;
  height: 70vh;
  min-height: 460px;
  max-height: 720px;
  overflow: hidden;
}
.figure--aerial img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.aerial-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 1.25rem;
  background: linear-gradient(to top, rgba(26,47,38,0.85) 0%, rgba(26,47,38,0) 100%);
  color: var(--white);
  text-align: center;
}
@media (min-width: 768px) {
  .aerial-caption { padding: 4rem 2rem; }
}
.aerial-text {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.4;
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255,255,255,0.92);
}

/* ---------- SUITE COM IMAGEM ---------- */
.suite {
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.suite__img {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.suite__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}
.suite:hover .suite__img img {
  transform: scale(1.04);
}
.suite__content {
  padding: 1.75rem 1.5rem 2rem;
}
.suite:nth-child(1) .suite__img {
  aspect-ratio: 16 / 9;
}
.suite:nth-child(1) .suite__content {
  padding: 2rem 2.5rem 2.5rem;
}
@media (min-width: 768px) {
  .suite__content { padding: 2rem 2rem 2.25rem; }
  .suite:nth-child(1) .suite__content { padding: 2.5rem 3rem 3rem; }
}

/* ---------- PHOTO STRIP (§2 e similares) ---------- */
.photo-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
@media (min-width: 768px) {
  .photo-strip {
    gap: 2.5rem;
  }
}
.photo-strip__item {
  margin: 0;
  overflow: hidden;
}
.photo-strip__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 600ms ease;
}
.photo-strip__item:hover img {
  transform: scale(1.04);
}

/* ---------- GALLERY GRID (Os ambientes) ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}
@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    grid-auto-rows: 280px;
  }
  /* destaque irregular */
  .gallery-grid__item:nth-child(1) { grid-row: span 2; }
  .gallery-grid__item:nth-child(4) { grid-row: span 2; }
}
.gallery-grid__item {
  margin: 0;
  overflow: hidden;
}
.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}
.gallery-grid__item:hover img {
  transform: scale(1.05);
}

/* ---------- ACADEMIA (split layout) ---------- */
.academia {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .academia {
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
  }
}
.academia__text { max-width: 32rem; }
.academia__images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 600px) {
  .academia__images { grid-template-columns: 1.4fr 1fr; }
}
.academia__images figure { margin: 0; overflow: hidden; }
.academia__images img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.academia__images figure:nth-child(1) img {
  aspect-ratio: 3 / 4;
}

/* ---------- SCENES (§6) ---------- */
.scenes {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.25rem 0;
}
@media (min-width: 768px) {
  .scenes { padding: 4rem 2rem 0; }
}

.scene {
  display: block;
  margin-bottom: 5rem;
  text-align: center;
}
.scene:last-child { margin-bottom: 0; }
@media (min-width: 768px) {
  .scene { margin-bottom: 7.5rem; }
}

.scene__text {
  max-width: 640px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}
@media (min-width: 768px) {
  .scene__text { margin-bottom: 2.5rem; }
}
.scene__caption {
  font-family: var(--font-display);
  font-size: clamp(1.625rem, 2.6vw, 2.25rem);
  line-height: 1.12;
  font-weight: 400;
  color: var(--primary);
  margin-bottom: 1rem;
}
.scene__body {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--fg-soft);
  max-width: 38rem;
  margin: 0 auto;
}

.scene__img {
  overflow: hidden;
  cursor: pointer;
}
.scene__img img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}
.scene__img:hover img {
  transform: scale(1.05);
}

/* ---------- VIDEO ---------- */
.video-wrap {
  position: relative;
  width: 100%;
  max-width: 405px;
  margin: 2rem auto 0;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--primary-deep);
  border-radius: 12px;
}
.video-wrap iframe,
.video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}

/* ---------- BRIDGE / DIVIDER ---------- */
.divider {
  width: 80px;
  height: 1px;
  background: var(--accent);
  margin: 0 auto 3rem;
}
.bridge__text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.3;
  font-weight: 400;
  color: var(--fg);
}
.bridge__sub {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.95em;
  color: var(--fg-soft);
  font-style: italic;
}

/* ---------- SUITES (asymmetric: master featured + 2x2 grid) ---------- */
.suites {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 768px) {
  .suites {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "master master"
      "s2 s3"
      "s4 s5";
    gap: 2rem;
  }
  .suite:nth-child(1) { grid-area: master; }
  .suite:nth-child(2) { grid-area: s2; }
  .suite:nth-child(3) { grid-area: s3; }
  .suite:nth-child(4) { grid-area: s4; }
  .suite:nth-child(5) { grid-area: s5; }
}

.suite {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 2rem;
  transition: transform 250ms ease, box-shadow 250ms ease;
  position: relative;
}
.suite:nth-child(1) {
  background: var(--muted);
  border-color: var(--wood);
  padding: 2.5rem;
}
.suite:nth-child(1)::before {
  content: "01";
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--accent-soft);
  line-height: 1;
}
@media (min-width: 768px) {
  .suite:nth-child(1) { padding: 3rem; }
  .suite:nth-child(1) .suite__title { font-size: 2.25rem; }
  .suite:nth-child(1) .suite__body { font-size: 1.0625rem; max-width: 32rem; }
}
.suite:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31, 42, 36, 0.06);
}
.suite__title {
  font-family: var(--font-display);
  font-size: 1.625rem;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.375rem;
}
.suite__loc {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-text);
  margin-bottom: 1.25rem;
}
.suite__body {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--fg-soft);
}

/* ---------- STRUCTURE (asymmetric 60/40 — Externo featured) ---------- */
.structure {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
}
@media (min-width: 900px) {
  .structure {
    grid-template-columns: 1.6fr 1fr;
    grid-template-areas:
      "externo interno"
      "externo servico";
    gap: 3rem 4rem;
    align-items: start;
  }
  .structure__block:nth-child(1) {
    grid-area: externo;
    padding-right: 2rem;
    border-right: 1px solid var(--border);
  }
  .structure__block:nth-child(2) { grid-area: interno; }
  .structure__block:nth-child(3) { grid-area: servico; }
  .structure__block:nth-child(1) .structure__title { font-size: 1.875rem; }
  .structure__block:nth-child(1) ul li { font-size: 1rem; padding: 0.625rem 0; }
}
.structure__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.structure__block ul li {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--fg-soft);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(229, 221, 208, 0.5);
}
.structure__block ul li:last-child { border-bottom: 0; }

/* ---------- ROUTES ---------- */
.routes {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
}
.route {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.route:last-child { border-bottom: 0; }
.route--featured {
  background: var(--muted);
  padding: 2rem;
  border: none;
}
.route__title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.route p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--fg-soft);
}

/* ---------- RATES TABLE ---------- */
.rates {
  width: 100%;
  margin-top: 2rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}
.rates th, .rates td {
  text-align: left;
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.rates th {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-soft);
  border-bottom: 2px solid var(--primary);
}
.rates td:nth-child(2) {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
}
.rates td:nth-child(3) {
  color: var(--fg-soft);
}

/* ---------- POLICIES ---------- */
.policies {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .policies { grid-template-columns: repeat(3, 1fr); }
}
.policy { }
.policy__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
}
.policy p {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--fg-soft);
}

/* ---------- FAQ ---------- */
.faq {
  margin-top: 2.5rem;
  max-width: 720px;
}
.faq__item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.faq__item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--primary);
  padding: 0.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  position: relative;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--accent-text);
  transition: transform 250ms ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item[open] summary { color: var(--accent-text); }
.faq__item p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--fg-soft);
  padding: 0.5rem 0 1rem;
  max-width: 600px;
}

/* ---------- CTA FINAL ---------- */
.section--cta-final {
  min-height: 70vh;
  display: flex;
  align-items: center;
  text-align: center;
}
.section--cta-final .figure--fullbleed img {
  opacity: 0.4;
}
.section--cta-final .container {
  text-align: center;
}
.section--cta-final .hero__ctas {
  margin-top: 2rem;
  justify-content: center;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--primary-deep);
  color: rgba(255,255,255,0.7);
  padding: 3rem 0;
  text-align: center;
}
.footer__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.footer__meta {
  font-size: 0.875rem;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.6);
}
.footer__copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- REVEAL ANIMATION ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ---------- DARK SECTION ADJUSTMENTS ---------- */
.section--dark { padding-top: 8rem; padding-bottom: 8rem; }
.section--dark .container--narrow { padding-top: 2rem; padding-bottom: 2rem; }
.section--dark .h2--light { color: var(--white); }

@media (min-width: 768px) {
  .section--dark { padding-top: 10rem; padding-bottom: 10rem; }
}

/* ---------- GALERIA PRAIAS DE MARAÚ ---------- */
.praias-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  max-width: 1280px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .praias-grid { gap: 1.75rem; }
}
.praias-grid__item {
  margin: 0;
  overflow: hidden;
}
.praias-grid__item img {
  width: 100%;
  display: block;
  transition: transform 600ms ease;
}
.praias-grid__item:hover img { transform: scale(1.04); }
.praias-grid__item--v img {
  aspect-ratio: 4 / 5;
  height: 100%;
  object-fit: cover;
}
.praias-grid__item--h {
  grid-column: 1 / -1;
}
.praias-grid__item--h img { height: auto; }

/* ---------- LIGHTBOX (casa em cenas) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(26, 47, 38, 0.95);
  padding: 5vh 2vw;
}
.lightbox.is-open { display: flex; }
.lightbox__img {
  max-width: 92vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  border-radius: 2px;
}
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: none;
  border: none;
  color: #FAF8F3;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 200ms ease, transform 200ms ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { opacity: 1; }
.lightbox__close {
  top: 2.5vh;
  right: 3vw;
  font-size: 2.5rem;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  padding: 1rem 1.25rem;
}
.lightbox__nav:hover { transform: translateY(-50%) scale(1.1); }
.lightbox__prev { left: 1.5vw; }
.lightbox__next { right: 1.5vw; }
.lightbox__counter {
  position: absolute;
  bottom: 3vh;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(250, 248, 243, 0.8);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}
@media (max-width: 767px) {
  .lightbox__nav { font-size: 2.25rem; padding: 0.5rem 0.75rem; }
  .lightbox__prev { left: 0; }
  .lightbox__next { right: 0; }
  .lightbox__close { font-size: 2.25rem; right: 5vw; }
}
