/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    /* Cores suaves para badges de ícone */
    --badge-soft-bg: #e7f0ff;   /* azul clarinho */
    --badge-soft-fg: #0d6efd;   /* azul principal */
}

/* ==========================
   Page transitions & scroll reveal
   ========================== */
/* Page fade */
body.page-fade-in { opacity: 1; animation: pageFadeIn 2.0s ease-out both; }
body.page-fade-out { opacity: 0; transition: opacity 1.0s ease-in; }
@keyframes pageFadeIn { from { opacity: 0 } to { opacity: 1 } }

/* Reveal baseline */
.reveal, .animate-on-scroll { opacity: 0; transform: translateY(18px); will-change: transform, opacity; }
.reveal.animated, .animate-on-scroll.animated { opacity: 1; transform: none; transition: transform 1.5s ease, opacity 1.5s ease; }

/* Optional variants */
.reveal.fade-in-left.animated { transform: none; }
.reveal.fade-in-right.animated { transform: none; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    transition: color 0.3s ease, background-color 0.3s ease, box-shadow .3s ease, transform .3s ease;
}

a:hover {
    color: var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

p {
    margin-bottom: 1rem;
}

/* Header */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: background-color .2s ease, box-shadow .2s ease; /* evita transição de tamanho */
}

/* Estado fixo ao rolar sem alterar altura/padding (evita tremor) */
.navbar.navbar-scrolled {
    background-color: #ffffff !important; /* mantém header branco para não reflow */
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-brand img {
    margin-right: 10px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    text-decoration: none;
}

/* Remover underline/linha azul dos links do menu */
.navbar .nav-link,
.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .nav-link:active {
    text-decoration: none !important;
    outline: none !important;
    box-shadow: none !important;
}
.navbar .nav-link.active,
.navbar .nav-link.show {
    border-bottom: 0 !important;
    text-decoration: none !important;
}
/* Caso use nav-underline do Bootstrap, remove a borda inferior */
.nav-underline .nav-link,
.nav-underline .nav-link.active {
    border-bottom: 0 !important;
}

.nav-link {
    position: relative;
}

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

.nav-link:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover:after,
.nav-link.active:after {
    width: 70%;
}

/* Hero Slideshow */
.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    animation: heroSlideshow 12s infinite; /* 4 slides * 3s each = 12s total */
    transition: opacity 1s ease-in-out;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 3s; }
.hero-slide:nth-child(3) { animation-delay: 6s; }
.hero-slide:nth-child(4) { animation-delay: 9s; }

@keyframes heroSlideshow {
    0% { opacity: 0; transform: scale(1); }
    10% { opacity: 1; }
    25% { opacity: 1; }
    35% { opacity: 0; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.1); }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)), 
                url('../images/hero-bg.jpg') center/cover no-repeat fixed;
    background-attachment: fixed;
    color: white;
    padding: 5rem 1rem;
    text-align: center;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
}

.hero p.lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Page Header */
.page-header {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(rgba(152, 158, 163, 0.9), rgba(119, 119, 121, 0.9)), url('../images/page-header-bg.jpg') center/cover no-repeat;
    margin-bottom: 4rem;
}

.page-header h1 {
    color: white;
    font-size: 3rem;
    font-weight: 800;
}

/* CTA logo abaixo do subtítulo no header da página Sobre */
.page-header .about-cta {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}
.page-header .about-cta .btn {
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(0,0,0,.15);
}
@media (max-width: 575.98px) {
    .page-header .about-cta { margin-top: .75rem; }
    .page-header .about-cta .btn { padding: .6rem 1.1rem; font-size: 1rem; }
}

