/* ============================================================
   NexTag — style.css
   Organização:
   1. Variáveis e reset
   2. Tipografia e utilitários
   3. Animações
   4. Componentes base (botões, badges, dots)
   5. Header e navegação
   6. Hero
   7. Serviços
   8. Como funciona
   9. Por que a NexTag
   10. Portfólio
   11. Depoimentos
   12. FAQ
   13. Contato
   14. CTA final
   15. Footer
   16. WhatsApp FAB
   17. Responsividade
   18. Acessibilidade e preferências
============================================================ */

/* ============================================================
   1. VARIÁVEIS E RESET
============================================================ */
:root {
  --navy:       #1B2230;
  --navy-soft:  #2A3346;
  --teal:       #12A28C;
  --teal-dark:  #0E8574;
  --teal-light: #E3F5F2;
  --bg:         #F7F7F7;
  --white:      #FFFFFF;
  --muted:      #5B6577;
  --border:     #E3E6EB;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 999px;

  --shadow-sm:  0 1px 4px rgba(27,34,48,.06);
  --shadow-md:  0 4px 20px rgba(27,34,48,.10);
  --shadow-lg:  0 8px 40px rgba(27,34,48,.13);

  --transition: 220ms ease;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --header-h: 72px;
}

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

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

/* Impede rolagem horizontal acidental (ex.: cards posicionados
   fora do container em telas menores). */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--navy);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul, ol { list-style: none; }

button {
  font-family: var(--font);
  cursor: pointer;
  background: none;
  border: none;
}

/* ============================================================
   2. TIPOGRAFIA E UTILITÁRIOS
============================================================ */
.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: 96px;
}

.section-header {
  text-align: center;
  max-width: 660px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.section-header--left {
  text-align: left;
  margin-inline: 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.7;
}

.highlight {
  color: var(--teal);
  position: relative;
}

/* ============================================================
   3. ANIMAÇÕES
============================================================ */

/* Scroll reveal — padrão */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s cubic-bezier(.22,.61,.36,1),
              transform .55s cubic-bezier(.22,.61,.36,1);
}
.reveal.revealed {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* Floating animation for hero card */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* Pulse for WhatsApp FAB */
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .7; }
  70%  { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* ============================================================
   4. COMPONENTES BASE
============================================================ */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  transition: background var(--transition),
              color var(--transition),
              box-shadow var(--transition),
              transform var(--transition),
              border-color var(--transition);
  white-space: nowrap;
}
.btn:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.btn:active { transform: scale(.97); }

.btn-teal {
  background: var(--teal);
  color: var(--white);
  border: 2px solid var(--teal);
  box-shadow: 0 4px 18px rgba(18,162,140,.25);
}
.btn-teal:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  box-shadow: 0 6px 24px rgba(18,162,140,.35);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-teal-outline {
  background: transparent;
  color: var(--teal);
  border: 2px solid var(--teal);
}
.btn-teal-outline:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg  { padding: 14px 32px; font-size: 1rem; }
.btn-xl  { padding: 18px 44px; font-size: 1.0625rem; }
.btn-full { width: 100%; }

/* --- Teal dots --- */
.teal-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--teal);
  border-radius: 50%;
  flex-shrink: 0;
}
.teal-dot.sm  { width: 7px;  height: 7px;  }
.teal-dot.lg  { width: 14px; height: 14px; }
.teal-dot.xl  { width: 22px; height: 22px; }

/* --- Badge --- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal-light);
  color: var(--teal-dark);
  font-size: .8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

/* ============================================================
   5. HEADER
============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--bg);
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(27,34,48,.10);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
}

.header-logo {
  display: inline-flex;
  align-items: center;
}
.header-logo img {
  height: 34px;
  width: auto;
  object-fit: contain;
}
/* Troca de logo por tema:
   claro → versão escura (.logo-light-theme)
   escuro → versão clara (.logo-dark-theme) */
