/*
  ============================================================
  G4D Soluções e Desenvolvimento — Landing Page Institucional
  Arquivo: assets/css/style.css
  Descrição: CSS customizado com identidade visual G4D.
             Complementa Bootstrap 5 sem substituí-lo.
             Implementa variáveis CSS para dark/light mode.
             Base: 1rem não padronizado — usar px onde necessário.
  ============================================================
*/

/* ============================================================
   1. GOOGLE FONTS — Import (já declarado no HTML como preload)
   ============================================================ */
/* Syne: display/títulos | DM Sans: corpo */

/* ============================================================
   2. VARIÁVEIS CSS — TEMA ESCURO (padrão)
   ============================================================ */
[data-theme="dark"] {
  /* Fundos */
  --bg-primary:    #0A0F1E;
  --bg-secondary:  #0D1B3E;
  --bg-card:       #0f1c35;
  --bg-card-hover: #132240;
  --bg-feat:       #1E3A5F;
  --bg-feat-hover: #27507f;

  /* Bordas */
  --border-color:  rgba(168, 191, 207, 0.12);
  --border-accent: rgba(168, 191, 207, 0.35);

  /* Textos */
  --text-primary:   #F0F4F8;
  --text-secondary: #A8BFCF;
  --text-muted:     rgba(168, 191, 207, 0.55);

  /* Accent / brand */
  --accent:         #A8BFCF;
  --accent-bright:  #FFFFFF;
  --accent-steel:   #1E3A5F;

  /* Botões */
  --btn-primary-bg:     #1E3A5F;
  --btn-primary-hover:  #27507f;
  --btn-primary-text:   #FFFFFF;
  --btn-outline-border: rgba(168, 191, 207, 0.5);
  --btn-outline-hover:  rgba(168, 191, 207, 0.1);

  /* Header */
  --header-bg:     rgba(10, 15, 30, 0.85);
  --header-border: rgba(168, 191, 207, 0.08);

  /* Step number */
  --step-num-color: rgba(168, 191, 207, 0.08);

  /* Gradient hero */
  --hero-grad-start: #0A0F1E;
  --hero-grad-end:   #0D1B3E;

  /* Sombra */
  --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.45);
  --shadow-feat: 0 8px 48px rgba(30, 58, 95, 0.4);

  /* Seção alternada */
  --section-alt-bg: #0D1B3E;

  /* CTA */
  --cta-bg: #0f1c35;
}

/* ============================================================
   3. VARIÁVEIS CSS — TEMA CLARO
   ============================================================ */
[data-theme="light"] {
  /* Fundos */
  --bg-primary:    #F0F4F8;
  --bg-secondary:  #E4EBF3;
  --bg-card:       #FFFFFF;
  --bg-card-hover: #F7FAFC;
  --bg-feat:       #1E3A5F;
  --bg-feat-hover: #E4EBF3;

  /* Bordas */
  --border-color:  rgba(30, 58, 95, 0.12);
  --border-accent: rgba(30, 58, 95, 0.35);

  /* Textos */
  --text-primary:   #0A0F1E;
  --text-secondary: #1E3A5F;
  --text-muted:     rgba(30, 58, 95, 0.5);

  /* Accent / brand */
  --accent:         #1E3A5F;
  --accent-bright:  #0A0F1E;
  --accent-steel:   #1E3A5F;

  /* Botões */
  --btn-primary-bg:     #1E3A5F;
  --btn-primary-hover:  #0A0F1E;
  --btn-primary-text:   #FFFFFF;
  --btn-outline-border: rgba(30, 58, 95, 0.4);
  --btn-outline-hover:  rgba(30, 58, 95, 0.08);

  /* Header */
  --header-bg:     rgba(240, 244, 248, 0.9);
  --header-border: rgba(30, 58, 95, 0.1);

  /* Step number */
  --step-num-color: rgba(30, 58, 95, 0.06);

  /* Gradient hero */
  --hero-grad-start: #E4EBF3;
  --hero-grad-end:   #F0F4F8;

  /* Sombra */
  --shadow-card: 0 2px 16px rgba(30, 58, 95, 0.1);
  --shadow-feat: 0 8px 48px rgba(30, 58, 95, 0.2);

  /* Seção alternada */
  --section-alt-bg: #E4EBF3;

  /* CTA */
  --cta-bg: #FFFFFF;
}

