/* =========================================================
   AICLAX DIGITAL STUDIO — Design System v2.0
   Aplicado com skill: frontend-design
   Princípios: UX Psychology · 8-pt Grid · 60/30/10 Colors
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ─── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  /* Brand Colors — 60/30/10 rule */
  --primary:        #5e088a;
  --primary-light:  #7b0ab0;
  --primary-dark:   #3d0560;
  --accent:         #FF8C00;
  --accent-hover:   #e07000;
  --accent-light:   rgba(255, 140, 0, 0.12);

  /* Neutrals */
  --white:          #FFFFFF;
  --bg-surface:     #f8f5fb;
  --bg-muted:       #f0eaf7;
  --border:         #e8dff2;
  --border-strong:  rgba(94, 8, 138, 0.2);

  /* Text */
  --text-heading:   #1a0a2e;
  --text-body:      #3d3450;
  --text-muted:     #6b5f7a;
  --text-light:     #a59bb5;
  --text-on-dark:   #f0e8ff;

  /* Dark sections */
  --dark-bg:        #180030;
  --dark-surface:   rgba(255,255,255,0.06);
  --dark-border:    rgba(255,255,255,0.12);

  /* Typography */
  --font-display:   'Outfit', sans-serif;
  --font-body:      'Inter', sans-serif;

  /* Type Scale — ratio 1.25 */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.563rem;
  --text-3xl:  1.953rem;
  --text-4xl:  2.441rem;
  --text-5xl:  3.052rem;
  --text-6xl:  3.815rem;

  /* 8-pt Grid Spacing */
  --sp-1:  0.25rem;   /*  4px */
  --sp-2:  0.5rem;    /*  8px */
  --sp-3:  0.75rem;   /* 12px */
  --sp-4:  1rem;      /* 16px */
  --sp-5:  1.5rem;    /* 24px */
  --sp-6:  2rem;      /* 32px */
  --sp-8:  3rem;      /* 48px */
  --sp-10: 4rem;      /* 64px */
  --sp-12: 5rem;      /* 80px */
  --sp-16: 7rem;      /* 112px */

  /* Backwards compat */
  --spacing-xs: var(--sp-2);
  --spacing-sm: var(--sp-4);
  --spacing-md: var(--sp-6);
  --spacing-lg: var(--sp-10);
  --spacing-xl: var(--sp-12);

  /* Layout */
  --max-width:    1200px;
  --content-wide: 900px;
  --content-mid:  720px;

  /* Radii */
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-sm:  0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md:  0 10px 25px rgba(94,8,138,0.12), 0 4px 10px rgba(0,0,0,0.06);
  --shadow-lg:  0 20px 50px rgba(94,8,138,0.18), 0 8px 20px rgba(0,0,0,0.08);
  --shadow-xl:  0 35px 80px rgba(94,8,138,0.22);
  --shadow-glow-accent: 0 0 20px rgba(255,140,0,0.35), 0 0 60px rgba(255,140,0,0.15);

  /* Transitions */
  --ease-out:   cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring:cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast:   150ms;
  --dur-base:   280ms;
  --dur-slow:   450ms;
  --transition: all var(--dur-base) var(--ease-out);
}

/* ─── RESET & BASE ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-surface);
  color: var(--text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul { list-style: none; }

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

button { font-family: inherit; }

/* ─── TYPOGRAPHY ────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-heading);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, var(--text-5xl)); }
h2 { font-size: clamp(1.75rem, 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(1.25rem, 2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }

p { line-height: 1.7; margin-bottom: var(--sp-3); }
p:last-child { margin-bottom: 0; }

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

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

@media (max-width: 640px) {
  .container { padding: 0 var(--sp-4); }
}

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }

/* ─── BUTTONS ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.875rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out);
  white-space: nowrap;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.97); }

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(94,8,138,0.3);
}
.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: 0 8px 28px rgba(94,8,138,0.4);
  color: var(--white);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(255,140,0,0.35);
}
.btn-accent:hover {
  box-shadow: var(--shadow-glow-accent);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg-muted);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

/* ─── HEADER & NAV ──────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.875rem 0;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: padding var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}

.header.scrolled {
  padding: 0.5rem 0;
  box-shadow: 0 4px 32px rgba(94,8,138,0.1);
  border-bottom-color: var(--border);
  background: rgba(255,255,255,0.97);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--primary);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: var(--sp-1);
  align-items: center;
  flex: 1;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

/* Navigation links */
.nav-links a, .dropdown > span {
  font-family: var(--font-display);
  color: var(--text-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.005em;
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
  cursor: pointer;
  position: relative;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
  white-space: nowrap;
}

.nav-links a:hover, .dropdown:hover > span {
  color: var(--primary);
  background: var(--bg-muted);
}

.nav-links a::after, .dropdown > span::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-base) var(--ease-out);
}

