/* ==========================================================================
   Table of Contents
   ==========================================================================
   1. Variables & Global Settings (:root)
   2. Reset & Base Styles
   3. Accessibility Themes (High Contrast, Dark Mode)
   4. Base Elements (Typography, Links)
   5. Layout Helpers (Containers handled by Bootstrap)
   6. Components
      - Buttons (General, Brand Specific)
      - Navbar
      - Hero Sections (Index, Empresa, About)
      - Section Title & Subtitle
      - Cards (General, Testimonial, Benefit, Pillar, Form)
      - Newsletter Form
      - Client Logo Carousel
      - Forms (General Styling)
      - Floating Action Buttons (FAB)
      - Footer
      - Skip Link
      - Modals
      - Spinner
      - Timeline (About Page)
      - Process Trail (Solutions Page)
      - Group Item (About Page)
   7. Animations
   8. Utility Classes (group-logo, icon-circle, text colors, etc.)
   9. Responsiveness (Media Queries)
   ========================================================================== */

/* ==========================================================================
   1. Variables & Global Settings (:root)
   ========================================================================== */
   :root {
    /* Brand Colors */
    --cor-laranja: #FB5E37; /* Mais vibrante */
    --cor-laranja-hover: #E0502D;
    --cor-laranja-rgb: 251, 94, 55;
    --cor-azul: #23274E; /* Azul branding padrão como secundário */
    --cor-azul-hover: #004494;
    --cor-azul-rgb: 0, 86, 179;
    --cor-azul-escuro-texto: #00205B; /* Azul iTRTech para texto/headings e fundo do hero-about no modo claro */
    --cor-azul-claro-fundo: #e7f1ff; /* Fundo sutil */
    --cor-verde-sucesso: #198754; /* Verde Bootstrap */
    --cor-amarelo-aviso: #ffc107; /* Amarelo Bootstrap */
  
    /* Bootstrap Overrides & Defaults */
    --bs-primary: var(--cor-laranja);
    --bs-primary-rgb: var(--cor-laranja-rgb);
    --bs-primary-hover: var(--cor-laranja-hover); /* Definido explicitamente */
    --bs-secondary: #6c757d;
    --bs-secondary-rgb: 108, 117, 125;
    --bs-success: var(--cor-verde-sucesso);
    --bs-info: #0dcaf0;
    --bs-warning: var(--cor-amarelo-aviso);
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-light-subtle: #fcfcfd;
    --bs-dark: #212529;
    --bs-dark-contrast: #1a1d20; /* Ligeiramente mais escuro, usado como fundo principal no dark mode */
    --bs-white: #fff;
    --bs-body-color: #343a40;
    --bs-body-bg: #fff;
    --bs-border-color: #dee2e6;
    --bs-border-color-translucent: rgba(0, 0, 0, 0.125);
    --bs-border-radius: 0.375rem;
    --bs-border-radius-lg: 0.5rem;
    --bs-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.06);
    --bs-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.1);
    --bs-shadow-lg: 0 1rem 2.5rem rgba(0, 0, 0, 0.12);
  
    /* Typography */
    --bs-body-font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    --bs-heading-font-family: var(--bs-body-font-family); /* Consistent font */
    --bs-body-line-height: 1.65;
    --bs-heading-color: var(--cor-azul-escuro-texto); /* Cor padrão para títulos */
  
    /* Transitions */
    --transition-base: all 0.25s ease-in-out;
  }
  
