/* ============================================================
   Kairos 3D — main.css
   Versão: 1.0
   ============================================================
   1.  Variáveis
   2.  Reset & Base
   3.  Utilitários
   4.  Navegação
   5.  Menu Mobile
   6.  Hero
   7.  Seções (estilos comuns)
   8.  Serviços
   9.  Segmentos
   10. CTAs
   11. Portfólio
   12. Processo
   13. Depoimentos
   14. FAQ
   15. Rodapé
   16. WhatsApp flutuante
   17. Animações
   18. Responsivo
   19. Acessibilidade & Print
   ============================================================ */

/* ── 1. Variáveis ─────────────────────────────────────────── */
:root {
  --black:        #1A1A1A;
  --white:        #FFFFFF;
  --orange:       #FF6B2B;
  --orange-light: #FF8F5C;
  --green:        #00D47E;
  --gray-100:     #F5F5F5;
  --gray-200:     #E8E8E8;
  --gray-300:     #CCCCCC;
  --gray-500:     #666666; /* melhorado: #888 falha WCAG AA em fundo branco */
  --gray-700:     #444444;
  --gray-900:     #2D2D2D;

  --font-display: 'Outfit', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --max-w:        1200px;
  --nav-h:        72px;

  --ease-spring:  cubic-bezier(.16, 1, .3, 1);
  --radius-sm:    8px;
  --radius-md:    12px;
  --radius-lg:    16px;
}

/* ── 2. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-body);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

img { max-width: 100%; display: block; height: auto; }
a   { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ── 3. Utilitários ───────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100%; left: 16px;
  background: var(--orange); color: #fff;
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  z-index: 9999; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

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

/* ── 4. Navegação ─────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s;
}
nav.scrolled { background: rgba(26, 26, 26, 0.99); }

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

.nav-logo {
  display: flex; align-items: center; gap: 12px;
  flex-shrink: 0;
}
.nav-logo img { flex-shrink: 0; width: 36px; height: auto; }
.nav-logo span {
  font-family: var(--font-display); font-weight: 400;
  font-size: 16px; color: #fff; letter-spacing: 3px;
}

.nav-links {
  display: flex; gap: 32px; align-items: center;
}
.nav-links a {
  font-size: 14px; color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s; font-weight: 400;
}
.nav-links a:hover,
.nav-links a.active { color: #fff; }

.nav-cta {
  background: var(--orange); color: #fff;
  padding: 10px 24px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 500; font-family: var(--font-display);
  transition: opacity 0.2s; border: none; cursor: pointer;
}
.nav-cta:hover { opacity: 0.85; color: #fff; }

/* ── 5. Menu Mobile ───────────────────────────────────────── */
.mobile-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 4px; flex-direction: column; gap: 5px;
}
.mobile-toggle span {
  display: block; width: 24px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 6. Hero ──────────────────────────────────────────────── */
.hero {
  min-height: 100vh; background: var(--black); color: #fff;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-video-wrap {
  position: absolute; inset: 0; z-index: 0; overflow: hidden;
}
.hero-video-wrap video { width: 100%; height: 100%; object-fit: cover; }

.hero-video-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to right,
    rgba(26, 26, 26, 0.92) 0%,
    rgba(26, 26, 26, 0.7) 50%,
    rgba(26, 26, 26, 0.4) 100%
  );
}
.hero-video-overlay::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 1) 0%, transparent 20%);
}

.hero-content {
  position: relative; z-index: 2;
  padding: 100px 0 80px; max-width: 620px;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 107, 43, 0.15);
  border: 1px solid rgba(255, 107, 43, 0.25);
  border-radius: 100px; padding: 8px 18px;
  font-size: 13px; color: var(--orange);
  margin-bottom: 28px; font-family: var(--font-display);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-badge span {
  width: 6px; height: 6px;
  background: var(--orange); border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 60px);
  font-weight: 700; line-height: 1.08;
  margin-bottom: 24px; letter-spacing: -1.5px;
}
.hero p {
  font-size: 18px; line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 40px; max-width: 480px;
}

.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-stats {
  display: flex; gap: 32px;
  margin-top: 56px; padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-stat-number {
  font-family: var(--font-display); font-size: 32px;
  font-weight: 700; color: #fff;
}
.hero-stat-label { font-size: 13px; color: rgba(255, 255, 255, 0.4); margin-top: 4px; }

.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255, 255, 255, 0.3); font-size: 12px;
  font-family: var(--font-display); letter-spacing: 2px;
  animation: float-down 2s ease-in-out infinite;
}
.hero-scroll-hint .scroll-line {
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255, 107, 43, 0.5), transparent);
}