.nav-links a:hover::after,
.nav-links a.active::after,
.dropdown:hover > span::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--primary);
}

/* CTA Nav Button */
.nav-cta {
  margin-left: var(--sp-4) !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover)) !important;
  color: var(--white) !important;
  font-weight: 700 !important;
  padding: 0.55rem 1.25rem !important;
  border-radius: var(--radius-full) !important;
  box-shadow: 0 3px 14px rgba(255,140,0,0.3) !important;
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-out) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-glow-accent) !important;
  color: var(--white) !important;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover)) !important;
}

/* Dropdown */
.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(8px) scale(0.95);
  background: var(--white);
  min-width: 230px;
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  flex-direction: column;
  padding: 0.5rem;
  z-index: 1000;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out),
              transform var(--dur-base) var(--ease-out);
  pointer-events: none;
}

.dropdown-content.show {
  display: flex !important;
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  pointer-events: auto;
}

@media (min-width: 769px) {
  .dropdown:hover .dropdown-content {
    display: flex !important;
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    pointer-events: auto;
  }
}

.dropdown-content a {
  padding: 9px 14px;
  color: var(--text-body) !important;
  width: 100%;
  display: block;
  font-weight: 500;
  font-size: 0.85rem;
  line-height: 1.3;
  border-radius: var(--radius-sm);
  transition: background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              padding-left var(--dur-fast) var(--ease-out);
}

.dropdown-content a::after { display: none !important; }

.dropdown-content a:hover {
  background: var(--bg-muted);
  padding-left: 18px;
  color: var(--primary) !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 2001;
  padding: 0;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary);
  position: absolute;
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-base) var(--ease-out),
              top var(--dur-base) var(--ease-out);
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 11px; }
.mobile-menu-btn span:nth-child(3) { top: 22px; }

.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg); top: 11px; }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg); top: 11px; }

/* ─── MOBILE NAV OVERLAY ─────────────────────────────────── */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 8999;
  opacity: 0;
  /* visibility+pointer-events em vez de display:none — no iOS Safari,
     display:none→block em position:fixed cria ghost hit-test layer */
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out),
              visibility var(--dur-base) var(--ease-out);
}
.nav-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ─── ANDROID FIX: header sem backdrop-filter no mobile ─────────── */
/* backdrop-filter cria stacking context que prende o nav-links drawer */
@media (max-width: 1024px) {
  .header {
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .header.scrolled {
    background: rgba(255,255,255,0.99) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ─── HERO SECTION ──────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
  /* Cor sólida — sem vídeo de background */
  background: linear-gradient(160deg, #0e0020 0%, #1e003a 40%, #2d0550 70%, #3d0560 100%);
}

.hero-video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-video-wrapper iframe {
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.77vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero-overlay {
  display: none; /* removido: sem vídeo de background */
}

.hero-content {
  text-align: center;
  max-width: 860px;
  padding: 0 var(--sp-5);
  z-index: 2;
  position: relative;
}

.hero-content h1 {
  color: var(--white);
}

.hero-content p {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.88);
}

.hero-cta {
  display: flex;
  gap: var(--sp-4);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--sp-5);
}

/* ─── SECTIONS ──────────────────────────────────────────── */
.section {
  padding: var(--sp-16) 0;
}

@media (max-width: 768px) {
  .section { padding: var(--sp-10) 0; }
}

.section-dark {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: var(--white);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--sp-10);
  max-width: var(--content-mid);
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: var(--sp-4);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.6;
}

.section-dark .section-header p {
  color: rgba(255,255,255,0.75);
}

/* Section Eyebrow Label */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(255,140,0,0.25);
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--sp-4);
}

.badge {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: rgba(94,8,138,0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--border-strong);
  margin-bottom: var(--sp-3);
}

/* ─── CARDS ─────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: var(--sp-3);
  display: inline-block;
  line-height: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: var(--sp-2);
}

.card-text {
  color: var(--text-muted);
  flex-grow: 1;
  line-height: 1.65;
  font-size: var(--text-sm);
}

/* Dark section cards */
.section-dark .card {
  background: var(--dark-surface);
  border-color: var(--dark-border);
}

