/* ============================================
   Passabot — Base Styles
   Shared tokens, reset, navbar, footer, FAQ,
   buttons, animations. Import on every page.
   ============================================ */

/* ===== Design Tokens ===== */
:root {
  --c-impulso: #E0FE74;
  --c-horizonte: #203B32;
  --c-altitude: #1C261B;
  --c-rota: #EEFFB1;
  --c-nuvem: #FEF7E5;

  --bg-main: var(--c-nuvem);
  --text-main: var(--c-altitude);
  --text-muted: #5A6B5E;
  --card-bg: #FFFFFF;
  --card-border: rgba(32, 59, 50, 0.08);
  --nav-bg: rgba(254, 247, 229, 0.85);

  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 12px;
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

[data-theme="dark"] {
  --bg-main: #0F1A0E;
  --text-main: var(--c-nuvem);
  --text-muted: #9BAA96;
  --card-bg: #172016;
  --card-border: rgba(224, 254, 116, 0.06);
  --nav-bg: rgba(15, 26, 14, 0.88);
}

/* ===== Reset ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6; overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.5s ease, color 0.5s ease;
}
a { text-decoration: none; color: inherit; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
img { max-width: 100%; display: block; }

/* ===== Logos ===== */
.brand-logo { height: 34px; width: auto; transition: transform 0.4s var(--ease-smooth); }
.brand:hover .brand-logo { transform: scale(1.03); }
.footer-logo { height: 30px; width: auto; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 12px 26px; border-radius: 100px; font-weight: 700; font-size: 15px;
  transition: all 0.4s var(--ease-smooth); letter-spacing: -0.01em; white-space: nowrap;
}
.btn-primary { background-color: var(--c-impulso); color: var(--c-altitude); }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(224, 254, 116, 0.25);
}
.icon-circle {
  background-color: var(--c-altitude); color: var(--c-impulso);
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 15px; transition: transform 0.4s var(--ease-spring); flex-shrink: 0;
}
.btn-primary:hover .icon-circle { transform: rotate(45deg) scale(1.05); }
.btn-xl { padding: 16px 34px; font-size: 16px; }
.btn-xl .icon-circle { width: 40px; height: 40px; font-size: 18px; }

/* ===== Navbar ===== */
.navbar {
  position: fixed; top: 0; width: 100%; padding: 20px 0; z-index: 1000; isolation: isolate;
  transition: all 0.4s var(--ease-smooth);
}
.navbar.scrolled,
.navbar.menu-open {
  padding: 14px 0; background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid var(--card-border);
}
.nav-container {
  max-width: 1320px; margin: 0 auto; padding: 0 40px;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-links {
  display: flex; gap: 4px; background: var(--card-bg); padding: 5px;
  border-radius: 100px; border: 1px solid var(--card-border);
}
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--text-muted);
  padding: 8px 20px; border-radius: 100px; transition: all 0.3s ease;
}
.nav-links a:hover { color: var(--c-altitude); background-color: var(--c-impulso); }
[data-theme="dark"] .nav-links a:hover { color: var(--c-altitude); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  background: var(--card-bg); border: 1px solid var(--card-border); color: var(--text-main);
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 18px; transition: all 0.4s var(--ease-spring);
}
.theme-toggle:hover {
  background: var(--c-impulso); border-color: var(--c-impulso); color: var(--c-altitude);
  transform: scale(1.08) rotate(15deg);
}
.mobile-menu-btn { display: none; }