.header-logo .logo-dark-theme { display: none; }
html.dark .header-logo .logo-light-theme { display: none; }
html.dark .header-logo .logo-dark-theme { display: inline-block; }

.header-nav {
  flex: 1;
}
.header-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}
.header-nav a {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--navy);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.header-nav a:hover {
  color: var(--teal);
  background: var(--teal-light);
}
.header-nav a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.header-cta { margin-left: 0; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--radius-sm);
  margin-left: auto;
  transition: background var(--transition);
}
.hamburger:hover { background: var(--teal-light); }
.hamburger:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger open state */
.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 menu */
.mobile-menu {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform: translateY(-110%);
  opacity: 0;
  pointer-events: none;
  transition: transform .3s cubic-bezier(.22,.61,.36,1),
              opacity .3s ease;
  z-index: 99;
}
.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu nav a {
  display: block;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--navy);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.mobile-menu nav a:hover {
  background: var(--teal-light);
  color: var(--teal);
}
.mobile-menu nav a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* ============================================================
   6. HERO
============================================================ */
.hero {
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 80px;
  background: var(--bg);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
/* Impede que os itens do grid estiquem a linha além da viewport */
.hero-inner > * { min-width: 0; }

/* Copy */
.hero-copy {
  min-width: 0; /* permite o item do grid encolher abaixo do conteúdo */
}
.hero-copy h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  margin-bottom: 20px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.hero-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.trust-seals {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.trust-seals li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--muted);
}

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Browser mockup */
.browser-mockup {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f0f0f0;
  border-bottom: 1px solid var(--border);
}
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.browser-dot.red    { background: #FF5F57; }
.browser-dot.yellow { background: #FEBC2E; }
.browser-dot.green  { background: #28C840; }

.browser-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: .72rem;
  color: var(--muted);
  margin-left: 8px;
}

.browser-content { padding: 0; }

.mock-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}
.mock-logo-bar {
  width: 60px;
  height: 10px;
  background: var(--navy);
  border-radius: 4px;
}
.mock-nav-links {
  display: flex;
  gap: 8px;
}
.mock-nav-links span {
  display: block;
  width: 28px;
  height: 8px;
  background: var(--border);
  border-radius: 4px;
}

.mock-hero-bar {
  height: 80px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
}

.mock-body {
  padding: 16px;
}
.mock-title-lines { margin-bottom: 12px; }
.mock-line {
  height: 9px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 7px;
}
.mock-line.w80 { width: 80%; }
.mock-line.w60 { width: 60%; }

.mock-cta-btn {
  width: 100px;
  height: 26px;
  background: var(--teal);
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.mock-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mock-card {
  height: 50px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Review floating card */
.review-card {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 14px 16px;
  width: 230px;
  border: 1px solid var(--border);
}
.review-card.floating {
  animation: float 4s ease-in-out infinite;
}

.review-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.review-avatar {
  width: 34px;
  height: 34px;
  background: var(--teal);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  font-weight: 700;
  flex-shrink: 0;
}
.review-name {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--navy);
}
.stars {
  color: #F59E0B;
  font-size: .8125rem;
  line-height: 1;
}
.google-icon { margin-left: auto; flex-shrink: 0; }
.review-text {
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ============================================================
   7. SERVIÇOS
============================================================ */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.service-card--dark {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.service-card--dark p,
.service-card--dark .service-features li {
  color: rgba(255,255,255,.75);
}

.service-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-icon-wrap.teal  { background: var(--teal-light); }
.service-icon-wrap.white { background: rgba(255,255,255,.12); }

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

.service-card p {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.7;
}

.service-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: var(--muted);
  font-weight: 500;
}

/* Nota informativa (ex.: aviso de subdomínio) */
.info-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: var(--teal-light);
  border: 1px solid var(--teal);
  border-radius: var(--radius-md);
}
.info-note svg { flex-shrink: 0; margin-top: 2px; }
.info-note p {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--navy);
  margin: 0;
}
.info-note strong {
  font-weight: 700;
  color: var(--teal-dark);
  word-break: break-word;
}

/* Benefits strip */
.benefits-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 24px;
  background: var(--white);
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy);
  transition: background var(--transition);
}
.benefit-item:hover { background: var(--teal-light); }