.section-dark .card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
}

.section-dark .card-title {
  color: var(--white);
}

.section-dark .card-text {
  color: rgba(255,255,255,0.78);
}

/* Soluções grid cards */
.solucoes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}

@media (max-width: 900px) {
  .solucoes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .solucoes-grid { grid-template-columns: 1fr; }
}

.sol-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6) var(--sp-5) var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.sol-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-base) var(--ease-out);
}

.sol-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

.sol-card:hover::before { transform: scaleX(1); }

.sol-card-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(94,8,138,0.08);
  border: 1px solid rgba(94,8,138,0.2);
  border-radius: var(--radius-full);
  padding: 0.2rem 0.75rem;
  width: fit-content;
}

.sol-card-icon {
  font-size: 2.4rem;
  line-height: 1;
}

.sol-card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  line-height: 1.2;
}

.sol-card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.sol-card-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
  padding-top: var(--sp-2);
}

.sol-card-btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 2px solid var(--accent);
  transition: background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-out);
}

.sol-card-btn-orange:hover {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,140,0,0.35);
}

/* ─── TESTIMONIAL / SOCIAL PROOF CARDS ──────────────────── */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
  transition: transform var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Stars */
@keyframes starGlow {
  0%, 100% { text-shadow: 0 0 8px #FFD700, 0 0 20px rgba(255,215,0,0.4); }
  50%       { text-shadow: 0 0 16px #FFD700, 0 0 40px rgba(255,215,0,0.7); }
}

.stars-gold {
  font-size: 1.3rem;
  color: #FFD700;
  margin-bottom: var(--sp-4);
  letter-spacing: 0.05em;
  animation: starGlow 2.5s ease-in-out infinite;
}

/* Author chip */
.author-chip {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-top: auto;
  padding-top: var(--sp-5);
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px var(--border-strong);
  flex-shrink: 0;
}

.author-info-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: var(--text-sm);
  line-height: 1.2;
}

.author-info-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── FAQ ACCORDION ──────────────────────────────────────── */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-3);
  overflow: hidden;
  transition: box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}

.faq-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-heading);
  padding: var(--sp-5) var(--sp-5);
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
  gap: var(--sp-4);
}

.faq-question:hover { color: var(--primary); background: var(--bg-muted); }

.faq-item.active .faq-question {
  color: var(--primary);
  background: rgba(94,8,138,0.04);
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-muted);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform var(--dur-base) var(--ease-spring),
              background var(--dur-base) var(--ease-out);
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out);
  color: var(--text-muted);
}

.faq-answer p {
  padding: 0 var(--sp-5) var(--sp-5);
  line-height: 1.7;
  font-size: 0.95rem;
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: var(--sp-12) 0 var(--sp-6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  border-bottom: 1px solid var(--dark-border);
  padding-bottom: var(--sp-8);
  margin-bottom: var(--sp-6);
}

.footer h4 {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: var(--text-sm);
  line-height: 1.4;
  transition: color var(--dur-fast) var(--ease-out),
              padding-left var(--dur-fast) var(--ease-out);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

/* Botão Área do Cliente no footer — herda nav-cta mas adapta ao fundo escuro */
.footer-links .btn.nav-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover)) !important;
  color: var(--white) !important;
  border: none !important;
  box-shadow: 0 3px 14px rgba(255,140,0,0.35) !important;
  margin-left: 0 !important;
  font-size: 0.82rem !important;
  padding: 0.5rem 1.1rem !important;
  white-space: nowrap;
}
.footer-links .btn.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(255,140,0,0.5) !important;
  padding-left: 1.1rem !important; /* override do hover genérico de footer-links */
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.55);
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
}
.footer-bottom a:hover { color: var(--white); }

/* Footer CTA neon button */
@keyframes footerNeonPulse {
  0%, 100% { box-shadow: 0 0 10px var(--accent), 0 0 24px rgba(255,140,0,0.35); }
  50%       { box-shadow: 0 0 22px var(--accent), 0 0 50px rgba(255,140,0,0.65), 0 0 80px rgba(255,140,0,0.2); }
}

.footer-consult-btn {
  display: inline-block;
  margin-top: var(--sp-5);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--white) !important;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-full);
  text-decoration: none !important;
  animation: footerNeonPulse 2.4s ease-in-out infinite;
  transition: transform var(--dur-fast) var(--ease-spring), filter var(--dur-base) var(--ease-out);
}

