/* =====================================================
   BIGLEARN - AI CONSULTING COMPANY
   Glassmorphism Dark Theme CSS Design System
   Production-Ready • Fully Responsive • Accessibility Focused
   ===================================================== */

/* =====================================================
   IMPORTS & GOOGLE FONTS
   ===================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Space+Grotesk:wght@300;400;500;600;700;800&display=swap");

/* =====================================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ===================================================== */

:root {
  /* Colors - Primary */
  --bg-primary: #070f0d;
  --bg-secondary: #111127;
  --bg-glass: rgba(255, 255, 255, 0.05);
  --bg-glass-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-border-hover: rgba(255, 255, 255, 0.2);

  /* Colors - Text */
  --text-primary: #f0f0f5;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.5);

  /* Colors - Accents */
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, #6366f1, #8b5cf6);
  --accent-glow: 0 0 20px rgba(99, 102, 241, 0.3);

  /* Colors - Status */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Spacing - Border Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Effects */
  --blur: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Z-Index */
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-fixed: 1000;
  --z-modal: 2000;
}

/* =====================================================
   MODERN CSS RESET & BASE STYLES
   ===================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

::selection {
  background-color: var(--accent-primary);
  color: white;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: var(--radius-sm);
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* Firefox Scrollbar */
* {
  scrollbar-color: var(--accent-primary) transparent;
  scrollbar-width: thin;
}

/* =====================================================
   TYPOGRAPHY
   ===================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
}

h4 {
  font-size: 1.125rem;
  font-weight: 600;
}

h5 {
  font-size: 1rem;
  font-weight: 600;
}

h6 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

small,
.small {
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

a:hover {
  color: var(--accent-secondary);
}

code,
pre {
  font-family: var(--font-mono);
  background-color: var(--bg-secondary);
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
}

code {
  padding: 0.25rem 0.5rem;
  font-size: 0.875em;
}

pre {
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

pre code {
  padding: 0;
  background: none;
  border-radius: 0;
}

/* =====================================================
   LAYOUT
   ===================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

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

.section--glass {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur));
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

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

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

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

@media (max-width: 1024px) {
  .section {
    padding: 80px 0;
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .container,
  .container--wide {
    padding: 0 16px;
  }
}

/* =====================================================
   GLASS COMPONENTS
   ===================================================== */

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
}

.glass-card:hover {
  border-color: var(--glass-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), var(--accent-glow);
}

.glass-card--accent {
  border-left: 3px solid;
  border-left-color: var(--accent-primary);
}

.glass-card--accent:hover {
  border-left-color: var(--accent-secondary);
}

.glass-card--sm {
  padding: 24px;
  border-radius: var(--radius-md);
}

.glass-card--lg {
  padding: 48px;
  border-radius: var(--radius-xl);
}

.glass-effect {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--glass-border);
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 14px 0;
  min-height: 60px;
  display: block;
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.header.scrolled {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  background: #0a0a1a;
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  padding: 5px 0;
}

/* Nav links brancos sobre fundo preto */
.header.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.header.scrolled .nav-link:hover,
.header.scrolled .nav-link.active {
  color: #ffffff;
}

.header.scrolled .btn-primary {
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transform-origin: left center;
}

.logo:hover {
  transform: scale(1.3);
}

.nav {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-link {
  color: #374151;
  font-weight: 500;
  font-size: 0.86rem;
  position: relative;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition);
}

.nav-link:hover {
  color: var(--accent-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent-primary);
}

.nav-link.active::after {
  width: 100%;
}

/* ── Nav Dropdown (Serviços) ─────────────────────── */
.nav-item-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  cursor: default;
  user-select: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-dropdown-trigger::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width var(--transition);
}

.nav-item-dropdown:hover .nav-dropdown-trigger {
  color: var(--accent-primary);
}

.nav-item-dropdown:hover .nav-dropdown-trigger::after {
  width: 100%;
}