/* ── 7. Seções (estilos comuns) ───────────────────────────── */
section { padding: 100px 0; }

.section-label {
  font-family: var(--font-display); font-size: 12px;
  letter-spacing: 3px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 12px; font-weight: 500;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700; line-height: 1.15;
  margin-bottom: 20px; letter-spacing: -0.5px;
}
.section-desc {
  font-size: 17px; line-height: 1.7;
  color: var(--gray-500); max-width: 600px; margin-bottom: 48px;
}

/* ── 8. Serviços ──────────────────────────────────────────── */
.services { background: var(--white); }

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

.service-card {
  background: var(--gray-100); border-radius: var(--radius-lg);
  padding: 32px 28px; transition: all 0.3s;
  border: 1px solid transparent;
  position: relative; overflow: hidden;
}
.service-card:hover {
  border-color: var(--orange); transform: translateY(-4px);
  background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.06);
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--green));
  opacity: 0; transition: opacity 0.3s;
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  background: var(--black); display: flex; align-items: center;
  justify-content: center; margin-bottom: 20px;
}
.service-icon svg { width: 22px; height: 22px; }

.service-card h3 {
  font-family: var(--font-display); font-size: 18px;
  font-weight: 600; margin-bottom: 10px;
}
.service-card p { font-size: 14px; line-height: 1.6; color: var(--gray-500); }

/* ── 9. Segmentos ─────────────────────────────────────────── */
.segments { background: var(--black); color: #fff; }

.segments-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}

.segment-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: all 0.3s; cursor: pointer; text-align: center;
  display: block; /* garante comportamento de link */
}
.segment-card:hover {
  background: rgba(255, 107, 43, 0.08);
  border-color: rgba(255, 107, 43, 0.2);
  transform: translateY(-4px);
}

.segment-icon {
  width: 44px; height: 44px;
  background: rgba(255, 107, 43, 0.1);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.segment-icon svg { width: 22px; height: 22px; color: var(--orange); }

.segment-card h3 {
  font-family: var(--font-display); font-size: 15px;
  font-weight: 600; margin-bottom: 8px;
}
.segment-card p { font-size: 13px; color: rgba(255, 255, 255, 0.4); line-height: 1.5; }

/* ── 10. CTAs ─────────────────────────────────────────────── */

/* Botões globais */
.btn-primary {
  background: var(--orange); color: #fff;
  padding: 16px 32px; border-radius: 10px;
  font-size: 16px; font-weight: 600; font-family: var(--font-display);
  transition: all 0.2s; border: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255, 107, 43, 0.35); color: #fff; }

.btn-secondary {
  background: rgba(255, 255, 255, 0.08); color: #fff;
  padding: 16px 32px; border-radius: 10px;
  font-size: 16px; font-weight: 500; font-family: var(--font-display);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.2s; cursor: pointer;
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-secondary:hover { border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.12); }

.btn-white {
  background: #fff; color: var(--orange);
  padding: 16px 36px; border-radius: 10px;
  font-size: 16px; font-weight: 600; font-family: var(--font-display);
  border: none; cursor: pointer; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); }

/* CTA intermediária */
.cta-mid {
  background: linear-gradient(135deg, var(--orange), #E85A1E);
  color: #fff; text-align: center; padding: 80px 0;
}
.cta-mid h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 36px); font-weight: 700; margin-bottom: 16px;
}
.cta-mid p {
  font-size: 17px; opacity: 0.85; margin-bottom: 32px;
  max-width: 500px; margin-left: auto; margin-right: auto;
}

/* CTA final */
.cta-final {
  background: var(--black); color: #fff;
  text-align: center; padding: 100px 0;
  position: relative; overflow: hidden;
}
.cta-final::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(255, 107, 43, 0.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  margin-bottom: 16px; position: relative;
}
.cta-final p {
  font-size: 17px; color: rgba(255, 255, 255, 0.5);
  margin-bottom: 40px; max-width: 500px;
  margin-left: auto; margin-right: auto; position: relative;
}
.cta-final-buttons {
  display: flex; gap: 16px; justify-content: center;
  flex-wrap: wrap; position: relative;
}

/* ── 11. Portfólio ────────────────────────────────────────── */
.portfolio { background: var(--gray-100); }

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

.portfolio-item {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
  background: var(--gray-200); cursor: pointer;
}
.portfolio-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease-spring);
}
.portfolio-item:hover img { transform: scale(1.04); }
.portfolio-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26, 26, 26, 0.8) 0%, transparent 50%);
  opacity: 0; transition: opacity 0.3s;
}
.portfolio-item:hover::after { opacity: 1; }