.footer-consult-btn:hover {
  transform: scale(1.05);
  filter: brightness(1.1);
}

/* ─── CONTACT FORM ──────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-10);
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.form-group { margin-bottom: var(--sp-4); }

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: var(--sp-2);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-body);
  background: var(--white);
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  line-height: 1.5;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(94,8,138,0.1);
  background: var(--white);
}

.form-control::placeholder {
  color: var(--text-light);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

/* ─── FLOATING WHATSAPP ──────────────────────────────────── */
@keyframes wppPulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 32px;
  right: 32px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  box-shadow: 0 6px 24px rgba(37,211,102,0.4);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  /* animation controlada pelo spells.css */
  transition: transform var(--dur-fast) var(--ease-spring),
              background var(--dur-base) var(--ease-out);
}

.whatsapp-float:hover {
  background: #128C7E;
  transform: scale(1.12);
  color: var(--white);
  animation: none;
  box-shadow: 0 10px 30px rgba(37,211,102,0.5);
}

.whatsapp-float svg { width: 32px; height: 32px; }

/* ─── COOKIE BANNER ──────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(26, 10, 46, 0.97);
  backdrop-filter: blur(12px);
  color: var(--white);
  padding: 1.125rem 2rem;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  z-index: 10001;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
  border-top: 1px solid var(--dark-border);
}

.cookie-banner.show { transform: translateY(0); }

.cookie-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.85);
}

.cookie-text a {
  color: var(--accent);
  text-decoration: underline;
}

.cookie-btn {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--white);
  border: none;
  padding: 0.6rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring),
              filter var(--dur-base) var(--ease-out);
  white-space: nowrap;
}

.cookie-btn:hover { transform: scale(1.04); filter: brightness(1.1); }

/* ─── SCROLL REVEAL ANIMATIONS ──────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

[data-reveal="left"]  { transform: translateX(-32px); }
[data-reveal="right"] { transform: translateX(32px); }
[data-reveal="scale"] { transform: scale(0.95) translateY(16px); }
[data-reveal="fade"]  { transform: none; }

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
}

[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }

/* ─── RESPONSIVE: TABLET ─────────────────────────────────── */
@media (max-width: 992px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ─── RESPONSIVE: MOBILE ─────────────────────────────────── */
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }

  .header { padding: 0.75rem 0; }

  /* Mobile Menu — estrutura base (detalhes no mobile.css) */
  .mobile-menu-btn { display: block; }



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

  /* Hero mobile */
  .hero-content h1 { font-size: 1.85rem; }
  .hero-cta { flex-direction: column; align-items: center; }

  /* WhatsApp */
  .whatsapp-float {
    width: 52px;
    height: 52px;
    bottom: 24px;
    right: 20px;
  }
  .whatsapp-float svg { width: 28px; height: 28px; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Cookie */
  .cookie-banner { flex-direction: column; text-align: center; padding: 1.25rem; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 1.6rem; }
}

/* ─── NAV CTA overrides for all sizes ────────────────────── */
@media (max-width: 768px) {
  .nav-cta {
    margin-left: 0 !important;
    display: inline-block !important;
  }
}

/* ─── UTILITY ─────────────────────────────────────────────── */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ─── CTA FINAL COMPONENTS ───────────────────────────────── */
.cta-final-orange {
  background: linear-gradient(135deg, #FF8C00 0%, #e07000 100%);
  padding: 6rem 0;
  text-align: center;
}
.cta-final-title {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #fff;
  line-height: 1.2;
}
.cta-final-text {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  opacity: 0.95;
  color: #fff;
  line-height: 1.6;
}
.cta-final-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-cta-white {
  background: #fff;
  color: #FF8C00 !important;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.btn-cta-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.btn-cta-outline {
  background: transparent;
  color: #fff !important;
  border: 2px solid #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.btn-cta-outline:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ── DESKTOP: nav-links visível independente de onde está no DOM ── */
@media (min-width: 1025px) {
  body > .nav-links {
    /* Se por algum motivo o JS mover o nav para o body no desktop,
       garante que os links continuam visíveis e posicionados */
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    height: auto !important;
    width: auto !important;
    background: transparent !important;
    transform: none !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    padding: 0.875rem var(--sp-8) !important;
    z-index: 1000 !important;
  }
  body > .nav-links a,
  body > .nav-links .dropdown > span {
    color: var(--text-body) !important;
  }
}