.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 230px;
  background: rgba(10, 10, 26, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
  padding: 22px 0 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5),
              0 2px 8px rgba(99, 102, 241, 0.12);
  z-index: 1100;
}

.nav-item-dropdown:hover .nav-submenu,
.nav-item-dropdown.show .nav-submenu {
  display: block;
}

/* pequena seta decorativa */
.nav-submenu::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: rgba(10, 10, 26, 0.96);
  border-left: 1px solid rgba(255, 255, 255, 0.13);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.nav-submenu-link {
  display: block;
  padding: 11px 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition), background var(--transition);
  text-decoration: none;
}

.nav-submenu-link:hover {
  color: var(--accent-primary);
  background: rgba(99, 102, 241, 0.1);
}

.btn.btn-primary.btn-sm {
  margin-left: 20px;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1f2937; /* FIX: era var(--text-primary) #f0f0f5, invisível no header branco */
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 70px; /* FIX: valor de fallback — main.js sobrepõe com a altura real do header */
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 20px;
    padding: 24px;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(var(--blur));
    border-bottom: 1px solid var(--glass-border);
  }

  .nav.active {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .btn.btn-primary.btn-sm {
    display: none; /* FIX: esconder "Fale Connosco" em mobile; o menu hamburger já dá acesso */
  }

  /* Dropdown mobile: esconde o trigger "Serviços ▾", mostra links diretamente */
  .nav-item-dropdown {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    width: 100%;
  }

  .nav-dropdown-trigger {
    display: none; /* Oculta "Serviços ▾" no mobile */
  }

  .nav-submenu {
    display: block;
    position: static;
    transform: none;
    min-width: unset;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .nav-submenu::before {
    display: none;
  }

  .nav-submenu-link {
    padding: 4px 0 4px 14px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.72);
    border-left: 2px solid rgba(99, 102, 241, 0.4);
  }

  .nav-submenu-link:hover {
    background: transparent;
    color: var(--accent-primary);
    border-left-color: var(--accent-primary);
  }
}

/* =====================================================
   HERO SECTION
   ===================================================== */

.hero {
  aspect-ratio: 16 / 9;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: 110px;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero > picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  z-index: 1;
}

.hero-overlay::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.15) 0%,
    transparent 70%
  );
  border-radius: 50%;
  top: -100px;
  right: -200px;
  filter: blur(40px);
}

.hero-overlay::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  bottom: -50px;
  left: -150px;
  filter: blur(40px);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 700px;
  text-align: center;
  padding: 60px 24px 0;
}

.hero-badge {
  display: inline-block;
  padding: 10px 20px;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 24px;
  animation: float 6s ease-in-out infinite;
}

.hero-title {
  font-family: 'Space Grotesk', var(--font-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  animation: slide-up 0.8s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.8;
  animation: slide-up 0.8s ease-out 0.2s backwards;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: slide-up 0.8s ease-out 0.4s backwards;
}

.scroll-indicator {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 16px auto 0;
  left: 0;
  right: 0;
  gap: 0;
  animation: bounce 2s ease-in-out infinite;
  cursor: pointer;
}

.scroll-indicator-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 6px;
}

.scroll-indicator svg {
  width: 44px;
  height: 18px;
  stroke: #ffffff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  display: block;
  margin-top: -2px;
}

/* Sergeant-stripe fade: top faintest → bottom brightest */
.scroll-indicator svg:nth-child(2) { opacity: 0.25; }
.scroll-indicator svg:nth-child(3) { opacity: 0.6;  }
.scroll-indicator svg:nth-child(4) {
  opacity: 1;
  filter: drop-shadow(0 1px 5px rgba(255, 255, 255, 0.55));
}

