/* =========================================================
   Recanto Feliz Atibaia — camada de personalização
   Tailwind cobre o utilitário; aqui ficam tokens, tipografia
   e os componentes que o utilitário não expressa bem.
   ========================================================= */

:root {
  /* Superfícies — neutros quentes, puxados da pedra e da areia da casa */
  --bone: #fbf8f3;
  --sand: #f3ede4;
  --clay-wash: #f6ece5;

  /* Tinta */
  --ink: #211d18;
  --ink-soft: #5f574c;
  --ink-faint: #8c8377;

  /* Acento — terracota do telhado */
  --clay: #a9522f;
  --clay-deep: #83391f;

  /* Secundário — verde do gramado, usado com parcimônia */
  --moss: #4a5942;

  --line: #e5dccf;
  --line-strong: #d6c9b6;

  --shadow-soft: 0 1px 2px rgba(33, 29, 24, 0.04), 0 8px 24px -12px rgba(33, 29, 24, 0.12);
  --shadow-lift: 0 2px 4px rgba(33, 29, 24, 0.05), 0 24px 48px -20px rgba(33, 29, 24, 0.22);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  background: var(--bone);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "cv05", "ss01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Tipografia ---------- */

.font-display {
  font-family: "Fraunces", ui-serif, Georgia, serif;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 40, "WONK" 0;
}

/* Títulos editoriais: peso leve, entrelinha curta, sem caixa alta */
.display-xl {
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 300;
}

.display-lg {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 300;
}

.display-md {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.015em;
  font-weight: 400;
}

/* Rótulo de seção */
.eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clay);
}

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 1.9rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
  will-change: transform;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--clay);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  background: var(--clay-deep);
  box-shadow: var(--shadow-lift);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.06);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-outline {
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bone);
}

/* ---------- Cabeçalho ---------- */

.site-header {
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(251, 248, 243, 0.88);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 24px -12px rgba(33, 29, 24, 0.3);
}

.site-header.is-scrolled .nav-link,
.site-header.is-scrolled .brand-mark,
.site-header.is-scrolled .menu-toggle { color: var(--ink); }

.site-header.is-scrolled .brand-sub { color: var(--ink-faint); }

.site-header.is-scrolled .btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}
.site-header.is-scrolled .btn-ghost:hover {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  color: #fff;
  transition: color 0.3s var(--ease), opacity 0.3s var(--ease);
  opacity: 0.9;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  height: 1px;
  width: 0;
  background: currentColor;
  transition: width 0.35s var(--ease);
}
.nav-link:hover { opacity: 1; }
.nav-link:hover::after { width: 100%; }

/* Menu mobile */
.mobile-menu {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.5s var(--ease);
}
.mobile-menu.is-open { clip-path: inset(0 0 0 0); }

/* ---------- Hero ---------- */

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 17, 13, 0.5) 0%,
    rgba(20, 17, 13, 0.15) 32%,
    rgba(20, 17, 13, 0.28) 62%,
    rgba(20, 17, 13, 0.72) 100%
  );
}

/* Zoom lentíssimo — movimento que se sente sem se notar */
.hero-img {
  animation: heroDrift 26s var(--ease) forwards;
}
@keyframes heroDrift {
  from { transform: scale(1.09); }
  to   { transform: scale(1); }
}

.scroll-cue {
  animation: cueFloat 2.6s ease-in-out infinite;
}
@keyframes cueFloat {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50%      { transform: translateY(7px); opacity: 1; }
}

/* ---------- Revelação no scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] { transition-delay: 0.09s; }
.reveal[data-delay="2"] { transition-delay: 0.18s; }
.reveal[data-delay="3"] { transition-delay: 0.27s; }
.reveal[data-delay="4"] { transition-delay: 0.36s; }
.reveal[data-delay="5"] { transition-delay: 0.45s; }

/* ---------- Imagens ---------- */

.media {
  overflow: hidden;
  background: var(--sand);
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.media-zoom:hover img { transform: scale(1.045); }

/* ---------- Filtros da galeria ---------- */

.filter-chip {
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  white-space: nowrap;
  transition: all 0.28s var(--ease);
}
.filter-chip:hover { border-color: var(--line-strong); color: var(--ink); }
.filter-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bone);
}

.gallery-item {
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.gallery-item.is-hidden {
  display: none;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(16, 14, 11, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: min(94vw, 1400px);
  max-height: 84vh;
  object-fit: contain;
}
.lb-btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.25s var(--ease);
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.22); }

/* ---------- FAQ ---------- */

.faq-item summary {
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-icon { transition: transform 0.35s var(--ease); }
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body {
  overflow: hidden;
  animation: faqOpen 0.4s var(--ease);
}
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Avaliações ---------- */

.reviews-track {
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.reviews-track::-webkit-scrollbar { display: none; }
.review-card { scroll-snap-align: start; }

/* ---------- Barra fixa mobile ---------- */

.mobile-cta {
  transform: translateY(120%);
  transition: transform 0.45s var(--ease);
}
.mobile-cta.is-visible { transform: none; }

/* Espaço para a barra não cobrir o fim do rodapé */
@media (max-width: 1023px) {
  body { padding-bottom: 4.75rem; }
}

/* ---------- Detalhes ---------- */

.rule {
  height: 1px;
  background: var(--line);
}

.stat-num {
  font-family: "Fraunces", serif;
  font-weight: 300;
  letter-spacing: -0.02em;
}

::selection {
  background: var(--clay);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
