:root {
  /* --- PALETA AUTO PEÇAS GLOBO (NOVO DESIGN) --- */
  --primary: #000f76; /* Azul Marinho Original */
  --primary-dark: #00094a;
  --secondary: #007bff; /* Azul Vibrante (Destaque) */
  --secondary-hover: #0056b3;

  /* Neutros */
  --dark: #000f76;
  --dark-grey: #1e1e1e;
  --medium-grey: #2c2c2c;
  --light-grey: #f4f6f8;
  --white: #ffffff;
  --white-transparent: rgba(255, 255, 255, 0.95);

  /* Texto */
  --text-main: #333333;
  --text-light: #555555;

  /* UI & Spacing */
  --shadow-sm: 0 4px 15px rgba(0, 15, 118, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 15, 118, 0.15);
  --radius: 12px;
  --container: 1200px;

  /* Fontes */
  --font-body: "Montserrat", sans-serif;
  --font-heading:
    "Montserrat", sans-serif; /* Mantive Montserrat para manter a identidade forte */
}

/* --- MODO ESCURO --- */
[data-theme="dark"] {
  --primary: #5c9ce6; /* Azul mais claro para fundo escuro */
  --primary-dark: #8ab8ee;
  --secondary: #64b5f6; /* Azul Claro */

  --light-grey: #000f76;
  --white: #000f76;
  --white-transparent: #000f76;

  --text-main: #e6e6e6;
  --text-light: #b0b0b0;

  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .logo {
  filter: brightness(0) invert(1);
}

/* Ajuste dos botões principais no modo escuro */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-secondary {
  background: #ffffff; /* Fundo branco */
  color: #000f76; /* Cor do texto azul principal */
  box-shadow: none; /* Remove sombra que não combina com botão claro */
}

[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-secondary:hover {
  background: #e9e9e9; /* Leve escurecida no hover */
  color: #000b50;
}

/* --- RESET & GLOBAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--light-grey);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition:
    background-color 0.4s ease,
    color 0.4s ease;
}

h1,
h2,
h3,
h4 {
  font-weight: 800;
  line-height: 1.2;
  font-family: var(--font-heading);
  text-transform: uppercase; /* Mantendo o estilo robusto da oficina */
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: var(--container);
  margin: 0 auto;
}

.section-padding {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* --- TYPOGRAPHY --- */
.subtitle,
.subtitle-highlight {
  display: block;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.subtitle {
  color: var(--secondary);
}

.subtitle-highlight {
  color: var(--primary);
}

.text-highlight {
  color: var(--secondary);
  font-style: italic;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 20px;
}

[data-theme="dark"] .section-header h2 {
  color: var(--text-main);
}

.divider-center {
  width: 80px;
  height: 4px;
  background: var(--secondary);
  margin: 20px auto;
  border-radius: 2px;
}

/* --- TOP BAR --- */
.top-bar {
  background-color: var(--primary);
  color: white;
  font-size: 0.8rem;
  padding: 10px 0;
}

[data-theme="dark"] .top-bar {
  background-color: #000b50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.685);
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-info span,
.top-info a {
  margin-right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: white;
}

.top-info a:hover {
  text-decoration: underline;
}

.top-social a {
  color: white;
  margin-left: 15px;
  font-size: 1rem;
}

.top-social a:hover {
  color: var(--secondary);
}

/* --- HEADER --- */
header {
  background: var(--white-transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: 0.4s;
}

.header-container {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 60px;
  width: auto;
  transition: 0.5s ease;
}

.logo:hover {
  transform: scale(1.1);
}

.nav-list {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-weight: 700;
  font-size: 0.85rem;
  position: relative;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

[data-theme="dark"] .nav-link {
  color: var(--text-main);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--secondary);
  transition: 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tool-btn {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--primary);
  transition: 0.3s;
}

[data-theme="dark"] .tool-btn {
  color: white;
}

#mobile-btn {
  display: none;
}

.mobile-only {
  display: none;
}

/* --- BOTÕES --- */
.btn {
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.8rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 15, 118, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

.btn-secondary {
  background: var(--light-grey);
  color: var(--primary-dark);
}

.btn-secondary:hover {
  background: var(--secondary-hover);
  transform: translateY(-3px);
  color: var(--primary-dark);
}

.btn-outline-light {
  border: 2px solid white;
  color: white;
  background: transparent;
}

.btn-outline-light:hover {
  background: white;
  color: var(--primary-dark);
}

[data-theme="dark"] .btn-outline-light {
  border-color: var(--text-main);
  color: var(--primary-dark);
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  /* Use padding para garantir que o conteúdo se ajuste, em vez de uma altura mínima fixa */
  padding-top: 20px;
  padding-bottom: 100px;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Usando gradiente + imagem existente */
  background:
    linear-gradient(
      to right,
      rgba(0, 26, 51, 0.973) 0%,
      rgba(0, 41, 94, 0.7) 50%,
      rgba(0, 0, 0, 0.4) 100%
    ),
    url("background-hero.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: white;
}

.hero-text {
  max-width: 700px;
}

.hero-tag {
  background: rgba(0, 123, 255, 0.2);
  padding: 6px 14px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.75rem;
  border: 1px solid rgba(0, 123, 255, 0.5);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  display: inline-block;
  margin-bottom: 20px;
  color: #bbdefb;
}

.hero-text h1 {
  font-size: clamp(2rem, 3.5vw, 3.5rem);
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 35px;
  opacity: 0.95;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 30px;
}

.badge-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
  transition: 0.3s;
}

.badge-item:hover {
  opacity: 1;
  transform: translateY(-5px);
}

.badge-item i {
  font-size: 1.4rem;
  color: var(--secondary);
}

.badge-item span {
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

/* --- ESTATÍSTICAS --- */
.stats-section {
  background: var(--white);
  padding: 50px 0;
  margin-top: -60px;
  position: relative;
  z-index: 4;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-box {
  text-align: center;
  border-right: 1px solid #eee;
}

.stat-box:last-child {
  border: none;
}

.stat-box strong {
  display: block;
  font-size: 2.8rem;
  color: var(--secondary);
  font-weight: 800;
}

.stat-box span {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 600;
}

/* --- SERVICES GRID --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.service-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 320px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover img {
  transform: scale(1.1);
}

.service-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 25px;
  background: linear-gradient(
    to top,
    rgba(0, 10, 73, 0.95),
    rgba(0, 10, 73, 0.6),
    transparent
  );
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

.service-content h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.service-content p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* --- SOBRE (SPLIT SCREEN) --- */
.bg-light-blue {
  background-color: #eaf4fa;
}

[data-theme="dark"] .bg-light-blue {
  background-color: #000f76;
}

.split-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.image-stack {
  position: relative;
  height: 400px;
}

.img-back {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 80% center;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.experience-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: var(--primary);
  color: white;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  animation: bounce 3s infinite;
  border: 5px solid white;
}

.experience-badge .years {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}

.experience-badge .text {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.since-badge {
  position: absolute;
  top: -20px;
  left: -20px;
  background: var(--primary);
  color: white;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  border: 4px solid white;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.text-content h2 {
  margin-bottom: 15px;
}

.text-content p {
  margin-bottom: 10px;
  line-height: 1.6;
}

.text-content .check-list {
  margin: 15px 0;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
  font-weight: 500;
}

.check-list i {
  color: var(--primary);
}

/* --- VALORES (TECH BG) --- */
.tech-bg {
  position: relative;
  background: linear-gradient(to bottom, #eaf4fa 0%, #ffffff 80%, #f8f9fa 100%);
  overflow: hidden;
  z-index: 1;
}

[data-theme="dark"] .tech-bg {
  background: #000f76;
}

[data-theme="dark"] .tech-bg .section-header h2,
[data-theme="dark"] .tech-bg .subtitle-highlight {
  color: white;
}

.tech-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
  z-index: -1;
  animation: floatOrb 12s infinite alternate;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: var(--secondary);
  bottom: -50px;
  right: -50px;
}

@keyframes floatOrb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(50px, 30px) scale(1.1);
  }
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  position: relative;
  z-index: 2;
}

.glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  padding: 40px 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px 0 rgba(0, 15, 118, 0.1);
  transition: all 0.4s ease;
  overflow: hidden;
}

[data-theme="dark"] .glass-card {
  background: rgba(22, 31, 45, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
}

.glass-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary);
}

.icon-glow {
  width: 70px;
  height: 70px;
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.1),
    rgba(0, 15, 118, 0.05)
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--secondary);
  margin-bottom: 25px;
  transition: 0.4s;
  border: 1px solid rgba(0, 123, 255, 0.2);
}

.glass-card:hover .icon-glow {
  background: var(--secondary);
  color: white;
  box-shadow: 0 0 20px rgba(0, 123, 255, 0.6);
  transform: rotate(10deg) scale(1.1);
}

.glass-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary);
}

[data-theme="dark"] .glass-card h3 {
  color: white;
}

/* --- MAPA --- */
.map-section {
  position: relative;
  height: 500px;
  width: 100%;
}

.map-container {
  width: 100%;
  height: 100%;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  filter: grayscale(10%);
}

/* --- FOOTER --- */
footer {
  background: var(--primary);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 80px;
}

[data-theme="dark"] footer {
  background: #000f76;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: 0.3s;
}

.social-icons a:hover {
  background: var(--secondary);
  transform: scale(1.1);
}

.footer-brand h3 {
  color: white;
  margin-bottom: 15px;
}

.footer-links h4,
.footer-newsletter h4 {
  color: white;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.footer-newsletter p {
  margin-bottom: 10px;
}

.footer-phone {
  margin-top: 15px;
}

.footer-links ul li {
  margin-bottom: 5px;
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.footer-bottom {
  padding: 25px 0;
  text-align: center;
  font-size: 0.85rem;
  background: #00094a;
}

.footer-bottom a:hover,
.simple-footer a:hover {
  text-decoration: underline;
}

/* --- WHATSAPP FLOATING --- */
.float-whatsapp {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.float-whatsapp:hover {
  transform: scale(1.1);
  background-color: #1ebc57;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1100px;
  background-color: var(--white);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  z-index: 9999;
  padding: 15px;
  border-radius: var(--radius);
  border-top: 4px solid var(--secondary);
  transition: bottom 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.cookie-banner.show {
  bottom: 20px;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

[data-theme="dark"] .cookie-banner {
  background-color: #000b50;
  border-top: 4px solid var(--secondary-hover);
}

.cookie-text a {
  color: var(--primary);
  text-decoration: underline;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .split-screen {
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar,
  .desktop-only {
    display: none;
  }

  #mobile-btn {
    display: block;
  }

  .mobile-only {
    display: block;
  }

  .nav-list {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 80px);
    background: var(--primary);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    gap: 30px;
    transition: 0.4s;
    z-index: 999;
  }

  .hero-section {
    height: 90vh;
    padding-top: 20px;
    padding-bottom: 60px;
  }

  .hero-bg-image {
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
  }

  .nav-list.active {
    right: 0;
  }

  .nav-list a {
    color: white;
    font-size: 1.1rem;
  }

  .nav-list .btn-secondary {
    color: var(--dark);
  }

  .hero-content {
    text-align: center;
  }

  .hero-actions,
  .hero-badges {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stat-box {
    border: none;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
  }

  .split-screen {
    grid-template-columns: 1fr;
  }

  .image-stack {
    height: 300px;
  }

  .img-back {
    object-position: 80% center;
  }

  .experience-badge {
    right: 20px;
    bottom: -20px;
    width: 90px;
    height: 90px;
  }

  .since-badge {
    left: 0;
    top: -10px;
  }

  .experience-badge .years {
    font-size: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

/* --- ANIMATIONS --- */
@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: all 0.8s ease-out;
}

.reveal-up {
  transform: translateY(40px);
}
.reveal-left {
  transform: translateX(-40px);
}
.reveal-right {
  transform: translateX(40px);
}

.active-scroll {
  opacity: 1;
  transform: translate(0);
}

/* --- PÁGINAS LEGAIS (Termos e Privacidade) --- */
.legal-content {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px 30px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  min-height: 60vh;
}

[data-theme="dark"] .legal-content {
  background: var(--medium-grey);
}

.legal-content h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 2px solid var(--secondary);
  padding-bottom: 20px;
}

[data-theme="dark"] .legal-content h1 {
  color: var(--white);
}

.legal-content h2 {
  font-size: 1.3rem;
  color: var(--secondary);
  margin-top: 30px;
  margin-bottom: 15px;
}

.legal-content p {
  margin-bottom: 15px;
  text-align: justify;
  line-height: 1.8;
}

.legal-content ul {
  margin-bottom: 20px;
  padding-left: 20px;
  list-style: disc;
}

.legal-content li {
  margin-bottom: 10px;
}

/* Footer Simples para páginas internas */
.simple-footer {
  padding: 40px 0 !important; /* Sobrescreve o padding grande do footer principal */
  text-align: center;
}