@media (max-width: 768px) {
  .hero {
    aspect-ratio: auto;
    min-height: 100svh;
    min-height: 100vh; /* fallback */
    margin-top: 0;
    padding: 0;
    align-items: center;
  }

  .hero-content {
    max-width: 100%;
    padding: 90px 20px 40px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    flex-direction: column;
  }
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: inherit;
  opacity: 0.5;
  transition: left var(--transition);
  z-index: -1;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.72) 0%,
    rgba(139, 92, 246, 0.68) 40%,
    rgba(99, 102, 241, 0.80) 70%,
    rgba(168, 85, 247, 0.65) 100%
  );
  backdrop-filter: blur(12px) saturate(1.6);
  -webkit-backdrop-filter: blur(12px) saturate(1.6);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: white;
  box-shadow:
    0 8px 32px rgba(99, 102, 241, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 0 rgba(99, 102, 241, 0.2);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 60%;
  height: 200%;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.18) 50%, transparent 80%);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn-primary:hover::after {
  left: 120%;
}

.btn-primary:hover {
  box-shadow:
    0 16px 48px rgba(99, 102, 241, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    var(--accent-glow);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.12) 0%,
    rgba(139, 92, 246, 0.10) 50%,
    rgba(99, 102, 241, 0.15) 100%
  );
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  border: 1px solid rgba(99, 102, 241, 0.45);
  color: var(--accent-primary);
  box-shadow:
    0 4px 20px rgba(99, 102, 241, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.btn-outline::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 60%;
  height: 200%;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.10) 50%, transparent 80%);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn-outline:hover::after {
  left: 120%;
}

.btn-outline:hover {
  background: linear-gradient(135deg,
    rgba(99, 102, 241, 0.28) 0%,
    rgba(139, 92, 246, 0.24) 50%,
    rgba(99, 102, 241, 0.32) 100%
  );
  border-color: rgba(99, 102, 241, 0.75);
  color: var(--accent-primary);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

/* Botão outline no hero — fundo semi-transparente para legibilidade sobre imagem */
.hero-buttons .btn-outline {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 2px solid rgba(255, 255, 255, 0.6);
  color: #ffffff;
}

.hero-buttons .btn-outline:hover {
  background: rgba(255, 255, 255, 0.32);
  border-color: rgba(255, 255, 255, 0.9);
  color: #ffffff;
}

.btn-lg {
  padding: 18px 48px;
  font-size: 1.125rem;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-icon {
  padding: 12px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* =====================================================
   SERVICE CARDS
   ===================================================== */

.service-card {
  display: flex;
  flex-direction: column;
  padding: 32px;
  height: 100%;
  position: relative; /* necessário para stretched-link */
  overflow: hidden;
}

/* Imagem miniatura do serviço — liquid glass */
.service-img-link {
  display: block;
  margin-bottom: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  text-decoration: none;
  position: relative;
  z-index: 1;
  /* Liquid glass: borda e sombra */
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35),
              0 2px 8px rgba(0, 0, 0, 0.2),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Overlay liquid glass sobre a imagem */
.service-img-link::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.10) 0%,
    rgba(255, 255, 255, 0.03) 40%,
    rgba(10, 10, 26, 0.18) 100%
  );
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.4s ease;
}

.service-card:hover .service-img-link::after {
  opacity: 0.6;
}

.service-img {
  width: 100%;
  height: 90px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.service-card:hover .service-img {
  transform: scale(1.06);
}

/* Stretched-link — torna o card inteiro clicável */
.stretched-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
}

.service-img-link,
.service-link {
  position: relative;
  z-index: 1;
}

/* Manter ícone SVG para outras páginas que ainda o usem */
.service-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}

.service-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.service-title {
  margin-bottom: 16px;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

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

.service-title a:hover {
  color: var(--accent-primary);
}

.service-text {
  color: var(--text-secondary);
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-primary);
  font-weight: 500;
  transition: var(--transition);
  align-self: flex-start;
}

.service-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.service-link:hover {
  color: var(--accent-secondary);
}

.service-link:hover svg {
  transform: translateX(4px);
}

/* =====================================================
   ABOUT SECTION
   ===================================================== */

