﻿/* Reset & Tokens (Colors, Typography, Spacing) */
:root {
  /* Paleta de Cores Refinada */
  --bg: #F9F5F1; /* Bege mais claro e limpo */
  --bg-2: #F0EADF; /* Variação sutil para seções */
  --text: #3E322C; /* Marrom escuro profundo (menos preto) */
  --text-light: #524036; /* Texto secundário */
  --muted: #847269; /* Texto terciário/muted */
  
  --brand: #966F59; /* Tom principal terracota suave */
  --brand-hover: #7D5A46; /* Hover do brand */
  --brand-light: #C9B2A3; /* Brand claro */
  
  --stroke: rgba(150, 111, 89, 0.2); /* Linhas finas */
  --stroke-strong: rgba(150, 111, 89, 0.4);
  
  /* Sistema Glass / Surface */
  --card-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-blur: 16px;
  
  /* Sombras */
  --shadow-sm: 0 4px 12px rgba(62, 50, 44, 0.04);
  --shadow-md: 0 12px 32px rgba(62, 50, 44, 0.06);
  --shadow-hover: 0 16px 48px rgba(62, 50, 44, 0.09);
  
  /* Dimensões & Borda */
  --radius-sm: 8px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --container: 1120px;
  --header-height: 72px;
  
  /* Animações */
  --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
  --ease-spring: cubic-bezier(0.68, -0.6, 0.32, 1.6); /* Saltitante sutil */
  --trans-fast: 0.2s;
  --trans-base: 0.3s;
  
  /* Fontes */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-script: "Allura", cursive;
}

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

html {
  scroll-behavior: smooth;
  font-size: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html { overflow-x: hidden; }
}

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

/* Loader: esconde conteúdo até finalizar (com fallback no-js) */
html.is-loading body > :not(.page-loader) {
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
}

body > :not(.page-loader) {
  transition: opacity 320ms var(--ease-out), transform 320ms var(--ease-out);
}

html.is-loader-out body > :not(.page-loader) {
  opacity: 1;
  transform: none;
}

.no-js .page-loader { display: none; }
.no-js.is-loading body > :not(.page-loader) {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(249, 245, 241, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.page-loader__card {
  width: min(92vw, 520px);
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
}

.page-loader__logo {
  width: min(240px, 70vw);
  height: auto;
  margin: 0 auto;
  opacity: 0.95;
  animation: loaderFloat 1.8s var(--ease-out) infinite;
}

.page-loader__dots {
  margin-top: 1.1rem;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.page-loader__dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--brand);
  opacity: 0.35;
  animation: loaderDots 900ms var(--ease-out) infinite;
}

.page-loader__dots span:nth-child(2) { animation-delay: 150ms; }
.page-loader__dots span:nth-child(3) { animation-delay: 300ms; }

@keyframes loaderFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes loaderDots {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-4px); opacity: 0.9; }
}

@keyframes loaderOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.985); }
}

html.is-loader-out .page-loader {
  animation: loaderOut 420ms var(--ease-out) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .page-loader__logo,
  .page-loader__dots span,
  html.is-loader-out .page-loader {
    animation: none !important;
  }

  body > :not(.page-loader) {
    transition: none;
  }
}

/* Scrollbar fina e marrom (onde suportado) */
html {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--brand) transparent; /* Firefox */
}

/* Chromium/WebKit */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-hover);
  background-clip: content-box;
}

body.is-nav-open {
  overflow: hidden;
}

/* Tipografia */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--text);
}

p { margin: 0 0 1rem 0; }
a { color: inherit; text-decoration: none; transition: color var(--trans-fast); }
img { max-width: 100%; height: auto; display: block; }
ul { role: list; } /* A11y fix */

/* Utilitários de Foco Acessível (mas bonito) */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 4px;
  border-radius: 4px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.no-js .nav-menu-wrapper { display: none; } /* Fallback */

/* =========================================
   COMPONENTS
   ========================================= */

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--trans-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background-color: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(150, 111, 89, 0.25);
}

