/* ==========================================================================
   JOHNNY IMPORTS — GRUPO VIP | Landing Page (página ponte)
   Identidade visual preservada do site de referência:
   fundo quase-preto, acento vermelho/carmim, Inter + Bricolage Grotesque.
   ========================================================================== */

:root {
  --bg: #050505;
  --bg-elevated: #0d0d0d;
  --card: #0c0c0c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --fg: #fafafa;
  --muted: #a3a3a3;
  --muted-2: #7a7a7a;
  --primary: #db143c;
  --primary-strong: #ff2d55;
  --primary-dim: rgba(219, 20, 60, 0.16);
  --primary-glow: rgba(225, 29, 72, 0.55);
  --whatsapp: #25d366;
  --whatsapp-strong: #2fe075;
  --whatsapp-glow: rgba(37, 211, 102, 0.5);

  --font-display: "Bricolage Grotesque", "Inter", sans-serif;
  --font-body: "Inter", sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --container: 1120px;
  --gutter: 20px;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-cta: 0 12px 40px -8px var(--primary-glow);

  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

.section {
  padding: 64px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-strong);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(26px, 5.2vw, 38px);
  color: var(--fg);
  margin-bottom: 12px;
}

.section-sub {
  color: var(--muted);
  font-size: 16px;
}

.text-accent {
  color: var(--primary-strong);
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 999;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 68px;
  display: flex;
  align-items: center;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-mark {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 9px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px -2px var(--primary-glow);
}

.brand-mark svg {
  width: 18px;
  height: 18px;
  stroke: #fff;
}

.brand-vip {
  color: var(--primary-strong);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  text-align: center;
  white-space: normal;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 12px 40px -8px var(--whatsapp-glow);
}

.btn-primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 16px 46px -6px var(--whatsapp-glow);
}

.btn-lg {
  padding: 20px 28px;
  font-size: 17px;
  border-radius: 14px;
  width: 100%;
  max-width: 460px;
}

.btn-icon {
  font-size: 1.1em;
  line-height: 1;
}

.btn-arrow {
  transition: transform 0.18s ease;
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(68px + 40px);
  padding-bottom: 56px;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.55;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0.55) 0%,
    rgba(5, 5, 5, 0.72) 35%,
    var(--bg) 92%
  );
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    120% 90% at 50% 0%,
    rgba(219, 20, 60, 0.22) 0%,
    rgba(5, 5, 5, 0) 55%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  backdrop-filter: blur(6px);
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--whatsapp);
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.25);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero h1 {
  font-size: clamp(30px, 7.5vw, 52px);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

.hero p.hero-sub {
  color: #e2e2e2;
  font-size: clamp(15px, 2.4vw, 18px);
  max-width: 560px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.hero-cta-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  width: 100%;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-note {
  font-size: 12.5px;
  color: var(--muted-2);
}

.scroll-cue {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  color: var(--muted-2);
  animation: bob 1.8s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(6px); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue {
    animation: none;
  }
}

/* ---------- Categories ---------- */
.categories {
  background: var(--bg);
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.cat-card {
  background: linear-gradient(180deg, var(--card), #0a0a0a);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.cat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(219, 20, 60, 0.4);
}

.cat-icon {
  font-size: 30px;
  line-height: 1;
}

.cat-label {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--fg);
}

/* ---------- Social proof ---------- */
.proof {
  background: linear-gradient(180deg, #050505, #0a0505 40%, #050505);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto 40px;
}

.proof-card {
  background: #0b141a;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.proof-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(219, 20, 60, 0.35);
}

.proof-card img {
  width: 100%;
  height: auto;
}

.trust-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: #1a1a1a;
  margin-left: -12px;
}

.avatar-stack img:first-child {
  margin-left: 0;
}

.trust-stat {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--fg);
}

.trust-stat span {
  color: var(--primary-strong);
}

.trust-caption {
  color: var(--muted);
  font-size: 14px;
  max-width: 320px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 620px;
  margin: 32px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(18px, 4vw, 24px);
  color: var(--fg);
}

.stat-label {
  font-size: 11.5px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.proof-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* ---------- Benefits ---------- */
.benefits {
  background: var(--bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 620px;
  margin: 0 auto;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
}

.benefit-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: var(--primary-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-text {
  font-size: 15px;
  font-weight: 600;
  color: #e6e6e6;
}

.benefits-cta {
  display: flex;
  justify-content: center;
  margin-top: 32px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  padding: 72px 0 88px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      70% 100% at 50% 100%,
      rgba(219, 20, 60, 0.28) 0%,
      rgba(5, 5, 5, 0) 60%
    ),
    var(--bg);
}

.final-cta h2 {
  font-size: clamp(26px, 6vw, 40px);
  margin-bottom: 14px;
}

.final-cta p {
  color: var(--muted);
  font-size: 16px;
  max-width: 480px;
  margin: 0 auto 30px;
}

.final-cta .btn-lg {
  margin: 0 auto;
}

/* ---------- FAQ ---------- */
.faq {
  background: var(--bg);
}

.faq-list {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--fg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}

.faq-question .chevron {
  transition: transform 0.25s ease;
  color: var(--muted);
  flex: none;
}

.faq-item[data-open="true"] .chevron {
  transform: rotate(180deg);
  color: var(--primary-strong);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.faq-item[data-open="true"] .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  padding: 0 20px 18px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.footer {
  padding: 36px 0 calc(36px + var(--safe-bottom));
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer .brand {
  justify-content: center;
  margin-bottom: 10px;
}

.footer-copy {
  color: var(--muted-2);
  font-size: 12.5px;
}

.footer-edit-note {
  color: var(--muted-2);
  font-size: 11px;
  margin-top: 6px;
  opacity: 0.7;
}

/* ---------- Floating mobile CTA ---------- */
.floating-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 14px calc(10px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, var(--bg) 30%);
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}

.floating-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.floating-cta-btn {
  width: 100%;
  padding: 15px 18px;
  border-radius: 14px;
  background: var(--whatsapp);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 30px -6px var(--whatsapp-glow);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 768px) {
  .floating-cta {
    display: none;
  }
}

/* ---------- Reveal-on-scroll microanimation ----------
   Progressive enhancement: o conteúdo é 100% visível por padrão.
   A animação só é ativada quando html.js-ready confirma que o
   JavaScript rodou — assim nada some caso um script falhe/seja
   bloqueado (essencial em tráfego pago via navegadores in-app). */
.reveal {
  opacity: 1;
  transform: none;
}

html.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

html.js-ready .reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  html.js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .badge .dot {
    animation: none;
  }
}

/* ---------- Desktop / tablet ---------- */
@media (min-width: 640px) {
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .btn-lg {
    width: auto;
  }
}

@media (min-width: 768px) {
  .section {
    padding: 96px 0;
  }
  .hero {
    min-height: 88vh;
    padding-top: calc(68px + 64px);
  }
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 760px;
  }
}

@media (min-width: 1024px) {
  .proof-grid {
    max-width: 900px;
  }
}