/* ============================================================
   4. RESET E BASE GLOBAL
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Compensa o header fixo nas âncoras */
  scroll-padding-top: 80px;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.7;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  /* Transição suave de tema */
  transition: background-color 0.35s ease, color 0.35s ease;
  overflow-x: hidden;
}

/* Títulos — fonte display */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

/* Links base */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.25s ease;
}

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

/* Scrollbar customizada (webkit) */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-steel);
  border-radius: 3px;
}

/* ============================================================
   5. HEADER FIXO
   ============================================================ */
.g4d-header {
  background: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.35s ease,
              box-shadow 0.35s ease,
              border-color 0.35s ease;
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
  z-index: 1050;
}

/* Header com sombra ao rolar — classe adicionada via JS */
.g4d-header.scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3);
}

/* Brand / Logo */
.g4d-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.g4d-logo-img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.g4d-brand-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--text-primary);
  letter-spacing: 0.04em;
  transition: color 0.25s ease;
}

.g4d-brand:hover .g4d-brand-text {
  color: var(--accent);
}

/* Toggler mobile */
.g4d-toggler {
  background: transparent;
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  padding: 0.375rem 0.625rem;
  border-radius: 6px;
  font-size: 1.25rem;
  line-height: 1;
  transition: border-color 0.25s, color 0.25s;
}

.g4d-toggler:focus {
  box-shadow: 0 0 0 2px var(--accent-steel);
  outline: none;
}

/* Links de navegação */
.g4d-nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem !important;
  border-radius: 6px;
  transition: color 0.25s ease, background 0.25s ease;
  position: relative;
}

.g4d-nav-link:hover,
.g4d-nav-link.active {
  color: var(--text-primary) !important;
  background: rgba(168, 191, 207, 0.07);
}

/* Toggle de tema */
.g4d-theme-toggle {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}

.g4d-theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: var(--btn-outline-hover);
}

/* ============================================================
   6. BOTÕES
   ============================================================ */

/* Botão primário */
.g4d-btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text) !important;
  border: 1px solid var(--btn-primary-bg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.3s ease,
              transform 0.25s ease,
              box-shadow 0.3s ease;
}

.g4d-btn-primary:hover {
  background: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.4);
}

/* Botão outline */
.g4d-btn-outline {
  background: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--btn-outline-border);
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.3s ease,
              border-color 0.3s ease,
              transform 0.25s ease;
}

.g4d-btn-outline:hover {
  background: var(--btn-outline-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* Tamanhos */
.g4d-btn-sm {
  padding: 0.45rem 1.1rem;
  font-size: 0.875rem;
}

.g4d-btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

.g4d-btn-xl {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

/* ============================================================
   7. SEÇÕES — BASE
   ============================================================ */
.g4d-section {
  padding: 5rem 0;
  background-color: var(--bg-primary);
  transition: background-color 0.35s ease;
}

/* Seção alternada */
.g4d-section-alt {
  background-color: var(--section-alt-bg);
}

/* Label de seção (eyebrow text) */
.g4d-section-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}

/* Título de seção */
.g4d-section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

/* Texto corrido */
.g4d-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

/* ============================================================
   8. HERO
   ============================================================ */
.g4d-hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--hero-grad-start) 0%, var(--hero-grad-end) 100%);
  padding-top: 100px;
  padding-bottom: 5rem;
  position: relative;
  overflow: hidden;
}

/* Malha de pontos decorativa no hero */
.g4d-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(168, 191, 207, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

/* Badge do hero */
.g4d-hero-badge {
  display: inline-flex;
  align-items: center;
  background: var(--border-color);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.4rem 1rem;
  border-radius: 100px;
}

/* Título do hero */
.g4d-hero-title {
  font-family: 'Sora', 'Syne', sans-serif;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
  letter-spacing: -0.02em;  
}

/* Highlight no título */
.g4d-highlight {
  color: var(--accent);
  position: relative;
  display: inline-block;
}

/* Subtítulo/lead do hero */
.g4d-hero-lead {
  font-family: "Inter", sans-serif;;
  font-size: clamp(1rem, 1.5vw, 2.2rem);
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
  font-weight: 400;
}

/* Elemento visual decorativo do hero */
.g4d-hero-visual {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.g4d-hero-logo-decor {
  width: 180px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 8px 32px rgba(168, 191, 207, 0.2));
  animation: g4d-float 5s ease-in-out infinite;
}

/* Anéis decorativos */
.g4d-hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  animation: g4d-pulse 4s ease-in-out infinite;
}

