/* ============================================================
   HOME — Ritmo: branco ↔ creme ↔ oceano (hierarquia clara)
============================================================ */

/* ---- Moldura casa (index-backup.html) ---- */
.site-content--house {
  padding-top: calc(var(--roof-height) + var(--announcement-height));
}

.site-content--house:not(:has(.announcement)) {
  padding-top: var(--roof-height);
}

@media (max-width: 900px) {
  .site-content--house {
    padding-top: var(--announcement-height);
  }

  .site-content--house:not(:has(.announcement)) {
    padding-top: 0;
  }
}

@media (max-width: 480px) {
  .site-content:has(.announcement) {
    padding-top: var(--announcement-height-mobile);
  }

  .site-content--house {
    padding-top: var(--announcement-height-mobile);
  }
}

/* ============================================================
   HOME FULL BLEED — index.html (sem moldura verde, vídeo 100%)
============================================================ */

.site-content--home-full {
  padding-top: 0;
  --site-chrome-height: calc(var(--nav-height) + var(--announcement-height));
}

.site-content--home-full:not(:has(.announcement)) {
  --site-chrome-height: var(--nav-height);
}

/* Chrome fixo FORA do .site-content — não some no scroll
   (avoid containing-block de transform do menu). */
.site-chrome--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: calc(var(--z-nav) + 2);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.site-chrome--fixed .announcement {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  flex-shrink: 0;
  margin: 0;
  border: none;
  min-height: var(--announcement-height);
  max-height: var(--announcement-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 0;
  box-sizing: border-box;
}

.site-chrome--fixed rf-navbar {
  height: auto;
  flex-shrink: 0;
  margin: 0;
}

.site-chrome--fixed .navbar {
  position: relative;
  top: auto !important;
  left: auto;
  right: auto;
  width: 100%;
  margin: 0;
  border: none;
}

.site-chrome--fixed .navbar.is-scrolled {
  box-shadow: 0 4px 20px rgba(10, 31, 50, 0.22);
}

.site-content--home-full .hero {
  margin-top: 0;
  margin-inline: 0;
  width: 100%;
  border: none;
  border-radius: 0;
  --hero-header-offset: var(--site-chrome-height);
  --hero-cloud-reserve: 0rem;
}

.site-content--home-full .matching-split {
  margin-inline: 0;
  width: 100%;
  border: none;
  border-radius: 0;
}

@media (max-width: 600px) {
  .site-content--home-full {
    --site-chrome-height: calc(var(--nav-height-mobile) + var(--announcement-height-mobile));
  }

  .site-content--home-full:not(:has(.announcement)) {
    --site-chrome-height: var(--nav-height-mobile);
  }

  .site-content--home-full .hero {
    --hero-header-offset: var(--site-chrome-height);
  }
}

@media (max-width: 480px) {
  .site-chrome--fixed .announcement {
    min-height: var(--announcement-height-mobile);
    max-height: var(--announcement-height-mobile);
  }
}

/*
  Ordem e superfície:
  1. Hero          — vídeo (full bleed)
  2. Marquee + trust
  3. Apartamentos  — branco
  4. Matching      — creme
  5. Como reservar
  6. Comodidades / Por que nós
  7. Localização
  8. Depoimentos
  9. FAQ
  10. Reserva      — oceano
  11. Footer       — escuro
*/

rf-home-marquee,
rf-trust-strip,
rf-apartments-teaser,
rf-matching-teaser,
rf-reservation-steps,
rf-amenities-section,
rf-why-choose-section,
rf-testimonials-section,
rf-faq-section,
rf-location-section,
rf-booking-promo {
  display: block;
}

/* Abaixo da dobra: adia layout/paint até perto da viewport */
rf-matching-teaser,
rf-reservation-steps,
rf-amenities-section,
rf-why-choose-section,
rf-location-section,
rf-testimonials-section,
rf-faq-section,
rf-booking-promo {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 520px;
}

/* ============================================================
   SEÇÕES DA HOME
============================================================ */

.home-section {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-py);
}

.home-section > .container {
  position: relative;
  z-index: 1;
}

.home-section .eyebrow,
.matching-teaser .eyebrow,
.booking-promo .eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orla-600);
}

