/* ---------------------------------- RESET -------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

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

/* ------------------------------ DESIGN TOKENS ----------------------------- */
:root {
  /* Cores — valores padrão; sobrescritas dinamicamente por script.js via config.js */
  --primary: #3F5D54;
  --primary-dark: #2B4239;
  --secondary: #EFE9DC;
  --accent: #B9895A;
  --accent-dark: #9C6F44;
  --background: #FBF9F5;
  --text: #23302A;
  --gray: #8B948C;

  /* Derivadas */
  --white: #FFFFFF;
  --surface: #FFFFFF;
  --border-soft: rgba(35, 48, 42, 0.08);
  --shadow-soft: 0 10px 40px rgba(43, 66, 57, 0.08);
  --shadow-med: 0 20px 60px rgba(43, 66, 57, 0.14);
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.6);

  /* Tipografia */
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Layout */
  --container: 1180px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --section-pad: clamp(64px, 10vw, 128px);

  /* Transições */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------- BASE ---------------------------------- */
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  font-weight: 700;
  color: var(--primary-dark);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { color: var(--text); opacity: 0.85; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--accent);
  display: inline-block;
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

section { position: relative; padding: var(--section-pad) 0; }

/* Foco visível para acessibilidade / navegação por teclado */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--white);
  padding: 12px 20px;
  z-index: 10000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------- LOADER ----------------------------------- */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--background);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-breath {
  width: 56px; height: 56px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--accent), var(--primary));
  animation: breathe 1.8s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { transform: scale(0.8); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* ------------------------- SIGNATURE BACKGROUND --------------------------- */
/* "Respiração" */
.breath-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
  animation: breathe-bg 10s ease-in-out infinite;
}
@keyframes breathe-bg {
  0%, 100% { transform: scale(1) translate(0,0); }
  50% { transform: scale(1.12) translate(10px,-10px); }
}

/* --------------------------------- HEADER ---------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(251, 249, 245, 0.7);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled {
  border-color: var(--border-soft);
  box-shadow: 0 4px 24px rgba(43,66,57,0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--container); margin: 0 auto;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700; color: var(--primary-dark);
}
.logo span { color: var(--accent); }

.nav-desktop { display: flex; align-items: center; gap: 32px; }
.nav-desktop a {
  font-size: 0.92rem; font-weight: 500; color: var(--text);
  position: relative; padding: 4px 0;
}
.nav-desktop a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-desktop a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 14px; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px; padding: 6px;
  z-index: 1100;
}
.menu-toggle span {
  width: 24px; height: 2px; background: var(--primary-dark);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 340px);
  background: var(--surface); z-index: 1050;
  box-shadow: -10px 0 40px rgba(0,0,0,0.1);
  padding: 100px 32px 40px;
  display: flex; flex-direction: column; gap: 28px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a { font-size: 1.15rem; font-weight: 600; color: var(--primary-dark); }
.nav-overlay {
  position: fixed; inset: 0; background: rgba(35,48,42,0.35); z-index: 1040;
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.nav-overlay.open { opacity: 1; visibility: visible; }

/* --------------------------------- BUTTONS --------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 100px;
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex-shrink: 0; }
.btn-primary {
  background: var(--accent); color: var(--white);
  box-shadow: 0 8px 24px rgba(185, 137, 90, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(185, 137, 90, 0.45); background: var(--accent-dark); }
.btn-outline {
  background: transparent; color: var(--primary-dark);
  border: 1.5px solid var(--border-soft);
}
.btn-outline:hover { border-color: var(--primary); background: var(--white); transform: translateY(-2px); }
.btn-ghost { color: var(--primary-dark); font-weight: 600; }
.btn-sm { padding: 11px 20px; font-size: 0.86rem; }
.btn-block { width: 100%; }

/* ---------------------------------- HERO ----------------------------------- */
.hero {
  padding-top: clamp(120px, 18vh, 180px);
  padding-bottom: 90px;
  position: relative; overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 8px 16px; border-radius: 100px;
  font-size: 0.82rem; font-weight: 600; color: var(--primary-dark);
  margin-bottom: 22px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: #5CA96F; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

.hero h1 { margin-bottom: 20px; }
.hero .sub { font-size: 1.15rem; max-width: 500px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 44px; }

.hero-seals { display: flex; flex-wrap: wrap; gap: 22px; }
.seal { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--primary-dark); }
.seal svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

.hero-media { position: relative; }
.hero-photo-wrap {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-med);
  aspect-ratio: 4/5;
}
.hero-photo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero-float-card {
  position: absolute; bottom: -24px; left: -24px;
  background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 18px 22px; box-shadow: var(--shadow-soft);
  display: flex; align-items: center; gap: 14px;
  max-width: 260px;
}
.hero-float-card .num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--accent-dark); }
.hero-float-card .label { font-size: 0.78rem; color: var(--text); opacity: 0.75; line-height: 1.3; }

/* --------------------------------- ABOUT ------------------------------------ */
.about { background: var(--surface); }
.about-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: center; }
.about-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-soft); aspect-ratio: 3/4; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-text .lead { font-size: 1.1rem; margin-bottom: 24px; }
.about-blocks { display: grid; gap: 20px; margin-top: 30px; }
.about-block {
  background: var(--background); border: 1px solid var(--border-soft);
  border-radius: var(--radius-md); padding: 22px 24px;
}
.about-block h3 { font-size: 1rem; margin-bottom: 6px; color: var(--accent-dark); font-family: var(--font-body); font-weight: 700; }
.about-block p { font-size: 0.95rem; }