/* ==========================================================================
   2. Reset & Base Styles
   ========================================================================== */
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 100%;
  }
  
  body {
    font-family: var(--bs-body-font-family);
    margin: 0;
    color: var(--bs-body-color);
    background-color: var(--bs-body-bg);
    line-height: var(--bs-body-line-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
/* ==========================================================================
   3. Accessibility Themes (High Contrast, Dark Mode) - Consolidated
   ========================================================================== */

/* --- High Contrast Theme --- */
body.high-contrast {
  /* Variables */
  --bs-primary: #0056b3;
  --bs-primary-rgb: 0, 86, 179;
  --bs-secondary: #333;
  --bs-light: #f0f0f0;
  --bs-light-subtle: #fff; /* Ensure white backgrounds */
  --bs-dark: #000;
  --bs-dark-contrast: #000;
  --bs-body-color: #000 !important;
  --bs-body-bg: #ffffff !important;
  --bs-border-color: #000 !important; /* Strong black border */
  --bs-border-color-translucent: rgba(0,0,0,0.5) !important;
  --bs-heading-color: #000 !important;
  --cor-azul-escuro-texto: #000 !important; /* No high-contrast, esta variável se torna preta */
  --cor-laranja: #D94D1A !important; /* High contrast orange */
  --cor-laranja-rgb: 217, 77, 26;
  --cor-azul: #0056b3 !important; /* High contrast blue */
  --cor-azul-rgb: 0, 86, 179;

  /* Overrides */
  background-color: #fff !important;
  color: #000 !important;
}
body.high-contrast a:not(.btn) { color: #0000CD !important; text-decoration: underline !important; } /* Medium Blue links */

/* Estilos gerais para componentes no modo alto contraste */
body.high-contrast .bg-light:not(.hero-about), /* Exclui .hero-about daqui */
body.high-contrast .bg-white:not(.hero-about), /* Exclui .hero-about daqui */
body.high-contrast .bg-light-subtle:not(.hero-about), /* Exclui .hero-about daqui */
body.high-contrast .card,
body.high-contrast .navbar,
body.high-contrast .modal-content,
body.high-contrast .dropdown-menu,
body.high-contrast .group-item-card-inner {
  background-color: #fff !important;
  border: 2px solid #000 !important;
  color: #000 !important;
  box-shadow: none !important;
}

/* Seção Hero About específica para alto contraste */
body.high-contrast .hero-about {
  background-color: #000 !important; /* Fundo preto para alto contraste */
  border: 2px solid #000 !important; /* Borda para consistência, se desejado */
  box-shadow: none !important;
}
body.high-contrast .hero-about h1,
body.high-contrast .hero-about p.lead {
  color: #fff !important; /* Texto branco sobre o fundo preto */
  text-shadow: none !important; /* Remove sombra de texto */
}


body.high-contrast .text-muted,
body.high-contrast .text-white-50,
body.high-contrast .footer .small,
body.high-contrast .form-text { color: #333 !important; }
body.high-contrast input,
body.high-contrast select,
body.high-contrast textarea {
  background-color: #fff !important;
  color: #000 !important;
  border: 1px solid #000 !important;
}
body.high-contrast input::placeholder,
body.high-contrast textarea::placeholder { color: #555 !important; }
body.high-contrast .btn { border-width: 2px !important; }
body.high-contrast .btn-primary, body.high-contrast .btn-laranja { background-color: var(--cor-laranja) !important; color: #000 !important; border-color: #000 !important; }
body.high-contrast .btn-azul { background-color: var(--cor-azul) !important; color: #fff !important; border-color: #000 !important; }
body.high-contrast .btn-outline-primary, body.high-contrast .btn-laranja-outline, body.high-contrast .btn-recruiter { color: var(--cor-laranja) !important; border-color: var(--cor-laranja) !important; background: transparent !important; }
body.high-contrast .btn-azul-outline { color: var(--cor-azul) !important; border-color: var(--cor-azul) !important; background: transparent !important; }
body.high-contrast .navbar-light.bg-white { background-color: #fff !important; }
body.high-contrast .navbar-brand img { filter: none !important; }
body.high-contrast .footer.bg-dark { background-color: #fff !important; border-top: 2px solid #000 !important; }
body.high-contrast .footer, body.high-contrast .footer .footer-link, body.high-contrast .footer .social-icon { color: #000 !important; }
body.high-contrast hr { border-color: #000 !important; border-top-width: 2px !important; }
body.high-contrast .feature-icon, body.high-contrast .icon-circle { background-color: #ddd !important; border: 1px solid #000 !important; }
body.high-contrast .timeline::after { background-color: #000 !important; }
body.high-contrast .timeline-item::after { border-color: #000 !important; background-color: #fff !important; }
body.high-contrast .step-indicator { border-color: #000 !important; color: #000 !important; }
body.high-contrast .client-logo,
body.high-contrast .group-logo {
  filter: grayscale(0) contrast(3) !important;
  opacity: 1 !important;
}
body.high-contrast .group-item-card-inner .company-name, /* Garante texto preto nos cards do grupo */
body.high-contrast .group-item-card-inner .text-muted.small {
  color: #000 !important;
}


/* --- Dark Mode Theme --- */
body.dark-mode {
  /* Variables */
  --bs-primary: #ff875e; /* Lighter orange */
  --bs-primary-rgb: 255, 135, 94;
  --bs-secondary: #a0a8b0; /* Lighter gray */
  --bs-light: #343a40;
  --bs-light-subtle: #2c2f33; /* Main dark component background */
  --bs-dark: #f8f9fa; /* Light text */
  --bs-dark-contrast: #121212; /* Very dark page background */
  --bs-body-color: #dee2e6 !important; /* Light text */
  --bs-body-bg: var(--bs-dark-contrast) !important;
  --bs-border-color: #5a6268 !important; /* Darker border */
  --bs-border-color-translucent: rgba(255, 255, 255, 0.1) !important;
  --bs-heading-color: #f8f9fa !important; /* Light headings */
  --cor-azul-escuro-texto: #f8f9fa !important; /* ESSA VARIÁVEL É USADA NO FUNDO DO .hero-about, TORNANDO-O CLARO NO DARK MODE */
  --cor-laranja: #ff875e !important;
  --cor-laranja-rgb: 255, 135, 94;
  --cor-azul: #7a8ae4 !important; /* Lighter brand blue */
  --cor-azul-rgb: 122, 138, 228;
  --bs-shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.3);
  --bs-shadow: 0 0.4rem 0.8rem rgba(0, 0, 0, 0.4);
  --bs-shadow-lg: 0 1rem 2.5rem rgba(0, 0, 0, 0.5);

  /* Overrides */
  background-color: var(--bs-dark-contrast) !important;
  color: var(--bs-body-color) !important;
}
body.dark-mode img:not(.group-logo) { filter: brightness(.8) contrast(1.1); }
body.dark-mode a:not(.btn):not(.card-link):not(.footer-link):not(.skip-link):not(.group-item-link) { color: var(--bs-primary) !important; }
body.dark-mode .bg-white:not(.group-item-card-inner),
body.dark-mode .bg-light:not(.group-item-card-inner):not(.hero-about), /* Exclui .hero-about para que ele use --cor-azul-escuro-texto (que é claro) */
body.dark-mode .bg-light-subtle,
body.dark-mode .navbar-light,
body.dark-mode .card,
body.dark-mode .modal-content,
body.dark-mode .dropdown-menu {
  background-color: var(--bs-light-subtle) !important;
  color: var(--bs-body-color) !important;
  border-color: var(--bs-border-color) !important;
}
body.dark-mode .text-muted,
body.dark-mode .text-white-50,
body.dark-mode .footer .small,
body.dark-mode .form-text { color: var(--bs-secondary) !important; }
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
  background-color: var(--bs-light) !important;
  color: var(--bs-body-color) !important;
  border-color: var(--bs-border-color) !important;
}
body.dark-mode input::placeholder,
body.dark-mode textarea::placeholder { color: var(--bs-secondary) !important; }
body.dark-mode .btn-primary, body.dark-mode .btn-laranja { background-color: var(--cor-laranja) !important; color: #000 !important; border-color: var(--cor-laranja) !important; }
body.dark-mode .btn-azul { background-color: var(--cor-azul) !important; color: #000 !important; border-color: var(--cor-azul) !important; }
body.dark-mode .btn-outline-primary, body.dark-mode .btn-laranja-outline, body.dark-mode .btn-recruiter { color: var(--cor-laranja) !important; border-color: var(--cor-laranja) !important; }
body.dark-mode .btn-outline-primary:hover, body.dark-mode .btn-laranja-outline:hover, body.dark-mode .btn-recruiter:hover { background-color: var(--cor-laranja) !important; color: #000 !important; }
body.dark-mode .btn-azul-outline { color: var(--cor-azul) !important; border-color: var(--cor-azul) !important; }
body.dark-mode .btn-azul-outline:hover { background-color: var(--cor-azul) !important; color: #000 !important; }
body.dark-mode .btn-light { background-color: #495057 !important; border-color: #495057 !important; color: #fff !important; }
body.dark-mode .navbar-brand img { filter: brightness(0) invert(1); }
body.dark-mode .navbar-toggler-icon { filter: invert(1); }
body.dark-mode .footer.bg-dark { background-color: #18191a !important; border-top-color: var(--bs-border-color) !important; }
body.dark-mode .footer .footer-link, body.dark-mode .footer .social-icon { color: var(--bs-secondary) !important; }
body.dark-mode .footer .footer-link:hover, body.dark-mode .footer .social-icon:hover { color: var(--bs-light) !important; }
body.dark-mode hr { border-color: var(--bs-border-color) !important; }
body.dark-mode .feature-icon, body.dark-mode .icon-circle { background-color: rgba(var(--bs-primary-rgb), 0.15) !important; color: var(--bs-primary) !important; }
body.dark-mode .timeline::after { background-color: var(--bs-secondary) !important; }
body.dark-mode .timeline-item::after { border-color: var(--bs-secondary) !important; background-color: var(--bs-light-subtle) !important; }
body.dark-mode .step-indicator { border-color: var(--bs-primary) !important; color: var(--bs-primary) !important; background: transparent !important; }
body.dark-mode .client-logo { filter: invert(0.9) hue-rotate(180deg); opacity: 0.8; }
body.dark-mode .btn-close { filter: invert(1); }

/* Correção para contraste do texto no hero-about em dark mode */
body.dark-mode .hero-about h1,
body.dark-mode .hero-about p.lead {
    color: #212529 !important; /* Cor escura para o texto (preto/cinza escuro do tema claro) */
    text-shadow: none !important;
}

/* Ajustes para os cards do ecossistema iTRTech Group no dark mode */
body.dark-mode .group-item-card-inner {
  background-color: var(--bs-white) !important;
  border-color: var(--bs-border-color-translucent) !important;
}
body.dark-mode .group-item-card-inner .company-name,
body.dark-mode .group-item-card-inner .text-muted.small {
  color: #212529 !important;
}
body.dark-mode .group-item-card-inner .group-logo {
    filter: none !important;
}

} /* Fim de body.dark-mode */


/* ==========================================================================
   4. Base Elements (Typography, Links)
   ========================================================================== */
/* --- Typography --- */
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--bs-heading-font-family);
  font-weight: 700;
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: var(--bs-heading-color);
}

h1, .h1 { font-size: clamp(2rem, 1.6rem + 2vw, 3rem); }
h2, .h2 { font-size: clamp(1.75rem, 1.45rem + 1.5vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); }
h4, .h4 { font-size: 1.25rem; }
h5, .h5 { font-size: 1.1rem; }
h6, .h6 { font-size: 1rem; }

p {
  margin-top: 0;
  margin-bottom: 1.1rem;
}

.lead {
  font-size: 1.18rem;
  font-weight: 400;
}

/* --- Links --- */
a {
  color: var(--cor-azul);
  text-decoration: none;
  transition: var(--transition-base);
}
a:hover {
  color: var(--cor-azul-hover);
  text-decoration: underline;
}
a.link-secondary { color: var(--bs-secondary); }
a.link-secondary:hover { color: var(--bs-dark); }


/* ==========================================================================
   6. Components
   ========================================================================== */

/* --- Buttons --- */
.btn {
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: var(--transition-base);
  border-radius: var(--bs-border-radius);
  padding: 0.65rem 1.3rem;
  border-width: 1px;
  border-style: solid;
  text-decoration: none;
  box-shadow: var(--bs-shadow-sm);
  cursor: pointer;
}
.btn:focus-visible {
    outline: 3px solid rgba(var(--bs-primary-rgb), 0.4);
    outline-offset: 1px;
    box-shadow: var(--bs-shadow);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--bs-shadow);
  text-decoration: none;
}
.btn:active {
  transform: translateY(0);
  box-shadow: var(--bs-shadow-sm);
}
.btn:disabled, .btn.disabled {
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
    opacity: 0.65;
}

.btn-lg {
  padding: 0.8rem 1.8rem;
  font-size: 1.1rem;
  border-radius: var(--bs-border-radius-lg);
}

.btn-outline-primary {
  color: #23274E;
  border-color: #23274E;
  background-color: transparent;
  box-shadow: none;
}
.btn-outline-primary:hover {
  background-color: var(--bs-primary);
  border-color: var(--bs-primary);
  color: var(--bs-white);
  box-shadow: var(--bs-shadow-sm);
}

.btn-laranja {
  background-color: var(--cor-laranja);
  border-color: var(--cor-laranja);
  color: white;
}
.btn-laranja:hover,
.btn-laranja:focus {
  background-color: var(--cor-laranja-hover);
  border-color: var(--cor-laranja-hover);
  color: white;
}

.btn-laranja-outline {
  background-color: transparent;
  color: var(--cor-laranja);
  border-color: var(--cor-laranja);
  box-shadow: none;
}
.btn-laranja-outline:hover {
  background-color: var(--cor-laranja);
  color: white;
  box-shadow: var(--bs-shadow-sm);
}

.btn-azul {
  background-color: var(--cor-azul);
  border-color: var(--cor-azul);
  color: white;
}
.btn-azul:hover,
.btn-azul:focus {
  background-color: var(--cor-azul-hover);
  border-color: var(--cor-azul-hover);
  color: white;
}

.btn-azul-outline {
  background-color: transparent;
  color: var(--cor-azul);
  border-color: var(--cor-azul);
  box-shadow: none;
}
.btn-azul-outline:hover {
  background-color: var(--cor-azul);
  color: white;
  box-shadow: var(--bs-shadow-sm);
}

.btn-recruiter {
  border-color: var(--cor-laranja);
  color: var(--cor-laranja);
  background-color: transparent;
  box-shadow: none;
}
.btn-recruiter:hover,
.btn-recruiter.active {
  background-color: var(--cor-laranja);
  color: white;
  box-shadow: var(--bs-shadow-sm);
}


/* --- Navbar --- */
.navbar {
  z-index: 1030;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.navbar-brand img {
  height: 40px;
  width: auto;
  transition: transform 0.2s ease;
}
.navbar-brand:hover img {
    transform: scale(1.03);
}
.navbar .nav-link {
    font-weight: 500;
    color: var(--bs-secondary);
    transition: color 0.2s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--bs-primary);
}
.navbar .dropdown-menu {
    min-width: 180px;
    box-shadow: var(--bs-shadow);
    border: 1px solid var(--bs-border-color-translucent);
    border-radius: var(--bs-border-radius-lg);
    margin-top: 0.5rem;
}
.navbar .dropdown-item {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.navbar .dropdown-item i {
    width: 20px;
    text-align: center;
}
.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    color: var(--bs-primary);
    font-weight: 500;
}


/* --- Hero Sections --- */
.hero-section {
  background: linear-gradient(135deg, var(--bs-body-bg) 60%, var(--cor-azul-claro-fundo) 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
.hero-section h1 {
  color: var(--bs-heading-color);
}
.hero-section h1 .text-primary {
    color: var(--bs-primary) !important;
}
.hero-section p.lead {
    color: var(--bs-secondary);
    max-width: 650px;
}
.hero-section img {
    max-width: 100%;
    height: auto;
}

.hero-empresas {
  background-color: var(--cor-azul-escuro-texto);
  padding: 6rem 0;
  color: var(--bs-white);
}
.hero-empresas h1 {
    color: var(--bs-white);
}
.hero-empresas p.lead {
    color: rgba(255, 255, 255, 0.85);
    max-width: 700px;
}
.hero-empresas .highlight-orange {
    color: var(--cor-laranja);
    font-weight: 700;
}
.hero-empresas img {
    border-radius: var(--bs-border-radius-lg);
    box-shadow: var(--bs-shadow-lg);
}

/* About Page Hero - Padrão (Modo Claro) */
.hero-about {
  background-color: var(--cor-azul-escuro-texto); /* Fundo azul escuro no modo claro */
  padding: 5rem 0;
}
.hero-about h1, .hero-about p.lead {
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    color: var(--bs-white); /* Texto branco no modo claro */
}
.hero-about p.lead {
    color: rgba(255, 255, 255, 0.85);
}


/* --- Section Title & Subtitle --- */
.section-title {
    color: var(--bs-heading-color);
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}
.section-subtitle {
    color: var(--bs-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}
.section-intro {
    color: var(--bs-secondary);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}


/* --- Cards --- */
.card {
    transition: var(--transition-base);
    border-radius: var(--bs-border-radius-lg);
    border: 1px solid var(--bs-border-color);
    box-shadow: var(--bs-shadow-sm);
    height: 100%;
    background-color: var(--bs-light);
}

.testimonial-card {
    background-color: var(--bs-light);
    border-left: 4px solid var(--bs-primary);
}
.testimonial-card .blockquote {
    font-size: 0.95rem;
}
.testimonial-card .fa-star { color: var(--bs-warning); }
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--bs-shadow);
}
.card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-grow: 1;
}
.card-link:hover .card {
    transform: translateY(-5px);
    box-shadow: var(--bs-shadow-lg);
}


.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--bs-shadow-lg) !important;
}
.benefit-card .feature-icon {
    width: 60px; height: 60px; display: inline-flex; align-items: center; justify-content: center;
    background-color: rgba(var(--bs-primary-rgb), 0.1);
    border-radius: 0.75rem;
    color: var(--bs-primary);
    margin-bottom: 1.5rem;
}
.benefit-card .card-title-blue {
    color: var(--cor-azul);
    font-weight: 600;
}

.card-pillar {
    border: none;
    background-color: transparent;
    transition: transform 0.2s ease-in-out;
    box-shadow: none;
}
.card-pillar:hover {
    transform: translateY(-5px);
}

.form-card {
    border-radius: var(--bs-border-radius-lg);
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    box-shadow: var(--bs-shadow);
}


/* --- Newsletter Form --- */
#newsletterForm .form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}


/* --- Client Logo Carousel --- */
#clientCarousel {
  position: relative;
}
#clientCarousel .carousel-control-prev,
#clientCarousel .carousel-control-next {
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  width: 3rem;
  height: 3rem;
  background-color: rgba(0, 0, 0, 0.35);
  border-radius: 50%;
  opacity: 0.75;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  z-index: 5;
}
#clientCarousel .carousel-control-prev:hover,
#clientCarousel .carousel-control-next:hover {
  opacity: 1;
  background-color: rgba(0, 0, 0, 0.55);
}
#clientCarousel .carousel-control-prev { left: -15px; }
#clientCarousel .carousel-control-next { right: -15px; }
#clientCarousel .carousel-control-prev-icon,
#clientCarousel .carousel-control-next-icon {
  background-size: 60%, 60%;
  filter: brightness(0) invert(1);
}
#clientCarousel .carousel-inner {
   padding-left: 40px;
   padding-right: 40px;
}
#clientCarousel .carousel-indicators {
  position: static;
  margin-top: 1.5rem;
  margin-bottom: 0;
}
#clientCarousel .carousel-indicators [data-bs-target] {
   background-color: #adb5bd;
   opacity: 0.7;
   height: 4px;
   width: 25px;
   margin: 0 4px;
   border: none;
   border-radius: 2px;
   transition: opacity 0.2s ease;
}
#clientCarousel .carousel-indicators .active {
  background-color: var(--bs-primary);
  opacity: 1;
}
.client-logo {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-height: 60px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.75;
  transition: var(--transition-base);
  padding: 5px;
}
.client-logo:hover,
.client-logo:focus {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.08);
}
.client-logos-row {
    min-height: 100px;
}


/* --- Forms (General Styling) --- */
.form-control, .form-select {
    min-height: calc(1.6em + 1.2rem + 2px);
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--bs-border-radius);
    border: 1px solid var(--bs-border-color);
    transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}
.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
    outline: 0;
}
.form-label {
    font-weight: 500;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}
.form-check-input {
    border-color: var(--bs-border-color);
}
.form-check-input:checked {
     background-color: var(--bs-primary);
     border-color: var(--bs-primary);
}
.form-check-input:focus {
     box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
     border-color: var(--bs-primary);
}
.form-check-label {
    font-size: 0.9rem;
}
.form-text {
    font-size: 0.8rem;
    color: var(--bs-secondary);
}
.was-validated .form-control:invalid, .form-control.is-invalid {
    border-color: var(--bs-danger);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(.375em + .1875rem) center;
    background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}
.was-validated .form-control:invalid:focus, .form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-danger-rgb), 0.25);
}
.invalid-feedback { display: none; width: 100%; margin-top: .25rem; font-size: .875em; color: var(--bs-danger); }
.was-validated :invalid ~ .invalid-feedback { display: block; }


