:root {
  /* === PALETA DE CORES === */
  --color-primary: #2C1220;
  --color-secondary: #BB9164;
  --color-accent: #CEA070;
  --color-accent-hover: #A67D52;

  --color-primary-light: #F0D9E0;

  --color-background: #FAF8F5;
  --color-surface: #F0ECE6;
  --color-surface-alt: #E3DCC3;

  --color-dark: #2C1220;

  --color-text-primary: #3A332E;
  --color-text-secondary: #6E6056;
  --color-text-muted: #A89A8A;
  --color-text-on-dark: #F0ECE6;
  --color-text-on-accent: #FFFFFF;

  --color-border: #E0D8CE;

  /* === TIPOGRAFIA === */
  --font-heading: 'Satoshi', sans-serif;
  --font-body: 'Satoshi', sans-serif;

  /* === ESPAÇAMENTOS & RADII === */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 3rem;

  /* === ANIMAÇÕES === */
  --ease-magnetic: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-base: 0.3s var(--ease-magnetic);

  /* === SOMBRAS === */
  --shadow-card: 0 4px 24px rgba(80, 36, 55, 0.04);
}

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Bold.woff2') format('woff2'),
    url('/fonts/Satoshi-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Satoshi';
  src: url('/fonts/Satoshi-Regular.woff2') format('woff2'),
    url('/fonts/Satoshi-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

/* === GRID CONTAINER (1280px + margin auto para criar as 320px + espaçamento 20px) === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  /* Padding seguro para telas menores */
}


/* === BOTÕES === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 2rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease-magnetic),
    filter 0.3s var(--ease-magnetic),
    padding 0.3s var(--ease-magnetic);
  border: none;
  font-size: 1rem;
  text-align: center;
  white-space: nowrap;
}

/* Quando o texto precisar quebrar linha -- centraliza com balanço */
.btn-wrap {
  white-space: normal;
  text-wrap: balance;
}

.btn-primary {
  background: linear-gradient(180deg, #CEA070 0%, #AA763F 100%);
  box-shadow: 0 -2px 4px 0 rgba(0, 0, 0, 0.25) inset, 0 4px 4px 0 rgba(255, 255, 255, 0.25) inset;
  color: var(--color-text-on-accent);
}

/* Botão menor -- carrossel */
.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

.btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
  /* Cresce para os dois lados: padding horizontal extra simétrico */
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}

.btn-sm.btn-primary:hover {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

/* === SETA ANIMADA NOS BOTÕES === */
.btn-arrow {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-width 0.6s cubic-bezier(0.75, 0, 0.25, 1),
    opacity 0.4s cubic-bezier(0.75, 0, 0.25, 1),
    margin-left 0.6s cubic-bezier(0.75, 0, 0.25, 1);
}

.btn-arrow svg.lucide,
.btn-arrow i {
  width: 18px;
  height: 18px;
  min-width: 18px;
  display: block;
}

.btn-primary:hover .btn-arrow {
  max-width: 18px;
  opacity: 1;
  margin-left: 8px;
  animation: btn-arrow-bounce 1s cubic-bezier(0.75, 0, 0.25, 1) 0.5s infinite;
}

@keyframes btn-arrow-bounce {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(5px);
  }
}

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 100;
  transition: all var(--transition-base);
  color: var(--color-text-on-dark);
  background: var(--color-primary)
}

