:root {
  --primary-red: #D70810;
  --nav-scrolled-text: #000000;
  --star-yellow: #FFD700;
}

/* Força a barra de rolagem clássica do sistema/navegador */
html {
  overflow-y: scroll !important;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100%;
  overflow-x: hidden;
}

/* =======================================
   1. HERO & FULLSCREEN YOUTUBE BACKGROUND
   ======================================= */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #000000;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none !important;
  z-index: 0;
}

.video-scaler {
  position: absolute;
  top: -40%;
  left: -30%;
  width: 160%;
  height: 180%;
  pointer-events: none !important;
}

.video-scaler iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none !important;
  border: none;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1;
}

/* =======================================
   2. HEADER & NAVIGATION WRAPPER
   ======================================= */
.header-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  transition: all 0.3s ease;
}

/* Top Utility Bar */
.top-header {
  font-size: 0.85rem;
  padding: 6px 0;
  color: #ffffff;
  background-color: rgba(0, 0, 0, 0.5);
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.top-header a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.top-header a:hover {
  opacity: 0.8;
}

.top-header i {
  color: var(--primary-red);
  margin-right: 6px;
}

.header-divider {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* Main Navigation Initial State */
.main-navbar {
  padding: 12px 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.navbar-brand img {
  max-height: 45px;
  width: auto;
}

.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: #ffffff;
  padding: 8px 18px !important;
  background-color: transparent;
  transition: all 0.2s ease-in-out;
}

/* "Home" Active State */
.navbar-nav .nav-link.active-home {
  color: #ffffff !important;
  background-color: var(--primary-red) !important;
}

.navbar-nav .nav-link:hover:not(.active-home) {
  background-color: var(--primary-red);
  color: #ffffff !important;
}

/* Mobile Hamburger Button with Red Background */
.custom-toggler.navbar-toggler {
  background-color: var(--primary-red) !important;
  border: none;
  padding: 8px 10px;
  border-radius: 4px;
}

.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Call Now Button between Logo and Burger (Mobile) */
.nav-call-btn {
  display: none !important;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #000000 !important;
  text-decoration: none;
  white-space: nowrap;
}

.nav-call-btn i {
  color: var(--primary-red);
  font-size: 1.25rem;
}

/* Desktop Call Now (After Contact) */
.nav-call-desktop {
  display: none !important;
}

.nav-call-desktop a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #000000 !important;
  text-decoration: none;
  padding: 8px 14px;
  transition: opacity 0.2s ease;
}

.nav-call-desktop a:hover {
  opacity: 0.8;
  background-color: transparent !important;
}

.nav-call-desktop i {
  color: var(--primary-red);
  font-size: 1.15rem;
}

@media (max-width: 991.98px) {
  .main-navbar.scrolled .nav-call-btn {
    display: inline-flex !important;
  }
}

/* =======================================
   3. STICKY / SCROLLED NAVBAR STATE
   ======================================= */
.main-navbar.scrolled {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  z-index: 1050;
  animation: slideDown 0.35s ease;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Scrolled Menu Desktop */
@media (min-width: 992px) {
  .main-navbar.scrolled .navbar-nav .nav-link {
    color: var(--nav-scrolled-text) !important;
    background-color: transparent !important;
  }

  .main-navbar.scrolled .navbar-nav .nav-link.active-home {
    color: #ffffff !important;
    background-color: var(--primary-red) !important;
  }

  .main-navbar.scrolled .navbar-nav .nav-link:hover {
    background-color: var(--primary-red) !important;
    color: #ffffff !important;
  }

  .main-navbar.scrolled .nav-call-desktop {
    display: list-item !important;
  }
}

/* =======================================
   4. MOBILE SPECIFIC STYLING
   ======================================= */
@media (max-width: 991.98px) {
  .main-navbar {
    background-color: var(--primary-red) !important;
  }

  .top-header {
    background-color: #000000 !important;
    padding: 8px 12px;
    text-align: center;
  }

  .top-header.mobile-hidden {
    display: none !important;
  }

  .top-header i {
    color: #ffffff !important;
  }

  .top-header .mobile-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .header-divider {
    display: none !important;
  }

  .navbar-collapse {
    background: rgba(0, 0, 0, 0.95);
    padding: 1rem;
    margin-top: 10px;
    border-radius: 4px;
    width: 100%;
  }

  .main-navbar.scrolled .navbar-collapse {
    background: #ffffff;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }

  .main-navbar.scrolled .navbar-collapse .nav-link {
    color: #333333 !important;
    background-color: transparent !important;
  }

  .main-navbar.scrolled .navbar-collapse .nav-link:hover,
  .main-navbar.scrolled .navbar-collapse .nav-link.active-home {
    background-color: var(--primary-red) !important;
    color: #ffffff !important;
  }
}

/* =======================================
   5. SERVICES SECTION & HOVER EFFECTS
   ======================================= */
.services-section {
  padding: 80px 0;
  background-color: #fcfcfc;
  overflow: hidden;
}

.service-heading {
  font-size: 2.3rem;
  font-weight: 700;
  color: #111111;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-heading .highlight-years {
  color: var(--primary-red);
}

.service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.service-img-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  background-color: #eaeaea;
}

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

.service-img-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(215, 8, 16, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #111111;
  margin-top: 16px;
  transition: color 0.3s ease;
}

.service-card-link:hover .service-img-wrapper img {
  transform: scale(1.05);
}

.service-card-link:hover .service-img-overlay {
  opacity: 1;
}

.service-card-link:hover .service-title {
  color: var(--primary-red);
}

/* =======================================
   6. STATS / COUNTERS SECTION
   ======================================= */
.stats-section {
  position: relative;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: scroll;
  padding: 100px 0;
  overflow: hidden;
}

.stats-container {
  position: relative;
  z-index: 2;
}

.stat-number {
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--star-yellow);
  margin-bottom: 8px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.stat-label {
  font-size: 1.35rem;
  font-weight: 600;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* =======================================
   7. WHY CHOOSE US SECTION
   ======================================= */
.why-choose-us {
  padding: 90px 0;
  background-color: #ffffff;
  overflow: hidden;
}

.why-title {
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 20px;
}

.why-title .highlight-choose {
  color: var(--primary-red);
}

.why-desc {
  font-size: 1.05rem;
  color: #555555;
  line-height: 1.8;
  margin-bottom: 24px;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
}

.why-list li {
  font-size: 1rem;
  color: #222222;
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.why-list li i {
  color: var(--primary-red);
  font-size: 1.25rem;
}

.why-signature {
  max-height: 60px;
  width: auto;
  display: block;
  margin-bottom: 28px;
}

.btn-more-about {
  background-color: var(--primary-red);
  color: #ffffff;
  font-weight: 600;
  padding: 12px 30px;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-radius: 4px;
  display: inline-block;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid var(--primary-red);
}

.btn-more-about:hover {
  background-color: #b5060d;
  border-color: #b5060d;
  color: #ffffff;
  transform: translateY(-2px);
}

.floating-img-box {
  width: 100%;
  border-radius: 4px;
  box-shadow: 18px 18px 0px var(--primary-red);
  display: block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.floating-img-box:hover {
  transform: translate(-3px, -3px);
  box-shadow: 22px 22px 0px var(--primary-red);
}

/* =======================================
   8. WORKING GALLERY SECTION & FILTERS
   ======================================= */
.gallery-section {
  padding: 90px 0;
  background-color: #f8f9fa;
  overflow: hidden;
}

.gallery-title {
  font-size: 2.3rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary-red);
  margin-bottom: 28px;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 18px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--primary-red);
  color: #ffffff;
  border-color: var(--primary-red);
}

.gallery-item {
  transition: all 0.4s ease;
}

.gallery-item.hide-item {
  display: none !important;
}

.gallery-item-inner {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4 / 3;
  background-color: #e5e5e5;
}

.gallery-item-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.gallery-item-inner:hover img {
  transform: scale(1.08);
}

/* =======================================
   9. ENTRANCE ANIMATIONS (FADE EFFECTS)
   ======================================= */
.animate-box {
  opacity: 0;
  transition: opacity 1.8s cubic-bezier(0.25, 1, 0.5, 1), transform 1.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.fade-from-bottom {
  transform: translateY(45px);
}

.fade-from-left {
  transform: translateX(-60px);
}

.fade-from-right {
  transform: translateX(60px);
}

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

/* =======================================
   10. TESTIMONIALS SECTION (RED CONTAINER)
   ======================================= */
.testimonials-section {
  background-color: var(--primary-red);
  color: #ffffff;
  padding: 70px 0 80px;
}

.testimonials-heading {
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.testimonials-heading .highlight-customers {
  color: var(--star-yellow);
}

.testimonial-item {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 10px 20px;
}

.testimonial-stars {
  color: var(--star-yellow);
  font-size: 1.2rem;
  margin-bottom: 18px;
}

.testimonial-text {
  font-size: 1.15rem;
  line-height: 1.8;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 24px;
  color: #ffffff;
}

.testimonial-author {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  color: #ffffff;
}

.testimonial-service-tag {
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: block;
  margin-top: 4px;
}

/* =======================================
   11. MAP SECTION (CANTO A CANTO)
   ======================================= */
.map-section {
  width: 100%;
  height: 400px;
  overflow: hidden;
  line-height: 0;
}

.map-section iframe {
  width: 100% !important;
  height: 400px !important;
  border: 0;
  display: block;
}

/* =======================================
   12. FOOTER
   ======================================= */
.main-footer {
  background-color: #000000;
  color: #ffffff;
  padding: 24px 0;
  font-size: 0.9rem;
}

.main-footer p {
  margin: 0;
}

/* =======================================
   INNER PAGES BANNER (HEADER-1.JPG)
   ======================================= */
.page-banner {
  position: relative;
  width: 100%;
  min-height: 380px;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 100px;
}

.page-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(215, 8, 16, 0.78);
  z-index: 1;
}

.page-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.page-banner-title {
  color: #ffffff;
  font-size: 2.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.page-breadcrumbs {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-breadcrumbs a {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.page-breadcrumbs a:hover {
  opacity: 0.8;
}

.page-breadcrumbs .separator {
  color: #ffffff;
  margin: 0 8px;
}

.page-breadcrumbs .current-crumb {
  color: var(--star-yellow);
}

/* ====================================================
   CORREÇÃO DO VIEWPORT DO VÍDEO (MOBILE & DESKTOP)
   ==================================================== */

.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* Garante a altura exata mesmo com a barra dinâmica do navegador mobile */
  overflow: hidden;
  background-color: #000000;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none !important;
  z-index: 0;
}

/* 
   Centralização absoluta com cobertura proporcional (object-fit: cover via CSS clássico):
   Garante proporção 16:9 mínima cobrindo tanto largura quanto altura total da viewport.
*/
.video-scaler {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100vw;
  height: 56.25vw; /* Proporção 16:9 baseada na largura */
  min-height: 100vh;
  min-height: 100dvh;
  min-width: 177.78vh; /* Proporção 16:9 baseada na altura */
  min-width: 177.78dvh;
  pointer-events: none !important;
}

.video-scaler iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: none;
  pointer-events: none !important;
  /* Escala extra para empurrar títulos e controles para fora da área visível */
  transform: scale(1.35);
  transform-origin: center center;
}

/* Ajuste específico para telas estreitas / verticais (Smartphones) */
@media (max-aspect-ratio: 16/9) {
  .video-scaler {
    /* Força o preenchimento pela altura vertical quando o celular estiver em pé */
    height: 100dvh;
    width: 177.78dvh;
  }
  
  .video-scaler iframe {
    /* Ampliação extra no mobile para sumir com a barra inferior do YouTube */
    transform: scale(1.6);
  }
}

#scrollToTopBtn {
  /* Position fixed in the bottom-right corner */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99; /* Ensure it stays above other content */

  /* Button appearance */
  width: 45px;
  height: 45px;
  background-color: #333333;
  color: #ffffff;
  border: none;
  border-radius: 50%; /* Circular button */
  font-size: 20px;
  cursor: pointer;

  /* Hidden by default with a fade transition */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* Hover state */
#scrollToTopBtn:hover {
  background-color: #D70810;
}

/* Class to make it visible */
#scrollToTopBtn.show {
  opacity: 1;
  visibility: visible;
}

html {
  scroll-behavior: smooth;
}

/* =======================================
   SERVICES SIDEBAR MENU (COL-MD-3)
   ======================================= */
.service-sidebar-box {
  background-color: #f5f5f5;
  border-radius: 6px;
  padding: 25px 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.service-sidebar-title {
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #000000;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-red);
  letter-spacing: 0.5px;
}

.service-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-sidebar-link {
  display: block;
  background-color: #ffffff;
  color: #000000;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid #e9e9e9;
}

.service-sidebar-link:hover,
.service-sidebar-link.active {
  background-color: var(--primary-red);
  color: #ffffff;
  padding-left: 20px;
}

/* Service Details Content Styling */
.service-content-area {
  padding-left: 15px;
}

.service-details-img {
  width: 100%;
  border-radius: 6px;
  object-fit: cover;
  max-height: 480px;
  margin-bottom: 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* =======================================
   TEAM HIERARCHY / CARDS STYLING
   ======================================= */
.team-section {
  background-color: #fafafa;
  padding: 90px 0;
}

.team-heading {
  font-size: 2.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #000000;
  margin-bottom: 50px;
}

.team-heading .highlight-team {
  color: var(--primary-red);
}

.team-node {
  background: #ffffff !important;
  border-radius: 6px;
  padding: 22px 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
  text-align: center;
  border: 1px solid #eaeaea !important;
  width: 100% !important;
  max-width: 280px !important; /* Garante limite idêntico em todos os cartões */
  margin: 0 auto !important;     /* Centraliza automaticamente em mobile/flex */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-node:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12) !important;
}

.team-node.director {
  background: var(--primary-red) !important;
  color: #ffffff !important;
  border: none !important;
  border-bottom: 4px solid #000000 !important;
}

.team-node.director .team-name {
  color: #ffffff !important;
}

.team-node.director .team-role {
  color: var(--star-yellow) !important;
}

.team-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111111;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-red);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* =======================================
   ZOOM IN ANIMATION EFFECT (MAIS SUAVE E LENTA)
   ======================================= */
.zoom-in {
  opacity: 0;
  transform: scale(1.25);
  transition: opacity 2.5s cubic-bezier(0.25, 1, 0.5, 1), transform 2.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.zoom-in.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* =======================================
   ZOOM OUT ANIMATION EFFECT
   ======================================= */
.zoom-out {
  opacity: 0;
  transform: scale(1.25);
  transition: opacity 2.5s cubic-bezier(0.25, 1, 0.5, 1), transform 2.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.zoom-out.is-visible {
  opacity: 1;
  transform: scale(1);
}