.g4d-ring-1 {
  width: 220px;
  height: 220px;
  animation-delay: 0s;
}
.g4d-ring-2 {
  width: 280px;
  height: 280px;
  animation-delay: 0.8s;
  border-color: var(--border-color);
  opacity: 0.6;
}
.g4d-ring-3 {
  width: 340px;
  height: 340px;
  animation-delay: 1.6s;
  opacity: 0.3;
}

/* Separador de seção */
.g4d-section-separator {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--border-accent),
    transparent
  );
}

/* Animações do hero */
@keyframes g4d-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

@keyframes g4d-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.04); opacity: 1; }
}

/* ============================================================
   9. SEÇÃO INSTITUCIONAL
   ============================================================ */
.g4d-inst-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  transition: background 0.35s ease, border-color 0.35s ease;
}

.g4d-inst-icon {
  font-size: 2rem;
  color: var(--accent);
}

.g4d-inst-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
}

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

.g4d-stat-value {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}

.g4d-inst-divider {
  height: 1px;
  background: var(--border-color);
}

/* ============================================================
   10. CARDS GERAIS
   ============================================================ */
.g4d-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2rem;
  transition: background 0.3s ease,
              border-color 0.3s ease,
              transform 0.3s ease,
              box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.g4d-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* Card de serviço */
.g4d-card-service .g4d-card-icon { 
  width: 52px;
  height: 52px;
  background: rgba(168, 191, 207, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  transition: background 0.3s, border-color 0.3s;
}

.g4d-card-service:hover .g4d-card-icon {
  background: var(--accent-steel);
  border-color: var(--accent-steel);
  color: #fff;
}

/* Card destaque (serviço central) */
.g4d-card-featured {
  background: var(--bg-feat);
  border-color: rgba(168, 191, 207, 0.25);
  box-shadow: var(--shadow-feat);
}

.g4d-card-featured .g4d-card-title,
.g4d-card-featured .g4d-card-text,
.g4d-card-featured .g4d-card-list li {
  color: #F0F4F8;
}

[data-theme="light"] .g4d-card-featured:hover .g4d-card-title,
[data-theme="light"] .g4d-card-featured:hover .g4d-card-text,
[data-theme="light"] .g4d-card-featured:hover .g4d-card-list li {
  color: var(--text-primary);
}
.g4d-card-featured .g4d-card-icon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #F0F4F8;
}

.g4d-card-featured:hover {
  background: var(--bg-feat-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-feat);
}

/* Badge do card destaque */
.g4d-card-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.15);
  color: #F0F4F8;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Títulos e textos de card */