.btn-primary:hover {
  background-color: var(--brand-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(150, 111, 89, 0.3);
}

.btn-ghost {
  background: transparent;
  border-color: var(--stroke-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--brand);
  color: var(--brand-hover);
}

.btn-block { width: 100%; display: flex; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-sm { padding: 0.6rem 1.4rem; font-size: 0.9rem; }

/* Glass Cards */
.glass {
  background: var(--card-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(110%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(110%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  transition: transform var(--trans-base) var(--ease-out), box-shadow var(--trans-base) var(--ease-out);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(255,255,255, 0.8);
}

/* =========================================
   HEADER & NAV
   ========================================= */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--header-height);
  background: rgba(249, 245, 241, 0.85); /* fallback */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
  transition: transform var(--trans-base), background-color var(--trans-base);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; transition: opacity var(--trans-fast); }
.brand:hover { opacity: 0.85; }

/* Desktop Nav */
.site-nav { display: flex; align-items: center; }

.nav-list {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--brand);
  transition: width var(--trans-base) var(--ease-out);
}

.nav-link:hover { color: var(--brand); }
.nav-link:hover::after { width: 100%; }

/* Mobile Menu Toggle (Hamburger) */
.nav-toggle {
  display: none; /* Desktop hidden */
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 110;
}

.hamburger-box { width: 24px; height: 20px; position: relative; display: block; }
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
  width: 24px; height: 2px; background-color: var(--text); position: absolute; border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.hamburger-inner { top: 9px; }
.hamburger-inner::before { content: ""; top: -8px; }
.hamburger-inner::after { content: ""; bottom: -8px; }

/* Estado Aberto do Toggle */
.nav-toggle[aria-expanded="true"] .hamburger-inner { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger-inner::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger-inner::after { transform: translateY(-8px) rotate(-45deg); }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 20px) 0 4rem; 
  overflow: hidden;
  min-height: auto; 
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: 
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.7) 0%, transparent 40%),
    radial-gradient(circle at 85% 60%, rgba(166, 124, 91, 0.1) 0%, transparent 50%),
    url("assets/bg-hero.svg") no-repeat center/cover;
}

/* Camada extra de textura e ruído sutil */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/bg-textura.svg");
  background-size: 500px;
  opacity: 0.3;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
  margin: 0 auto;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img {
  width: 100%;
  max-width: 450px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  height: auto;
  background: #E8DCD5;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 1rem;
}

.dot-pulse {
  width: 8px; height: 8px; background: var(--brand); border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(150,111,89, 0.2);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(150,111,89, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(150,111,89, 0); }
  100% { box-shadow: 0 0 0 0 rgba(150,111,89, 0); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem); 
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.accent-text { color: var(--brand); font-style: italic; font-weight: 500; }

.hero-subtitle {
  font-size: clamp(1rem, 1.35vw, 1.25rem);
  color: var(--text-light);
  max-width: 600px;
  margin-bottom: 2rem;
  font-weight: 400;
}

.hero-actions { 
  display: flex; 
  flex-wrap: wrap; 
  gap: 1rem; 
  margin-bottom: 2rem; 
}

.hero-trust {
  display: flex; 
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--stroke);
  width: 100%;
  margin-bottom: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
}

.trust-icon { color: var(--brand); display: flex; }

.signature { margin-top: 0; /* controlada pelo grid agora */ }
.script { font-family: var(--font-script); font-size: 2.25rem; color: var(--brand); line-height: 1; display: block; margin-bottom: 4px; }
.signature-sub { display: block; font-size: 0.75rem; font-weight: 600; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }

/* Convite Section */
.convite-section {
  padding: 4rem 0;
  display: flex;
  justify-content: center;
}

.convite-wrapper {
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
}

.hero-card {
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.7);
  position: relative;
}

.hero-card::before {
  content:""; position: absolute; z-index: -1;
  top: -15px; right: -15px; width: 100%; height: 100%;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  opacity: 0.6;
}

.card-header { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }

@media (min-width: 768px) {
  .convite-wrapper { max-width: 900px; }
  
  .hero-card {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem 4rem;
    padding: 4rem;
    align-items: start;
    text-align: left;
  }
  
  .card-header { grid-column: 1; margin-bottom: 2rem; }
  .checklist { grid-column: 1; margin-bottom: 0; }
  
  .card-action { 
    grid-column: 2; 
    grid-row: 1 / -1; 
    align-self: center; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--stroke);
    padding-left: 4rem;
    height: 100%;
  }

  .fineprint { text-align: left; }
}