.portfolio-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px; color: var(--gray-300);
  background: linear-gradient(135deg, var(--gray-200), #ddd);
}

.portfolio-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px; z-index: 2;
  opacity: 0; transform: translateY(10px); transition: all 0.3s;
}
.portfolio-item:hover .portfolio-info { opacity: 1; transform: translateY(0); }
.portfolio-info h3 {
  font-family: var(--font-display); font-size: 15px;
  font-weight: 600; color: #fff; margin-bottom: 4px;
}
.portfolio-info p { font-size: 12px; color: rgba(255, 255, 255, 0.6); }

/* ── 12. Processo ─────────────────────────────────────────── */
.process { background: var(--white); }

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

.process-step { text-align: center; position: relative; }
.process-step::after {
  content: ''; position: absolute; top: 28px; left: 60%;
  width: 80%; height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  opacity: 0.2;
}
.process-step:last-child::after { display: none; }

.step-number {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--black); color: var(--orange);
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}

.process-step h3 {
  font-family: var(--font-display); font-size: 16px;
  font-weight: 600; margin-bottom: 8px;
}
.process-step p { font-size: 14px; color: var(--gray-500); line-height: 1.5; }

/* ── 13. Depoimentos ──────────────────────────────────────── */
.testimonials { background: var(--gray-100); }

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

.testimonial-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 32px 28px; border: 1px solid var(--gray-200);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  font-family: var(--font-display); font-size: 60px;
  color: var(--orange); opacity: 0.15;
  position: absolute; top: 16px; left: 24px; line-height: 1;
}

.testimonial-text {
  font-size: 15px; line-height: 1.7; color: var(--gray-700);
  margin-bottom: 20px; font-style: italic; position: relative; z-index: 1;
}

.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--black); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  color: var(--orange);
}
.testimonial-name { font-family: var(--font-display); font-size: 14px; font-weight: 600; }
.testimonial-role { font-size: 12px; color: var(--gray-500); }

/* ── 14. FAQ ──────────────────────────────────────────────── */
.faq { background: var(--white); }
.faq-grid { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--gray-200); }

.faq-question {
  padding: 24px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-display); font-size: 17px; font-weight: 500;
  transition: color 0.2s;
  background: none; border: none; width: 100%; text-align: left;
  color: var(--black);
}
.faq-question:hover,
.faq-question:focus-visible { color: var(--orange); outline: none; }

.faq-question::after {
  content: '+'; font-size: 24px; font-weight: 300;
  color: var(--orange); transition: transform 0.3s;
  flex-shrink: 0; margin-left: 16px;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-spring); }
.faq-answer p { padding: 0 0 24px; font-size: 15px; line-height: 1.7; color: var(--gray-500); }

/* ── 15. Rodapé ───────────────────────────────────────────── */
footer {
  background: var(--gray-900); color: rgba(255, 255, 255, 0.5);
  padding: 60px 0 30px;
}

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

.footer-brand img { width: 32px; height: auto; }
.footer-brand p {
  font-size: 14px; line-height: 1.7;
  margin-top: 16px; max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-display); font-size: 14px;
  font-weight: 600; color: #fff; margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px; display: flex;
  justify-content: space-between; font-size: 13px;
}

/* ── 16. WhatsApp flutuante ───────────────────────────────── */
.whatsapp-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.3s; cursor: pointer;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5); }
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

/* ── 17. Animações ────────────────────────────────────────── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@keyframes float-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── 18. Responsivo ───────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-content { max-width: 100%; text-align: center; }
  .hero p,
  .hero-content p    { margin-left: auto; margin-right: auto; }
  .hero-buttons,
  .hero-content .hero-buttons { justify-content: center; }
  .hero-stats,
  .hero-content .hero-stats   { justify-content: center; }
  .hero-video-overlay          { background: rgba(26, 26, 26, 0.85); }

  .services-grid     { grid-template-columns: 1fr 1fr; }
  .segments-grid     { grid-template-columns: repeat(2, 1fr); }
  .process-steps     { grid-template-columns: 1fr 1fr; }
  .process-step::after { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .portfolio-grid    { grid-template-columns: 1fr 1fr; }
  .footer-grid       { grid-template-columns: 1fr 1fr; }

  /* Mobile nav */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(26, 26, 26, 0.98);
    padding: 24px; gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }
  .nav-links.open { display: flex; }
  .nav-links a     { font-size: 16px; color: rgba(255, 255, 255, 0.75); }
  .nav-cta         { width: 100%; text-align: center; padding: 12px 24px; }

  .mobile-toggle { display: flex; }
}