.navbar .navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar.scrolled {
  background: rgba(44, 18, 32, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mobile-menu-btn,
.close-menu-btn,
.mobile-menu-logo,
.btn-mobile-cta,
.hover-arrow,
.menu-items {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  position: relative;
  /* pill se posiciona relativa a este container */
}

/* Pill deslizante — efeito hover desktop */
.nav-pill {
  position: absolute;
  z-index: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
  opacity: 0;
  transition:
    left 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    top 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    width 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    height 220ms cubic-bezier(0.25, 0.46, 0.45, 0.94),
    opacity 150ms ease;
}

/* Links com z-index acima da pill */
.nav-link {
  position: relative;
  z-index: 1;
  padding: 0.45rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 400;
  opacity: 0.9;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 1;
}

/* Garante a pill invisível em mobile */
@media (max-width: 1024px) {
  .nav-pill {
    display: none;
  }
}

/* === NAVBAR MOBILE === */
@media (max-width: 1024px) {

  /* Oculta os links diretos do desktop — o menu mobile usa .menu-items */
  .nav-links>.nav-link {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    background: transparent;
    border: none;
    color: var(--color-secondary);
    cursor: pointer;
  }

  .mobile-menu-btn svg {
    width: 32px;
    height: 32px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    height: 100vh;
    background: rgba(44, 18, 32, 0.95);
    transform: translateZ(0);
    /* Força aceleração via GPU */
    will-change: transform, right;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    transition: right 0.6s cubic-bezier(0.78, 0, 0.22, 1);
    z-index: 999;
  }

  .nav-links.open {
    right: 0;
  }

  .close-menu-btn {
    display: flex;
    background: transparent;
    border: none;
    color: var(--color-secondary);
    cursor: pointer;
    position: absolute;
    top: 2rem;
    left: 2rem;
  }

  .close-menu-btn svg {
    width: 32px;
    height: 32px;
  }

  .mobile-menu-logo {
    display: block;
    margin: 4rem auto 2rem;
    text-align: center;
    width: 100%;
  }

  .mobile-menu-logo img {
    height: 60px;
    opacity: 1;
  }

  .menu-items {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }

  .menu-items a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0;
    transform: translateY(30px);
    transition: background-color 0.3s ease, opacity 0.6s cubic-bezier(0.78, 0, 0.22, 1), transform 0.6s cubic-bezier(0.78, 0, 0.22, 1);
    -webkit-tap-highlight-color: transparent;
    outline: none;
  }

  .nav-links.open .menu-items a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-links.open .menu-items a:nth-child(1) {
    transition-delay: 0.1s;
  }

  .nav-links.open .menu-items a:nth-child(2) {
    transition-delay: 0.2s;
  }

  .nav-links.open .menu-items a:nth-child(3) {
    transition-delay: 0.3s;
  }

  .nav-links.open .menu-items a:nth-child(4) {
    transition-delay: 0.4s;
  }

  .nav-links.open .menu-items a:nth-child(5) {
    transition-delay: 0.5s;
  }

  .hover-arrow {
    display: block;
    position: absolute;
    left: 0;
    opacity: 0;
    transform: translateX(0);
    transition: all 0.3s cubic-bezier(0.78, 0, 0.22, 1);
    color: var(--color-secondary);
  }

  .hover-arrow svg {
    width: 24px;
    height: 24px;
  }

  .btn-mobile-cta {
    display: inline-flex !important;
    align-self: center !important;
    margin: 2rem auto 0 !important;
    padding: 1rem 2rem !important;
    justify-content: center;
    border-radius: 2rem !important;
    background-color: var(--color-secondary) !important;
    color: var(--color-text-on-accent) !important;
    border: none !important;
    width: fit-content !important;
    font-size: 1.1rem !important;
  }

  .btn-mobile-cta:hover {
    background-color: var(--color-accent-hover) !important;
    transform: translateY(-2px) scale(1.02) !important;
  }

  .btn-mobile-cta .hover-arrow {
    display: none !important;
  }
}

/* === HERO SECTION === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('/images/image_bg_desktop.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  width: clamp(450px, 60vw, 750px);
  max-width: 100%;
  color: var(--color-text-on-dark);
}

.hero-top-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  background-color: rgba(206, 160, 112, 0.3); 
  border: 1px solid var(--color-accent);
  border-radius: 9999px;
  color: var(--color-text-on-accent);
  font-size: 0.85rem;
  font-weight: 500;
  text-wrap: pretty;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 2rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  background-color: #5DB550;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(93, 181, 80, 0.6);
  animation: pulse-soft 2s infinite;
}

@keyframes pulse-soft {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(93, 181, 80, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(93, 181, 80, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(93, 181, 80, 0);
  }
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero p {
  font-size: 1.3rem;
  opacity: 1;
  margin-bottom: 2rem;
  max-width: 100%;
  text-wrap: balance;
}

/* === SEÇÃO DUPLICA === */
.split-section {
  padding: 6rem 0;
  text-align: center;
}

.split-section h2 {
  font-size: 2.2rem;
  margin-bottom: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.split-cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.split-card.red {
  grid-column: 1 / 7;
  /* Ocupa colunas 1 a 6 */
}

.split-card.green {
  grid-column: 7 / 13;
  /* Ocupa colunas 7 a 12 */
}

.split-card {
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  text-align: left;
}

.split-card.red {
  background-color: #FAEEED;
  border: 1px solid #EAC8C5;
}

.split-card.green {
  background-color: #EEF8F1;
  border: 1px solid #C4E2CB;
}

.split-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
  text-align: center;
}

.split-list {
  list-style: none;
}

.split-list li {
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
}

.split-list.red svg.lucide {
  color: #D34343;
  width: 20px;
  min-width: 20px;
}

.split-list.green svg.lucide {
  color: #4CAF50;
  width: 20px;
  min-width: 20px;
}


/* === CAROUSEL SECTION === */
.carousel-section {
  padding: 6rem 0;
  text-align: center;
  background-color: var(--color-background);
  position: relative;
}

.carousel-section::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 20px 20px 0;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

.carousel-section h2 {
  font-size: 2.2rem;
  margin-bottom: 4rem;
}

.carousel-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: stretch;
  height: 480px;
  /* Mais altura para acomodar bem as imagens e texto da ref */
}