.icon-chip {
  background: #FDF9F6; border: 1px solid var(--stroke);
  border-radius: 12px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.card-title { font-size: 1.35rem; font-family: var(--font-serif); }
.card-muted { font-size: 0.9rem; color: var(--muted); margin-top: 0.25rem; }

.checklist { list-style: none; padding: 0; margin: 0 0 2rem 0; display: flex; flex-direction: column; gap: 1rem; }
.checklist li { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 1rem; color: var(--text-light); }
.check-icon { color: var(--brand); margin-top: 2px; }
.fineprint { font-size: 0.75rem; color: var(--muted); margin-top: 0.75rem; text-align: center; }

/* =========================================
   SECTIONS
   ========================================= */
.section { padding: 5rem 0; position: relative; }
.section-alt { background-color: var(--bg-2); }
.section-alt .texture-overlay { 
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/bg-textura.svg");
  background-size: 400px;
  opacity: 0.4;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.section-head { max-width: 700px; margin-bottom: 3rem; }
.kicker { 
  text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; 
  font-size: 0.8rem; color: var(--brand); margin-bottom: 0.5rem; 
}
.h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1rem; }
.lead { font-size: 1.125rem; color: var(--text-light); line-height: 1.7; }
.divider-line { width: 60px; height: 2px; background: var(--brand); margin: 1.5rem 0; opacity: 0.3; }

/* Grid Layouts (mobile-first) */
.section-grid { display: grid; grid-template-columns: 1fr; gap: 2.75rem; align-items: center; }

.section-media { position: relative; }
.photo-frame { 
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 4/5; 
  box-shadow: var(--shadow-md);
}

.photo {
  width: 100%; height: 100%;
  background: #E8DCD5; /* Placeholder */
  background-image: url("data:image/svg+xml,%3Csvg xmlns=\u0027http://www.w3.org/2000/svg\u0027 width=\u0027100\u0027 height=\u0027100\u0027 viewBox=\u00270 0 100 100\u0027%3E%3Cpath fill=\u0027%23966F59\u0027 fill-opacity=\u00270.05\u0027 d=\u0027M0 0h100v100H0z\u0027/%3E%3Cpath stroke=\u0027%23966F59\u0027 stroke-opacity=\u00270.1\u0027 d=\u0027M50 0v100M0 50h100\u0027/%3E%3C/svg%3E");
  transition: transform 1.5s var(--ease-out);
}

.photo:hover { transform: scale(1.03); }
.photo-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(62,50,44,0.1), transparent); }

.float-quote {
  position: absolute; bottom: -2rem; left: -2rem; padding: 1.5rem; max-width: 280px;
  border-left: 3px solid var(--brand);
}
.quote-text { font-style: italic; color: var(--text); font-size: 0.95rem; margin-bottom: 0.5rem; }
.quote-sign { font-size: 1.25rem; color: var(--brand); margin: 0; }

/* Mini Cards */
.mini-cards { display: grid; gap: 1rem; margin-top: 2rem; }
.mini { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; border-left: 3px solid transparent; }
.mini:hover { border-left-color: var(--brand); }
.mini-icon { width: 32px; height: 2px; background: var(--brand); opacity: 0.4; margin-bottom: 0.5rem; }

/* Steps */
.steps-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
  gap: 1.5rem; 
  margin-top: 3rem; 
}
.step { padding: 2rem; position: relative; height: 100%; }
.step-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.step-num { font-size: 2.5rem; font-family: var(--font-serif); color: rgba(150,111,89, 0.15); font-weight: 700; }
.step-line { flex-grow: 1; height: 1px; background: rgba(150,111,89, 0.2); margin-left: 1rem; }

/* CTA Band */
.cta-band {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2.5rem; gap: 2rem;
  flex-wrap: wrap;
}

/* Testimonials */
.testimonials-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
  gap: 2rem; 
  margin-top: 3rem; 
}

