/* ============================================================
   ANBEIT - Main Stylesheet
   Description: Organized and documented CSS file for release
   Note: V2.0 - ready for production deployment
============================================================ */


/* ============================================================
   1. GLOBAL STYLES & TYPOGRAPHY
============================================================ */

body {
  margin: 0;
  padding-top: 0px;
  font-family: 'Inter', sans-serif;
}

html {
  scroll-padding-top: 100px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  font-size: 1rem;
  line-height: 1.6;
}

small {
  font-size: 0.875rem;
}

.section-heading {
  display: inline-block;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #9ecae1;
}

.titulos-color {
  color: #9ecae1 !important;
}


/* ============================================================
   2. NAVBAR
============================================================ */

.navbar {
  background-color: transparent;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
  background-color: #030d17 !important;
  backdrop-filter: none !important;
}

.navbar-dark .navbar-nav .nav-link,
.navbar-dark .navbar-brand img {
  color: white !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

.navbar-dark .btn-outline-primary {
  color: white;
  border-color: white;
}

.navbar-dark .btn-outline-primary:hover,
.navbar-dark .btn-outline-primary.active {
  background-color: rgba(255,255,255,0.15);
  color: #3182bd;
}

.nav-link {
  transition: color 0.3s ease, border-bottom 0.3s ease;
  border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  color: #3182bd;
  border-bottom: 2px solid #9ecae1;
}
.primary-color {
  background-color: #3182bd;
  color: white;
  border: 1px solid #3182bd;
}

.primary-color:hover {
  background-color: #2563a6;
  border-color: #2563a6;
  color: white;
}
/* Estado active/pressionado */
.primary-color:active,
.primary-color.active {
  --bs-btn-active-bg: #1e40af !important;   /* Muda para a cor que quiseres (ex: mais escura) */
  background-color: var(--bs-btn-active-bg) !important;  /* Força a usar a variável nova */
  border-color: #1e40af !important;                      /* Opcional: ajusta border também */
  opacity: 1 !important;                                 /* Evita transparência indesejada */
  box-shadow: none !important;                           /* Remove inset shadow se parecer "transparente" */
} 

/* Mobile: menu dropdown/colapsado sempre com fundo sólido */
@media (max-width: 991.98px) {  /* breakpoint lg do Bootstrap - ajusta se o teu navbar for .navbar-expand-md ou outro */
  .navbar-collapse {
    background-color: #030d17 !important;   /* o mesmo tom escuro que usas no .scrolled */
    padding: 1rem;                          /* espaço interno bom para mobile */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* opcional: linha separadora */
  }

  /* Reforça legibilidade dos links dentro do menu aberto */
  .navbar-collapse .nav-link {
    color: white !important;
    font-weight: 500;               /* opcional: um pouco mais bold */
    padding: 0.75rem 1rem;          /* mais espaço entre itens */
  }

  .navbar-collapse .nav-link:hover,
  .navbar-collapse .nav-link.active {
    color: #9ecae1 !important;      /* ou a tua cor de hover */
    background-color: rgba(49, 130, 189, 0.15); /* fundo sutil no hover */
  }

  /* O botão "Get in Touch" dentro do menu */
  .navbar-collapse .btn.primary-color {
    width: 100%;                    /* ocupa largura total no mobile - fica mais bonito */
    margin-top: 0.5rem;
    justify-content: center;
  }
}

/* ============================================================
   3. HERO SECTION
============================================================ */

.hero {
  min-height: 100vh;
  margin-top: 0px;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.75)),
              url('images/hero.png') center/cover no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
  color: white;
}

.hero h1 {
  text-shadow: 0 4px 16px rgba(0,0,0,0.7);
}

.hero p {
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.lead {
  font-size: 1.2rem;
  font-weight: 400;
  opacity: 0.85;
}

.card {
  cursor: pointer;
  background: rgba(49, 130, 189, 0.15) !important;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.65);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.card-style-container {
  border-radius: 8%;
  border: 2px solid rgb(158 202 225 / 59%) !important;
}

.hero .card-style-container:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4) !important;
}

.icon-style {
  font-size: 1.5rem !important;
  color: #9ecae1;
}

.icon-blue {
  color: #9ecae1 !important;
}

@media (max-width: 991.98px) {
  .hero {
    background-attachment: scroll !important; /* Altera de fixed para scroll */
    background-position: center center;
    min-height: 100vh; /* Garante que ocupa a altura toda */
  }
}

/* ============================================================
   4. ABOUT SECTION
============================================================ */

.about-section {
  background-color: #0b0f19;
  color: white;
}

.bg-primary-soft {
  background-color: rgba(0, 123, 255, 0.1);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.about-card {
  background-color: #161c2d;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 123, 255, 0.3);
}

.about-card:hover i {
  transform: scale(1.1) rotate(5deg);
  color: #3182bd !important;
}

.about-card h4 {
  color: #ffffff;
}

.image-container img {
  transition: transform 0.5s ease;
}

.image-container:hover img {
  transform: scale(1.05);
}


/* ============================================================
   5. SERVICES SECTION
============================================================ */

.services .service-item {
  position: relative;
  height: 100%;
  padding: 2rem;
  background-color: #0f172a;
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.65);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.services .service-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3px;
  background: linear-gradient(
    to bottom,
    var(--accent-color),
    color-mix(in srgb, var(--accent-color), transparent 25%)
  );
  transform: translateX(-6px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.services .service-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.9);
}

.services .service-item:hover::before {
  transform: translateX(0);
  opacity: 1;
}

.services .service-item .icon {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.services .service-item .icon i {
  color: color-mix(in srgb, var(--accent-color), transparent 15%);
  transition: transform 0.3s ease, color 0.3s ease;
}

.services .service-item:hover .icon i {
  transform: scale(1.1) rotate(5deg);
  color: #3182bd !important;
}

.services .service-item h3 {
  margin-bottom: 1rem;
  font-weight: 600;
  color: #f9fafb;
}

.services .service-item p {
  color: color-mix(in srgb, var(--default-color), transparent 25%);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.services .service-item .card-links {
  margin-top: auto;
}

.services .service-item .card-links .link-item {
  display: inline-flex;
  align-items: center;
  color: var(--accent-color);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.services .service-item .card-links .link-item i {
  margin-left: 0.5rem;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.services .service-item .card-links .link-item:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
}

.services .service-item:hover .link-item i {
  transform: translateX(5px);
}


/* ============================================================
   6. CONTACT SECTION
============================================================ */

.contact-info-card,
.contact-form-container {
  background-color: #161c2d;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.custom-input {
  background-color: #1f2937 !important;
  border: 1px solid #374151 !important;
  color: white !important;
  padding: 0.8rem 1rem;
}

.custom-input::placeholder {
  color: #9ca3af;
}

.custom-input:focus {
  border-color: #007bff !important;
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
  background-color: #007bff;
  border: none;
  border-radius: 10px;
}

.alert-success {
  background-color: rgba(49, 130, 189, 0.15);
  border: 1px solid #3182bd;
  color: #9ecae1;
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.15);
  border: 1px solid #dc3545;
  color: #ffb3b3;
}

/* ============================================================
   7. FOOTER
============================================================ */

.footer {
  background-color: #0b0f19 !important;
}

.form-control:focus {
  background-color: transparent !important;
  border-color: #007bff !important;
  box-shadow: none;
  color: white;
}

hr {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