.home-section__header {
  max-width: 40rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.home-section__header h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: var(--fs-section-title);
  font-weight: 500;
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
}

.home-section__header h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--orla-600);
}

.home-section__header p {
  margin: 0;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: var(--fs-section-lead);
  line-height: var(--lh-normal);
}

.home-section__cta {
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  justify-content: flex-start;
}

/* ---- Marquee ---- */
.home-marquee {
  overflow: hidden;
  background: var(--orla-900);
  color: rgba(255, 251, 244, 0.88);
  border-block: 1px solid rgba(255, 251, 244, 0.08);
  padding-block: 0.85rem;
}

.home-marquee__track {
  display: flex;
  width: max-content;
  gap: 2.5rem;
  animation: home-marquee-scroll 36s linear infinite;
}

.home-marquee__item {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.home-marquee__item::before {
  content: "·";
  margin-right: 2.5rem;
  opacity: 0.45;
  color: var(--sol-400);
}

@keyframes home-marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .home-marquee__track { animation: none; }
}

/* ---- Trust strip ---- */
.trust-strip {
  background:
    linear-gradient(180deg, rgba(255, 251, 244, 0.96), rgba(247, 240, 227, 0.98)),
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(143, 208, 214, 0.18), transparent 55%);
  padding-block: clamp(1.75rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.trust-strip__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.trust-strip__item strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 500;
  color: var(--orla-700);
  line-height: 1;
}

.trust-strip__item span {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.35;
}

@media (max-width: 800px) {
  .trust-strip__inner {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- Apartments teaser ---- */
.apartments-teaser {
  background: var(--paper);
}

.apartments-teaser__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

@media (max-width: 800px) {
  .apartments-teaser__grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Matching teaser ---- */
.matching-teaser {
  padding: 0;
  background: var(--sand-200);
  overflow: hidden;
}

.matching-teaser__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  min-height: clamp(28rem, 70vw, 36rem);
}

.matching-teaser__copy {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  /* fundo sólido — o fade fica só na foto, mais fino */
  background: var(--sand-200);
}

.matching-teaser__copy-inner {
  max-width: 34rem;
}

.matching-teaser__copy h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: var(--fs-section-title);
  font-weight: 500;
  line-height: var(--lh-tight);
  color: var(--ink);
}

.matching-teaser__copy h2 em {
  font-style: italic;
  color: var(--orla-700);
}

.matching-teaser__copy p {
  margin: 0 0 1.25rem;
  max-width: 42ch;
  color: var(--ink-soft);
  line-height: var(--lh-normal);
}

.matching-teaser__steps {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.85rem;
  background: rgba(255, 251, 244, 0.92);
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-card);
}

.matching-teaser__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
}

.matching-teaser__steps strong {
  display: block;
  color: var(--ink);
  font-size: 0.95rem;
}

.matching-teaser__steps span:not(.matching-teaser__n) {
  display: block;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.4;
}

.matching-teaser__n {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--orla-100);
  color: var(--orla-700);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.matching-teaser__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.matching-teaser__link {
  color: var(--orla-700);
  font-weight: 600;
  font-size: 0.95rem;
}

.matching-teaser__link:hover {
  color: var(--orla-800);
}

.matching-teaser__visual {
  position: relative;
  min-height: 100%;
}

.matching-teaser__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

/* Fade fino na borda da foto — mix leve, sem cobrir o mascote */
.matching-teaser__visual::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: min(18%, 5.5rem);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    var(--sand-200) 0%,
    rgba(247, 240, 227, 0.35) 40%,
    rgba(247, 240, 227, 0) 100%
  );
}

@media (max-width: 900px) {
  .matching-teaser__split {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .matching-teaser__copy {
    background: var(--sand-200);
    padding-bottom: 1.25rem;
  }

  .matching-teaser__visual {
    min-height: 16rem;
  }

  .matching-teaser__visual::before {
    inset: 0 0 auto 0;
    width: 100%;
    height: 2.25rem;
    background: linear-gradient(
      180deg,
      var(--sand-200) 0%,
      rgba(247, 240, 227, 0) 100%
    );
  }
}

/* ---- Reservation steps ---- */
.reservation-steps {
  background: var(--paper);
}

.reservation-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: none;
}