/* --- Floating Action Buttons (FAB) --- */
.fab-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1025;
}
.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--bs-shadow);
  border: none;
  cursor: pointer;
  transition: var(--transition-base);
}
.fab-accessibility { background-color: var(--cor-azul); }
.fab-help { background-color: var(--cor-verde-sucesso); }

.fab:hover {
  transform: scale(1.08) translateY(-3px);
  box-shadow: var(--bs-shadow-lg);
}
.fab-accessibility:hover { background-color: var(--cor-azul-hover); }
.fab-help:hover { background-color: darken(var(--cor-verde-sucesso), 10%); }

.fab i { font-size: 1.4rem; }


/* --- Footer --- */
.footer {
  background-color: var(--bs-dark-contrast);
  color: rgba(255, 255, 255, 0.65);
  padding-top: 3rem;
  padding-bottom: 2rem;
}
.footer h6 {
    color: var(--bs-white);
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
}
.footer .small { font-size: 0.88rem; }
.footer .footer-link {
    color: rgba(255, 255, 255, 0.6) !important;
    transition: color 0.2s ease;
    text-decoration: none;
    display: inline-block;
    padding: 0.1rem 0;
}
.footer .footer-link:hover,
.footer .footer-link:focus {
  color: rgba(255, 255, 255, 0.95) !important;
  text-decoration: underline;
}
.footer .social-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6) !important;
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer .social-icon:hover,
.footer .social-icon:focus {
  color: rgba(255, 255, 255, 0.95) !important;
  transform: scale(1.1) translateY(-2px);
}
.footer hr { border-color: rgba(255, 255, 255, 0.15); }
.footer .text-white-50 { color: rgba(255, 255, 255, 0.5) !important; }