.about {
  /* layout handled by .about-grid inside .container */
}

.about-image {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--bg-glass);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content h2 {
  margin-bottom: 24px;
}

.about-content p {
  margin-bottom: 16px;
}

/* FIX: definição antiga removida — conflituava com a versão em linha ~2258 anulando a media query mobile */
/* .about-stats era aqui definida com repeat(2,1fr) — agora só existe a definição correcta mais abaixo */

.stat {
  padding: 24px;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 768px) {
  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* FIX: esta regra era anulada pela definição tardia de .about-stats (~linha 2258).
     A correcção real está nas media queries abaixo do bloco de definição correcta. */
}

/* =====================================================
   CONTACT SECTION
   ===================================================== */

.contact {
  max-width: 1350px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 2.5fr 0.8fr;
  gap: 40px;
}

.contact-form {
  order: 2;
}

.contact-info {
  order: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.contact-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

/* Cards em linha horizontal: ícone à esquerda, conteúdo à direita */
.contact-cards-grid .contact-card {
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
}

.contact-cards-grid .contact-card-icon {
  margin-bottom: 0;
  flex-shrink: 0;
  font-size: 1.2rem;
}

.contact-card {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.07) 0%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(99, 102, 241, 0.05) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  border-radius: inherit;
  pointer-events: none;
}

.contact-card:hover {
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.11) 0%,
    rgba(255, 255, 255, 0.07) 50%,
    rgba(99, 102, 241, 0.09) 100%
  );
  border-color: rgba(99, 102, 241, 0.22);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.10), inset 0 1px 0 rgba(255,255,255,0.12);
}

/* social cards ficam lado a lado (1 col cada) */

.contact-card-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin: 0;
  line-height: 1.2;
}

.contact-card-sub {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.45;
}

.contact-card-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  white-space: nowrap;      /* OK no desktop — em mobile é anulado abaixo */
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  transition: color var(--transition);
}

@media (max-width: 768px) {
  .contact-card-link {
    white-space: normal;    /* FIX: evitar overflow em telemóvel */
    overflow-wrap: break-word;
  }
}

.contact-card-link:hover {
  color: var(--accent-primary);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--glass-border-hover);
  background: var(--bg-glass-hover);
  box-shadow: var(--accent-glow);
}

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

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236366f1' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--accent-primary);
}

.checkbox-item label {
  cursor: pointer;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.form-success {
  padding: 20px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  border-radius: var(--radius-md);
  color: var(--success);
  text-align: center;
  display: none;
}

.form-success.show {
  display: block;
}

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

  .contact-form {
    order: 1;
  }

  .contact-info {
    order: 2;
  }
}

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

@media (max-width: 600px) {
  .faq-list {
    grid-template-columns: 1fr;
  }
}

/* Logo do header — tamanho ajustado para faixa compacta */
.logo img {
  height: 56px;
  width: auto;
}

/* =====================================================
   SERVICE PAGE LAYOUT
   ===================================================== */

.service-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  margin-top: 60px;
}

.service-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 10, 26, 0.7) 0%,
    rgba(10, 10, 26, 0.5) 100%
  );
  z-index: 1;
}

.service-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.service-hero-content h1 {
  margin-bottom: 16px;
}

.service-hero-content p {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.service-content {
  max-width: 1000px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 60px 0;
}

.feature-item {
  display: flex;
  flex-direction: column;
  padding: 32px;
}

.feature-item-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.feature-item-icon svg {
  width: 30px;
  height: 30px;
  color: white;
}

.feature-item h3 {
  margin-bottom: 12px;
}

.feature-item p {
  color: var(--text-secondary);
}

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

  .service-hero {
    min-height: 50vh;
    margin-top: 70px;
  }
}

/* =====================================================
   FORM PAGE LAYOUT
   ===================================================== */

.form-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 120px);
  padding: 60px 24px;
  margin-top: 60px;
}

.form-container {
  width: 100%;
  max-width: 1000px;
  padding: 48px;
}