.carousel-card {
  flex: 1;
  /* Estático */
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  background-color: var(--color-dark);
  color: white;
  display: flex;
  align-items: flex-end;
  padding: 2.5rem;
}

.carousel-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(44, 18, 32, 0.00) 0%, rgba(44, 18, 32, 0.75) 51.44%, #2C1220 100%);
  z-index: 0;
  pointer-events: none;
}

.carousel-card.active {
  flex: 3;
  /* Expandido */
}

.carousel-card .bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: opacity 0.6s ease;
  z-index: 0;
}

.carousel-card.active .bg-img {
  opacity: 1;
}

.carousel-content {
  position: relative;
  z-index: 1;
  text-align: left;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.carousel-card.active .carousel-content {
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
}

.text-wrapper {
  display: flex;
  flex-direction: column;
  margin-top: 0;
}

.carousel-content h3 {
  font-size: 1.6rem;
  margin-bottom: 0;
  line-height: 1.2;
  text-wrap: balance;
}

.carousel-card .number {
  font-size: 8rem;
  line-height: 0.9;
  font-weight: bold;
  color: var(--color-secondary);
  opacity: 1;
  transition: transform 0.6s ease;
}

.card-text {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  pointer-events: none;
  max-height: 0;
  overflow: hidden;
}

.carousel-card.active .card-text {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  max-height: 300px;
  margin-top: 1rem;
}

.card-text p {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.9;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 20px;
  height: 6px;
  background-color: rgba(44, 18, 32, 0.4);
  border-radius: 3px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dot.active {
  width: 50px;
  background-color: var(--color-dark);
}

.icon-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: start;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 2rem;
  background: transparent;
  border: 1px solid var(--color-secondary);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-dark);
  text-align: left;
}


/* === STACKING SECTION === */
.stacking-section {
  padding: 6rem 0;
}

.stacking-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
  align-items: start;
}

.stack-left {
  grid-column: 1 / 6;
  /* 5 colunas */
  position: sticky;
  top: 30vh;
}

.stack-btn-mobile-wrapper {
  display: none !important;
  white-space: normal;
}

.stack-btn-mobile-wrapper .btn {
  white-space: normal;
  text-align: center;
}

.stack-left h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--color-dark);
}

.stack-right {
  grid-column: 6 / 13;
  /* 7 colunas */
  position: relative;
  min-height: 100vh;
  margin-left: 2rem;
  /* Leve recuo adicional conforme protótipo */
}

.stack-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
  position: sticky;
}

/* Base top distance */
.stack-card:nth-child(1) {
  background-color: #E8D6C4;
  top: 140px;
  z-index: 1;
}

.stack-card:nth-child(2) {
  background-color: #D9BEA4;
  top: calc(140px + 20px);
  z-index: 2;
}

