/* ============================================================
   RANCHO DOS BUCHMANN — styles.css
   Guia de marca: Perfaze © 2026
   ============================================================ */

/* --- Variáveis -------------------------------------------- */
:root {
  /* Cores da marca */
  --creme: #faf3e8;
  --verde: #2e5d3a;
  --terracota: #b5613b;
  --mel: #c79849;
  --salvia: #8fa77b;
  --marrom: #3d2b1f;
  --pedra: #d4c9b8;
  --white: #ffffff;

  /* Variações */
  --verde-dark: #1e3f27;
  --marrom-dark: #2a1d14;
  --mel-dark: #a8802f;
  --terracota-dark: #8f4b2e;

  /* UI */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(61, 43, 31, 0.06);
  --shadow: 0 4px 16px rgba(61, 43, 31, 0.10);
  --shadow-lg: 0 12px 40px rgba(61, 43, 31, 0.16);
  --shadow-xl: 0 24px 64px rgba(61, 43, 31, 0.22);

  /* Tipografia */
  --font-display: 'Caveat', cursive;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Source Sans 3', sans-serif;

  /* Espaçamento */
  --section-py: 96px;
  --container: min(1200px, 92vw);

  /* Animações */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.45, 0, 0.55, 1);
}

/* --- Reset & Base ----------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  background: var(--marrom-dark);
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--marrom-dark);
  color: var(--marrom);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

main {
  background: var(--creme);
}

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

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

button {
  cursor: pointer;
  font-family: inherit;
}

:focus-visible {
  outline: 3px solid var(--mel);
  outline-offset: 2px;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.2;
  font-family: var(--font-serif);
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* --- Acessibilidade --------------------------------------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -44px;
  background: var(--verde-dark);
  color: var(--creme);
  padding: 10px 14px;
  border-radius: var(--radius);
  z-index: 300;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* --- Container -------------------------------------------- */
.container {
  width: var(--container);
  margin-inline: auto;
}

/* --- Tipografia ------------------------------------------- */
.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--terracota);
  margin-bottom: 8px;
}

.section-label-light {
  color: var(--mel);
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--marrom);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--marrom);
  opacity: 0.72;
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-subtitle {
  margin-inline: auto;
}

.section-header-light .section-title {
  color: var(--creme);
}

.section-header-light .section-subtitle {
  color: rgba(250, 243, 232, .9);
}