.g4d-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.g4d-card-text {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Lista dentro de card */
.g4d-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.g4d-card-list li {
  font-size: 0.875rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.g4d-card-list li i {
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
}

/* ============================================================
   11. PARA QUEM É — PÚBLICO
   ============================================================ */
.g4d-audience-icon {
  width: 56px;
  height: 56px;
  background: rgba(168, 191, 207, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent);
  transition: background 0.3s, border-color 0.3s;
}

.g4d-card-audience:hover .g4d-audience-icon {
  background: var(--accent-steel);
  border-color: var(--accent-steel);
  color: #fff;
}

.g4d-audience-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.g4d-audience-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.g4d-audience-list li i {
  color: var(--accent);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ============================================================
   12. DIFERENCIAIS
   ============================================================ */
.g4d-diff-icon {
  width: 60px;
  height: 60px;
  background: rgba(168, 191, 207, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent);
  margin: 0 auto;
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
}

.g4d-card-diff:hover .g4d-diff-icon {
  background: var(--accent-steel);
  border-color: var(--accent-steel);
  color: #fff;
  transform: scale(1.08);
}

/* ============================================================
   13. PROCESSO DE TRABALHO — STEPS
   ============================================================ */
.g4d-step {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.g4d-step:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

/* Número de step em marca d'água */
.g4d-step-number {
  position: absolute;
  top: -0.5rem;
  right: 1rem;
  font-family: 'Syne', sans-serif;
  font-size: 5rem;
  font-weight: 800;
  color: var(--step-num-color);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  transition: color 0.35s;
}

.g4d-step-icon {
  font-size: 1.75rem;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.g4d-step-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.g4d-step-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ============================================================
   14. BENEFÍCIOS
   ============================================================ */
.g4d-benefit {
  padding: 1.75rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: background 0.3s, border-color 0.3s, transform 0.3s;
  width: 100%;
}

.g4d-benefit:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  background: var(--bg-card-hover);
}

.g4d-benefit-icon {
  width: 48px;
  height: 48px;
  background: rgba(168, 191, 207, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--accent);
  transition: background 0.3s, border-color 0.3s;
}

.g4d-benefit:hover .g4d-benefit-icon {
  background: var(--accent-steel);
  border-color: var(--accent-steel);
  color: #fff;
}

.g4d-benefit-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.g4d-benefit-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ============================================================
   15. FAQ — ACCORDION
   ============================================================ */
.g4d-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.g4d-accordion-item {
  background: var(--bg-card) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 10px !important;
  overflow: hidden;
  transition: border-color 0.3s;
}

.g4d-accordion-item:hover {
  border-color: var(--border-accent) !important;
}

/* Override do accordion Bootstrap */
.g4d-accordion-btn {
  background: var(--bg-card) !important;
  color: var(--text-primary) !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.975rem;
  padding: 1.25rem 1.5rem !important;
  border: none !important;
  box-shadow: none !important;
  transition: background 0.3s, color 0.3s;
}

.g4d-accordion-btn:not(.collapsed) {
  background: var(--bg-card) !important;
  color: var(--accent) !important;
}

/* Ícone do accordion customizado */
.g4d-accordion-btn::after {
  filter: var(--accordion-icon-filter, none);
  transition: transform 0.3s ease;
}

/* Filtro do ícone para tema escuro */
[data-theme="dark"] .g4d-accordion-btn::after {
  filter: invert(1) brightness(0.8);
}

.g4d-accordion-body {
  background: var(--bg-card) !important;
  color: var(--text-secondary) !important;
  font-size: 0.925rem;
  line-height: 1.75;
  padding: 0 1.5rem 1.25rem !important;
  border-top: 1px solid var(--border-color);
}

/* ============================================================
   16. CTA FINAL
   ============================================================ */
.g4d-cta-section {
  background: var(--bg-primary);
}

.g4d-cta-inner {
  background: var(--cta-bg);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 4rem 3rem;
  transition: background 0.35s, border-color 0.35s;
}

.g4d-cta-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
}

.g4d-cta-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.g4d-cta-sub {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ============================================================
   17. FOOTER
   ============================================================ */
.g4d-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0 2rem;
  transition: background 0.35s, border-color 0.35s;
}

.g4d-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
}

.g4d-footer-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.g4d-footer-name {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  transition: color 0.25s;
}

.g4d-footer-brand:hover .g4d-footer-name {
  color: var(--accent);
}

.g4d-footer-slogan {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
  max-width: 280px;
}

.g4d-footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.25s;
}

.g4d-footer-link:hover {
  color: var(--text-primary);
}

.g4d-footer-email {
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s;
}

.g4d-footer-email:hover {
  color: var(--text-primary);
}

.g4d-footer-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2rem 0 1.5rem;
  opacity: 1;
}

.g4d-footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   18. RESPONSIVIDADE — AJUSTES POR BREAKPOINT
   ============================================================ */

/* ---- 360px / 480px — mobile pequeno ---- */
@media (max-width: 479px) {
  /* Footer slogan — remove max-width para centralizar corretamente */
  .g4d-footer-slogan {
    max-width: 100%;
    text-align: center;
  }

  .g4d-footer-brand {
    justify-content: center;
    width: 100%;
  }

  .g4d-hero {
    padding-top: 90px;
    padding-bottom: 3rem;
  }

  .g4d-hero-title {
    font-size: 2.75rem;
  }


  /* Botões do hero em coluna, largura igual */
  .g4d-hero .d-flex {
    flex-direction: column;
  }

  .g4d-hero .d-flex .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }  

  /* Botão CTA de e-mail — reduz padding e fonte em mobile */
  .g4d-btn-xl {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    width: 100%;
    justify-content: center;
  }  

  .g4d-cta-inner {
    padding: 2.5rem 1.5rem;
  }

  .g4d-section {
    padding: 3.5rem 0;
  }

  .g4d-step-number {
    font-size: 3.5rem;
  }
}

