/* =========================================
   GRUPO NEXTIL — DESIGN SYSTEM
   ========================================= */

:root {
  /* Brand Colors (Nextil Corretora) */
  --navy:        #2B3036; /* Slate Dark */
  --navy-deep:   #1A1D21; /* Slate Deeper */
  --blue:        #C23141; /* Red Primary */
  --blue-mid:    #A82836; /* Red Mid */
  --blue-light:  #D44A53; /* Red Light */
  --blue-pale:   #ECA3A9; /* Red Pale */
  --blue-dark:   #8C1F2B; /* Red Dark */
  --blue-darker: #701822; /* Red Darker */
  --blue-darkest:#55121A; /* Red Darkest */

  /* Neutrals */
  --white:       #ffffff;
  --gray-50:     #fafafa;
  --gray-100:    #f4f4f5;
  --gray-200:    #e4e4e7;
  --gray-400:    #a1a1aa;
  --gray-500:    #71717a;
  --gray-600:    #52525b;
  --gray-900:    #18181b;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout - More Structured */
  --max-w: 1200px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 6px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   RESET
   ========================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  overflow-x: hidden;
  max-width: 100vw;
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; transition: all 0.3s var(--ease); }
ul  { list-style: none; }

/* =========================================
   LAYOUT UTILITIES
   ========================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.section {
  padding: clamp(5rem, 10vw, 9rem) 0;
}

.text-white  { color: var(--white) !important; }
.text-accent { color: var(--blue-light); }

/* Section Header Pattern */
.section-header {
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--blue-light);
  margin-bottom: 0.75rem;
}
.section-tag-light {
  color: var(--blue-pale);
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 580px;
}

.title-divider {
  font-weight: 200;
  color: var(--gray-200);
  margin: 0 0.25em;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(43, 48, 54, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-200);
}
.btn-outline:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.btn-header {
  background: var(--blue-light);
  color: var(--white);
  border-color: var(--blue-light);
  padding: 0.6rem 1.5rem;
  font-size: 0.875rem;
}
.btn-header:hover {
  background: var(--blue);
  border-color: var(--blue);
}

/* Card Button Variants */
.btn-card {
  width: 100%;
  margin-top: auto;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.15);
}
.btn-card:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.3);
}

.btn-card-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-card-white:hover {
  background: var(--gray-100);
  border-color: var(--gray-100);
  transform: none;
}

.btn-card-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-card-navy:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
}

.btn-card-accent {
  background: var(--blue-light);
  color: var(--white);
  border-color: var(--blue-light);
}
.btn-card-accent:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
}

/* =========================================
   IMAGE PLACEHOLDERS
   ========================================= */
.image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 420px;
  background: var(--gray-100);
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-weight: 500;
  font-size: 0.9375rem;
  text-align: center;
  padding: 2rem;
}

.hero-placeholder {
  min-height: 500px;
  border-radius: var(--radius-lg);
}

.logo-placeholder {
  width: 200px;
  height: 48px;
  background: var(--gray-100);
  border: 1px dashed var(--gray-400);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
}

/* =========================================
   HEADER & TOP BAR
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transition: all 0.3s var(--ease);
}

.top-bar {
  width: 100%;
  background: var(--navy-deep);
  color: var(--gray-400);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0;
  pointer-events: auto;
  transition: all 0.3s var(--ease);
  position: relative; /* For the scroll indicator */
}

.header.scrolled .top-bar {
  transform: translateY(-100%);
  opacity: 0;
  position: absolute;
}

