:root {
  --color-brand: #0B1F33; /* Dark Logo Color */
  --color-brand-light: #163050;
  --color-accent: #3B82F6; /* Vibrant Blue for popping */
  
  --bg-color: #F8F9FA;
  --text-main: #0B1F33;
  --text-muted: #4A5A75;
  
  --glass-bg: rgba(255, 255, 255, 0.4);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px rgba(11, 31, 51, 0.1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Animated Background Blobs */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: float 20s infinite ease-in-out alternate;
}
.blob-1 {
  top: -10%; left: -10%; width: 50vw; height: 50vw;
  background: var(--color-brand);
  animation-delay: 0s;
}
.blob-2 {
  bottom: -10%; right: -10%; width: 40vw; height: 40vw;
  background: var(--color-accent);
  animation-delay: -5s;
}
.blob-3 {
  top: 40%; left: 60%; width: 30vw; height: 30vw;
  background: #A7C7E7;
  animation-delay: -10s;
}

@keyframes float {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 10%) scale(1.1); }
  100% { transform: translate(-5%, -5%) scale(0.9); }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-brand);
  line-height: 1.2;
}
.heading-hero {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--color-brand), var(--color-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  min-height: clamp(3.5rem, 8vw, 6.5rem); /* Prevents layout shift during typewriter */
}
.heading-section {
  font-size: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
  margin-bottom: 1.5rem;
}
.text-lead {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--text-muted);
}

/* Layout */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}
.section {
  padding: 120px 0;
  position: relative;
}

/* Floating Navbar (Glassmorphism) */
.nav-wrapper {
  position: fixed;
  top: 24px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 1000;
  padding: 0 24px;
}
.nav {
  width: 100%;
  max-width: 900px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 50px;
  height: 70px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  transition: transform 0.3s ease;
  position: relative; /* Added for absolute centering of links */
}
.nav__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}
.nav__logo {
  margin-right: auto;
  z-index: 2;
  display: flex;
  align-items: center;
}
.nav__logo-img {
  height: 44px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.nav__logo:hover .nav__logo-img {
  transform: scale(1.05);
}
.nav__links {
  display: flex;
  gap: 24px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  white-space: nowrap; /* Prevents container wrapping */
}
.nav__link {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-brand);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap; /* Prevents single links like "Como funciona" from wrapping */
}
.nav__link:hover {
  color: var(--color-accent);
}
.nav__hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--color-brand);
  cursor: pointer;
}

/* Mobile Nav Overlay */
.mobile-nav {
  position: fixed;
  top: 84px;
  left: 5%;
  width: 90%;
  height: auto;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  z-index: 999;
  display: none;
  flex-direction: column;
  padding: 32px;
  box-shadow: var(--glass-shadow);
}
.mobile-nav.open {
  display: flex;
  animation: slideDown 0.3s ease-out forwards;
}
.mobile-nav a {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-brand);
  padding: 16px 0;
  border-bottom: 1px solid rgba(11, 31, 51, 0.1);
  text-decoration: none;
}

/* Typewriter Cursor */
.typewriter-cursor {
  display: inline-block;
  width: 4px;
  height: clamp(3rem, 7vw, 5.5rem);
  background-color: var(--color-brand);
  margin-left: 8px;
  vertical-align: middle;
  animation: blink 1s infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Hero Section */
.hero {
  padding-top: 220px;
  padding-bottom: 120px;
  text-align: center;
}
.hero__buttons {
  margin-top: 48px;
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary {
  background-color: var(--color-brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(11, 31, 51, 0.3);
}
.btn--primary:hover {
  background-color: var(--color-brand-light);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(11, 31, 51, 0.4);
}
.btn--secondary {
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--color-brand);
  border: 1px solid var(--glass-border);
}
.btn--secondary:hover {
  background-color: rgba(255,255,255,0.8);
  transform: translateY(-3px);
}

/* Grid Layouts */
.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* Glassmorphism Cards with 3D Tilt */
.card-wrapper {
  perspective: 1000px;
  /* preserve-3d will be added via JS */
}
.card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 32px;
  padding: 48px;
  text-align: center;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  color: var(--text-main);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  height: 100%;
}
.card__icon {
  margin-bottom: 24px;
  color: var(--color-accent);
}
.card__title {
  font-size: 24px;
  margin-bottom: 16px;
}
.card__desc {
  color: var(--text-muted);
  font-size: 16px;
}

/* Cities Grid */
.cities-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 48px;
}
.city-pill {
  padding: 16px 32px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-brand);
  box-shadow: 0 4px 16px rgba(11, 31, 51, 0.05);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.city-pill:hover {
  background: var(--color-brand);
  color: #fff;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 12px 24px rgba(11, 31, 51, 0.2);
}