/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -150px;
  left: 0.5rem;
  background: var(--bs-primary);
  color: white;
  padding: 10px 18px;
  z-index: 1100;
  transition: top 0.3s ease-in-out;
  border-bottom-right-radius: var(--bs-border-radius);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus {
  top: 0.5rem;
  outline: none;
  box-shadow: var(--bs-shadow-lg);
  text-decoration: none;
}


/* --- Modals --- */
.modal-content {
    border-radius: var(--bs-border-radius-lg);
    border: none;
    box-shadow: var(--bs-shadow-lg);
    background-color: var(--bs-body-bg);
}
.modal-header {
    border-bottom: 1px solid var(--bs-border-color);
    padding: 1rem 1.5rem;
}
.modal-body { padding: 1.5rem; }
.modal-footer {
    border-top: 1px solid var(--bs-border-color);
    padding: 1rem 1.5rem;
}
.modal-title {
    font-weight: 600;
    color: var(--bs-heading-color);
}


/* --- Spinner --- */
.btn .spinner-border {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}
.btn .spinner-border.d-none { display: none; }


/* --- Timeline (About Page) --- */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}
.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--cor-azul-escuro-texto);
  top: 20px;
  bottom: 20px;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}
.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}
.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--bs-body-bg);
  border: 3px solid var(--cor-azul-escuro-texto);
  border-radius: 50%;
  top: 28px;
  z-index: 1;
}
.timeline-item.left { left: 0; }
.timeline-item.right { left: 50%; }
.timeline-item.left::after { right: -12px; }
.timeline-item.right::after { left: -12px; }

