/* =========================================================
   Front&Go — style.css
   Paleta baseada no frontgo.com.br: fundo quase preto com
   gradiente marrom escuro, texto branco/cinza, acento laranja,
   WhatsApp verde.
   ========================================================= */

:root {
  --bg: #070a12;
  --bg-2: #0c1730;
  --bg-card: rgba(255, 255, 255, 0.035);
  --border: rgba(255, 255, 255, 0.09);
  --text: #f4f6fb;
  --text-muted: #93a0ba;
  --text-dim: #5c657c;

  /* Brand blue — informational highlights, numbers, icons (Carli Mídias) */
  --accent: #2f9bff;
  --accent-2: #6cbaff;
  --accent-soft: rgba(47, 155, 255, 0.12);

  /* CTA green — buttons, conversion (Rodrivera) */
  --cta: #22c55e;
  --cta-2: #16a34a;
  --cta-soft: rgba(34, 197, 94, 0.14);

  --whatsapp: #22c55e;
  --whatsapp-dark: #16a34a;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1180px;
  --radius: 14px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

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

.container--narrow { max-width: 820px; }

.accent { color: var(--accent); }

/* ---------- Eyebrow / labels ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.eyebrow__dash {
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--sm { padding: 10px 20px; font-size: 14px; }

.btn--primary {
  background: var(--cta);
  color: #ffffff;
}
.btn--primary:hover { background: var(--cta-2); transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
}
.btn--outline:hover { border-color: var(--text); transform: translateY(-2px); }

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

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 7, 5, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 10px 0;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-mark svg { width: 100%; height: 100%; }

.logo-divider {
  flex-shrink: 0;
  width: 1px;
  height: 28px;
  background: var(--border);
}

.logo-text { display: flex; flex-direction: column; line-height: 1.15; }

.logo-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
}

.logo-tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--cta);
}

@media (max-width: 480px) {
  .logo-tag { font-size: 8px; letter-spacing: 0.05em; white-space: nowrap; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--text); }

.header__cta { margin-left: 24px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 120px 0 100px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 60% at 78% 15%, rgba(47, 155, 255, 0.18) 0%, rgba(47, 155, 255, 0) 60%),
    radial-gradient(45% 45% at 10% 90%, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0) 60%),
    linear-gradient(160deg, var(--bg-2) 0%, var(--bg) 55%);
  z-index: -1;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.hero__content { max-width: 620px; }

/* Hero badge (à la Carli Mídias: dot + short descriptor) */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px 9px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 24px;
}
.hero-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  flex-shrink: 0;
}

.hero__title {
  font-size: clamp(2.2rem, 5.2vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.hero__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 620px;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

/* Compact stat trio under hero CTAs (à la Carli Mídias) */
.hero__meta {
  display: flex;
  gap: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero__meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero__meta-num { font-size: 22px; font-weight: 800; color: var(--text); }
.hero__meta-label { font-size: 12.5px; color: var(--text-dim); }

/* ---------- Hero visual mockup card ---------- */
.hero__visual { position: relative; }

.mockup {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.015) 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 28px 64px;
  overflow: visible;
}

.mockup::before, .mockup::after,
.mockup .corner-tl, .mockup .corner-br {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--border);
  opacity: 0.7;
}
.mockup::before { top: -7px; left: -7px; border-right: none; border-bottom: none; }
.mockup::after { bottom: 64px; right: -7px; border-left: none; border-top: none; }

.mockup__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 10, 18, 0.7);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.mockup__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cta);
  box-shadow: 0 0 0 3px var(--cta-soft);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.mockup__chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
  margin-bottom: 8px;
}
.mockup__bar {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--accent) 0%, rgba(47,155,255,0.15) 100%);
}
.mockup__bar--alt { background: linear-gradient(180deg, var(--cta) 0%, rgba(34,197,94,0.15) 100%); }

.mockup__caption {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-dim);
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.mockup__stat {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: -28px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.35);
}
.mockup__stat-num { font-size: 26px; font-weight: 800; color: var(--accent); }
.mockup__stat-label { font-size: 12.5px; color: var(--text-muted); }

/* ---------- Hero photo card ---------- */
.photo-card {
  position: relative;
  border-radius: 20px;
  overflow: visible;
}

.photo-card__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(7, 10, 18, 0.72);
  backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--text);
}