/* --- Botões ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.btn [data-lucide] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--verde);
  color: var(--creme);
  box-shadow: 0 4px 16px rgba(46, 93, 58, .28);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--verde-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(46, 93, 58, .38);
}

.btn-gold {
  background: var(--mel);
  color: var(--marrom);
  box-shadow: 0 4px 16px rgba(199, 152, 73, .28);
}

.btn-gold:hover,
.btn-gold:focus-visible {
  background: #d4a640;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(199, 152, 73, .38);
}

.btn-ghost {
  border-color: rgba(250, 243, 232, .45);
  color: var(--creme);
  background: rgba(250, 243, 232, .08);
  backdrop-filter: blur(6px);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(250, 243, 232, .18);
  border-color: rgba(250, 243, 232, .75);
}

.btn-ghost-light {
  border-color: rgba(250, 243, 232, .35);
  color: var(--creme);
  background: rgba(250, 243, 232, .08);
}

.btn-ghost-light:hover,
.btn-ghost-light:focus-visible {
  background: rgba(250, 243, 232, .2);
}

.btn-outline {
  border-color: var(--verde);
  color: var(--verde);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--verde);
  color: var(--creme);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* --- Animações de scroll ---------------------------------- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
}

.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* --- Navegação -------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    padding 0.35s var(--ease-out);
}

.nav.nav-solid {
  background: var(--creme);
  box-shadow: var(--shadow);
  padding: 10px 0;
}

.nav-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.nav-logo {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--creme);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, color 0.3s;
}

.nav.nav-solid .nav-logo {
  opacity: 1;
  visibility: visible;
  color: var(--marrom);
}

.nav-logo-image {
  height: 45px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

.nav.nav-solid .nav-logo-image {
  height: 30px;
}

.nav-links {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(250, 243, 232, .96);
  padding: 7px 13px;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav.nav-solid .nav-links a {
  color: var(--marrom);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--creme);
  background: rgba(250, 243, 232, .16);
}

.nav.nav-solid .nav-links a:hover {
  color: var(--verde);
  background: rgba(46, 93, 58, .08);
}

.nav-cta {
  grid-column: 3;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: var(--mel);
  color: var(--marrom) !important;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: #d4a640;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(199, 152, 73, .4);
}

.nav-toggle {
  grid-column: 3;
  justify-self: end;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--creme);
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
  transform-origin: center;
}

.nav.nav-solid .nav-toggle span {
  background: var(--marrom);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero ------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--creme);
  padding: 120px 0 100px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

@keyframes ken-burns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg,
      rgba(20, 50, 28, .78) 0%,
      rgba(20, 50, 28, .55) 48%,
      rgba(20, 50, 28, .38) 100%);
  z-index: 1;
}

.hero-gradient-bottom {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 240px;
  background: linear-gradient(to bottom, transparent, var(--creme));
  z-index: 2;
}

.hero-container {
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 620px;
}

.hero-logomark {
  width: 76px;
  height: 76px;
  border: 1.5px solid rgba(250, 243, 232, .25);
  border-radius: 50%;
  background: rgba(250, 243, 232, .05);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  opacity: 1;
  transform: none;
}

@keyframes hero-rise {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(199, 152, 73, .15);
  border: 1px solid rgba(199, 152, 73, .38);
  backdrop-filter: blur(4px);
  color: var(--mel);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  opacity: 1;
  transform: none;
}

.hero-badge-stars {
  letter-spacing: 2px;
  font-size: 0.78rem;
}

.hero-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 14px;
  opacity: 1;
  transform: none;
}

.hero-rancho {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
  color: rgba(250, 243, 232, .96);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-buchmann {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 8.5vw, 5.8rem);
  font-weight: 700;
  color: var(--creme);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  font-weight: 600;
  color: rgba(250, 243, 232, .88);
  margin-bottom: 18px;
  opacity: 1;
  transform: none;
}

.hero-desc {
  font-size: 1.05rem;
  color: rgba(250, 243, 232, .92);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 32px;
  opacity: 1;
  transform: none;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  opacity: 1;
  transform: none;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0;
  animation: hero-rise 0.8s 1.6s var(--ease-out) forwards;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid rgba(250, 243, 232, .35);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}

.scroll-wheel {
  width: 3px;
  height: 7px;
  background: rgba(250, 243, 232, .55);
  border-radius: 2px;
  animation: scroll-wheel 1.9s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(12px);
    opacity: 0;
  }
}

/* --- Barra de confiança ----------------------------------- */
.trust-bar {
  background: var(--verde-dark);
  color: var(--creme);
  padding: 18px 0;
  position: relative;
  z-index: 2;
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 28px;
  text-align: center;
}

.trust-value {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--mel);
  line-height: 1;
}

.trust-label {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0.62;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-top: 4px;
}

.trust-divider {
  width: 1px;
  height: 30px;
  background: rgba(250, 243, 232, .14);
  flex-shrink: 0;
}

/* --- Sobre ------------------------------------------------ */
.section-about {
  padding: var(--section-py) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: stretch;
}

.about-text .section-title {
  color: var(--marrom);
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(61, 43, 31, .78);
}

.about-quote {
  margin: 28px 0 0;
  padding: 20px 24px;
  border-left: 3px solid var(--mel);
  background: rgba(199, 152, 73, .06);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.about-quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--marrom);
  opacity: 0.9;
  margin-bottom: 10px;
}

.about-quote cite {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--terracota);
  font-style: normal;
}

/* Mosaico de fotos */
.photo-mosaic {
  display: grid;
  grid-template-columns: 1fr 0.52fr;
  gap: 10px;
  height: 100%;
}

.photo-mosaic-main {
  height: 100%;
}

.photo-mosaic-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.photo-mosaic-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.photo-mosaic-side img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Dados rápidos */
.quick-facts {
  background: var(--white);
  border: 1px solid var(--pedra);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
  margin-top: 48px;
}