.stack-card:nth-child(3) {
  background-color: #CBA583;
  top: calc(140px + 40px);
  z-index: 3;
}

.stack-card:nth-child(4) {
  background-color: #BB8C63;
  color: white;
  top: calc(140px + 60px);
  z-index: 4;
}

.stack-card:nth-child(5) {
  background-color: var(--color-dark);
  color: white;
  top: calc(140px + 80px);
  z-index: 5;
}

.stack-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.stack-card p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.stack-card ul {
  list-style: none;
  margin-top: 1rem;
}

.stack-card ul li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.stack-card ul li::before {
  content: '✓';
  color: var(--color-secondary);
}


/* === ABOUT SECTION === */
.about-section {
  padding: 6rem 0;
  background-color: var(--color-dark);
  color: white;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 60px;
  align-items: start;
}

.about-img-box {
  grid-column: 1 / 5;
  position: relative;
  min-height: 540px;
}

/* Foto: 90% de largura, ancorada no topo-direita */
.image-about {
  width: 90%;
  height: 75%;
  margin-left: auto;
  /* empurra para a direita */
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.image-about img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Info Card: absoluto, ancorado no bottom-left */
.doctor-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 90%;
  background-color: #3A1526;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  color: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.doctor-badge h4 {
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
  text-wrap: balance;
}

.badge-crm {
  font-size: 0.8rem;
  opacity: 0.7;
  margin-bottom: 1rem;
}

.badge-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  margin-bottom: 0.6rem;
}

.badge-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.badge-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  opacity: 0.9;
}

.badge-list li:first-child {
  text-wrap: balance;
}

.badge-list li svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--color-secondary);
}

.about-text {
  grid-column: 5 / 13;
  padding-top: 0.5rem;
}

.about-text p {
  margin-bottom: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.7;
}

.about-highlight {
  font-weight: 700;
  color: white !important;
  font-size: 1rem !important;
}

.about-credentials {
  list-style: none;
  margin-bottom: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.about-credentials li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.about-credentials li svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--color-secondary);
}


/* === FAQ SECTION === */
.faq-section {
  padding: 6rem 0;
}

.faq-container {
  display: flex;
  justify-content: center;
}

.faq-inner {
  max-width: 800px;
  width: 100%;
}

.faq-inner h2 {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.faq-inner h3 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1.5rem 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-text-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  opacity: 0;
  padding-top: 0;
  color: var(--color-text-secondary);
}

.faq-item.active .faq-answer {
  max-height: 500px;
  opacity: 1;
  padding-top: 1rem;
}

.plus-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .plus-icon {
  transform: rotate(45deg);
}


/* === FOOTER === */
.footer-cta {
  padding: 20px;
}

.footer-cta .container {
  text-align: center;
  padding: 6rem 0;
  background-color: var(--color-surface);
  border-radius: 4rem;
  width: 100%
}

.footer-cta h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

footer {
  text-align: center;
  padding: 2rem 0;
  background-color: var(--color-background);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero {
    min-height: 0;
    height: auto;
    padding: 140px 0 95% 0;
    /* paddings apenas no eixo Y. O .container interno já cuida dos 20px laterais */
    align-items: flex-start;
    justify-content: center;
    background-image: url('/images/image-bg-mobile.webp');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
  }

  .hero-content {
    width: 100%;
    /* sobrescreve os 60% que ficavam jogados pra esquerda no tablet */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Mantém os itens perfeitamente ao centro (como títulos e botões) */
  }

  .split-cards,
  .stacking-grid,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .split-card.red,
  .split-card.green,
  .stack-left,
  .stack-right,
  .about-img-box,
  .about-text {
    grid-column: 1 / -1;
  }

  .stack-left {
    position: static;
  }

  .stack-btn-desktop {
    display: none !important;
  }

  .stack-btn-mobile-wrapper {
    display: flex !important;
  }

  .stack-right {
    margin-left: 0;
  }

  .footer-cta {
    padding: 20px;
  }

  .footer-cta .container {
    padding: 100px 20px;
  }


}