.photo-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.photo-card__stat {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: -28px;
  z-index: 2;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.35);
}
.photo-card__stat-icon { font-size: 22px; flex-shrink: 0; }
.photo-card__stat-num { display: block; font-size: 15px; font-weight: 800; color: var(--text); }
.photo-card__stat-label { display: block; font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* ---------- Platform strip ---------- */
.platform-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.platform-strip__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.platform-strip__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-dim);
}
.platform-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.platform-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Pull quote ---------- */
.pull-quote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 28px 0 36px;
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  max-width: 640px;
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--alt { background: linear-gradient(180deg, rgba(255,255,255,0.015) 0%, rgba(255,255,255,0) 100%); }

.section__title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 760px;
  margin-bottom: 56px;
}

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(47, 155, 255, 0.4); transform: translateY(-4px); }

.card__num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; }

/* ---------- Steps (método) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  position: relative;
  padding: 32px 0 0;
  border-top: 1px solid var(--border);
}

.step__index {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.step p { color: var(--text-muted); font-size: 15px; }

/* ---------- Diferencial ---------- */
.grid--diff { gap: 32px 40px; }

.diff-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.diff-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.diff-item h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.diff-item p { color: var(--text-muted); font-size: 14.5px; }

/* ---------- Clientes (cases de sucesso) ---------- */
.clients-section {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.clients-section__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.clients-section__intro { min-width: 0; }
.clients-section__intro .section__title {
  margin-bottom: 16px;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.clients-section__text {
  color: var(--text-muted);
  font-size: 15.5px;
  max-width: 420px;
}

.clients-section__carousel-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.clients-carousel {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
}
.clients-carousel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.clients-carousel::-webkit-scrollbar { height: 6px; }
.clients-carousel::-webkit-scrollbar-track { background: transparent; }
.clients-carousel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.clients-track {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 4px 4px 20px;
  scroll-snap-type: x proximity;
}

.client-card {
  flex: 0 0 300px;
  width: 300px;
  height: 330px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  user-select: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.client-card__link { margin-top: auto; padding-top: 4px; }

.client-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.client-card__avatar {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-2);
  display: block;
}
.client-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.client-card__id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.client-card__handle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.verified-badge { flex-shrink: 0; }
.client-card__name {
  font-size: 12.5px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.client-card__stats {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: var(--text-muted);
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.client-card__stats strong { color: var(--text); font-weight: 700; }

.client-card__bio { margin-bottom: 12px; }
.client-card__category {
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.client-card__bio p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.client-card__link {
  font-size: 13px;
  color: var(--accent-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Serviços ---------- */
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.service-card:hover { border-color: rgba(47, 155, 255, 0.4); transform: translateY(-4px); }

.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.service-card > p { color: var(--text-muted); margin-bottom: 20px; }

.service-card ul { display: flex; flex-direction: column; gap: 10px; }
.service-card li {
  position: relative;
  padding-left: 20px;
  font-size: 14.5px;
  color: var(--text-muted);
}
.service-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Sobre ---------- */
.about__inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.about__text .section__title { margin-bottom: 24px; }

.about__bio {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 28px;
}
.about__bio strong { color: var(--text); }

.about__badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  max-width: 480px;
}
.about__badge-icon { font-size: 26px; flex-shrink: 0; }
.about__badge strong { display: block; font-size: 14.5px; color: var(--text); margin-bottom: 3px; }
.about__badge span { font-size: 13px; color: var(--text-muted); }

.about__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.about__gallery-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.about__gallery-img--big {
  grid-column: 1 / -1;
  height: 260px;
}
.about__gallery-img--top {
  object-position: center 10%;
}

/* ---------- Google Meu Negócio ---------- */
.google-profile {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.google-profile__text { min-width: 0; }
.google-profile__desc {
  color: var(--text-muted);
  font-size: 15.5px;
  margin: 16px 0 28px;
  max-width: 480px;
}
.google-profile__card {
  display: block;
  justify-self: center;
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.google-profile__card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}
.google-profile__card img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Blog (placeholder) ---------- */
.blog-panel {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 760px;
}
.blog-panel__icon { font-size: 28px; flex-shrink: 0; }
.blog-panel h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.blog-panel p { color: var(--text-muted); font-size: 15px; max-width: 560px; }
.blog-panel p a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.blog-panel p a:hover { color: var(--text); }

/* ---------- Resultados / stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 420px;
  gap: 24px;
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}

.stat { text-align: left; }

.stat__num {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.stat__label {
  font-size: 14px;
  color: var(--text-muted);
}

.testimonials-carousel-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.testimonials-carousel {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  -webkit-overflow-scrolling: touch;
}
.testimonials-carousel.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}
.testimonials-carousel::-webkit-scrollbar { height: 6px; }
.testimonials-carousel::-webkit-scrollbar-track { background: transparent; }
.testimonials-carousel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.testimonials-track {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 4px 4px 20px;
  scroll-snap-type: x proximity;
}

.carousel-btn {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.carousel-btn:hover { background: var(--accent-soft); border-color: var(--accent); }
.carousel-btn:active { transform: scale(0.96); }

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  flex: 0 0 300px;
  width: 300px;
  height: 460px;
  scroll-snap-align: start;
  user-select: none;
}

.testimonial p { color: var(--text); font-size: 15px; font-style: italic; }

.testimonial__video {
  flex: 1;
  min-height: 0;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.testimonial__video--embed {
  border-style: solid;
  padding: 0;
  overflow: hidden;
}
.testimonial__video--embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}
.testimonial__play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cta);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding-left: 3px;
}
.testimonial__video-label {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  padding: 0 16px;
}

.testimonial__author { display: flex; flex-direction: column; gap: 2px; }
.testimonial__name { font-weight: 600; font-size: 14px; }
.testimonial__role { font-size: 13px; color: var(--text-dim); }

.testimonial--proof {
  padding: 0;
  gap: 0;
  overflow: hidden;
}
.testimonial__proof-shot {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  background: #0b141a;
  border-bottom: 1px solid var(--border);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
  scroll-behavior: smooth;
}
.testimonial__proof-shot img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}
.testimonial__proof-shot--fit {
  display: flex;
  align-items: center;
  justify-content: center;
}
.testimonial__proof-shot--fit::after {
  display: none;
}

/* ---------- Google review cards ---------- */
.testimonial__google-badge {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
}
.testimonial__google-badge svg { width: 16px; height: 16px; flex-shrink: 0; }
.testimonial__stars {
  flex: 0 0 auto;
  color: #fbbc04;
  font-size: 15px;
  letter-spacing: 3px;
}
.testimonial--google p {
  flex: 1;
  min-height: 0;
  margin: 0;
  display: flex;
  align-items: center;
  overflow-y: auto;
  font-style: italic;
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.5;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.testimonial--google p::-webkit-scrollbar { width: 6px; }
.testimonial--google p::-webkit-scrollbar-track { background: transparent; }
.testimonial--google p::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.testimonial--google .testimonial__author { flex: 0 0 auto; }

.testimonial--proof .testimonial__author {
  flex: 0 0 auto;
  padding: 16px 24px 24px;
}
.testimonial__proof-shot::-webkit-scrollbar { width: 6px; }
.testimonial__proof-shot::-webkit-scrollbar-track { background: transparent; }
.testimonial__proof-shot::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Fade hint at the bottom edge so a taller screenshot reads as scrollable */
.testimonial__proof-shot::after {
  content: "";
  position: sticky;
  display: block;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  margin-top: -30px;
  background: linear-gradient(to bottom, rgba(11, 20, 26, 0), rgba(11, 20, 26, 0.9));
  pointer-events: none;
}

.placeholder-note {
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
}

/* ---------- FAQ / Accordion ---------- */
.accordion { border-top: 1px solid var(--border); }

.accordion-item { border-bottom: 1px solid var(--border); }

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  padding: 24px 4px;
  cursor: pointer;
}

.accordion-icon {
  flex-shrink: 0;
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease;
}

.accordion-panel p {
  color: var(--text-muted);
  font-size: 15px;
  padding: 0 4px 24px;
  max-width: 680px;
}

/* ---------- CTA final ---------- */
.cta-final {
  text-align: center;
  background: radial-gradient(60% 100% at 50% 0%, rgba(34, 197, 94, 0.12) 0%, rgba(34,197,94,0) 60%);
}

.cta-final__inner { max-width: 640px; margin: 0 auto; }

.cta-final h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.cta-final p { color: var(--text-muted); font-size: 17px; margin-bottom: 36px; }
.cta-final .placeholder-note { margin-top: 20px; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-top: 64px;
  background: var(--bg-2);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
}

.footer__brand p { color: var(--text-muted); font-size: 14px; margin-top: 14px; max-width: 240px; }

.footer__col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col a, .footer__col span {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.footer__col a:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
}
.footer__bottom p { font-size: 13px; color: var(--text-dim); }

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #fff;
  padding: 14px 20px 14px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, transform 0.15s ease;
}
.whatsapp-float:hover { background: var(--whatsapp-dark); transform: translateY(-2px); }
.whatsapp-float svg { width: 24px; height: 24px; }

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 960px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 480px; }
  .hero__meta { gap: 24px; flex-wrap: wrap; }

  .about__inner { grid-template-columns: 1fr; }
  .about__gallery { max-width: 560px; }

  .clients-section__inner { grid-template-columns: 1fr; gap: 32px; }
  .clients-section__text { max-width: 100%; }

  .google-profile { grid-template-columns: 1fr; gap: 32px; }
  .google-profile__card { justify-self: start; }
}

/* The header nav (logo + 7 links + CTA button) needs ~900px to fit on one
   line, so the mobile hamburger menu kicks in earlier than the other
   760px-tuned rules below — otherwise tablets/narrow laptop windows in the
   761-899px range get a horizontally-overflowing header. */
@media (max-width: 900px) {
  .nav, .header__cta { display: none; }
  .nav-toggle { display: flex; }

  .header.nav-open .header__inner {
    flex-wrap: wrap;
    height: auto;
  }
  .header.nav-open .nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
    order: 10;
    margin: 0;
    padding: 24px 0 8px;
    border-top: 1px solid var(--border);
  }
  .header.nav-open .header__cta {
    display: inline-flex;
    order: 11;
    width: 100%;
    justify-content: center;
    margin: 0 0 20px;
  }
}

@media (max-width: 760px) {

  .hero { padding: 90px 0 70px; }
  .section { padding: 70px 0; }

  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .grid--diff { gap: 28px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 32px 20px; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }

  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 14px; }

  .mockup { padding: 22px 20px 56px; margin-top: 12px; }
  .mockup__chart { height: 110px; }
  .mockup__stat { left: 20px; right: 20px; bottom: -24px; padding: 12px 16px; }
  .platform-strip__inner { gap: 12px; }
  .platform-strip__label { flex-basis: 100%; }

  .photo-card__stat { left: 16px; right: 16px; bottom: -24px; padding: 12px 14px; }
  .about__gallery-img { height: 130px; }
  .about__gallery-img--big { height: 190px; }

  .clients-section__carousel-wrap { gap: 8px; }
  .client-card { flex-basis: 86%; width: 86%; }

  .testimonials-carousel-wrap { gap: 8px; }
  .testimonial { flex-basis: 86%; width: 86%; height: 420px; }
  .carousel-btn { width: 34px; height: 34px; font-size: 17px; }
}

/* =========================================================
   Front&Go — main.js
   ========================================================= */

// -----------------------------------------------------------
// CONFIGURAÇÃO — edite aqui antes de publicar
// -----------------------------------------------------------
const WHATSAPP_NUMBER = "5519984251420";
const WHATSAPP_MESSAGE = "Olá! Vim pelo site e quero agendar um diagnóstico gratuito com a Front&Go.";

document.addEventListener("DOMContentLoaded", () => {
  const waLink = `https://wa.me/${WHATSAPP_NUMBER}?text=${encodeURIComponent(WHATSAPP_MESSAGE)}`;

  document.querySelectorAll("#whatsappFloat, #ctaWhatsapp, #footerWhatsapp").forEach((el) => {
    el.setAttribute("href", waLink);
  });

  // ---------------------------------------------------------
  // Mobile nav toggle
  // ---------------------------------------------------------
  const header = document.getElementById("header");
  const navToggle = document.getElementById("navToggle");

  if (navToggle) {
    navToggle.addEventListener("click", () => {
      const isOpen = header.classList.toggle("nav-open");
      navToggle.setAttribute("aria-expanded", String(isOpen));
    });

    document.querySelectorAll(".nav a").forEach((link) => {
      link.addEventListener("click", () => {
        header.classList.remove("nav-open");
        navToggle.setAttribute("aria-expanded", "false");
      });
    });
  }

  // ---------------------------------------------------------
  // FAQ accordion
  // ---------------------------------------------------------
  document.querySelectorAll(".accordion-trigger").forEach((trigger) => {
    trigger.addEventListener("click", () => {
      const panel = trigger.nextElementSibling;
      const isOpen = trigger.getAttribute("aria-expanded") === "true";

      // close all others
      document.querySelectorAll(".accordion-trigger").forEach((t) => {
        if (t !== trigger) {
          t.setAttribute("aria-expanded", "false");
          t.nextElementSibling.style.maxHeight = null;
        }
      });

      trigger.setAttribute("aria-expanded", String(!isOpen));
      panel.style.maxHeight = isOpen ? null : panel.scrollHeight + "px";
    });
  });

  // ---------------------------------------------------------
  // Scroll reveal
  // ---------------------------------------------------------
  const revealTargets = document.querySelectorAll(
    ".card, .step, .service-card, .diff-item, .testimonial, .stat, .client-card"
  );
  revealTargets.forEach((el) => el.setAttribute("data-reveal", ""));

  const observer = new IntersectionObserver(
    (entries) => {
      entries.forEach((entry) => {
        if (entry.isIntersecting) {
          entry.target.classList.add("is-visible");
          observer.unobserve(entry.target);
        }
      });
    },
    { threshold: 0.12 }
  );

  revealTargets.forEach((el) => observer.observe(el));

  // ---------------------------------------------------------
  // Drag-to-scroll carousels (testimonials + clients)
  // ---------------------------------------------------------
  function initDragCarousel({ carouselId, cardSelector, prevId, nextId, gap = 20, fallbackWidth = 300 }) {
    const carousel = document.getElementById(carouselId);
    if (!carousel) return;

    let isDown = false;
    let didDrag = false;
    let startX = 0;
    let startScroll = 0;

    const stopDrag = () => {
      if (!isDown) return;
      isDown = false;
      carousel.classList.remove("is-dragging");
    };

    carousel.addEventListener("mousedown", (e) => {
      isDown = true;
      didDrag = false;
      carousel.classList.add("is-dragging");
      startX = e.pageX;
      startScroll = carousel.scrollLeft;
    });

    window.addEventListener("mouseup", stopDrag);
    carousel.addEventListener("mouseleave", stopDrag);

    carousel.addEventListener("mousemove", (e) => {
      if (!isDown) return;
      e.preventDefault();
      const delta = e.pageX - startX;
      if (Math.abs(delta) > 4) didDrag = true;
      carousel.scrollLeft = startScroll - delta;
    });

    // Prevent link/image clicks from firing right after a drag
    carousel.addEventListener(
      "click",
      (e) => {
        if (didDrag) {
          e.preventDefault();
          e.stopPropagation();
        }
      },
      true
    );

    const scrollByCard = (dir) => {
      const card = carousel.querySelector(cardSelector);
      const step = card ? card.getBoundingClientRect().width + gap : fallbackWidth;
      carousel.scrollBy({ left: dir * step, behavior: "smooth" });
    };

    const prevBtn = document.getElementById(prevId);
    const nextBtn = document.getElementById(nextId);
    if (prevBtn) prevBtn.addEventListener("click", () => scrollByCard(-1));
    if (nextBtn) nextBtn.addEventListener("click", () => scrollByCard(1));
  }

  initDragCarousel({
    carouselId: "testimonialsCarousel",
    cardSelector: ".testimonial",
    prevId: "testimonialsPrev",
    nextId: "testimonialsNext",
  });

  initDragCarousel({
    carouselId: "clientsCarousel",
    cardSelector: ".client-card",
    prevId: "clientsPrev",
    nextId: "clientsNext",
  });

  // ---------------------------------------------------------
  // Footer year
  // ---------------------------------------------------------
  const yearEl = document.getElementById("year");
  if (yearEl) yearEl.textContent = new Date().getFullYear();

  // ---------------------------------------------------------
  // Header shadow on scroll
  // ---------------------------------------------------------
  window.addEventListener("scroll", () => {
    header.style.boxShadow = window.scrollY > 8 ? "0 4px 20px rgba(0,0,0,0.25)" : "none";
  });
});