.quick-facts-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--marrom);
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.facts-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px 24px;
}

.facts-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
  border: none;
}

.facts-list [data-lucide] {
  color: var(--verde);
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.facts-list strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(61, 43, 31, .6);
  margin-bottom: 2px;
}

.facts-list span {
  font-size: 0.95rem;
  color: var(--marrom);
}

/* --- Amenidades ------------------------------------------- */
.section-amenities {
  padding: var(--section-py) 0;
  background: var(--verde-dark);
  position: relative;
  overflow: hidden;
}

.amenities-bg-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: repeating-linear-gradient(45deg,
      var(--creme) 0, var(--creme) 1px,
      transparent 1px, transparent 40px);
}

.section-amenities .section-title {
  color: var(--creme);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.amenity-card {
  background: rgba(250, 243, 232, .05);
  border: 1px solid rgba(250, 243, 232, .1);
  border-radius: var(--radius-lg);
  padding: 30px 22px;
  transition: all 0.32s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.amenity-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(199, 152, 73, .1) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.32s;
}

.amenity-card:hover {
  transform: translateY(-5px);
  background: rgba(250, 243, 232, .08);
  border-color: rgba(199, 152, 73, .28);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
}

.amenity-card:hover::before {
  opacity: 1;
}

.amenity-icon-wrap {
  width: 50px;
  height: 50px;
  background: rgba(199, 152, 73, .14);
  border: 1px solid rgba(199, 152, 73, .22);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.amenity-icon-wrap [data-lucide] {
  color: var(--mel);
  width: 22px;
  height: 22px;
}

.amenity-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--creme);
  margin-bottom: 14px;
}

.amenity-card ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.amenity-card li {
  font-size: 0.93rem;
  color: rgba(250, 243, 232, .9);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}

.amenity-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--salvia);
  border-radius: 50%;
}

/* --- Galeria ---------------------------------------------- */
.section-gallery {
  padding: var(--section-py) 0;
}

.gallery-masonry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 10px;
  grid-auto-flow: dense;
}

.gallery-masonry .gallery-item:nth-child(2) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-masonry .gallery-item:nth-child(5) {
  grid-column: span 2;
}

.gallery-masonry .gallery-item:nth-child(7) {
  grid-row: span 2;
}

.gallery-masonry .gallery-item:nth-child(9) {
  grid-row: span 2;
}

.gallery-masonry .gallery-item:nth-child(10) {
  grid-column: span 2;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 0;
  padding: 0;
  background: var(--pedra);
  cursor: pointer;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out);
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 63, 39, .52);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.28s;
}

.gallery-overlay [data-lucide] {
  width: 32px;
  height: 32px;
  color: var(--creme);
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
  opacity: 1;
}

.gallery-item:focus-visible {
  outline: 3px solid var(--mel);
  outline-offset: 2px;
}

/* --- Depoimentos ------------------------------------------ */
.section-testimonials {
  padding: var(--section-py) 0;
  background: var(--verde);
  position: relative;
  overflow: hidden;
}

.section-testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23FAF3E8' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-bottom: 44px;
  position: relative;
}

.testimonial-card {
  background: rgba(250, 243, 232, .07);
  border: 1px solid rgba(250, 243, 232, .14);
  border-radius: var(--radius-lg);
  padding: 26px;
  min-height: 100%;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 14px;
  transition: all 0.3s var(--ease-out);
}

.testimonial-card:hover {
  background: rgba(250, 243, 232, .1);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
}

.testimonial-stars {
  color: var(--mel);
  font-size: 1rem;
  letter-spacing: 3px;
}

.testimonial-card blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  align-self: stretch;
}

.testimonial-card blockquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--creme);
  line-height: 1.7;
  margin: 0;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 2px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  background: var(--mel);
  color: var(--marrom);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.93rem;
  color: var(--creme);
}

.testimonial-author span {
  font-size: 0.8rem;
  color: rgba(250, 243, 232, .55);
}

.testimonials-cta {
  text-align: center;
  position: relative;
}