/* Variante com as cores da marca para a página Sobre/Quem Somos */
.page-header-brand {
    background:
      linear-gradient(135deg, rgba(43,110,245,0.95) 0%, rgba(226,27,27,0.95) 100%),
      linear-gradient(rgba(152, 158, 163, 0.9), rgba(119, 119, 121, 0.9));
    color: #fff;
}
.page-header-brand h1,
.page-header-brand .lead { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.page-header-brand .lead { opacity: .95; }

/* Feature Box */
.feature-box {
    background: white;
    border-radius: 10px;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-box i {
    color: var(--primary-color);
}

/* Services */
.service-card {
    height: 100%;
    transition: all 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-card .card-body {
    padding: 2rem;
}

.service-card i {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

/* Accent Cards (Missão/Visão) */
.accent-card {
    position: relative;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.accent-card h4 { color: #222; font-weight: 700; }
.accent-card p { color: #4a4a4a; margin: 0; }

.accent-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.accent-red::before { background: #dc3545; }
.accent-blue::before { background: #0d6efd; }

/* About Section fine-tuning (mockup fidelity) */
.about-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.about-section h2.display-5 {
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.about-section p {
    font-size: 1rem;
    color: #3a3a3a;
    margin-bottom: 1rem;
}

.about-section .accent-card {
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-radius: 14px;
}

.about-section .accent-card + .accent-card {
    margin-top: 1.25rem;
}

.about-section .btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.25);
}

.about-section .btn-danger:hover {
    background-color: #bb2d3b;
    border-color: #b02a37;
}

.about-section .btn-outline-secondary {
    color: #6c757d;
    border-color: #d0d5da;
    background: #fff;
}

.about-section .btn-outline-secondary:hover {
    color: #343a40;
    background-color: #f8f9fa;
    border-color: #c5cbd1;
}

/* Contact Form */
.contact-form .form-control {
    padding: 12px 15px;
    margin-bottom: 1.5rem;
    border: 1px solid #e1e1e1;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

/* ===================== */
/* Services (mockup)     */
/* ===================== */
.services-hero { padding-top: 3rem; padding-bottom: 2rem; }
.services-hero .service-section-pill {
    padding: .4rem .85rem;
    border-color: #e6e9ef !important;
}
.gradient-text {
    background: linear-gradient(90deg, #0d6efd 0%, #6f42c1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.services-hero-sub { max-width: 820px; }

/* Card rico de serviço */
.service-pro {
    position: relative;
    background: #fff;
    border: 1px solid #cfd4da; /* contorno cinza mais visível */
    border-radius: 18px;
    padding: 1.35rem;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-pro:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 16px 40px rgba(0,0,0,0.08); 
    border-color: #b8bec6; /* leve destaque no hover */
}

.service-badge {
    position: absolute;
    top: 14px; right: 14px;
    font-size: .8rem;
    padding: .25rem .55rem;
    border-radius: 999px;
}

.icon-wrap {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
}
.icon-wrap.gradient {
    width: 64px; height: 64px;
    display: grid; place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #2b6ef5, #e21b1b);
    color: #fff;
    box-shadow: 0 10px 20px rgba(43,110,245,.25);
}
.icon-wrap i { font-size: 22px; }

.service-title { font-weight: 700; margin: 8px 0 6px; }
.service-desc { color: #5b6773; margin-bottom: 12px; }

.service-list { list-style: none; padding-left: 0; margin: 0 0 12px; }
.service-list li { display: flex; align-items: center; gap: .6rem; color: #4b5563; }
.service-list i { background: #eaf8ee; border-radius: 8px; width: 22px; height: 22px; display: inline-grid; place-items: center; }
.service-meta .metric { color: #6b7681; font-size: .95rem; }
.service-meta .metric strong { display: block; color: #111827; font-size: 1.05rem; }

.service-pro .btn.btn-light {
    border: 1px solid #e7eaf0;
    border-radius: 10px;
    font-weight: 600;
    padding: .6rem .9rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

/* ===================== */
/* Métricas (cards)      */
/* ===================== */
.metric-card { border: 1px solid #eef0f4; border-radius: 16px; }
.metric-card .card-body { padding: 1.5rem; }
.metric-icon {
  width: 56px; height: 56px; display: inline-grid; place-items: center;
  border-radius: 16px; background: var(--badge-soft-bg); color: var(--badge-soft-fg); font-size: 24px;
  box-shadow: 0 6px 16px rgba(13,110,253,.12);
}
.metric-card h3 { font-weight: 800; margin-bottom: .25rem !important; }
.metric-card small { display: block; color: #5b6773 !important; }

/* Motion: icons float + pulse softly; cards lift slightly on reveal */
.pulse-float { animation: floatY 3.2s ease-in-out infinite, iconPulse 2.6s ease-in-out infinite; }
.metric-card.reveal.animated { transform: translateY(-4px); transition: transform .8s ease, box-shadow .8s ease; }

@keyframes floatY {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}
@keyframes iconPulse {
  0%,100% { box-shadow: 0 6px 16px rgba(13,110,253,.12); }
  50% { box-shadow: 0 10px 24px rgba(13,110,253,.22); }
}

/* Choose Us (Por que escolher) */
.choose-us-section h2 { margin-bottom: 1.25rem; }
.why-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }

/* Ícone em badge para 'Nossos Valores' */
.value-icon {
  width: 44px; height: 44px;
  display: inline-grid; place-items: center;
  border-radius: 12px;
  background: var(--badge-soft-bg); color: var(--badge-soft-fg); font-size: 18px;
  box-shadow: 0 6px 16px rgba(13,110,253,.10);
}
@media (max-width: 575.98px) {
  .value-icon { width: 38px; height: 38px; font-size: 16px; border-radius: 10px; }
}

/* Modificadores de cor para ícones (opcional) */
.icon-soft-danger { --badge-soft-bg: #ffe9ea; --badge-soft-fg: #e21b1b; }
.icon-soft-primary { --badge-soft-bg: #e7f0ff; --badge-soft-fg: #0d6efd; }
.icon-soft-success { --badge-soft-bg: #e8f7ee; --badge-soft-fg: #198754; }
.icon-soft-warning { --badge-soft-bg: #fff6e5; --badge-soft-fg: #b96b00; }

.why-icon {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #eef4ff;
    color: #0d6efd;
    font-size: 24px;
}

/* Responsividade e acessibilidade */
@media (max-width: 576px) {
    .service-pro { padding: 1rem; border-radius: 16px; }
    .icon-wrap.gradient { width: 56px; height: 56px; border-radius: 12px; }
    .service-title { font-size: 1.05rem; }
    .service-desc { font-size: .95rem; }
    .service-list { gap: .4rem; }
    .service-list li { font-size: .95rem; }
    .service-meta { gap: .6rem; }
    .service-meta .metric { padding: .5rem .6rem; }
    .why-card { padding: 1.25rem !important; }
    .why-icon { width: 52px; height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
    .service-pro, .why-card { transition: none; }
}

/* ==========================
   Parceiros (logos)
   ========================== */
.partners-section .partners-logos { row-gap: 1.5rem; }
.partner-logo-wrap {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 14px;
  padding: 16px 14px;
  height: 100%;
  min-height: 110px; /* padroniza altura da caixa de logo */
  display: grid; place-items: center;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.partner-logo {
  max-height: 58px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform .2s ease;
}
.partner-logo-large { max-height: 72px; }
.partner-logo-wrap:hover { box-shadow: 0 12px 28px rgba(0,0,0,.06); transform: translateY(-2px); border-color: #e3e7ee; }
.partner-logo-wrap:hover .partner-logo { transform: scale(1.02); }

@media (max-width: 991.98px) {
  .partner-logo { max-height: 50px; }
  .partner-logo-large { max-height: 64px; }
}
@media (max-width: 575.98px) {
  .partner-logo { max-height: 44px; }
  .partner-logo-large { max-height: 56px; }
}

/* ==========================
   Hero background animation (pan + subtle zoom)
   ========================== */
.hero-anim {
  /* Sobrescreve o shorthand inline do background da section */
  background-position: 100% 50% !important; /* inicia à direita */
  background-size: 105% auto !important;   /* mais próximo da seção para reduzir corte */
  will-change: background-position, background-size;
  animation: heroPan 22s ease-in-out infinite alternate,
             heroZoom 44s ease-in-out infinite;
}

@keyframes heroPan {
  0%   { background-position: 100% 50%; }
  100% { background-position:   0% 50%; }
}

@keyframes heroZoom {
  0%, 100% { background-size: 100% auto; }
  50%       { background-size: 112% auto; }
}

@media (max-width: 767.98px) {
  .hero-anim {
    /* movimento um pouco mais lento no mobile */
    animation-duration: 26s, 52s;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Mantém a animação sempre ativa conforme solicitado */
  .hero-anim { animation: heroPan 22s ease-in-out infinite alternate, heroZoom 44s ease-in-out infinite; }
}

/* ==========================
   Hero Slideshow (efeito slide)
   ========================== */
.hero-slideshow { 
    position: relative; 
    overflow: hidden; 
    background-color: #000; 
    min-height: 100vh;
    display: flex;
    align-items: center;
    width: 100%;
}
.hero-slideshow .hero-slides { 
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; 
    margin: 0;
    padding: 0;
}
.hero-slideshow::before {
    content: ""; 
    position: absolute; 
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55));
}
.hero-slideshow .hero-slide {
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-position: center center; 
    background-size: cover; 
    background-repeat: no-repeat;
    opacity: 0;
    animation: heroSlideCycle 30s infinite;
    will-change: opacity, transform;
    transform: scale(1);
    transition: transform 10s ease-in-out;
}
.hero-slideshow .hero-slide:first-child { 
    opacity: 1; 
}
.hero-slideshow .hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Responsive image positioning */
.hero-slideshow .hero-slide:nth-child(1) { 
    animation-delay: 0s; 
    background-position: center center;
}
.hero-slideshow .hero-slide:nth-child(2) { 
    animation-delay: 6s; 
    background-position: center center;
}
.hero-slideshow .hero-slide:nth-child(3) { 
    animation-delay: 12s; 
    background-position: center center;
}
.hero-slideshow .hero-slide:nth-child(4) { 
    animation-delay: 18s; 
    background-position: center center;
}
.hero-slideshow .hero-slide:nth-child(5) { 
    animation-delay: 24s; 
    background-position: center center;
}

/* Animation for zoom effect */
@keyframes zoomInOut {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Adjust animation timing for better flow */
@keyframes heroSlideCycle {
    0% { opacity: 0; transform: scale(1); }
    3% { opacity: 1; }
    20% { opacity: 1; transform: scale(1.05); }
    23% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 0; transform: scale(1.1); }
}

/* Mobile responsiveness */
@media (max-width: 767.98px) {
    .hero-slideshow {
        min-height: 80vh;
    }
    .hero-slideshow .hero-slide {
        background-position: center top;
    }
}

@keyframes heroSlideCycle {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  20%  { opacity: 1; }  
  25%  { opacity: 0; }  
  100% { opacity: 0; }
}

/* CTA fixado na base do hero */
.hero-bottom-cta {
    position: absolute;
    left: 0; right: 0; bottom: 28px;
    z-index: 2; /* acima do overlay (::before) */
    display: flex; justify-content: center; align-items: center;
    padding: 0 16px;
    pointer-events: none; /* evita bloquear interações do conteúdo */
}
.hero-bottom-cta .btn { pointer-events: auto; }
.btn-portfolio {
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(226,27,27,.35);
}
.btn-portfolio:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(226,27,27,.45); }

@keyframes heroSlideCycle {
  0%   { opacity: 0; transform: translateX(10%); }
  5%   { opacity: 1; transform: translateX(0); }
  40%  { opacity: 1; transform: translateX(0); }  /* permanece visível por mais tempo */
  45%  { opacity: 0; transform: translateX(-10%); } /* inicia fade-out mais tarde para sobrepor com o próximo */
  100% { opacity: 0; transform: translateX(-10%); }
}

@media (max-width: 767.98px) {
  .hero-slideshow .hero-slide { background-position: center right; }
  .hero-bottom-cta { bottom: 20px; }
}
/* ==========================
   Hero badges (right + animations)
   ========================== */
.hero-badges {
  width: 100%;
}
.hero-badges .badge,
.hero-badges-rail .badge {
  border-radius: 16px;
  padding: .95rem 1.25rem;
  font-size: 1.2rem;
  box-shadow: 0 14px 32px rgba(0,0,0,.22);
}
.hero-badges .badge i,
.hero-badges-rail .badge i { font-size: 1.2em; }

.badge-animate {
  opacity: 0;
  transform: translateY(18px) scale(.96);
  will-change: transform, opacity;
  /* 1) Bounce de entrada (1x)  2) Pulso contínuo  3) Piscar contínuo */
  animation-name: badgeBounce, badgePulse, badgeBlink;
  animation-duration: .85s, 1.8s, 1.2s;
  animation-timing-function: cubic-bezier(.22,1.02,.36,1), ease-in-out, ease-in-out;
  animation-fill-mode: forwards, none, none;
  animation-iteration-count: 1, infinite, infinite;
  animation-delay: 0s, .95s, .95s; /* por padrão, bounce sem atraso; pulso e piscar iniciam depois */
}
.badge-animate.delay-1 { animation-delay: .10s, .95s, .95s; }
.badge-animate.delay-2 { animation-delay: .25s, .95s, .95s; }
.badge-animate.delay-3 { animation-delay: .40s, .95s, .95s; }

@keyframes badgeBounce {
  0% { opacity: 0; transform: translateY(18px) scale(.96); }
  60% { opacity: 1; transform: translateY(-6px) scale(1.02); }
  80% { transform: translateY(3px) scale(.995); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes badgePulse {
  0%, 100% { transform: translateY(0) scale(1); box-shadow: 0 14px 32px rgba(0,0,0,.22); }
  50% { transform: translateY(0) scale(1.08); box-shadow: 0 18px 42px rgba(0,0,0,.28); }
}

@keyframes badgeBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
  .badge-animate { animation: none !important; opacity: 1; transform: none; }
}

/* ==========================
   Página Contato / Orçamento
   ========================== */
.contact-hero { background: #f7f9fc; }
.contact-badge { border-radius: 999px; }
.title-highlight { color: #e21b1b; }

.contact-aside-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.06);
}
.aside-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: inline-grid; place-items: center;
    background: #ffe9ea; color: #e21b1b; font-size: 20px;
}
.aside-icon.soft { background: rgba(255,255,255,.25); color: #fff; }

.gradient-card {
    background: linear-gradient(135deg, #2b6ef5, #e21b1b);
    color: #fff;
}

.contact-form-card {
    background: #fff;
    border: 1px solid #eef0f4;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(0,0,0,0.07);
}

.btn-danger-brand {
    background: #e21b1b; color: #fff; border: 0; padding: .75rem 1rem; border-radius: 10px;
    box-shadow: 0 8px 22px rgba(226,27,27,.25);
}
.btn-danger-brand:hover { background: #c81414; color: #fff; }

.contact-form-card .form-control, .contact-form-card .form-select {
    background: #f6f8fb; border: 1px solid #e7ebf0; border-radius: 10px;
}
.contact-form-card .form-control:focus, .contact-form-card .form-select:focus {
    border-color: #2b6ef5; box-shadow: 0 0 0 .2rem rgba(43,110,245,.15);
}

/* ==========================
   Social buttons – Global (todas as telas)
   ========================== */
/* Fundo de marca e borda */
.social-wa { background: #25D366 !important; border-color: #25D366 !important; color: #fff !important; }
.social-li { background: #0A66C2 !important; border-color: #0A66C2 !important; color: #fff !important; }
.social-fb { background: #1877F2 !important; border-color: #1877F2 !important; color: #fff !important; }
.social-ig {
  background: radial-gradient(34% 45% at 30% 110%, #FEDC68 0%, rgba(254,220,104,0) 60%),
              radial-gradient(50% 75% at 0% 50%, #F56040 0%, rgba(245,96,64,0) 60%),
              radial-gradient(60% 75% at 100% 50%, #833AB4 0%, rgba(131,58,180,0) 60%),
              linear-gradient(135deg, #405DE6 0%, #C13584 50%, #E1306C 100%) !important;
  border-color: transparent !important;
  color: #fff !important;
}
/* Ícones sempre brancos */
.social-wa i, .social-li i, .social-fb i, .social-ig i { color: #fff !important; }
/* Hovers */
.social-wa:hover { background: #1ebe57 !important; border-color: #1ebe57 !important; }
.social-li:hover { background: #0b5bb0 !important; border-color: #0b5bb0 !important; }
.social-fb:hover { background: #166FE5 !important; border-color: #166FE5 !important; }
.social-ig:hover { filter: brightness(0.95) saturate(1.05); }

/* Ajuste opcional para botões quadrados com ícone (se usar .btn-icon) */
.btn-icon.social-wa, .btn-icon.social-li, .btn-icon.social-fb, .btn-icon.social-ig { display: grid; place-items: center; }

/* ==========================
   Rodapé (Footer Elite)
   ========================== */
.footer-elite {
    background: linear-gradient(180deg, #0b1220 0%, #0f1526 100%);
}
.footer-elite .footer-links li + li { margin-top: .4rem; }
.footer-elite .footer-links a { opacity: .9; }
.footer-elite .footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-elite .btn-icon {
    width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
}
.footer-elite .btn-icon i { color: #0f1526; font-size: 18px; }
/* Cores de marca para ícones sociais */
.footer-elite .btn-icon i.fa-whatsapp { color: #25D366; }
.footer-elite .btn-icon i.fa-linkedin-in { color: #0A66C2; }
.footer-elite .btn-icon i.fa-facebook-f { color: #1877F2; }
.footer-elite .btn-icon i.fa-instagram { color: #E4405F; }

/* Hover mantém a cor de marca (evita herdar cor escura) */
.footer-elite .btn-icon:hover i.fa-whatsapp { color: #1ebe57; }
.footer-elite .btn-icon:hover i.fa-linkedin-in { color: #0b5bb0; }
.footer-elite .btn-icon:hover i.fa-facebook-f { color: #166FE5; }
.footer-elite .btn-icon:hover i.fa-instagram { color: #d73755; }
.footer-elite .footer-contact li { line-height: 1.4; }
.footer-elite hr { border-color: rgba(255,255,255,.15); }

/* ==========================
   Botões sociais com fundo de marca
   ========================== */
.footer-elite .btn-icon.social-wa { background: #25D366 !important; border-color: #25D366 !important; }
.footer-elite .btn-icon.social-li { background: #0A66C2 !important; border-color: #0A66C2 !important; }
.footer-elite .btn-icon.social-fb { background: #1877F2 !important; border-color: #1877F2 !important; }
.footer-elite .btn-icon.social-ig {
  background: radial-gradient(34% 45% at 30% 110%, #FEDC68 0%, rgba(254,220,104,0) 60%),
              radial-gradient(50% 75% at 0% 50%, #F56040 0%, rgba(245,96,64,0) 60%),
              radial-gradient(60% 75% at 100% 50%, #833AB4 0%, rgba(131,58,180,0) 60%),
              linear-gradient(135deg, #405DE6 0%, #C13584 50%, #E1306C 100%);
  border-color: transparent !important;
}

/* Ícones brancos sobre fundo de marca */
.footer-elite .btn-icon.social-wa i,
.footer-elite .btn-icon.social-li i,
.footer-elite .btn-icon.social-fb i,
.footer-elite .btn-icon.social-ig i { color: #fff !important; }

/* Hover: escurece levemente mantendo contraste */
.footer-elite .btn-icon.social-wa:hover { background: #1ebe57 !important; border-color: #1ebe57 !important; }
.footer-elite .btn-icon.social-li:hover { background: #0b5bb0 !important; border-color: #0b5bb0 !important; }
.footer-elite .btn-icon.social-fb:hover { background: #166FE5 !important; border-color: #166FE5 !important; }
.footer-elite .btn-icon.social-ig:hover {
  filter: brightness(0.95) saturate(1.05);
}

/* Remove efeito de herança que mudava padding-left no hover de links genéricos */
.footer-elite .btn-icon:hover { transform: translateY(-2px); }

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

/* ==========================
   Cybersecurity Solutions Section
   ========================== */
.service-pro .service-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 12px;
}

.service-pro .service-list {
    margin-bottom: 1rem;
}

.service-pro .service-list li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: #5b6773;
}

.service-pro .service-list i {
    width: 18px;
    height: 18px;
    font-size: 12px;
    margin-right: 0.5rem;
}

.service-pro .service-meta {
    border-top: 1px solid #eef0f4;
    padding-top: 1rem;
    margin-top: 1rem;
}

.service-pro .service-meta .metric {
    background: #f8f9fb;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    text-align: center;
    flex: 1;
}

.service-pro .service-meta .metric strong {
    display: block;
    font-size: 1rem;
    color: #2b6ef5;
    font-weight: 700;
    margin-bottom: 0.1rem;
}

/* Hover effects for cybersecurity cards */
.service-pro:hover .icon-wrap.gradient {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(43,110,245,.35);
}

.service-pro:hover .service-badge {
    transform: translateY(-2px);
}

/* Responsive adjustments for cybersecurity section */
@media (max-width: 768px) {
    .service-pro .service-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .service-pro .service-meta .metric {
        text-align: left;
    }
}

/* Animation delays for staggered reveal */
.service-pro:nth-child(1) { animation-delay: 0.1s; }
.service-pro:nth-child(2) { animation-delay: 0.2s; }
.service-pro:nth-child(3) { animation-delay: 0.3s; }
.service-pro:nth-child(4) { animation-delay: 0.4s; }
.service-pro:nth-child(5) { animation-delay: 0.5s; }
.service-pro:nth-child(6) { animation-delay: 0.6s; }

/* ==========================
   Header / Navbar – Logo responsivo
   ========================== */
.navbar .navbar-brand img { height: 72px; }
@media (max-width: 991.98px) {
  .navbar .navbar-brand img { height: 56px; }
}
@media (max-width: 575.98px) {
  .navbar .navbar-brand img { height: 48px; }
}

/* Espaçamento da navbar para o logo maior */
.navbar { padding-top: .65rem; padding-bottom: .65rem; }
@media (min-width: 992px) {
  .navbar { padding-top: .75rem; padding-bottom: .75rem; }
}

/* Links escuros no header branco */
.navbar-light .navbar-nav .nav-link { color: #212529; }
.navbar-light .navbar-nav .nav-link:hover, 
.navbar-light .navbar-nav .nav-link.active { color: #0d6efd; }

/* Espaçamento dos itens do menu e botões na navbar */
.navbar-nav .nav-link { padding: .5rem .75rem; font-weight: 500; }
@media (min-width: 992px) {
  .navbar-nav { gap: .25rem; }
  .navbar .nav-item.ms-lg-3 { margin-left: 1rem !important; }
  .navbar .btn.btn-sm { padding: .5rem .8rem; }
}

.contact-info i {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    color: var(--primary-color);
}

/* Map Section */
.map-section {
    position: relative;
    margin: 4rem 0 0;
    padding-bottom: 35%; /* 16:9 Aspect Ratio */
    width: 100%;
    overflow: hidden;
    background: #f8f9fa;
}

.map-section .ratio-21x9 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.map-section iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

footer h5 {
    color: white;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

footer ul li {
    margin-bottom: 0.5rem;
}

footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: none;
    padding-left: 5px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    color: white;
    padding-left: 0;
}

/* Buttons */
.btn {
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 500;
    transition: color .3s ease, background-color .3s ease, box-shadow .3s ease, transform .3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Team Section */
.team-member {
    text-align: center;
    margin-bottom: 2rem;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ==========================
   Team cards (custom layout)
   ========================== */
.team-card {
  background: #fff;
  border: 1px solid #eef0f4;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0,0,0,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(0,0,0,.08); }

.team-avatar {
  width: 140px; height: 140px;
  border-radius: 50%;
  background: #2b6ef5; /* azul da marca */
  display: grid; place-items: center;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(43,110,245,.25);
}
.team-avatar img {
  width: 92%; height: 92%;
  object-fit: contain; /* mantém fundo azul circular visível */
  border-radius: 50%;
  background: #fff0; /* transparente para preservar a borda azul */
}
.team-name { font-weight: 700; color: #111827; }
.team-role { color: #111827; font-weight: 700; }

/* Mobile-First Responsive Styles */
@media (max-width: 767.98px) {
  /* Base adjustments */
  html {
    font-size: 14px;
  }
  
  /* Portfolio button positioning */
  .hero-bottom-cta {
    margin-top: 2.5rem !important;
    text-align: center;
    width: 100%;
    order: 1; /* Move to bottom of flex container */
  }
  
  .hero-bottom-cta .btn-portfolio {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Header & Navigation */
  .navbar-brand img {
    height: 60px !important;
  }
  
  .navbar-nav {
    padding: 1rem 0;
  }
  
  .nav-item {
    margin: 0.5rem 0;
  }
  
  /* Hero section */
  .hero-section {
    padding: 3rem 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  /* Buttons */
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  /* Cards */
  .card {
    margin-bottom: 1.5rem;
  }
  
  /* Footer */
  .footer-elite {
    text-align: center;
  }
  
  .footer-links {
    margin-bottom: 2rem;
  }
  
  /* Form elements */
  .form-control, .form-select {
    font-size: 16px; /* Prevents zoom on focus in iOS */
  }
  
  /* Grid adjustments */
  .row {
    margin-left: -0.5rem;
    margin-right: -0.5rem;
  }
  
  .col, [class*='col-'] {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
  .team-avatar { 
    width: 100px; 
    height: 100px; 
  }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.4rem; }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Make sure all clickable elements have a minimum touch target size */
a, button, .btn, [role="button"], input[type="submit"] {
  min-height: 44px;
  min-width: 44px;
}

/* Prevent content from being too wide on large screens */
.container {
  max-width: 1200px;
}

/* Ensure images are responsive */
img {
  max-width: 100%;
  height: auto;
}

/* Improve touch feedback */
.btn:active {
  transform: scale(0.98);
  transition: transform 0.1s;
}

/* Global: rolagem suave para âncoras */
html { scroll-behavior: smooth; }

/* Responsive Styles */
@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p.lead {
        font-size: 1.25rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero {
        padding: 6rem 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 4rem 0;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .map-section {
        padding-bottom: 50%; /* Taller on mobile */
        margin-bottom: 1.5rem; /* Space before footer */
    }
    
    .map-section iframe {
        height: 100%;
    }
}

/* ==========================
   Cookie Consent Banner
   ========================== */
.cookie-consent {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 1055;
    background: #0f1526;
    color: #fff;
    padding: 1rem;
    box-shadow: 0 -8px 24px rgba(0,0,0,.35);
}
.cookie-consent .container {
    display: flex; align-items: center; gap: 1rem; justify-content: space-between;
}
.cookie-consent p { margin: 0; opacity: .95; }
.cookie-consent a { color: #8ab4ff; text-decoration: underline; }
.cookie-consent .btn { border-radius: 10px; padding: .5rem .9rem; }
.cookie-consent .btn-accept { background: #22c55e; color: #0b1220; border: none; }
.cookie-consent .btn-accept:hover { background: #16a34a; color: #0b1220; }
.cookie-consent .btn-decline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.cookie-consent .btn-decline:hover { background: rgba(255,255,255,.08); }
.cookie-consent.hidden { display: none; }

@media (max-width: 767.98px) {
  .cookie-consent .container { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .cookie-actions { display: flex; gap: .5rem; width: 100%; }
  .cookie-actions .btn { flex: 1; }
}