/* ------------------------------ CARD GRIDS ---------------------------------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); border-color: transparent; }
.card-icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--primary-dark);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; font-family: var(--font-body); font-weight: 700; font-size: 1.05rem; }
.card p { font-size: 0.92rem; }

.problems { position: relative; }
.problems-list .card-grid { grid-template-columns: repeat(4, 1fr); }

/* ------------------------------- HOW IT WORKS -------------------------------- */
.timeline { background: var(--primary-dark); color: var(--white); position: relative; overflow: hidden; }
.timeline .section-head h2, .timeline .eyebrow { color: var(--white); }
.timeline .eyebrow::before { background: var(--accent); }
.timeline .section-head p { color: var(--white); opacity: 0.75; }

.timeline-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; position: relative; margin-top: 20px;
}
.timeline-item { position: relative; padding: 0 24px 0 0; }
.timeline-item:not(:last-child)::after {
  content: ''; position: absolute; top: 26px; right: -12px; width: calc(100% - 20px);
  height: 1.5px; background: rgba(255,255,255,0.18);
}
.timeline-num {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  color: var(--accent);
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.25);
  margin-bottom: 22px; background: rgba(255,255,255,0.05);
}
.timeline-item h3 { color: var(--white); font-family: var(--font-body); font-size: 1.05rem; margin-bottom: 8px; }
.timeline-item p { color: var(--white); opacity: 0.72; font-size: 0.92rem; }

/* -------------------------------- TESTIMONIALS -------------------------------- */
.testimonials { background: var(--background); }
.testi-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
  background: var(--surface); border-radius: var(--radius-md);
  padding: 30px 28px; box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-soft);
}
.testi-stars { display: flex; gap: 3px; margin-bottom: 16px; color: var(--accent); }
.testi-stars svg { width: 16px; height: 16px; }
.testi-text { font-size: 0.98rem; font-style: italic; margin-bottom: 20px; color: var(--text); }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--secondary); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--primary-dark);
}
.testi-name { font-weight: 700; font-size: 0.92rem; }
.testi-age { font-size: 0.8rem; opacity: 0.6; }

/* ------------------------------------ FAQ -------------------------------------- */
.faq { background: var(--surface); }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--border-soft);
}
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 24px 4px; text-align: left;
  font-weight: 600; font-size: 1.02rem; color: var(--primary-dark);
}
.faq-question .icon-plus {
  width: 22px; height: 22px; flex-shrink: 0; position: relative;
}
.faq-question .icon-plus::before, .faq-question .icon-plus::after {
  content: ''; position: absolute; background: var(--accent-dark);
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.faq-question .icon-plus::before { width: 14px; height: 2px; }
.faq-question .icon-plus::after { width: 2px; height: 14px; transition: transform 0.3s var(--ease); }
.faq-item.open .icon-plus::after { transform: translate(-50%,-50%) rotate(90deg); opacity: 0; }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-answer p { padding: 0 4px 24px; font-size: 0.96rem; max-width: 680px; }

/* ------------------------------------ CTA FINAL --------------------------------- */
.cta-final {
  background: #DEC5B8;
  color: var(--white); text-align: center; position: relative; overflow: hidden;
}
.cta-final h2, .cta-final p { color: var(--white); }
.cta-final .section-head { margin-inline: auto; }
.cta-final-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; }

/* -------------------------------------- FOOTER ----------------------------------- */
.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.75); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .logo { color: var(--white); }
.footer-brand .logo span { color: var(--accent); }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; margin-top: 14px; max-width: 260px; }
.footer-col h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--white); margin-bottom: 18px; font-family: var(--font-body); }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a, .footer-col span { font-size: 0.92rem; color: rgba(255,255,255,0.7); }
.footer-col a:hover { color: var(--accent); }
.footer-map { border-radius: var(--radius-md); overflow: hidden; height: 160px; filter: grayscale(0.3); }
.footer-map iframe { width: 100%; height: 100%; border: 0; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s var(--ease);
}
.footer-social a:hover { background: var(--accent); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.82rem; color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--white); }

/* --------------------------------- FLOATING ELEMENTS ------------------------------ */
.whatsapp-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 900;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  animation: float-bob 3s ease-in-out infinite;
  transition: transform 0.3s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }
.whatsapp-float svg { width: 30px; height: 30px; }
@keyframes float-bob { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-6px);} }

.back-to-top {
  position: fixed; bottom: 26px; right: 96px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease), transform 0.3s var(--ease);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 20px; height: 20px; color: var(--primary-dark); }

/* -------------------------------- SCROLL ANIMATIONS -------------------------------- */
[data-animate] { opacity: 0; transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-animate="fade-up"] { transform: translateY(28px); }
[data-animate="fade-left"] { transform: translateX(-28px); }
[data-animate="fade-right"] { transform: translateX(28px); }
[data-animate].in-view { opacity: 1; transform: translate(0,0); }

/* ------------------------------------- RESPONSIVE ---------------------------------- */
@media (max-width: 1024px) {
  .card-grid, .problems-list .card-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .timeline-item:nth-child(2)::after { display: none; }
  .testi-track { grid-template-columns: repeat(1, 1fr); max-width: 560px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; max-width: 420px; margin: 0 auto 20px; }
  .about-photo { max-width: 380px; margin: 0 auto; }
}

@media (max-width: 860px) {
  .nav-desktop, .header-cta .btn-outline { display: none; }
  .menu-toggle { display: flex; }
}

@media (max-width: 640px) {
  .card-grid, .problems-list .card-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .card { padding: 24px 18px; }
  .timeline-grid { grid-template-columns: 1fr; }
  .timeline-item::after { display: none !important; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-float-card { position: static; margin-top: -40px; margin-inline: 16px; }
  .back-to-top { right: 16px; bottom: 96px; }
  .whatsapp-float { right: 16px; bottom: 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 420px) {
  .card-grid, .problems-list .card-grid { grid-template-columns: 1fr; }
}