.top-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.top-bar-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.top-bar-link {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.top-bar-link:hover, .top-bar-link.active {
  color: var(--white);
}

.scroll-indicator {
  display: none;
}

.header.scrolled {
  padding-top: 0.6rem;
}

.header-inner {
  pointer-events: auto;
  background: var(--white);
  padding: 0.65rem 0.65rem 0.65rem 1.75rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 2rem;
  width: calc(100% - clamp(2rem, 6vw, 5rem));
  max-width: 1100px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s var(--ease);
  margin-top: 0.75rem;
}

.header.scrolled .header-inner {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-shrink: 0;
}
.logo-grupo {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.logo-nextil {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.02em;
}

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.nav-link {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.875rem;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-light);
  border-radius: 1px;
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { width: 100%; }

/* Hamburger */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Drawer */
.mobile-drawer {
  pointer-events: auto;
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: calc(100% - 2.5rem);
  max-width: 500px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  z-index: 999;
}
.mobile-drawer.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mobile-link {
  display: block;
  padding: 0.875rem 1rem;
  font-weight: 500;
  font-size: 1rem;
  color: var(--gray-600);
  border-radius: 10px;
  transition: all 0.2s var(--ease);
}
.mobile-link:hover {
  background: var(--gray-100);
  color: var(--navy);
}
.mobile-cta {
  margin-top: 0.5rem;
  text-align: center;
}

/* =========================================
   HERO (Full-bleed with overlay)
   ========================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--navy-deep) url('/assets/hero_bg.webp') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /* Dark gradient overlay — ensures text readability over any image */
  background: 
    linear-gradient(180deg, 
      rgba(26, 29, 33, 0.40) 0%, 
      rgba(26, 29, 33, 0.75) 50%, 
      rgba(26, 29, 33, 0.95) 100%
    );
  z-index: 1;
}

.hero-center {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-start;
  text-align: left;
  padding-top: clamp(7rem, 14vw, 10rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
}

.hero-content {
  max-width: 680px;
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.75rem;
  word-wrap: break-word;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 3rem;
  max-width: 580px;
  line-height: 1.75;
}

.hero-cta {
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 576px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .btn-hero-primary, .btn-hero-outline {
    width: 100%;
    white-space: normal;
  }
}

/* Hero Buttons */
.btn-hero-primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  padding: 1rem 2.25rem;
}
.btn-hero-primary:hover {
  background: var(--gray-100);
  border-color: var(--gray-100);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-hero-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
  padding: 1rem 2.25rem;
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* =========================================
   ABOUT (QUEM SOMOS) — Corporate Card
   ========================================= */
.about {
  background: var(--gray-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.curved-wrapper {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: 0 12px 40px rgba(0,0,0,0.04);
}

.curved-tab {
  display: inline-block;
  margin-bottom: 1rem;
}

.curved-body {
  background: transparent;
  padding: 0;
}

.about-text .section-title {
  margin-top: 0;
}

.about-text .text-body p {
  font-size: 1.0625rem;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* =========================================
   FEATURES (DIFERENCIAIS) — Standard Grid
   ========================================= */
.features {
  background: var(--gray-50);
}

.features-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-content {
  padding: 2.5rem 2rem;
  z-index: 2;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Standardized Grid Items */
.bento-1 { grid-column: span 1; }
.bento-2 { grid-column: span 1; }
.bento-3 { grid-column: span 1; }

/* Theme Colors for Cards */
.card-theme-red-1 { background: var(--blue-light); border-color: var(--blue-light); }
.card-theme-red-2 { background: var(--blue); border-color: var(--blue); }
.card-theme-red-3 { background: var(--blue-mid); border-color: var(--blue-mid); }
.card-theme-red-4 { background: var(--blue-dark); border-color: var(--blue-dark); }
.card-theme-red-5 { background: var(--blue-darker); border-color: var(--blue-darker); }
.card-theme-red-6 { background: var(--blue-darkest); border-color: var(--blue-darkest); }

.card-theme-red { background: var(--blue); border-color: var(--blue); }
.card-theme-red-mid { background: var(--blue-mid); border-color: var(--blue-mid); }
.card-theme-red-light { background: var(--blue-light); border-color: var(--blue-light); }
.card-theme-navy { background: var(--navy); border-color: var(--navy); }
.card-theme-white { background: var(--white); border-color: var(--gray-200); }
.card-theme-gray { background: var(--gray-100); border-color: var(--gray-200); }

/* Apply text colors automatically based on theme */
.card-theme-red-1 .feature-title, .card-theme-red-2 .feature-title, .card-theme-red-3 .feature-title, .card-theme-red-4 .feature-title, .card-theme-red-5 .feature-title, .card-theme-red-6 .feature-title, .card-theme-red .feature-title, .card-theme-red-mid .feature-title, .card-theme-red-light .feature-title, .card-theme-navy .feature-title { color: var(--white) !important; }
.card-theme-red-1 .feature-desc, .card-theme-red-2 .feature-desc, .card-theme-red-3 .feature-desc, .card-theme-red-4 .feature-desc, .card-theme-red-5 .feature-desc, .card-theme-red-6 .feature-desc, .card-theme-red .feature-desc, .card-theme-red-mid .feature-desc, .card-theme-red-light .feature-desc, .card-theme-navy .feature-desc { color: rgba(255, 255, 255, 0.85) !important; }

/* Buttons inside dark themes */
.card-theme-red .btn-outline, .card-theme-red-mid .btn-outline, .card-theme-red-light .btn-outline, .card-theme-navy .btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}
.card-theme-red .btn-outline:hover, .card-theme-red-mid .btn-outline:hover, .card-theme-red-light .btn-outline:hover, .card-theme-navy .btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

/* Specific text colors for light themes */
.card-theme-white .feature-title, .card-theme-gray .feature-title { color: var(--navy) !important; }
.card-theme-white .feature-desc, .card-theme-gray .feature-desc { color: var(--gray-500) !important; }

.bento-4 { grid-column: span 1; }
.bento-5 { grid-column: span 3; }

/* Typography & Colors */
.feature-number {
  display: block;
  font-size: 0.8125rem;
  font-weight: 800;
  color: var(--blue-light);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.feature-desc {
  color: var(--gray-500);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Color Overrides for dark cards */
.bento-content[style*="background: var(--navy)"] .feature-title,
.bento-content[style*="background: var(--blue-light)"] .feature-title { color: var(--white) !important; }

.bento-content[style*="background: var(--navy)"] .feature-desc,
.bento-content[style*="background: var(--blue-light)"] .feature-desc { color: rgba(255,255,255,0.8) !important; }

/* Giant Background Number for Bento 1 (Removed for Corporate look) */
.bento-bg-num {
  display: none;
}

/* Bento Row for Card 5 */
.bento-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.bento-col {
  flex: 1;
  max-width: 600px;
}
.btn-card-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--navy);
  padding: 1rem 2rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all 0.3s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-card-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Hover effects */
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(43,48,54,0.07);
  border-color: transparent;
}

/* =========================================
   ECOSYSTEM (ECOSSISTEMA) — Stacked Rows
   ========================================= */
.ecosystem {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow in background */
.ecosystem::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50%;
  height: 80%;
  background: radial-gradient(circle, rgba(212,74,83,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.ecosystem::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(194,49,65,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.ecosystem .section-title {
  color: var(--white);
}

.ecosystem .section-tag {
  color: var(--blue-pale);
}

.ecosystem .section-subtitle {
  color: rgba(255, 255, 255, 0.5);
}

.section-header-center {
  text-align: center;
}
.section-header-center .section-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.eco-stack {
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.eco-row {
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.4s var(--ease);
  text-decoration: none;
  color: var(--white);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 2px;
}

.eco-row:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Glassmorphism hover background */
.eco-row:hover {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.12);
  padding-left: clamp(2rem, 4vw, 3.5rem);
}

/* Animated bottom highlight on hover */
.eco-row::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  transition: width 0.5s var(--ease);
}

.eco-row-1::after { background: var(--white); }
.eco-row-2::after { background: var(--blue-pale); }
.eco-row-3::after { background: var(--blue-light); }
.eco-row-4::after { background: var(--blue-pale); }
.eco-row-5::after { background: var(--white); }

.eco-row:hover::after {
  width: 100%;
}

/* Number */
.eco-num {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  letter-spacing: -0.03em;
  line-height: 1;
  flex-shrink: 0;
  min-width: 70px;
  transition: color 0.4s var(--ease);
}

.eco-row:hover .eco-num {
  color: rgba(255, 255, 255, 0.5);
}

/* Content */
.eco-info {
  flex: 1;
}

.eco-info h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.375rem;
  transition: color 0.3s var(--ease);
}

.eco-info p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 600px;
}

.eco-row:hover .eco-info p {
  color: rgba(255, 255, 255, 0.7);
}

/* Arrow */
.eco-arrow {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
  opacity: 0;
  transform: translateX(-8px);
}

.eco-row:hover .eco-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--white);
}

/* Stagger reveals */
.eco-stack .eco-row:nth-child(1) { transition-delay: 0s; }
.eco-stack .eco-row:nth-child(2) { transition-delay: 0.06s; }
.eco-stack .eco-row:nth-child(3) { transition-delay: 0.12s; }
.eco-stack .eco-row:nth-child(4) { transition-delay: 0.18s; }
.eco-stack .eco-row:nth-child(5) { transition-delay: 0.24s; }

/* =========================================
   AUDIENCE (PÚBLICO)
   ========================================= */
.audience {
  background: var(--gray-50);
}

.audience-grid {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}

.audience-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  transition: transform 0.4s var(--ease);
}
.audience-card:hover {
  transform: translateY(-6px);
}

.audience-card-content { flex: 1; }

.audience-card-dark   { background: var(--navy-deep); color: var(--white); }
.audience-card-primary { background: var(--blue); color: var(--white); }
.audience-card-accent  { background: var(--blue-light); color: var(--white); }

.audience-card h3 {
  font-size: 1.625rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.audience-list { margin-bottom: 2.5rem; }

.audience-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.875rem;
  font-size: 1rem;
  opacity: 0.92;
  line-height: 1.5;
}

.audience-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
}

/* =========================================
   PURPOSE (PROPÓSITO)
   ========================================= */
.purpose {
  background: var(--white);
}

.purpose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.purpose-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.purpose-text {
  font-size: 1.0625rem;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.purpose-statement {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 2.5rem;
  line-height: 1.4;
  padding-left: 1.25rem;
  border-left: 3px solid var(--blue-light);
}

/* =========================================
   CAROUSEL (ONDE COMPRAR)
   ========================================= */
.carousel-section {
  background: var(--white);
}

.carousel-wrapper {
  position: relative;
}

.carousel-track-container {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s var(--ease);
}

.carousel-slide {
  min-width: 100%;
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
}

.carousel-card {
  display: flex;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
}

.card-dark    { background: var(--navy-deep); color: var(--white); }
.card-primary { background: var(--blue); color: var(--white); }
.card-accent  { background: var(--blue-light); color: var(--white); }

.carousel-card .card-text {
  flex: 1;
  padding: clamp(2rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel-card h3 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.carousel-card p {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 380px;
}

.carousel-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.carousel-card .card-image {
  flex: 1.1;
  position: relative;
}

.carousel-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  font-size: 0.9375rem;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding: 0 0.25rem;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  padding: 0;
}
.carousel-dot.active {
  background: var(--navy);
  width: 28px;
  border-radius: 5px;
}

.carousel-arrows {
  display: flex;
  gap: 0.75rem;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
  transition: all 0.3s var(--ease);
}
.carousel-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* =========================================
   FINAL CTA
   ========================================= */
.final-cta {
  position: relative;
  background: var(--navy-deep) url('/assets/contato_bg.webp') center/cover no-repeat;
  padding: clamp(6rem, 12vw, 8rem) 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(26, 29, 33, 0.95) 0%, rgba(168, 40, 54, 0.85) 60%, rgba(26, 29, 33, 0.95) 100%);
  z-index: 1;
}

.cta-container {
  position: relative;
  z-index: 2;
}

.cta-content {
  max-width: 650px;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.cta-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 2.5rem;
}

.cta-subtitle strong {
  font-weight: 800;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--navy);
  color: var(--white);
  padding: clamp(4rem, 8vw, 6rem) 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-tagline {
  color: rgba(255,255,255,0.5);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-top: 1.25rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.4);
}

.footer-links li { margin-bottom: 0.75rem; }

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  transition: all 0.2s var(--ease);
}
.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transition: all 0.3s var(--ease);
}