.testimonial { margin: 0; padding: 2.5rem; position: relative; }
.quote-mark { 
  position: absolute; top: 1.5rem; right: 1.5rem; 
  width: 40px; height: 40px; 
  background-image: url("data:image/svg+xml,%3Csvg viewBox=\u00270 0 24 24\u0027 fill=\u0027%23966F59\u0027 opacity=\u00270.2\u0027 xmlns=\u0027http://www.w3.org/2000/svg\u0027%3E%3Cpath d=\u0027M14.017 21L14.017 18C14.017 16.8954 14.9124 16 16.017 16H19.017C19.5693 16 20.017 15.5523 20.017 15V9C20.017 8.44772 19.5693 8 19.017 8H15.017C14.4647 8 14.017 7.55228 14.017 7V3H19.017C20.6739 3 22.017 4.34315 22.017 6V15C22.017 16.6569 20.6739 18 19.017 18H18.017V21H14.017ZM5.0166 21L5.0166 18C5.0166 16.8954 5.91203 16 7.0166 16H10.0166C10.5689 16 11.0166 15.5523 11.0166 15V9C11.0166 8.44772 10.5689 8 10.0166 8H6.0166C5.46432 8 5.0166 7.55228 5.0166 7V3H10.0166C11.6735 3 13.0166 4.34315 13.0166 6V15C13.0166 16.6569 11.6735 18 10.0166 18H9.0166V21H5.0166Z\u0027/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

.testimonial blockquote { font-size: 1.1rem; color: var(--text); font-style: italic; margin-bottom: 1.5rem; }
.testimonial figcaption { display: flex; align-items: center; gap: 1rem; }
.avatar-placeholder { 
  width: 48px; height: 48px; background: #E2D0C6; color: var(--brand); 
  border-radius: 50%; display: flex; align-items: center; justify-content: center; 
  font-weight: 600; font-size: 1.2rem; font-family: var(--font-serif); 
}
.who { display: block; font-weight: 600; font-size: 0.95rem; }
.where { display: block; font-size: 0.8rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* FAQ */
.faq-grid { max-width: 800px; margin: 3rem auto 0; display: flex; flex-direction: column; gap: 1rem; }
.faq-item { text-align: left; }
.faq-btn {
  width: 100%; text-align: left; background: none; border: none; padding: 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; font-family: var(--font-sans); color: var(--text);
  font-weight: 500; font-size: 1.05rem;
}
.faq-icon {
  width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--stroke);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  margin-left: 1rem; transition: transform var(--trans-base); color: var(--brand);
}
.faq-btn[aria-expanded="true"] .faq-icon { transform: rotate(180deg); background: var(--brand); color: #fff; border-color: var(--brand); }
.faq-content {
  padding: 0 1.5rem 1.5rem; color: var(--text-light); line-height: 1.6;
  animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* Footer */
.site-footer { 
  background: var(--bg-2); 
  padding: 6rem 0 3rem; 
  font-size: 0.95rem; 
  color: var(--muted); 
  border-top: 1px solid var(--stroke);
  position: relative;
}

/* Decorativo opcional */
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0.3;
}

.footer-grid { 
  display: grid; 
  gap: 4rem 2rem; 
  grid-template-columns: 1fr; 
}

.footer-desc {
  max-width: 320px;
  margin-bottom: 2rem;
  line-height: 1.6;
}

/* Espaço entre a logo e o texto do rodapé */
.footer-brand > a {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 500;
  transition: color var(--trans-fast), transform var(--trans-fast);
}

.social-link:hover {
  color: var(--brand);
  transform: translateX(4px);
}

.footer-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

/* Links */
.footer-links { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  display: flex; 
  flex-direction: column; 
  gap: 0.85rem; 
}

.footer-links a {
  position: relative;
  display: inline-block;
}

/* Footer: o link do WhatsApp precisa ser flex (ícone ao lado do texto) */
.footer-links a.btn-text {
  display: inline-flex;
  align-items: center;
}

.footer-links a:hover { 
  color: var(--brand); 
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--brand);
}

.icon-chat {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(150,111,89, 0.15);
  color: var(--brand);
  transition: transform var(--trans-fast);
  flex-shrink: 0;
}

.btn-text:hover .icon-chat { transform: scale(1.1); }

.footer-quote {
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--brand-light);
  line-height: 1.3;
  margin-top: 2rem;
  transform: rotate(-2deg);
  display: inline-block;
}

.footer-copy { 
  margin-top: 5rem; 
  text-align: center; 
  font-size: 0.85rem; 
  border-top: 1px solid rgba(150,111,89, 0.1); 
  padding-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--muted);
}

.dev-credits { opacity: 0.7; font-size: 0.75rem; }

.dev-credits a {
  color: inherit;
  text-decoration: none;
}

.dev-credits a:hover {
  color: var(--brand);
}

.dev-brand {
  font-weight: 800;
  color: var(--text);
}

