/* ==========================================================================
   Razontábil Contabilidade — Landing Page
   ========================================================================== */

:root {
  /* Cores da marca */
  --color-bg: #0a0e1a;
  --color-bg-alt: #0d1220;
  --color-bg-soft: #111726;
  --color-gold: #f5a623;
  --color-gold-dark: #e8a020;
  --color-gold-soft: rgba(245, 166, 35, 0.12);
  --color-white: #ffffff;
  --color-text-muted: #b7bfd1;
  --color-border: rgba(245, 166, 35, 0.25);

  /* Tipografia */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', 'Poppins', sans-serif;

  /* Layout */
  --container-width: 1180px;
  --radius: 16px;
  --transition: 0.3s ease;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

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

ul { list-style: none; margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem;
}

p { margin: 0 0 1rem; color: var(--color-text-muted); }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gold { color: var(--color-gold); }

section { position: relative; padding: 80px 0; overflow: hidden; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  max-width: 100%;
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: center;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: normal;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold));
  color: #1a1206;
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.35);
}

.btn--dark {
  background: var(--color-bg);
  color: var(--color-gold);
  border: 2px solid var(--color-bg);
}

.btn--sm { padding: 10px 20px; font-size: 0.9rem; }
.btn--lg { padding: 18px 36px; font-size: 1.05rem; }

.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(245, 166, 35, 0.45); }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo { display: flex; flex-direction: column; line-height: 1; }
.logo__main {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  color: var(--color-white);
}
.logo__sub {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--color-gold);
  font-weight: 600;
  margin-top: 4px;
}

.nav__list { display: flex; gap: 32px; }
.nav__link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-white);
  transition: color var(--transition);
}
.nav__link:hover { color: var(--color-gold); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  background: radial-gradient(circle at 80% 20%, rgba(245, 166, 35, 0.08), transparent 60%), var(--color-bg);
}

.hero__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 600px 300px at 10% 90%, rgba(245, 166, 35, 0.10), transparent 70%);
}

.hero__decor::before {
  content: '';
  position: absolute;
  top: 10%;
  right: -10%;
  width: 500px;
  height: 500px;
  border: 2px solid var(--color-border);
  border-radius: 50%;
  border-right-color: transparent;
  border-bottom-color: transparent;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero__inner > * { min-width: 0; }

.hero__title {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 900;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 520px;
}

.check-list { margin: 28px 0; display: flex; flex-direction: column; gap: 12px; }
.check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.02rem;
}
.check-icon { color: var(--color-gold); font-size: 1.1rem; }

.hero__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 620 / 512;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   Section titles
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  color: var(--color-gold);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  text-align: center;
  margin-bottom: 48px;
}

.services, .testimonials, .faq, .about { text-align: center; }
.services .eyebrow, .testimonials .eyebrow, .faq .eyebrow, .about .eyebrow { display: block; text-align: center; }

.about__text { max-width: 720px; margin-left: auto; margin-right: auto; font-size: 1.08rem; }

.section-title--left { text-align: left; }

/* --------------------------------------------------------------------------
   Cards grid / Services
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.cards-grid--4 { grid-template-columns: repeat(4, 1fr); }
.cards-grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 700px; margin: 0 auto; }

.card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: left;
  transition: transform var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-6px); border-color: var(--color-gold); }

.card__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-gold-soft);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.card h3 { font-size: 1.15rem; }
.card p { margin-bottom: 0; font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   Trust section
   -------------------------------------------------------------------------- */
.trust { background: var(--color-bg-alt); }
.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.trust__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--color-gold-soft);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.trust__item h3 { font-size: 1.1rem; }
.trust__item p { font-size: 0.92rem; }

/* --------------------------------------------------------------------------
   Plano MEI
   -------------------------------------------------------------------------- */
.plan {
  background: #000;
  text-align: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.opening .badge { display: block; width: fit-content; }

.badge {
  display: inline-block;
  background: var(--color-gold-soft);
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 1px;
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.plan__title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--color-white);
}