@media (max-width: 768px) {


  .hero-bg-left {
    width: 100%;
    border-radius: 0;
  }

  .hero-image {
    display: none;
  }

  .carousel-section {
    overflow-x: hidden;
  }

  /* Aplica o peeking layout com transição controlada pela variável `--current-index` do Javascript */
  .carousel-container {
    flex-direction: row;
    height: auto;
    min-height: 590px;
    width: max-content;
    gap: 15px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateX(calc(-1 * var(--current-index, 0) * (85vw + 15px) + 7.5vw));
    margin-left: -20px;
  }

  /* Ajustando dimensões base dos cards */
  .carousel-card {
    flex: 0 0 85vw;
    width: 85vw;
    min-height: 590px;
  }

  .carousel-card.active {
    flex: 0 0 85vw;
  }

  .carousel-card.active .carousel-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  /* Expande o max-height para evitar cortes */
  .carousel-card.active .card-text {
    max-height: 800px;
  }

  /* ---- ANIMAÇÕES DE ENTRADA (Móvel) ---- */
  .carousel-card .number,
  .carousel-content h3,
  .card-text p,
  .card-text .btn {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  }

  /* Estados Ativos da Animação (quando o card aparece na tela) */
  .carousel-card.active .number,
  .carousel-card.active .carousel-content h3,
  .carousel-card.active .card-text p,
  .carousel-card.active .card-text .btn {
    opacity: 1;
    transform: translateY(0);
  }

  /* Pequeno delay sequencial (stagger) */
  .carousel-card.active .number {
    transition-delay: 0.1s;
  }

  .carousel-card.active .carousel-content h3 {
    transition-delay: 0.2s;
  }

  .carousel-card.active .card-text p {
    transition-delay: 0.3s;
  }

  .carousel-card.active .card-text .btn {
    transition-delay: 0.4s;
  }

  .carousel-card .number {
    font-size: 100px;
    line-height: 0.8;
  }

  .carousel-content h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 5px;
    text-wrap: balance;
  }

  .card-text p {
    font-size: 16px;
    font-weight: normal;
  }

  .icon-badges {
    flex-direction: column;
    align-items: stretch;
    padding: 0 1rem;
  }

  .badge {
    background-color: var(--color-background);
    justify-content: flex-start;
  }

  .stack-left h2 {
  font-size: 1.8rem;
  text-align: center;
  }
}

/* Base styles elements added (Arrows) */
.control-arrow {
  cursor: pointer;
  color: var(--color-dark);
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.control-arrow:hover {
  transform: scale(1.1);
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.dot {
  width: 24px;
  height: 6px;
  background-color: #BBAFAF;
  /* Ajustado para a cor da ref */
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.dot.active {
  width: 48px;
  background-color: var(--color-dark);
}

/* ==========================================
   BOTÃO FLUTUANTE WHATSAPP
   ========================================== */

@keyframes whatsapp-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.whatsapp-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 95px;
  height: 95px;
  border-radius: 50%;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: whatsapp-float 3s ease-in-out infinite;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease,
    filter 0.4s ease;
  filter: drop-shadow(0 4px 12px rgba(35, 179, 58, 0.35));
}

.whatsapp-fab img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.whatsapp-fab:hover {
  filter: drop-shadow(0 8px 24px rgba(35, 179, 58, 0.55));
  animation-play-state: paused;
}

.whatsapp-fab.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 768px) {
  .whatsapp-fab {
    width: 65px;
    height: 65px;
  }
}

/* ==========================================
   MODAL DE CAPTAÇÃO DE LEADS
   ========================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 18, 32, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.modal-overlay.modal-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--color-background);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  position: relative;
  transform: scale(0.9) translateY(30px);
  transition:
    transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  box-shadow: 0 24px 64px rgba(44, 18, 32, 0.28);
}

.modal-overlay.modal-active .modal-box {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
  color: var(--color-primary);
  background-color: var(--color-surface);
  transform: rotate(90deg);
}

.modal-close .lucide {
  width: 22px;
  height: 22px;
}

.modal-box h3 {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
  text-align: center;
}

.modal-subtitle {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.75rem;
  text-wrap: balance;
  text-align: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.form-group input {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-primary);
  background: var(--color-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  width: 100%;
}

.form-group input:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 4px rgba(187, 145, 100, 0.15);
}

.form-group input.input-error {
  border-color: #D34343;
}

.field-error {
  font-size: 0.8rem;
  color: #D34343;
  min-height: 1rem;
  display: block;
  line-height: 1.3;
}

.form-submit-area {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.form-error-global {
  font-size: 0.85rem;
  color: #D34343;
  display: block;
  min-height: 1.1rem;
  text-align: center;
  line-height: 1.3;
}

.btn-submit {
  width: 100%;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  padding: 1rem 2rem !important;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: none;
  flex-shrink: 0;
}

.btn-submit.loading .spinner {
  display: block;
}

.modal-success {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 1.5rem 0 0.5rem;
}

.modal-success .lucide {
  width: 52px;
  height: 52px;
  color: #4CAF50;
}

.modal-success p {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.5;
}

.modal-success.visible {
  display: flex;
}

#lead-form.hidden {
  display: none;
}

/* ==========================================
   MODAL — STEPS & OPTION CARDS
   ========================================== */

.modal-step {
  display: none;
}

.modal-step.active {
  display: block;
}

.btn-back-step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}