.timeline-content {
  padding: 1.25rem 1.5rem;
  background-color: var(--bs-body-bg);
  position: relative;
  border-radius: var(--bs-border-radius);
  box-shadow: var(--bs-shadow-sm);
  border: 1px solid var(--bs-border-color);
}
.timeline-item.left .timeline-content { text-align: right; }
.timeline-item.right .timeline-content { text-align: left; }
.timeline-content h3 {
  color: var(--bs-primary);
  margin-top: 0;
  font-size: 1.15rem;
}

@media screen and (max-width: 768px) {
  .timeline::after { left: 20px; margin-left: -2px; }
  .timeline-item { width: 100%; padding-left: 50px; padding-right: 15px; }
  .timeline-item.left, .timeline-item.right { left: 0%; text-align: left; }
  .timeline-item.left::after, .timeline-item.right::after { left: 9px; }
  .timeline-item.left .timeline-content, .timeline-item.right .timeline-content { text-align: left; }
}


/* --- Process Trail (Solutions Page) --- */
.process-trail-row {
  position: relative;
}
.process-trail-row::before {
  content: "";
  position: absolute;
  top: 35px;
  left: calc(12.5% + 10px);
  right: calc(12.5% + 10px);
  height: 2px;
  background-color: var(--bs-border-color);
  z-index: 0;
}