/* Suporte e manutenção mensal */
.support-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-top: 24px;
  padding: 28px 32px;
  background: var(--teal-light);
  border: 1px solid var(--teal);
  border-radius: var(--radius-xl);
}
.support-icon {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.support-content h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.support-content p {
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 14px;
}
.support-content p strong { color: var(--navy); font-weight: 600; }
.support-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.support-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy);
}

/* ============================================================
   8. COMO FUNCIONA
============================================================ */
.how-it-works {
  background: var(--bg);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

/* Connector line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 52px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 2px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-light) 100%);
  z-index: 0;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  position: relative;
  z-index: 1;
  transition: transform var(--transition), box-shadow var(--transition);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-number {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.step-number span:first-child {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}
.step-dot { flex-shrink: 0; }

.step-icon {
  width: 48px;
  height: 48px;
  background: var(--teal-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.step-card p {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   9. POR QUE A NEXTAG
============================================================ */
.why-nextag {
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.why-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}

.why-icon {
  width: 52px;
  height: 52px;
  background: var(--teal-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: background var(--transition);
}
.why-card:hover .why-icon { background: var(--teal); }
.why-card:hover .why-icon svg path,
.why-card:hover .why-icon svg rect,
.why-card:hover .why-icon svg circle {
  stroke: white;
}

.why-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-card p {
  font-size: .9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ============================================================
   11. DEPOIMENTOS
============================================================ */
.testimonials {
  background: var(--navy);
}

.testimonials .section-header h2,
.testimonials .section-label {
  color: var(--white);
}
.testimonials .section-sub { color: rgba(255,255,255,.65); }
.testimonials .teal-dot { background: var(--teal); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--navy-soft);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.25);
}

.stars-row {
  color: #F59E0B;
  font-size: 1.125rem;
  letter-spacing: 2px;
}

.testimonial-card > p {
  font-size: .9375rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  flex: 1;
}

.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.testimonial-avatar {
  width: 38px;
  height: 38px;
  background: var(--teal);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  font-weight: 700;
  flex-shrink: 0;
}

.testimonial-card footer strong {
  display: block;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--white);
}
.testimonial-card footer span {
  font-size: .8125rem;
  color: rgba(255,255,255,.55);
}

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

.faq-container {
  max-width: 760px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: var(--teal);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  text-align: left;
  transition: color var(--transition), background var(--transition);
}
.faq-question:hover {
  color: var(--teal);
  background: var(--teal-light);
}
.faq-question:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: -3px;
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform .3s ease;
}
.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}
.faq-question[aria-expanded="true"] {
  color: var(--teal);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.22,.61,.36,1),
              padding .3s ease;
}
.faq-answer.open {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: .9375rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ============================================================
   13. CONTATO
============================================================ */
.contact {
  background: var(--white);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
}

.form-group input,
.form-group textarea {
  font-family: var(--font);
  font-size: .9375rem;
  color: var(--navy);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  width: 100%;
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9AA3B0;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(18,162,140,.12);
}

/* Contact cards */
.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 56px; /* alinha com o formulário abaixo do header da seção */
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.contact-card:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}
.contact-card:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.contact-card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-card-icon.teal      { background: var(--teal); }
.contact-card-icon.navy      { background: var(--navy); }
.contact-card-icon.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.contact-card > div strong {
  display: block;
  font-size: .9375rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.contact-card > div span {
  font-size: .875rem;
  color: var(--muted);
}

.arrow-icon {
  margin-left: auto;
  color: var(--muted);
  transition: color var(--transition), transform var(--transition);
}
.contact-card:hover .arrow-icon {
  color: var(--teal);
  transform: translateX(3px);
}

/* ============================================================
   14. CTA FINAL
============================================================ */
.cta-final {
  background: var(--navy);
  padding-block: 100px;
  position: relative;
  overflow: hidden;
}

.cta-inner {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-decoration {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}
.cta-decoration .teal-dot.xl {
  position: absolute;
  top: -10px;
  left: 5%;
  opacity: .15;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--teal);
}
.cta-decoration .teal-dot.lg {
  position: absolute;
  bottom: -20px;
  right: 8%;
  opacity: .1;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--teal);
}
.cta-decoration .teal-dot.sm {
  position: absolute;
  top: 40%;
  right: 20%;
  opacity: .2;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--teal);
}