.btn-back-step:hover {
  color: var(--color-text-primary);
}

.btn-back-step .lucide {
  width: 16px;
  height: 16px;
}

.modal-options {
  display: flex;
  gap: 1rem;
}

.modal-option-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-option-card:hover {
  border-color: var(--color-secondary);
  box-shadow: var(--shadow-card);
}

.modal-option-card .lucide {
  width: 32px;
  height: 32px;
  color: var(--color-secondary);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .modal-options {
    flex-direction: column;
  }
}

/* ==========================================
   LINKS PAGE (LINK NA BIO)
   ========================================== */

.links-page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1.5rem;
  background-color: var(--color-background);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.links-profile {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  padding: 4px;
  background-color: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
  overflow: hidden;
  animation: fadeUp 0.6s ease-out forwards;
}

.links-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.links-title {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
  animation: fadeUp 0.6s ease-out 0.1s forwards;
  opacity: 0;
}

.links-subtitle {
  font-size: 1rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  animation: fadeUp 0.6s ease-out 0.2s forwards;
  opacity: 0;
}

.links-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 1.2rem;
  background-color: var(--color-surface-alt);
  color: var(--color-primary);
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease-out 0.3s forwards;
  opacity: 0;
}

.links-description {
  font-size: 1.05rem;
  color: var(--color-text-primary);
  margin-bottom: 2.5rem;
  line-height: 1.5;
  animation: fadeUp 0.6s ease-out 0.4s forwards;
  opacity: 0;
}

.links-buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1.2rem 2rem;
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: 3rem;
  color: var(--color-text-primary);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s var(--ease-magnetic);
  opacity: 0;
  animation: fadeUp 0.6s ease-out forwards;
}

.link-btn:nth-child(1) { animation-delay: 0.5s; }
.link-btn:nth-child(2) { animation-delay: 0.6s; }
.link-btn:nth-child(3) { animation-delay: 0.7s; }

.link-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(44, 18, 32, 0.08);
  border-color: var(--color-secondary);
  color: var(--color-primary);
}

.link-btn .lucide {
  position: absolute;
  left: 1.5rem;
  color: var(--color-primary);
  width: 22px;
  height: 22px;
}

.links-footer {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  animation: fadeUp 0.6s ease-out 0.8s forwards;
  opacity: 0;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}html.lenis,
html.lenis body {
  height: auto;
}

.lenis:not(.lenis-autoToggle).lenis-stopped {
  overflow: clip;
}

.lenis [data-lenis-prevent],
.lenis [data-lenis-prevent-wheel],
.lenis [data-lenis-prevent-touch],
.lenis [data-lenis-prevent-vertical],
.lenis [data-lenis-prevent-horizontal] {
  overscroll-behavior: contain;
}

.lenis.lenis-smooth iframe {
  pointer-events: none;
}

.lenis.lenis-autoToggle {
  transition-property: overflow;
  transition-duration: 1ms;
  transition-behavior: allow-discrete;
}