.process-step-col {
  z-index: 1;
}

.process-step {
  text-align: center;
  padding: 1rem 0.5rem;
}

.step-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--bs-primary);
  color: var(--bs-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background-color: var(--bs-body-bg);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.process-step:hover .step-indicator {
  background-color: var(--bs-primary);
  color: var(--bs-white);
}

.process-step h3 {
  font-size: 1.1rem;
}

@media (max-width: 991.98px) {
  .process-trail-row::before {
    left: calc(25% + 10px);
    right: calc(25% + 10px);
  }
}
@media (max-width: 767.98px) {
  .process-trail-row::before { display: none; }
  .process-step-col { margin-bottom: 1.5rem; }
}


/* --- Group Item (About Page) --- */
a.group-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
  transition: var(--transition-base);
}

.group-item-card-inner {
  transition: var(--transition-base);
  background-color: var(--bs-light);
  border-radius: var(--bs-border-radius);
  box-shadow: var(--bs-shadow-sm);
}

a.group-item-link:hover .group-item-card-inner,
a.group-item-link:focus .group-item-card-inner {
  transform: translateY(-5px);
  box-shadow: var(--bs-shadow-lg) !important;
}

.group-logo {
  height: 50px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
}
.company-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bs-heading-color);
}


/* ==========================================================================
   7. Animations
   ========================================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in-up,
.animate-fade-in-right {
  opacity: 0;
  animation-duration: 0.8s;
  animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
  animation-fill-mode: forwards;
}
.animate-fade-in-up { animation-name: fadeInUp; }
.animate-fade-in-right { animation-name: fadeInRight; }

.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.animate-delay-3 { animation-delay: 0.6s; }


/* ==========================================================================
   8. Utility Classes
   ========================================================================== */