.cta-inner h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  max-width: 640px;
  margin-inline: auto;
}

.cta-inner p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 36px;
  max-width: 500px;
  margin-inline: auto;
}

/* ============================================================
   15. FOOTER
============================================================ */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 40px;
}

/* Logo do rodapé — SVG com currentColor.
   O footer é escuro, então o logo herda cor clara. */
.footer-logo-wrap {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  color: #FFFFFF;
}
.footer-logo-wrap img {
  height: 32px;
  width: auto;
}

.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.75);
  transition: background var(--transition), color var(--transition);
}
.footer-socials a:hover {
  background: var(--teal);
  color: var(--white);
}
.footer-socials a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

.footer-nav h3,
.footer-contact h3 {
  font-size: .875rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 16px;
}

.footer-nav ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--teal); }
.footer-nav a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

.footer-contact ul li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: rgba(255,255,255,.65);
}
.footer-contact a {
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-contact a:hover { color: var(--teal); }
.footer-contact a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}
.footer-contact svg { flex-shrink: 0; color: var(--teal); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 20px;
}
.footer-bottom p {
  font-size: .875rem;
  color: rgba(255,255,255,.45);
  text-align: center;
}

/* ============================================================
   16. WHATSAPP FAB
============================================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,.6);
}
.whatsapp-fab:focus-visible {
  outline: 3px solid #25D366;
  outline-offset: 4px;
}

.fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  animation: pulse 2.2s ease-out infinite;
  z-index: -1;
}

/* ============================================================
   17. RESPONSIVIDADE
============================================================ */

/* ---- Tablet (≤ 1024px) ---- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-btns, .trust-seals {
    justify-content: center;
  }
  .hero-sub { max-width: 100%; }
  .hero-visual {
    flex-direction: column;
    max-width: 480px;
    margin-inline: auto;
  }
  /* Tira o card de avaliação do posicionamento absoluto para não
     vazar a lateral da tela; entra no fluxo abaixo do mockup. */
  .review-card {
    position: static;
    right: auto;
    bottom: auto;
    margin: 16px auto 0;
    width: 100%;
    max-width: 300px;
  }

  .services-grid { grid-template-columns: 1fr; }
  .benefits-strip { grid-template-columns: repeat(2, 1fr); }
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps-grid::before { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-cards { padding-top: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---- Mobile (≤ 768px) ---- */
@media (max-width: 768px) {
  :root { --header-h: 64px; }

  .section { padding-block: 64px; }
  .section-header { margin-bottom: 40px; }

  /* Header */
  .header-nav,
  .header-cta { display: none; }
  .hamburger { display: flex; }

  /* Hero */
  .hero { padding-top: calc(var(--header-h) + 48px); padding-bottom: 56px; }
  .hero-copy h1 { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 320px; }
  /* Empilha mockup e card de avaliação (evita ficarem lado a lado e estourar a largura) */
  .hero-visual { flex-direction: column; width: 100%; }
  .review-card { position: static; margin: 16px auto 0; width: 100%; max-width: 320px; }
  .browser-mockup { max-width: 100%; }

  /* Services */
  .benefits-strip { grid-template-columns: 1fr 1fr; }
  .service-card { padding: 28px 22px; }
  .support-card { flex-direction: column; gap: 16px; padding: 24px; }

  /* Steps */
  .steps-grid { grid-template-columns: 1fr; }

  /* Why */
  .why-grid { grid-template-columns: 1fr; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; max-width: 100%; }

  /* Contact */
  .contact-inner { grid-template-columns: 1fr; }

  /* CTA */
  .cta-final { padding-block: 72px; }

  /* Footer */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 40px;
  }
  .footer-brand { grid-column: auto; }
}

/* ---- Small mobile (≤ 480px) ---- */
@media (max-width: 480px) {
  .benefits-strip { grid-template-columns: 1fr; }
  .hero-btns .btn { max-width: 100%; }
  .whatsapp-fab { bottom: 20px; right: 20px; width: 54px; height: 54px; }

  /* Botões grandes: reduzem o padding lateral e não estouram em telas estreitas */
  .btn-lg, .btn-xl {
    max-width: 100%;
    padding-inline: 24px;
    white-space: normal;
    text-align: center;
  }
}

/* ============================================================
   18. ACESSIBILIDADE E PREFERÊNCIAS
============================================================ */

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  .fab-pulse { display: none; }
  .review-card.floating { animation: none; }
}