.plan__price {
  font-size: 1.4rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
}
.plan__price strong {
  font-size: 2.4rem;
  color: var(--color-gold);
}

.plan-benefit {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 20px;
}
.plan-benefit__icon { font-size: 1.8rem; margin-bottom: 12px; }
.plan-benefit p { margin: 0; font-weight: 600; color: var(--color-white); font-size: 0.95rem; }

.guarantee { margin: 48px 0; }
.guarantee h4 { color: var(--color-gold); font-size: 1.1rem; }
.guarantee__items {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 0.95rem;
}

.plan__cta { margin: 32px 0; }

.trust-seals {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 32px;
  font-size: 0.88rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Abertura de empresa
   -------------------------------------------------------------------------- */
.opening__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.opening__grid > * { min-width: 0; }
.opening__text { font-size: 1.05rem; }
.opening__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 800 / 533;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

/* --------------------------------------------------------------------------
   INSS
   -------------------------------------------------------------------------- */
.inss {
  background: linear-gradient(180deg, var(--color-bg-alt), var(--color-bg));
  text-align: center;
}
.inss__inner { max-width: 780px; margin: 0 auto; }
.inss__title { font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--color-gold); }
.inss__text { font-size: 1.08rem; }

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */
.testimonial {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
}
.testimonial__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 2px solid var(--color-gold);
  object-fit: cover;
}
.stars { color: var(--color-gold); margin-bottom: 12px; letter-spacing: 2px; }
.testimonial p { font-size: 0.95rem; font-style: italic; }
.testimonial strong { color: var(--color-white); }

/* --------------------------------------------------------------------------
   FAQ / Accordion
   -------------------------------------------------------------------------- */
.accordion { max-width: 760px; margin: 0 auto; text-align: left; }
.accordion__item {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  background: var(--color-bg-soft);
}
.accordion__header {
  width: 100%;
  background: none;
  border: none;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
}
.accordion__icon {
  color: var(--color-gold);
  font-size: 1.3rem;
  transition: transform var(--transition);
  flex-shrink: 0;
  margin-left: 16px;
}
.accordion__item.is-open .accordion__icon { transform: rotate(45deg); }

.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition), padding var(--transition);
  padding: 0 24px;
}
.accordion__item.is-open .accordion__panel {
  padding: 0 24px 20px;
}
.accordion__panel p { margin: 0; font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   CTA final
   -------------------------------------------------------------------------- */
.final-cta {
  background: linear-gradient(135deg, var(--color-bg), var(--color-gold-dark) 150%);
  text-align: center;
}
.final-cta__inner h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  max-width: 700px;
  margin: 0 auto 32px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background: #000;
  padding: 64px 0 0;
  border-top: 1px solid var(--color-border);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}
.footer__brand p { margin-top: 12px; font-size: 0.9rem; }
.footer h4 { color: var(--color-gold); font-size: 0.95rem; letter-spacing: 1px; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 0.92rem; color: var(--color-text-muted); transition: color var(--transition); }
.footer__col a:hover { color: var(--color-gold); }
.footer__col li { font-size: 0.92rem; color: var(--color-text-muted); }

.footer__bottom {
  border-top: 1px solid var(--color-border);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   WhatsApp floating button
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 999;
  animation: pulse 2.4s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* --------------------------------------------------------------------------
   Scroll reveal animation
   -------------------------------------------------------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
  .hero__inner, .opening__grid { grid-template-columns: 1fr; }
  .hero__media, .opening__media { order: -1; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { position: fixed; top: 72px; left: 0; right: 0; background: var(--color-bg-alt); border-bottom: 1px solid var(--color-border); transform: translateY(-150%); transition: transform var(--transition); }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; padding: 24px; gap: 20px; }
  .hamburger { display: flex; }
  .header__cta { display: none; }

  section { padding: 56px 0; }
  .cards-grid, .cards-grid--4, .cards-grid--2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__col ul { align-items: center; }
  .guarantee__items, .trust-seals { flex-direction: column; gap: 12px; }
}