.bg-light-subtle { background-color: var(--bs-light-subtle) !important; }

.icon-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5rem;
  box-shadow: var(--bs-shadow-sm);
}
.icon-circle i { font-size: 1.8rem; }


.text-laranja { color: var(--cor-laranja) !important; }
.text-azul { color: var(--cor-azul) !important; }

.hover-link:hover {
    color: var(--bs-primary) !important;
}


/* ==========================================================================
   9. Responsiveness (Media Queries)
   ========================================================================== */

@media (min-width: 992px) {
  .py-lg-6 { padding-top: 6rem !important; padding-bottom: 6rem !important; }
  .hero-section, .hero-empresas, .hero-about { padding: 6rem 0; }
}

@media (max-width: 991.98px) {
    .hero-section, .hero-empresas, .hero-about {
        padding: 4rem 0;
        text-align: center;
    }
    .hero-section .justify-content-lg-start,
    .hero-empresas .justify-content-lg-start,
    .hero-about .text-lg-start {
        justify-content: center !important;
        text-align: center !important;
    }
    .hero-about img { display: none !important; }

    #clientCarousel .carousel-control-prev { left: 5px; }
    #clientCarousel .carousel-control-next { right: 5px; }
    #clientCarousel .carousel-inner { padding-left: 35px; padding-right: 35px; }
}