.form-header {
  text-align: center;
  margin-bottom: 40px;
}

.form-header h1 {
  margin-bottom: 16px;
}

.form-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.form-section-label {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}

.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
}

.form-actions .btn {
  flex: 1;
}

@media (max-width: 768px) {
  .form-page {
    min-height: auto;
    padding: 40px 16px;
    margin-top: 70px;
  }

  .form-container {
    padding: 32px;
  }

  .form-actions {
    flex-direction: column;
  }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: var(--accent-glow);
  }

  50% {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.6);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  /* FIX: removido translateX(-50%) — o elemento usa margin:auto, não left:50% */
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }

  100% {
    background-position: 1000px 0;
  }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.animate-on-scroll.from-right {
  transform: translateX(70px);
}

.animate-on-scroll.from-left {
  transform: translateX(-70px);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger delays para cards em grelha */
.services-grid .service-card:nth-child(1) { transition-delay: 0s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.15s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.3s; }

.about-stats .stat-item:nth-child(1) { transition-delay: 0s; }
.about-stats .stat-item:nth-child(2) { transition-delay: 0.12s; }
.about-stats .stat-item:nth-child(3) { transition-delay: 0.24s; }


/* =====================================================
   BACKGROUND EFFECTS
   ===================================================== */

.bg-grid {
  position: relative;
  background-image: linear-gradient(
      rgba(99, 102, 241, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(99, 102, 241, 0.03) 1px,
      transparent 1px
    );
  background-size: 50px 50px;
}

.bg-dots {
  position: relative;
  background-image: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.1) 1px,
    transparent 1px
  );
  background-size: 50px 50px;
}

.bg-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}

.bg-glow-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(99, 102, 241, 0.3),
    transparent 70%
  );
}

.bg-glow-orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.2),
    transparent 70%
  );
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

/* Text Alignment */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Flexbox Utilities */
.flex {
  display: flex;
}

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

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  flex-direction: column;
}

.gap-1 {
  gap: 8px;
}

.gap-2 {
  gap: 16px;
}

.gap-3 {
  gap: 24px;
}

.gap-4 {
  gap: 32px;
}

/* Margin Utilities */
.mt-1 {
  margin-top: 8px;
}

.mt-2 {
  margin-top: 16px;
}

.mt-3 {
  margin-top: 24px;
}

.mt-4 {
  margin-top: 32px;
}

.mt-5 {
  margin-top: 48px;
}

.mt-6 {
  margin-top: 64px;
}

.mb-1 {
  margin-bottom: 8px;
}

.mb-2 {
  margin-bottom: 16px;
}

.mb-3 {
  margin-bottom: 24px;
}

.mb-4 {
  margin-bottom: 32px;
}

.mb-5 {
  margin-bottom: 48px;
}

.mb-6 {
  margin-bottom: 64px;
}

/* Padding Utilities */
.pt-1 {
  padding-top: 8px;
}

.pt-2 {
  padding-top: 16px;
}

.pt-3 {
  padding-top: 24px;
}

.pt-4 {
  padding-top: 32px;
}

.pt-5 {
  padding-top: 48px;
}

.pt-6 {
  padding-top: 64px;
}

.pb-1 {
  padding-bottom: 8px;
}

.pb-2 {
  padding-bottom: 16px;
}

.pb-3 {
  padding-bottom: 24px;
}

.pb-4 {
  padding-bottom: 32px;
}

.pb-5 {
  padding-bottom: 48px;
}

.pb-6 {
  padding-bottom: 64px;
}

/* Visibility Utilities */
.hidden {
  display: none !important;
}

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