@media (max-width: 600px) {
  .services-grid,
  .segments-grid,
  .process-steps,
  .portfolio-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; }

  .hero           { min-height: auto; padding: 120px 0 80px; }
  .hero-scroll-hint { display: none; }

  section { padding: 70px 0; }

  .cta-final-buttons,
  .hero-buttons   { flex-direction: column; align-items: center; }
  .btn-primary,
  .btn-secondary  { width: 100%; justify-content: center; }
}

/* ── 19. Acessibilidade & Print ───────────────────────────── */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .reveal     { transition: none; opacity: 1; transform: none; }
  .hero-badge span,
  .hero-scroll-hint { animation: none; }
}

@media print {
  nav, .whatsapp-float, .hero-video-wrap,
  .hero-scroll-hint, .cta-mid, .cta-final { display: none; }
  body   { color: #000; background: #fff; }
  .hero  { min-height: auto; padding: 40px 0; background: #fff; color: #000; }
  a[href]::after { content: ' (' attr(href) ')'; font-size: 11px; color: #666; }
}

/* ── 20. Nav dropdown ─────────────────────────────────────── */
.nav-item {
  position: relative; display: inline-flex; align-items: center;
}

.nav-has-dropdown {
  display: flex; align-items: center; gap: 4px;
}
.nav-has-dropdown .chevron {
  width: 10px; height: 10px; transition: transform 0.2s;
  flex-shrink: 0; margin-top: 1px;
}
.nav-item:hover .chevron,
.nav-item.open .chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute; top: calc(100% + 16px); left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(20, 20, 20, 0.99);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md); padding: 6px;
  min-width: 230px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  z-index: 200;
}
.nav-dropdown::before {
  content: ''; position: absolute; top: -12px;
  left: 0; right: 0; height: 12px;
}
.nav-item:hover .nav-dropdown,
.nav-item.open .nav-dropdown {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 13px; color: rgba(255, 255, 255, 0.65);
  transition: all 0.15s; font-family: var(--font-display);
  white-space: nowrap;
}
.nav-dropdown-item:hover { background: rgba(255, 107, 43, 0.1); color: #fff; }

.nav-dropdown-divider {
  height: 1px; background: rgba(255, 255, 255, 0.07);
  margin: 4px 8px;
}

@media (max-width: 900px) {
  /* No mobile, dropdown vira lista expandida inline */
  .nav-item      { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-has-dropdown { width: 100%; justify-content: space-between; }
  .nav-dropdown  {
    position: static; transform: none !important;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm); width: 100%;
    opacity: 1; visibility: visible; pointer-events: auto;
    box-shadow: none; padding: 4px; margin-top: 8px;
    display: none;
  }
  .nav-item.open .nav-dropdown { display: block; }
  .nav-dropdown-item { font-size: 14px; padding: 10px 12px; }
}

/* ── 21. Cookie Banner (LGPD) ─────────────────────────────── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9998;
  background: rgba(20, 20, 20, 0.98);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-spring);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.4);
}
.cookie-banner.visible { transform: translateY(0); }

.cookie-banner .container {
  display: flex; align-items: center;
  gap: 32px; flex-wrap: wrap;
}

.cookie-text {
  flex: 1; font-size: 14px; color: rgba(255, 255, 255, 0.65);
  line-height: 1.6; min-width: 260px;
}
.cookie-text strong { color: rgba(255, 255, 255, 0.85); }
.cookie-text a { color: var(--orange); text-decoration: underline; text-underline-offset: 2px; }
.cookie-text a:hover { opacity: 0.8; }

.cookie-actions {
  display: flex; gap: 10px; flex-shrink: 0;
}

.cookie-btn-secondary {
  background: transparent; color: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font-display); font-weight: 500;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.cookie-btn-secondary:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); }

.cookie-btn-primary {
  background: var(--orange); color: #fff; border: none;
  padding: 10px 24px; border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font-display); font-weight: 600;
  cursor: pointer; transition: opacity 0.2s; white-space: nowrap;
}
.cookie-btn-primary:hover { opacity: 0.85; }

@media (max-width: 600px) {
  .cookie-banner .container { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-btn-primary,
  .cookie-btn-secondary { flex: 1; text-align: center; }
}

/* ── 22. Portfolio loading states ─────────────────────────── */
.portfolio-loading {
  grid-column: 1 / -1; text-align: center;
  padding: 60px 0; color: var(--gray-500);
  font-family: var(--font-display); font-size: 15px;
}
.portfolio-loading-spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--gray-200);
  border-top-color: var(--orange);
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