@media (max-width: 767.98px) {
  .footer .text-md-start,
  .footer .text-lg-end .d-flex {
    text-align: center !important;
    justify-content: center !important;
  }
  .footer .social-icon-column {
      text-align: center !important;
      margin-top: 1.5rem;
  }
  .footer .offset-lg-1 { margin-left: 0 !important; }
  .footer .gy-4 > div { margin-bottom: 1.5rem; }

   #clientCarousel .carousel-control-prev,
   #clientCarousel .carousel-control-next {
        width: 2.5rem;
        height: 2.5rem;
        display: none;
   }
   #clientCarousel .carousel-inner { padding-left: 15px; padding-right: 15px; }
}

@media (max-width: 575.98px) {
    body { line-height: 1.6; }

    .btn-lg {
        padding: 0.7rem 1.4rem;
        font-size: 1rem;
    }
    .hero-section .d-sm-flex,
    .hero-empresas .d-sm-flex {
        flex-direction: column;
        align-items: stretch;
    }
     .hero-section .d-sm-flex > .btn,
     .hero-empresas .d-sm-flex > .btn {
        width: 100%;
        margin-bottom: 0.75rem;
     }
      .hero-section .d-sm-flex > .btn:last-child,
      .hero-empresas .d-sm-flex > .btn:last-child {
         margin-bottom: 0;
      }


    .fab-container {
        bottom: 1rem;
        right: 1rem;
    }
    .fab {
        width: 50px;
        height: 50px;
    }
    .fab i { font-size: 1.2rem; }

    .hero-section h1, .hero-empresas h1, .hero-about h1 { font-size: clamp(1.8rem, 1.5rem + 1.5vw, 2.5rem); }
    .hero-section .lead, .hero-empresas .lead, .hero-about .lead { font-size: 1.05rem; }

    .modal-body, .modal-header, .modal-footer { padding: 1rem; }
}