/* Skip to content (screen readers / keyboard users) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  background: var(--teal);
  color: white;
  padding: 10px 18px;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  font-size: .9375rem;
  z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* High-contrast focus rings on all interactive elements */
*:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* ============================================================
   19. DARK MODE
   Ativado via classe .dark no <html>.
   Detecta automaticamente prefers-color-scheme na inicialização
   e persiste a escolha do usuário via localStorage.
   Paleta harmonizada com a identidade NexTag: fundo profundo
   em tons de #0F1520 / #161E2E, destaques em teal preservados,
   bordas sutis e superfícies em camadas para hierarquia visual.
============================================================ */

/* ── Variáveis Dark ── */
html.dark {
  --navy:       #E2E8F0;          /* textos principais: claro sobre fundo escuro */
  --navy-soft:  #CBD5E1;          /* textos secundários mais claros */
  --bg:         #0F1520;          /* fundo principal: azul-escuro profundo */
  --white:      #161E2E;          /* "branco" no dark = superfície elevada */
  --muted:      #94A3B8;          /* textos de apoio */
  --border:     #1E2D45;          /* bordas sutis */

  /* Teal mantido igual — é a identidade da marca */
  --teal:       #12A28C;
  --teal-dark:  #0E8574;
  --teal-light: #0E2D27;          /* versão escura do fundo teal */

  color-scheme: dark;
}

/* ── Transição suave ao trocar tema ── */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition:
    background-color 280ms ease,
    border-color     280ms ease,
    color            280ms ease,
    box-shadow       280ms ease !important;
}

/* ── Botão de toggle ── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  color: var(--navy);
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
}
.theme-toggle:hover {
  background: var(--teal-light);
  color: var(--teal);
}
.theme-toggle:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}

/* Mostra lua no modo claro, sol no modo escuro */
.icon-sun  { display: none; }
.icon-moon { display: block; }

html.dark .icon-sun  { display: block; }
html.dark .icon-moon { display: none; }

/* ── Corpo e fundo global ── */
html.dark body {
  background: var(--bg);
  color: var(--navy);
}

/* ── Header ── */
html.dark .site-header {
  background: #0F1520;
  border-bottom: 1px solid var(--border);
}
html.dark .site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.4);
}
html.dark .header-nav a         { color: var(--navy-soft); }
html.dark .header-nav a:hover   { color: var(--teal); background: var(--teal-light); }
html.dark .hamburger span        { background: var(--navy-soft); }
html.dark .hamburger:hover       { background: var(--teal-light); }