/* Text Utilities */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow {
  box-shadow: var(--accent-glow);
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Effects */
.shimmer {
  background: linear-gradient(
    90deg,
    var(--bg-glass),
    var(--bg-glass-hover),
    var(--bg-glass)
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */

@media (max-width: 1024px) {
  :root {
    font-size: 15px;
  }

  h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
  }

  h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  }

  h3 {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  }
}

/* No mobile as animações de scroll ficam desativadas — evita conteúdo invisível */
@media (max-width: 768px) {
  .animate-on-scroll,
  .animate-on-scroll.from-right,
  .animate-on-scroll.from-left {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  :root {
    font-size: 14px;
  }

  h1 {
    font-size: clamp(1.75rem, 3.5vw, 3rem);
  }

  h2 {
    font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  }

  h3 {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
  }

  p {
    font-size: 0.95rem;
  }

  small,
  .small {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 13px;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  h3 {
    font-size: 1.1rem;
  }

  .btn {
    padding: 12px 24px;
  }

  .btn-lg {
    padding: 16px 32px;
  }

  .glass-card {
    padding: 24px;
  }

  .glass-card--lg {
    padding: 32px;
  }
}

/* =====================================================
   PRINT STYLES
   ===================================================== */

@media print {
  .header,
  .footer,
  .btn,
  .btn.btn-primary.btn-sm,
  .scroll-indicator {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  .glass-card,
  .glass-effect {
    background: white;
    border: 1px solid #e5e7eb;
  }

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

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    page-break-after: avoid;
  }

  p,
  ul,
  ol {
    page-break-inside: avoid;
  }
}

/* =====================================================
   ACCESSIBILITY ENHANCEMENTS
   ===================================================== */

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
  }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Reduced transparency for better contrast */
@media (prefers-contrast: more) {
  :root {
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-secondary: rgba(255, 255, 255, 0.85);
  }

  .glass-card {
    background: rgba(255, 255, 255, 0.08);
  }
}

/* High contrast mode */
@media (prefers-contrast: more) {
  .btn-outline {
    border-width: 2px;
  }

  a {
    text-decoration: underline;
  }
}

/* ===================================================== */
/* END OF DESIGN SYSTEM - PRODUCTION READY */
/* ===================================================== */

/* =====================================================
   MISSING LAYOUT CLASSES — PATCH
   ===================================================== */

/* Section padding */
.section-padding {
  padding: 100px 0;
  position: relative;
}

/* Logo text */
.logo-text {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.05em;
}

.logo-subtitle {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo img {
  height: 72px;
  width: auto;
  vertical-align: middle;
  margin-right: 10px;
  display: block;
}

/* Section headings */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 12px;
  max-width: 100%;          /* FIX: evitar overflow horizontal */
  overflow-wrap: break-word;
  word-break: break-word;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

/* About grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: stretch;
  margin-top: 3rem;
}

.about-image-container {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  height: 100%;
  min-height: 320px;
}

.about-image-container picture {
  display: block;
  width: 100%;
  height: 100%;
}

.about-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  display: block;
}

.about-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.about-text {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.5rem;
}

.stat-item {
  text-align: center;
  padding: 1.25rem;
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--blur-sm));
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 4px;
  display: block;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.service-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(99, 102, 241, 0.15);
  border-color: var(--accent-primary);
}

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.service-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.service-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-primary);
  transition: var(--transition);
}

.service-link:hover {
  color: var(--accent-secondary);
  gap: 8px;
}

/* CTA Banner */
.cta-banner {
  padding: 60px 0;
}

.cta-card {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(var(--blur));
  padding: 60px 48px;
  text-align: center;
}

.cta-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.cta-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* FAQ */
.faq-list {
  margin: 3rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: start;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--blur-sm));
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  position: relative;
}

/* Shimmer layer */
.faq-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 60%;
  height: 100%;
  background: linear-gradient(105deg,
    transparent 20%,
    rgba(255, 255, 255, 0.07) 45%,
    rgba(99, 102, 241, 0.08) 55%,
    transparent 75%
  );
  transform: skewX(-18deg);
  transition: left 0.65s ease;
  pointer-events: none;
  z-index: 1;
}

.faq-item:hover::after {
  left: 130%;
}