/* ===== FAQ ===== */
.faq-section {
  padding: 80px 0 120px;
  background: var(--bg-main);
}
.faq-container {
  max-width: 800px; margin: 0 auto; padding: 0 40px;
}
.faq-header { margin-bottom: 48px; }
.faq-header h2 {
  font-size: clamp(30px, 3.5vw, 48px); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.035em; color: var(--text-main);
}
.faq-list {
  display: flex; flex-direction: column; gap: 12px;
}
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  transition: border-color 0.3s ease;
}
.faq-item[open] {
  border-color: rgba(224, 254, 116, 0.3);
}
.faq-item summary {
  padding: 20px 24px; cursor: pointer;
  font-size: 16px; font-weight: 700; color: var(--text-main);
  list-style: none; letter-spacing: -0.01em;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; font-size: 20px; font-weight: 400;
  color: var(--text-muted); transition: transform 0.3s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item p {
  padding: 0 24px 20px;
  font-size: 15px; color: var(--text-muted);
  line-height: 1.7; font-weight: 500;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--c-altitude); color: var(--c-nuvem);
  border-radius: 48px 48px 0 0; overflow: hidden;
  padding: 100px 0 0; position: relative;
}
.footer-container {
  max-width: 1320px; margin: 0 auto; padding: 0 40px;
}
.footer-cta {
  padding-bottom: 80px; border-bottom: 1px solid rgba(254, 247, 229, 0.07);
  margin-bottom: 72px;
}
.cta-banner {
  display: block; position: relative;
  border-radius: var(--radius-xl); overflow: hidden;
}
.cta-banner-img {
  width: 100%; height: auto; display: block;
}
.cta-banner-btn {
  position: absolute; bottom: 160px; left: 128px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 14px 30px; border-radius: 100px;
  background: var(--c-impulso); color: var(--c-altitude);
  font-weight: 700; font-size: 15px;
  transition: all 0.4s var(--ease-smooth);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.cta-banner:hover .cta-banner-btn {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(224, 254, 116, 0.3);
}
.cta-banner:hover .cta-banner-btn .icon-circle {
  transform: rotate(45deg);
}
.footer-grid {
  display: flex; justify-content: space-between; gap: 48px;
  flex-wrap: wrap; margin-bottom: 72px;
}
.footer-brand { max-width: 300px; }
.footer-brand p {
  color: rgba(254, 247, 229, 0.5); font-size: 15px;
  margin-top: 20px; font-weight: 400; line-height: 1.6;
}
.footer-links { display: flex; gap: 72px; flex-wrap: wrap; }
.link-col { display: flex; flex-direction: column; gap: 14px; }
.link-col h4 {
  font-size: 12px; font-weight: 700; color: rgba(254, 247, 229, 0.35);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.06em;
}
.link-col a {
  color: rgba(254, 247, 229, 0.6); font-size: 15px; font-weight: 500;
  transition: all 0.3s ease;
}
.link-col a:hover { color: var(--c-impulso); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 0; border-top: 1px solid rgba(254, 247, 229, 0.07);
  color: rgba(254, 247, 229, 0.35); font-size: 13px; font-weight: 500;
}

/* ===== GSAP Animation Base ===== */
[data-animate] {
  opacity: 0; transform: translateY(32px);
}

/* ===== Mobile Menu Animation ===== */
@keyframes menuSlideDown {
  from { opacity: 0; transform: translateY(-100%); }
  to   { opacity: 1; transform: translateY(0); }
}

.navbar.menu-open .nav-links {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--c-nuvem);
  border-bottom: 1px solid var(--card-border);
  padding: 16px 24px 24px;
  gap: 4px; z-index: 1001;
  border-radius: 0 0 24px 24px;
  overflow: hidden;
  animation: menuSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.navbar.menu-open .nav-links a {
  padding: 12px 16px; font-size: 16px; font-weight: 600;
  border-radius: 100px;
  border-bottom: 1px solid var(--card-border);
  color: var(--text-main);
  transition: background 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.navbar.menu-open .nav-links a:hover,
.navbar.menu-open .nav-links a:active {
  background: var(--c-impulso);
  color: var(--c-altitude);
  border-bottom-color: transparent;
}
.navbar.menu-open .nav-links a:last-child { border-bottom: none; }
[data-theme="dark"] .navbar.menu-open .nav-links { background: #0F1A0E; }

/* ============================================
   RESPONSIVE — Shared Components
   ============================================ */

@media (max-width: 1024px) {
  .cta-banner { border-radius: var(--radius-lg); }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn { display: none; }
  .mobile-menu-btn {
    display: flex; color: var(--text-main); font-size: 28px;
    width: 44px; height: 44px; align-items: center; justify-content: center;
  }

  .footer-container,
  .nav-container { padding: 0 24px; }

  .faq-container { padding: 0 24px; }

  .footer { border-radius: 32px 32px 0 0; padding-top: 72px; }
  .cta-banner { display: flex; flex-direction: column; }
  .cta-banner-btn {
    position: relative; bottom: auto; left: auto;
    width: 100%; justify-content: center;
    padding: 14px 24px; font-size: 14px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }
  .footer-links { gap: 40px; }
  .footer-bottom {
    flex-direction: column; gap: 16px; text-align: center; padding: 24px 0;
  }
}

@media (max-width: 480px) {
  .btn-xl { padding: 14px 28px; font-size: 15px; }
}