/* ── Menu mobile ── */
html.dark .mobile-menu {
  background: #161E2E;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
html.dark .mobile-menu nav a       { color: var(--navy-soft); }
html.dark .mobile-menu nav a:hover { background: var(--teal-light); color: var(--teal); }

/* ── Hero ── */
html.dark .hero { background: var(--bg); }
html.dark .hero-copy h1 { color: var(--navy); }
html.dark .badge {
  background: var(--teal-light);
  color: var(--teal);
}

/* Browser mockup no hero */
html.dark .browser-mockup {
  background: #1A2435;
  border-color: var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
}
html.dark .browser-bar      { background: #0F1520; border-color: var(--border); }
html.dark .browser-url      { background: #1A2435; }
html.dark .mock-nav         { border-color: var(--border); }
html.dark .mock-logo-bar    { background: #E2E8F0; }
html.dark .mock-nav-links span { background: var(--border); }
html.dark .mock-body {}
html.dark .mock-line        { background: var(--border); }
html.dark .mock-card        { background: #1A2435; border-color: var(--border); }

/* Review card flutuante */
html.dark .review-card {
  background: #1A2435;
  border-color: var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
}
html.dark .review-name  { color: #E2E8F0; }
html.dark .review-text  { color: var(--muted); }

/* ── Seções com fundo branco → superfície dark ── */
html.dark .services,
html.dark .why-nextag,
html.dark .contact {
  background: #161E2E;
}

/* ── Seções com fundo --bg → fundo principal dark ── */
html.dark .hero,
html.dark .how-it-works,
html.dark .faq {
  background: var(--bg);
}

/* ── Section headers no dark ── */
html.dark .section-header h2 { color: #E2E8F0; }
html.dark .section-sub       { color: var(--muted); }

/* ── Cards de serviços ── */
html.dark .service-card {
  background: #1A2435;
  border-color: var(--border);
}
html.dark .service-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  border-color: var(--teal);
}
html.dark .service-card h3 { color: #E2E8F0; }
html.dark .service-card p  { color: var(--muted); }
html.dark .service-features li { color: var(--muted); }

/* Nota informativa no dark */
html.dark .info-note {
  background: #0C3D34;
  border-color: #0E5C4A;
}
html.dark .info-note p { color: #CBD5E1; }
html.dark .info-note strong { color: #2DD4BF; }

/* Card escuro (avaliações) já é dark by design — ajuste fino */
html.dark .service-card--dark {
  background: #0C3D34;       /* teal muito escuro, com identidade */
  border-color: #0E5C4A;
}
html.dark .service-card--dark h3 { color: #E2E8F0; }

/* Benefits strip */
html.dark .benefits-strip {
  background: var(--border);
  border-color: var(--border);
}
html.dark .benefit-item {
  background: #161E2E;
  color: #CBD5E1;
}
html.dark .benefit-item:hover { background: var(--teal-light); color: var(--teal); }

/* Card de suporte/manutenção no dark */
html.dark .support-card {
  background: #0C3D34;
  border-color: #0E5C4A;
}
html.dark .support-icon { background: #0F1520; }
html.dark .support-content h3 { color: #E2E8F0; }
html.dark .support-content p  { color: var(--muted); }
html.dark .support-content p strong { color: #E2E8F0; }
html.dark .support-features li { color: #CBD5E1; }

/* ── Steps (Como funciona) ── */
html.dark .step-card {
  background: #1A2435;
  border-color: var(--border);
}
html.dark .step-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  border-color: var(--teal);
}
html.dark .step-card h3 { color: #E2E8F0; }
html.dark .step-card p  { color: var(--muted); }
html.dark .step-icon     { background: var(--teal-light); }

/* ── Why cards ── */
html.dark .why-card {
  background: #1A2435;
  border-color: var(--border);
}
html.dark .why-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
  border-color: var(--teal);
}
html.dark .why-card h3 { color: #E2E8F0; }
html.dark .why-card p  { color: var(--muted); }
html.dark .why-icon    { background: var(--teal-light); }

/* Ícones SVG dentro dos why-cards no dark — preservar teal */
html.dark .why-card:hover .why-icon { background: var(--teal); }
html.dark .why-card:hover .why-icon svg path,
html.dark .why-card:hover .why-icon svg rect,
html.dark .why-card:hover .why-icon svg circle { stroke: white; }

/* ── Depoimentos — já são dark by design, ajuste sutil ── */
html.dark .testimonials            { background: #0A1018; }
html.dark .testimonial-card        { background: #161E2E; border-color: #1E2D45; }
html.dark .testimonial-card:hover  { box-shadow: 0 12px 36px rgba(0,0,0,.5); }

/* ── FAQ ── */
html.dark .faq-item {
  background: #1A2435;
  border-color: var(--border);
}
html.dark .faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: var(--teal);
}
html.dark .faq-question {
  color: #E2E8F0;
}
html.dark .faq-question:hover {
  background: var(--teal-light);
  color: var(--teal);
}
html.dark .faq-question[aria-expanded="true"] { color: var(--teal); }
html.dark .faq-answer p { color: var(--muted); }

/* ── Formulário de contato ── */
html.dark .form-group label { color: #CBD5E1; }
html.dark .form-group input,
html.dark .form-group textarea {
  background: #1A2435;
  border-color: var(--border);
  color: #E2E8F0;
}
html.dark .form-group input::placeholder,
html.dark .form-group textarea::placeholder { color: #4A5568; }
html.dark .form-group input:focus,
html.dark .form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(18,162,140,.2);
}

/* Cards de contato */
html.dark .contact-card {
  background: #1A2435;
  border-color: var(--border);
}
html.dark .contact-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.4);
  border-color: var(--teal);
}
html.dark .contact-card > div strong { color: #E2E8F0; }
html.dark .contact-card > div span   { color: var(--muted); }

/* ── CTA final — já é dark, ajuste de sombra decorativa ── */
html.dark .cta-final { background: #0A1018; }
/* No dark, --white vira superfície escura; força o título claro para
   não ficar texto escuro sobre fundo escuro (invisível). */
html.dark .cta-inner h2 { color: #E2E8F0; }
html.dark .cta-inner p  { color: rgba(255,255,255,.7); }

/* ── Footer ── */
html.dark .site-footer          { background: #0A1018; }
html.dark .footer-bottom        { border-color: #1A2435; }

/* Header/footer logo: a troca por tema é feita alternando as imagens
   (.logo-light-theme / .logo-dark-theme). Sem dependência de currentColor,
   que não funciona em SVG carregado via <img>. */

/* ── Sombras globais mais profundas no dark ── */
html.dark {
  --shadow-sm: 0 1px 4px rgba(0,0,0,.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.5);
}

/* ── Scrollbar personalizada (Chromium) ── */
html.dark ::-webkit-scrollbar              { width: 8px; }
html.dark ::-webkit-scrollbar-track       { background: #0F1520; }
html.dark ::-webkit-scrollbar-thumb       { background: #1E2D45; border-radius: 4px; }
html.dark ::-webkit-scrollbar-thumb:hover { background: var(--teal-dark); }

/* ── Toggle no mobile (dentro do menu) ── */
@media (max-width: 768px) {
  .theme-toggle {
    /* visível tanto no header mobile quanto no desktop */
    display: flex;
  }
}

/* ── Toggle mobile (versão expandida dentro do menu) ── */
.theme-toggle--mobile {
  width: 100%;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--navy);
  border: 1px solid var(--border);
}
.theme-toggle--mobile:hover {
  background: var(--teal-light);
  color: var(--teal);
  border-color: var(--teal);
}
.theme-toggle-label {
  font-size: 1rem;
  font-weight: 500;
}
html.dark .theme-toggle--mobile {
  color: #CBD5E1;
  border-color: var(--border);
}
html.dark .theme-toggle--mobile:hover {
  background: var(--teal-light);
  color: var(--teal);
}
/* Atualiza o label no dark */
html.dark .theme-toggle-label::after {
  content: ' (ativo)';
  font-size: .8rem;
  opacity: .7;
}