.faq-item:hover {
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow:
    0 0 0 1px rgba(99, 102, 241, 0.10),
    0 4px 24px rgba(99, 102, 241, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg,
    rgba(255, 255, 255, 0.06) 0%,
    var(--bg-glass) 60%
  );
}

.faq-item[open] {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.2), 0 4px 20px rgba(99, 102, 241, 0.15);
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  position: relative;
  z-index: 2;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::-webkit-details-marker { display: none; }

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent-primary);
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item[open] .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
  z-index: 2;
}

/* Contact grid */
.contact-form-wrapper {
  background: var(--bg-glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(var(--blur));
  padding: 2.5rem;
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
}

.form-message.error {
  display: block;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #ef4444;
}


/* Hero full width fix */
.hero {
  width: 100%;
  left: 0;
  right: 0;
}

/* Responsive patches */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .section-padding { padding: 64px 0; }
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } /* FIX: era repeat(3,1fr) — demasiado estreito */
  .cta-card { padding: 40px 24px; }
}

@media (max-width: 400px) {
  .about-stats { grid-template-columns: 1fr; } /* FIX: ecrãs muito pequenos — 1 coluna */
}


/* =====================================================
   SEO RICH TEXT SECTION (service pages)
   ===================================================== */
.seo-text-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}

.seo-text-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.seo-text-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.seo-text-heading {
  font-family: 'Space Grotesk', var(--font-primary);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.seo-text-col p {
  color: var(--text-secondary);
  font-size: 0.97rem;
  line-height: 1.8;
}

.seo-text-col p strong {
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 768px) {
  .seo-text-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.contact-card-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(0.6) opacity(0.75);
}

.contact-card-icon svg {
  display: block;
  flex-shrink: 0;
  filter: grayscale(1) brightness(1.1);
}


/* =====================================================
   INTAKE FORM — MULTI-STEP
   ===================================================== */

/* Secção wrapper */
.intake-form-section {
  padding: 80px 0 100px;
}

/* O card do formulário */
.intake-form {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 48px;
}

/* Cada passo: oculto por defeito, visível quando .active */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

/* Cabeçalho de passo */
.step-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.step-title {
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.step-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

/* Campo obrigatório */
.required {
  color: #ef4444;
  margin-left: 2px;
}

/* Mensagem de erro inline */
.form-error {
  display: none;
  font-size: 12px;
  color: #ef4444;
  margin-top: 5px;
}

/* Navegação (Anterior / Seguinte / Enviar) */
.form-navigation {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}

/* =====================================================
   PROGRESS INDICATOR
   ===================================================== */

.progress-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  padding: 0 16px;
}

/* Linha entre passos */
.progress-line {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  margin: 0 8px;
  transition: background 0.3s ease;
  max-width: 120px;
}

.progress-line.completed {
  background: #10b981;
}

/* Cada passo do progresso */
.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Círculo */
.progress-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.progress-step.active .progress-circle {
  background: var(--accent-primary, #6366f1);
  border-color: var(--accent-primary, #6366f1);
  box-shadow: 0 0 16px rgba(99, 102, 241, 0.4);
}

.progress-step.completed .progress-circle {
  background: #10b981;
  border-color: #10b981;
}

/* Número dentro do círculo */
.progress-number {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1;
}

.progress-step.active .progress-number,
.progress-step.completed .progress-number {
  color: #ffffff;
}

/* =====================================================
   INTAKE FORM — RESPONSIVE
   ===================================================== */

@media (max-width: 640px) {
  .intake-form {
    padding: 24px 20px;
  }

  .intake-form-section {
    padding: 40px 0 60px;
  }

  .form-navigation {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .form-navigation .btn {
    width: 100%;
    text-align: center;
  }

  .progress-circle {
    width: 40px;
    height: 40px;
  }

  .progress-number {
    font-size: 14px;
  }

  .progress-line {
    max-width: 60px;
    margin: 0 4px;
  }
}