.reservation-steps__item h3 {
  margin: 0.5rem 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
}

.reservation-steps__item p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 28ch;
}

.reservation-steps__n {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--agua-600);
}

@media (max-width: 800px) {
  .reservation-steps__list {
    grid-template-columns: 1fr;
  }
}

/* ---- Amenities ---- */
.amenities-section {
  background:
    linear-gradient(180deg, var(--sand-200), var(--paper));
}

.amenities-section__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1.5rem;
}

.amenities-section__list li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--ink);
  line-height: 1.45;
}

.amenities-section__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--sol-500);
}

@media (max-width: 800px) {
  .amenities-section__list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .amenities-section__list {
    grid-template-columns: 1fr;
  }
}

/* ---- Why choose ---- */
.why-choose {
  background: var(--paper);
}

.why-choose__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.why-choose__list h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
}

.why-choose__list p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 28ch;
}

@media (max-width: 800px) {
  .why-choose__list {
    grid-template-columns: 1fr;
  }
}

/* ---- Location ---- */
.location-section {
  background:
    radial-gradient(ellipse 70% 50% at 80% 10%, rgba(47, 143, 156, 0.12), transparent 50%),
    var(--sand-200);
}

.location-section__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.location-section__benefits {
  display: grid;
  gap: 1.75rem;
}

.location-section__benefit h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
}

.location-section__benefit > p {
  margin: 0 0 0.65rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.location-section__benefit ul {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  color: var(--ink);
  line-height: 1.55;
}

.location-section__benefit a {
  color: var(--orla-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.location-section__benefit[data-neighborhood="boa-viagem"] h3,
.location-section__benefit[data-neighborhood="boa-viagem"] a {
  color: var(--orla-700);
}

.location-section__benefit[data-neighborhood="pina"] h3,
.location-section__benefit[data-neighborhood="pina"] a {
  color: var(--mangue-600);
}

.location-section__map {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.location-section__map iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: var(--radius-xl);
  background: var(--sand-300);
}

.location-section__map-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orla-700);
}

@media (max-width: 900px) {
  .location-section__grid {
    grid-template-columns: 1fr;
  }

  .location-section__map {
    position: static;
  }
}

/* ---- Testimonials ---- */
.testimonials {
  background: var(--paper);
}

.testimonials__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.testimonials__item blockquote {
  margin: 0;
  padding: 0;
}

.testimonials__item p {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
}

.testimonials__item footer {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

@media (max-width: 800px) {
  .testimonials__list {
    grid-template-columns: 1fr;
  }
}

/* ---- FAQ ---- */
.faq-section {
  background: var(--sand-200);
}

.faq-section__list {
  max-width: 42rem;
  display: grid;
  gap: 0.5rem;
}

.faq-section__item {
  border-bottom: 1px solid var(--line);
  padding-block: 0.85rem;
}

.faq-section__item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-section__item summary::-webkit-details-marker { display: none; }

.faq-section__item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--orla-600);
  flex-shrink: 0;
}

.faq-section__item[open] summary::after {
  content: "−";
}

.faq-section__item p {
  margin: 0.75rem 0 0.25rem;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 48ch;
}

/* ---- Booking promo ---- */
.booking-promo {
  background:
    linear-gradient(160deg, var(--orla-600) 0%, var(--orla-800) 45%, var(--orla-1000) 100%);
  color: rgba(255, 251, 244, 0.92);
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.booking-promo__inner {
  max-width: 40rem;
}

.booking-promo .eyebrow {
  color: var(--sol-300);
}

.booking-promo h2 {
  margin: 0.75rem 0;
  font-family: var(--font-display);
  font-size: var(--fs-section-title);
  font-weight: 500;
  line-height: var(--lh-tight);
  color: var(--paper);
}

.booking-promo h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--sol-300);
}

.booking-promo p {
  margin: 0 0 1.75rem;
  max-width: 40ch;
  color: rgba(255, 251, 244, 0.78);
  line-height: 1.55;
}

.booking-promo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.booking-promo .btn--outline {
  color: var(--paper);
  border-color: rgba(255, 251, 244, 0.45);
}

.booking-promo .btn--outline:hover {
  background: rgba(255, 251, 244, 0.1);
}