/* ============================================================
   GABARITOU 2.0 — Landing Page Styles
   Aesthetics: Slate dark/light theme, modern typography, glassmorphism, responsive grid
   ============================================================ */

/* --- HERO SECTION --- */
.hero {
  padding: 120px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--clr-green-light);
  color: var(--clr-green-dark);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 700;
  margin-bottom: 24px;
  border: 1px solid rgba(0,200,150,.2);
}

.hero-title {
  font-family: 'Outfit', sans-serif;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--txt-primary);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title span {
  background: linear-gradient(135deg, var(--clr-green), #4f46e5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: var(--fs-lg);
  color: var(--txt-secondary);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

/* --- SECTIONS --- */
.section {
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--txt-primary);
  margin-bottom: 12px;
}

.section-desc {
  font-size: var(--fs-md);
  color: var(--txt-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

/* --- FEATURES GRID --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,200,150,.1);
  color: var(--clr-green);
  margin-bottom: 24px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-title {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--txt-primary);
}

.feature-text {
  font-size: var(--fs-sm);
  color: var(--txt-secondary);
  line-height: 1.6;
}

/* --- STEPS / HOW IT WORKS --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  position: relative;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--clr-green);
  color: #fff;
  font-size: var(--fs-md);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 10px rgba(0,200,150,.3);
}

.step-title {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--txt-primary);
  margin-bottom: 8px;
}

.step-desc {
  font-size: var(--fs-sm);
  color: var(--txt-secondary);
  line-height: 1.5;
}

/* --- PRICING GRID --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition);
}

.price-card.popular {
  border-color: var(--clr-green);
  box-shadow: 0 8px 30px rgba(0,200,150,.12);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--clr-green);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 99px;
  white-space: nowrap;
}

.price-header {
  margin-bottom: 24px;
  text-align: center;
}

.price-name {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--txt-secondary);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 12px;
}

.price-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--txt-primary);
}

.price-value span {
  font-size: var(--fs-sm);
  color: var(--txt-muted);
  font-weight: 500;
}

.price-features {
  list-style: none;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-features li {
  font-size: var(--fs-sm);
  color: var(--txt-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-features li svg {
  color: var(--clr-green);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --- FAQ / ACCORDION --- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item[open] {
  border-color: var(--border-focus);
}

.faq-item summary {
  padding: 18px 24px;
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--txt-primary);
  cursor: pointer;
  outline: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-family: monospace;
  font-size: var(--fs-md);
  color: var(--clr-green);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  content: '-';
}

.faq-answer {
  padding: 0 24px 20px;
  font-size: var(--fs-sm);
  color: var(--txt-secondary);
  line-height: 1.6;
  border-top: 1px solid transparent;
}

.faq-item[open] .faq-answer {
  border-top-color: var(--border);
}

/* --- HEADER & FOOTER --- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--txt-secondary);
  transition: color var(--transition);
}

.nav-link:hover {
  color: var(--txt-primary);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
  text-align: center;
  background: var(--bg-card);
  color: var(--txt-muted);
  font-size: var(--fs-xs);
}

.footer p {
  margin-bottom: 8px;
}

/* ── HAMBURGER BUTTON ─────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 8px;
  transition: background var(--transition);
  z-index: 1001;
  flex-shrink: 0;
}
.hamburger:hover { background: var(--bg-hover, rgba(0,0,0,.06)); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--txt-primary);
  border-radius: 4px;
  transition: transform .3s ease, opacity .3s ease;
  transform-origin: center;
}
/* Animate to X */
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE OVERLAY ───────────────────────────────── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 999;
  opacity: 0;
  transition: opacity .3s ease;
}
.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  /* Hero */
  .hero-title { font-size: 2.25rem; }
  .hero-ctas { flex-direction: column; width: 100%; max-width: 320px; margin: 0 auto 36px; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  /* Show hamburger button */
  .hamburger { display: flex; }

  /* Nav actions (Entrar / Criar Conta) — hide on mobile, shown inside drawer */
  .nav-actions-desktop { display: none; }

  /* Drawer menu */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 300px;
    height: 100vh;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 80px 24px 32px;
    background: var(--bg-card);
    border-left: 1px solid var(--border);
    box-shadow: -8px 0 32px rgba(0,0,0,.18);
    z-index: 1000;
    transition: right .35s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
  }
  .nav-links.open { right: 0; }

  .nav-link {
    width: 100%;
    padding: 14px 0;
    font-size: var(--fs-md);
    border-bottom: 1px solid var(--border);
  }

  /* Mobile CTA buttons inside drawer */
  .nav-links-ctas {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 28px;
    width: 100%;
  }
  .nav-links-ctas .btn { width: 100%; justify-content: center; text-align: center; }
}

/* On desktop, hide the mobile CTAs block inside the drawer */
@media (min-width: 769px) {
  .hamburger { display: none; }
  .nav-links-ctas { display: none; }
  .nav-actions-desktop { display: flex; }
}