/* Forms & Calculator */
.form-container {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  border-radius: 40px;
  padding: 56px;
  max-width: 680px;
  margin: 0 auto;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--glass-border);
}
.form-group {
  margin-bottom: 24px;
  text-align: left;
}
.form-label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-brand);
}
.form-input {
  width: 100%;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(11, 31, 51, 0.1);
  background: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  font-family: inherit;
  color: var(--color-brand);
  transition: all 0.3s ease;
}
.form-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--color-brand);
  box-shadow: 0 0 0 4px rgba(11, 31, 51, 0.1);
}
.results-box {
  margin-top: 40px;
  padding: 40px;
  background: rgba(255,255,255,0.8);
  border-radius: 24px;
  text-align: center;
  display: none;
  animation: fadeIn 0.5s ease-out forwards;
}
.results-box.active { display: block; }
.result-value {
  font-size: 56px;
  font-weight: 800;
  color: var(--color-brand);
  letter-spacing: -0.04em;
  margin: 12px 0;
}

/* FAQ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}
.faq-item:hover {
  background: rgba(255,255,255,0.7);
}
.faq-question {
  padding: 24px 32px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: '+';
  font-size: 28px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}
.faq-answer {
  padding: 0 32px 24px;
  color: var(--text-muted);
  display: none;
  font-size: 17px;
  line-height: 1.6;
  animation: slideDownFade 0.4s ease-out forwards;
}
.faq-item.active .faq-answer { display: block; }

@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
.footer {
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  border-top: 1px solid var(--glass-border);
  padding: 80px 0 40px;
  font-size: 15px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1.2fr 0.8fr;
  gap: 40px;
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(11, 31, 51, 0.1);
}
.footer h4 { margin-bottom: 20px; }
.footer ul { list-style: none; }
.footer li { margin-bottom: 12px; }
.footer a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer a:hover { color: var(--color-brand); }
.footer-bottom { display: flex; justify-content: space-between; color: var(--text-muted); }

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px) scale(0.95);
  transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 900px) {
  .nav-wrapper { padding: 0 16px; top: 16px; }
  .nav { border-radius: 24px; height: 60px; padding: 0 24px; }
  .nav__links { display: none; }
  .nav__hamburger { display: block; }
  .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 180px; padding-bottom: 80px; }
  .hero__buttons { flex-direction: column; }
  .btn { width: 100%; }
  .form-container { padding: 32px 24px; border-radius: 32px; }
  .result-value { font-size: 40px; }
  .footer-bottom { flex-direction: column; gap: 16px; align-items: center; }
}
/* Floating WhatsApp Button */
.floating-wa {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.floating-wa:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.6);
    color: white;
}
/* Hide Scrollbars globally but keep page scrollable */
::-webkit-scrollbar {
    display: none;
}
html, body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Area de Atuacao Grid */
.area-atuacao-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}
@media (min-width: 768px) {
    .area-atuacao-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}
.area-atuacao-text {
    z-index: 2;
}
.area-atuacao-text h2,
.area-atuacao-text p {
    text-align: center;
}
@media (min-width: 768px) {
    .area-atuacao-text h2,
    .area-atuacao-text p {
        text-align: left;
    }
}
.area-atuacao-map {
    z-index: 1;
    width: 100%;
}
#ibiapaba-map-3d {
    height: 380px;
    width: 100%;
    position: relative;
    background: transparent;
}
@media (min-width: 768px) {
    #ibiapaba-map-3d {
        height: 560px;
    }
}

/* Dark City Pills */
.city-pill--dark {
    background: rgba(11, 31, 51, 0.08);
    border: 2px solid #0B1F33;
    color: #0B1F33;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 220px;
    padding: 16px 12px;
    text-align: center;
    font-weight: 700;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}
.city-pill--dark:hover {
    background: #0B1F33;
    border-color: #0B1F33;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(11, 31, 51, 0.3);
}

/* Active City Pill (synced with 3D map hover) */
.city-pill--active {
    background: #0B1F33 !important;
    border-color: #0B1F33 !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(11, 31, 51, 0.3);
}

/* responsive cities-grid alignment */
@media (min-width: 768px) {
    .cities-grid {
        justify-content: flex-start !important;
    }
}

/* Responsive Card & Results padding for mobile comfort */
@media (max-width: 768px) {
    .card {
        padding: 32px 24px !important;
    }
    .results-box {
        padding: 24px !important;
    }
    .footer-grid {
        text-align: center;
    }
    .footer-grid > div {
        grid-column: span 1 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-grid div div {
        justify-content: center !important;
        flex-direction: column;
        gap: 12px !important;
    }
}