/* --- Como chegar ------------------------------------------ */
.section-location {
  padding: var(--section-py) 0;
}

.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 72px;
  align-items: center;
}

.location-distances {
  display: flex;
  flex-direction: column;
  margin: 24px 0 28px;
  background: var(--white);
  border: 1px solid var(--pedra);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.distance-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--pedra);
}

.distance-item:last-child {
  border-bottom: none;
}

.distance-item [data-lucide] {
  color: var(--verde);
  flex-shrink: 0;
  width: 17px;
  height: 17px;
}

.distance-item strong {
  display: block;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--marrom);
}

.distance-item span {
  font-size: 0.83rem;
  color: rgba(61, 43, 31, .55);
}

.location-map iframe {
  width: 100%;
  height: 430px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* --- CTA Final -------------------------------------------- */
.section-final-cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  text-align: center;
  color: var(--creme);
}

.final-cta-bg {
  position: absolute;
  inset: -5%;
  background: url('public/brand/2.webp') center / cover no-repeat;
  animation: ken-burns 20s ease-in-out infinite alternate;
  z-index: 0;
}

.final-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(20, 50, 28, .82), rgba(20, 50, 28, .78));
  z-index: 1;
}

.final-cta-content {
  position: relative;
  z-index: 2;
}

.final-cta-handwritten {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--mel);
  margin-bottom: 12px;
}

.final-cta-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--creme);
  margin-bottom: 10px;
}

.final-cta-subtitle {
  font-size: 1.05rem;
  color: rgba(250, 243, 232, .9);
  margin-bottom: 40px;
}

.final-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Linha decorativa Mel */
.divider-mel {
  display: block;
  width: 48px;
  height: 2px;
  background: var(--mel);
  border-radius: 2px;
  margin: 0 auto 20px;
}

/* --- Rodapé ----------------------------------------------- */
.footer {
  background: var(--marrom-dark);
  color: var(--creme);
  padding: 56px 0 28px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px 56px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(250, 243, 232, .1);
  margin-bottom: 22px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-rancho {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0.75;
  margin: 0;
  line-height: 1.2;
}

.footer-logo-buchmann {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0;
  color: var(--mel);
  line-height: 1.2;
}

.footer-logo-image {
  height: 55px;
  width: auto;
  display: block;
}

.footer-info p {
  font-size: 0.92rem;
  opacity: 0.82;
  margin-bottom: 4px;
}

.footer-info {
  align-self: center;
}

.footer-info p:last-child {
  margin-bottom: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  opacity: 0.9;
  transition: opacity 0.2s, color 0.2s;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--mel);
}

.footer-links [data-lucide] {
  width: 15px;
  height: 15px;
}

.footer-credit {
  font-size: 0.78rem;
  text-align: center;
  margin: 0;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.footer-credit-label {
  opacity: 0.75;
}

.footer-credit a {
  text-decoration: none;
}

.footer-credit a:hover {
  opacity: 1;
}

.perfaze-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.perfaze-logo-crop {
  display: block;
  width: 124px;
  aspect-ratio: 755 / 261;
  overflow: hidden;
}

/* Perfaze Logo no Rodapé */
.perfaze-logo {
  display: block;
  width: 107.75%;
  max-width: none;
  height: auto;
  transform: translate(-3.93%, -5.17%);
  opacity: 1;
}

/* --- Lightbox --------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 10, 6, .94);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s var(--ease-out);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-figure {
  position: relative;
  margin: 0;
  max-width: min(1100px, 90vw);
  text-align: center;
}

.lightbox-figure img {
  max-height: 80vh;
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  transition: opacity 0.2s;
}

.lightbox-figure figcaption {
  color: rgba(250, 243, 232, .6);
  font-size: 0.88rem;
  margin-top: 12px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(250, 243, 232, .1);
  border: 1px solid rgba(250, 243, 232, .14);
  color: var(--creme);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(250, 243, 232, .2);
}

.lightbox-prev:disabled,
.lightbox-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lightbox-close [data-lucide],
.lightbox-prev [data-lucide],
.lightbox-next [data-lucide] {
  width: 22px;
  height: 22px;
}

.lightbox-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(250, 243, 232, .55);
  font-size: 0.88rem;
}

/* --- Botão Voltar ao Topo --------------------------------- */
#scrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: var(--terracota);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  padding: 0;
  padding-bottom: 4px;
  line-height: normal;
  box-shadow: 0 4px 15px rgba(181, 97, 59, 0.4);
  z-index: 999;
  /* Z-index menor para surgir por baixo do WhatsApp */
  opacity: 0;
  /* Começa mais abaixo e menor para o efeito de "surgir" */
  transform: translateY(40px) scale(0.5);
  /* Tempos sincronizados para ambos os botões */
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    background 0.3s ease;
  pointer-events: none;
  overflow: hidden;
}