/* Mobile: centralizar todo o footer */
@media (max-width: 767px) {
  .footer-grid {
    text-align: center;
    justify-items: center;
  }

  .footer-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-socials {
    align-items: center;
  }

  .social-link {
    justify-content: center;
  }

  .footer-links {
    align-items: center;
  }
}

/* Responsividade e Layout Desktop */
@media (min-width: 768px) {
  .hero-title { font-size: 3rem; }
  .section { padding: 4rem 0; }
  .section-grid { grid-template-columns: 1fr 1fr; }
  .float-quote { left: -3rem; }
  
  .footer-grid { 
    grid-template-columns: 1.5fr 1fr 1fr; 
    align-items: start;
  }

  .footer-copy {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .hero-inner {
    grid-template-columns: 1fr 0.9fr; 
    gap: 4rem;
    text-align: left;
  }
  
  .hero-copy {
    align-items: flex-start;
  }
  
  .hero-actions { justify-content: flex-start; }
  .hero-trust { justify-content: flex-start; }
  
  /* Na versao desktop, a assinatura fica dentro do fluxo normal da esquerda */
  .signature-mobile-only { display: none; }
}

@media (min-width: 1024px) {
  .nav-toggle { display: none; }
  .site-nav { }
  .nav-menu-wrapper { 
    position: static; background: transparent; padding: 0; 
    width: auto; height: auto; display: block;
    transform: none; transition: none;
    box-shadow: none;
  }
  .nav-backdrop { display: none; }
  .nav-list { flex-direction: row; align-items: center; width: auto; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* Ajustes para telas menores (desktop mais estreito) */
@media (max-width: 1100px) {
  .hero { padding: calc(var(--header-height) + 20px) 0 3rem; }
  .hero-inner { gap: 3rem; }
  .hero-title { font-size: clamp(2.2rem, 4.2vw, 3.2rem); }
  .hero-subtitle { font-size: 1.05rem; margin-bottom: 1.5rem; }
  .hero-actions { margin-bottom: 1.5rem; }
  .hero-trust { gap: 1rem; margin-bottom: 1.5rem; }
  .hero-img { max-width: 380px; }
}

/* Telas menores (tablet / notebook estreito): empilhar antes para não “cortar” o conteúdo */
@media (max-width: 900px) {
  .hero { padding: calc(var(--header-height) + 20px) 0 2.75rem; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }

  .hero-copy { align-items: center; }

  .hero-title {
    font-size: clamp(2.1rem, 5.2vw, 3rem);
    line-height: 1.08;
  }

  .hero-subtitle {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }

  .hero-media { order: 2; margin-top: 0.5rem; margin-bottom: 1.5rem; }
  .hero-copy { order: 1; }

  .hero-img { max-width: 420px; }

  .signature-desktop-only { display: none; }
  .signature-mobile-only { display: block; order: 3; margin-top: 0; }
}

/* Telas com pouca altura (ex.: notebooks 768px de altura): compactar hero */
@media (max-height: 820px) and (min-width: 768px) {
  .hero { padding: calc(var(--header-height) + 20px) 0 2.5rem; }
  .hero-img { max-width: 340px; }
  .hero-title { font-size: clamp(2.15rem, 3.6vw, 3.1rem); }
  .hero-actions { margin-bottom: 1.25rem; }
  .hero-trust { margin-bottom: 1.25rem; }
}

/* Janelas bem baixas (ex.: navegador menor): evitar que CTAs/infos “sumam” na dobra */
@media (max-height: 720px) {
  .hero { padding: calc(var(--header-height) + 20px) 0 2rem; }
  .hero-inner { align-items: start; gap: 2.5rem; }
  .hero-title { margin-bottom: 0.75rem; }
  .hero-subtitle { margin-bottom: 1.25rem; }
  .hero-actions { margin-bottom: 1.25rem; }
  .hero-trust { padding-top: 1.1rem; margin-bottom: 1.1rem; }
  .hero-media { margin-top: 0.25rem; }
  .hero-img { max-width: 320px; }
}

/* Menu (mobile + tablet): abaixo de 1024px vira drawer */
@media (max-width: 1023px) {
  .nav-menu-wrapper {
    position: fixed;
    left: 50%;
    top: calc(var(--header-height) + 0.75rem);
    right: auto;
    bottom: auto;
    width: min(92vw, 360px);
    max-height: calc(100vh - (var(--header-height) + 1.5rem));
    background: #FDF9F6;
    z-index: 105;
    padding: 1.25rem;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -8px) scale(0.98);
    transition: opacity var(--trans-fast) var(--ease-out), transform var(--trans-fast) var(--ease-out), visibility var(--trans-fast);

    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  .nav-menu-wrapper.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0) scale(1);
  }

  .nav-backdrop {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(62, 50, 44, 0.35);
    z-index: 104;
    opacity: 0; visibility: hidden; transition: opacity 0.3s;
    backdrop-filter: blur(6px);
    pointer-events: none;
  }
  body.is-nav-open .nav-backdrop { opacity: 1; visibility: visible; }
  /* Fallback: se a classe do body falhar, ainda mostra o backdrop quando abrir */
  .nav-menu-wrapper.is-open + .nav-backdrop { opacity: 1; visibility: visible; pointer-events: auto; }
  body.is-nav-open .nav-backdrop { pointer-events: auto; }

  /* Força o layout do menu dentro do drawer (evita ficar “em linha” e sumir) */
  .nav-menu-wrapper .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    width: 100%;
  }
  .nav-menu-wrapper .nav-link {
    display: block;
    width: 100%;
    font-size: 1.1rem;
  }
  .nav-menu-wrapper .nav-cta {
    width: 100%;
    margin-top: 0.25rem;
  }
  .nav-menu-wrapper .nav-cta .btn { width: 100%; }
  .nav-toggle { display: block; }
  /* Move o ícone (hamburger/X) um pouco para a esquerda */
  .nav-toggle { margin-right: 10px; }
}