.footer-social a:hover {
  background: var(--blue-mid);
  transform: translateY(-3px);
}

.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 0.8125rem;
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for bento grid children */
.features-bento .bento-1 { transition-delay: 0s; }
.features-bento .bento-2 { transition-delay: 0.1s; }
.features-bento .bento-3 { transition-delay: 0.2s; }
.features-bento .bento-4 { transition-delay: 0.3s; }
.features-bento .bento-5 { transition-delay: 0.4s; }



.audience-grid .audience-card:nth-child(1) { transition-delay: 0s; }
.audience-grid .audience-card:nth-child(2) { transition-delay: 0.1s; }
.audience-grid .audience-card:nth-child(3) { transition-delay: 0.2s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .about-grid,
  .purpose-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .image-placeholder { min-height: 350px; }

  .features-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-1, .bento-2, .bento-3, .bento-4, .bento-5 {
    grid-column: span 2;
  }
  .bento-1 { grid-row: span 1; }

  .eco-num {
    min-width: 50px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .btn-header {
    display: none;
  }

  .top-bar-inner {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 1rem 0.3rem 1rem;
    gap: 1.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  }
  .top-bar-inner::-webkit-scrollbar {
    height: 4px;
  }
  .top-bar-inner::-webkit-scrollbar-track {
    background: transparent;
  }
  .top-bar-inner::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
  }
  .top-bar-links {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .top-bar-inner > span {
    display: none; /* Hide 'Ecossistema:' text on mobile to save space */
  }

    .scroll-indicator {
      position: absolute;
      right: 0;
      top: 0;
      height: 100%;
      width: 45px;
      display: flex;
      align-items: center;
      justify-content: flex-end;
      padding-right: 12px;
      background: linear-gradient(to right, transparent, var(--navy-deep) 60%);
      color: var(--white);
      font-size: 1.5rem;
      pointer-events: auto;
      cursor: pointer;
      opacity: 0;
      transition: opacity 0.3s var(--ease);
      z-index: 5;
    }
  .scroll-indicator.visible {
    opacity: 1;
    animation: pulseArrow 2s infinite ease-in-out;
  }
  @keyframes pulseArrow {
    0% { transform: translateX(0); }
    50% { transform: translateX(4px); }
    100% { transform: translateX(0); }
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-inner {
    padding: 0.65rem 1.25rem;
  }

  .audience-grid {
    flex-direction: column;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-bento {
    grid-template-columns: 1fr;
  }
  .bento-1, .bento-2, .bento-3, .bento-4, .bento-5 {
    grid-column: span 1;
  }
  
  .bento-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .bento-bg-num {
    font-size: 8rem;
    bottom: -1rem;
    right: -0.5rem;
  }

  .eco-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.5rem;
  }
  .eco-arrow {
    display: none;
  }

  .carousel-slide {
    display: flex;
    height: auto;
  }

  .carousel-card {
    flex-direction: column;
    min-height: auto;
    height: 100%;
    width: 100%;
  }

  .carousel-card .card-text {
    padding: 2.5rem 1.5rem;
    flex: 1;
  }

  .carousel-card h3 {
    font-size: 2rem;
  }

  .carousel-card p {
    margin-bottom: 2rem;
  }

  .carousel-card .btn {
    width: 100%;
    text-align: center;
    padding: 1rem;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carousel-card .card-image {
    min-height: 250px;
    height: 250px;
    flex: none;
    display: block;
    position: relative;
  }

  .carousel-img-placeholder {
    flex: 1;
    width: 100%;
  }

  .carousel-controls {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .carousel-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    padding: 0 0.5rem;
    z-index: 10;
  }

  .carousel-btn {
    pointer-events: auto;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: span 2;
  }

  .carousel-controls {
    flex-direction: column-reverse;
    gap: 1.25rem;
    align-items: center;
  }

  .final-cta {
    background-position: 70% center;
    text-align: center;
  }

  .cta-overlay {
    background: linear-gradient(180deg, rgba(26, 29, 33, 0.95) 0%, rgba(168, 40, 54, 0.85) 100%);
  }

  .cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
  }
}

/* =========================================
   WHATSAPP FLOATING BUTTON
   ========================================= */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0px 4px 15px rgba(0,0,0,0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0px 8px 25px rgba(37, 211, 102, 0.4);
  color: #FFF;
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}


/* =========================================
   FEATURES 2 COLUMNS
   ========================================= */
.features-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 4rem auto 0;
}
@media (max-width: 768px) {
  .features-grid-2 {
    grid-template-columns: 1fr;
  }
}