#scrollTop.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

#scrollTop:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 20px rgba(181, 97, 59, 0.6);
  background: var(--terracota-dark);
}

#scrollTop::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
}

#scrollTop:active::after {
  width: 300px;
  height: 300px;
  transition: 0s;
}

.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: var(--verde);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(46, 93, 58, 0.4);
  z-index: 1000;
  /* Garante que fique acima do botão voltar ao topo */
  /* Transição idêntica ao #scrollTop para movimento simultâneo */
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.3s ease,
    box-shadow 0.3s ease;
  color: var(--creme);
  text-decoration: none;
  --whatsapp-shift: 0px;
  transform: translateY(var(--whatsapp-shift));
}

body.scroll-top-visible .whatsapp-float {
  /* Tamanho do botão (56px) + Margem de respiro (16px) */
  --whatsapp-shift: -72px;
}

.whatsapp-float:hover {
  transform: translateY(var(--whatsapp-shift)) scale(1.08);
  box-shadow: 0 6px 30px rgba(46, 93, 58, 0.6);
  background: var(--verde-dark);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* --- Mobile nav ------------------------------------------- */
@media (max-width: 900px) {
  .nav-inner {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--creme);
    padding: 88px 24px 40px;
    gap: 4px;
    z-index: 99;
    justify-content: flex-start;
    align-items: stretch;
    overflow-y: auto;
  }

  .nav-links.mobile-open a {
    color: var(--marrom);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 16px 18px;
    border-radius: var(--radius);
    border-bottom: 1px solid var(--pedra);
  }

  .nav-links.mobile-open a:hover {
    background: rgba(46, 93, 58, .06);
    color: var(--verde);
  }
}

/* --- Responsivo ------------------------------------------- */
@media (max-width: 1100px) {
  .amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-masonry {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  :root {
    --section-py: 72px;
  }

  .about-grid,
  .location-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .facts-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .location-map iframe {
    height: 300px;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-credit {
    grid-column: 1 / -1;
  }

  .trust-item {
    padding: 6px 16px;
  }

  .trust-divider {
    display: none;
  }
}

@media (max-width: 700px) {
  :root {
    --section-py: 60px;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
  }

  .facts-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-masonry {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 170px;
  }

  .gallery-masonry .gallery-item:nth-child(5) {
    grid-column: span 2;
  }

  .gallery-masonry .gallery-item:nth-child(7) {
    grid-row: span 1;
  }

  .gallery-masonry .gallery-item:nth-child(13) {
    grid-column: span 2;
  }

  .hero-ctas {
    flex-direction: column;
  }

  .hero-ctas .btn {
    justify-content: center;
  }

  .final-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .final-cta-actions .btn {
    justify-content: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .lightbox-prev {
    left: 8px;
  }

  .lightbox-next {
    right: 8px;
  }

  #scrollTop {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    font-size: 18px;
    opacity: 0;
    /* Efeito de origem mantido no mobile */
    transform: translateY(40px) scale(0.5);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  #scrollTop.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: 50%;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }

  body.scroll-top-visible .whatsapp-float {
    /* Tamanho do botão mobile (52px) + Margem (12px) */
    --whatsapp-shift: -64px;
  }

  .whatsapp-float svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .trust-item {
    padding: 6px 10px;
  }

  .trust-value {
    font-size: 1.1rem;
  }

  .trust-label {
    font-size: 0.68rem;
  }
}


@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}