/* Mobile: regras gerais (depois vêm os ajustes finos 480/360) */
@media (max-width: 767px) {
  /* Evita overflow horizontal causado pelo detalhe da borda “fora” do card */
  .hero-card::before {
    top: 0;
    right: 0;
  }

  .brand-logo { width: 150px; height: auto; }

  /* Sobre: evitar sobreposições/cortes da quote flutuante */
  .float-quote {
    position: static;
    max-width: 100%;
    margin-top: 1rem;
  }

  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { align-items: center; }
  
  /* Mobile Order: Copy Top -> Img Middle -> Signature Bottom */
  .hero-media { order: 2; margin-top: 0.5rem; margin-bottom: 1.5rem; }
  .hero-copy { order: 1; }
  .signature-desktop-only { display: none; }
  .signature-mobile-only { display: block; order: 3; margin-top: 0; }
  
  /* Ajuste fino para a ordem interna do copy */
  .hero-copy > .hero-actions { margin-bottom: 1.5rem; }
  .hero-copy > .hero-trust { margin-bottom: 0; border: none; padding-top: 1rem; justify-content: center; }
}

/* Mobile bem pequeno: reduzir altura e empilhar ações */
@media (max-width: 480px) {
  .hero { padding: calc(var(--header-height) + 20px) 0 2.1rem; }
  .hero-inner { gap: 2rem; }
  .eyebrow { font-size: 0.8rem; margin-bottom: 0.85rem; }
  .hero-title { font-size: 2.05rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-actions { margin-bottom: 1.5rem; }
  .hero-trust { padding-top: 1rem; }
  .hero-img { max-width: 340px; }

  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }

  .hero-trust { flex-direction: column; align-items: center; gap: 0.75rem; }
  .trust-item { justify-content: center; }
}

/* Phones muito pequenos: comprimir mais um pouco sem remover conteúdo */
@media (max-width: 360px) {
  .hero { padding: calc(var(--header-height) + 20px) 0 1.9rem; }
  .hero-title { font-size: 1.9rem; }
  .hero-img { max-width: 320px; }
  .btn { padding: 0.8rem 1.6rem; }
}

/* Utils */
.mb-2 { margin-bottom: 0.5rem; }
.mt-6 { margin-top: 3rem; }
.text-center { text-align: center; }
.text-brand { color: var(--brand); }
.mx-auto { margin-left: auto; margin-right: auto; }

/* Animations Keyframes */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

.fade-in-up { opacity: 0; animation: fadeInUp 0.8s var(--ease-out) forwards; }
.fade-in-left { opacity: 0; animation: fadeInLeft 0.8s var(--ease-out) forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInLeft { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