/* ---- 480px — mobile médio ---- */
@media (min-width: 480px) and (max-width: 767px) {
  .g4d-hero-title {
    font-size: 3.75rem;
  }

  .g4d-section {
    padding: 4rem 0;
  }
  /* Subtítulo/lead do hero */
  .g4d-hero-lead {
    font-size: clamp(1.25rem, 1.5vw, 2.6rem);
  }  

}

/* ---- 768px — tablet ---- */
@media (min-width: 768px) and (max-width: 991px) {
  .g4d-hero-title {
    font-size: 4.5rem;
  }

  .g4d-hero {
    padding-bottom: 4rem;
  }

  .g4d-cta-inner {
    padding: 3.5rem 2.5rem;
  }

  /* Subtítulo/lead do hero */
  .g4d-hero-lead {
    font-size: clamp(1.25rem, 1.5vw, 2.6rem);
  }  
}

/* ---- 992px — desktop médio ---- */
@media (min-width: 992px) {
  .g4d-hero {
    min-height: 100vh;
  }
}

/* ---- 1200px e acima — desktop largo ---- */
@media (min-width: 1200px) {
  .g4d-section {
    padding: 6rem 0;
  }

  .g4d-hero {
    padding-top: 110px;
  }
}

/* ---- 1440px — desktop grande ---- */
@media (min-width: 1440px) {
  .g4d-section {
    padding: 7rem 0;
  }

  .container {
    max-width: 1320px;
  }
}

/* ============================================================
   19. MOBILE — NAVBAR COLLAPSE STYLING
   ============================================================ */
@media (max-width: 991px) {
  /* Menu mobile expandido */
  #navbarG4D.show,
  #navbarG4D.collapsing {
    background: var(--header-bg);
    border-top: 1px solid var(--border-color);
    padding: 1rem 0;
    margin-top: 0.5rem;
  }

  .g4d-nav-link {
    padding: 0.75rem 1rem !important;
  }

  /* Toggle e botão ficam inline em mobile */
  #navbarG4D .ms-lg-3 {
    margin-top: 0.5rem;
  }

  #navbarG4D .ms-lg-2 {
    margin-top: 0.5rem;
  }

  /* CTA no menu mobile */
  #navbarG4D .g4d-btn-primary {
    display: inline-flex;
    width: fit-content;
  }
}

/* ============================================================
   20. UTILITÁRIOS E OVERRIDES BOOTSTRAP
   ============================================================ */

/* Remove outline padrão do accordion Bootstrap */
.accordion-button:focus {
  box-shadow: none;
}

/* Garante que o body não exiba o scroll-x */
body {
  overflow-x: hidden;
}

/* Selecionar texto com cor de accent */
::selection {
  background: var(--accent-steel);
  color: #fff;
}


/* ============================================================
   21. LOADER — Tela de entrada com logomarca
   ============================================================ */

/* Overlay fullscreen */
#g4d-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

/* Estado oculto — adicionado via JS após carregamento */
#g4d-loader.g4d-loader-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Wrapper interno centralizado */
.g4d-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Logo no loader */
.g4d-loader-logo {
  width: 160px;
  height: auto;
  animation: g4d-loader-pulse 0.9s ease-in-out infinite;
}

/* Barra de progresso container */
.g4d-loader-bar {
  width: 200px;
  height: 3px;
  background: var(--border-color);
  border-radius: 2px;
  overflow: hidden;
}

/* Progresso animado */
.g4d-loader-progress {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  animation: g4d-loader-fill 1.4s ease forwards;
}

/* Animações do loader */
@keyframes g4d-loader-pulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.6; transform: scale(0.95); }
}

@keyframes g4d-loader-fill {
  0%   { width: 0%; }
  100% { width: 100%; }
}