/* ==========================================================================
   Variáveis Globais & Reset
   ========================================================================== */
:root {
  --primary-blue: #1e73be;
  --dark-blue: #1e255e;
  --gradient-bg: linear-gradient(135deg, #1e255e 0%, #1e73be 100%);
  --bg-light: #f4f7f9;
  --text-color: #2c3e50;
  --white: #ffffff;
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--white);
  padding-top: 110px; /* Espaçamento correto para não cobrir o Hero */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Top Bar de Contato Superior (Fixo)
   ========================================================================== */
.top-bar {
  background: var(--dark-blue);
  color: var(--white);
  font-size: 0.85rem;
  padding: 0.4rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  height: 32px;
}

.top-bar-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.top-bar-info {
  display: flex;
  gap: 1.5rem;
}

.top-bar-info a {
  color: #d1e3f8;
  text-decoration: none;
  transition: color 0.2s;
}

.top-bar-info a:hover {
  color: var(--white);
}

/* ==========================================================================
   Header & Menu Principal (Fundo Branco + Shadow-Box Solicitado)
   ========================================================================== */
header {
  position: fixed;
  top: 32px !important; /* Mantém a distância exata abaixo da top-bar sempre */
  left: 0;
  width: 100%;
  background-color: #ffffff !important;
  z-index: 1000;
  border: none !important;
  outline: none !important;
  
  /* Sombra permanente */
  -webkit-box-shadow: 0px 10px 20px 5px rgba(0, 0, 0, 0.5) !important;
  box-shadow: 0px 10px 20px 5px rgba(0, 0, 0, 0.5) !important;
  
  transition: padding 0.3s ease;
}

/* Remove a subida do topo para evitar que o menu entre debaixo da barra azul */
header.scrolled {
  top: 32px !important;
  background-color: #ffffff !important;
}

header::before,
header::after {
  display: none !important;
  content: none !important;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 2rem;
}

.logo-img {
  max-height: 48px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.03);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--dark-blue);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  position: relative;
  transition: all 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--white);
  background-color: var(--primary-blue);
}

/* Botão "Pedir Orçamento" */
.nav-btn-quote {
  background: var(--dark-blue);
  color: var(--white) !important;
  padding: 0.5rem 1.2rem;
  border-radius: 20px;
  font-weight: 700;
  text-decoration: none !important;
  box-shadow: 0 4px 10px rgba(30, 37, 94, 0.2);
  transition: all 0.3s ease;
}

.nav-btn-quote::after {
  display: none !important;
}

.nav-btn-quote:hover {
  background: var(--primary-blue) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(30, 115, 190, 0.3);
  text-decoration: none !important;
}

/* ==========================================================================
   Hero Banner
   ========================================================================== */
.hero {
  position: relative;
  height: 85vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  text-align: center;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 37, 94, 0.72);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
  font-weight: 700;
}

/* ==========================================================================
   Animações, Botões & Marquee
   ========================================================================== */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background-color: var(--primary-blue);
  color: var(--white);
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
}

.btn:hover {
  background-color: var(--dark-blue);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp {
  background-color: #25d366;
  color: #fff;
}

.btn-whatsapp:hover {
  background-color: #1eb954;
}

.float-slow {
  animation: float 4s ease-in-out infinite;
  will-change: transform;
}

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -10px, 0); }
}

.marquee-container {
  overflow: hidden;
  background: var(--bg-light);
  padding: 1.2rem 0;
  white-space: nowrap;
  border-top: 2px solid rgba(30, 115, 190, 0.12);
  border-bottom: 2px solid rgba(30, 115, 190, 0.12);
}

.marquee-content {
  display: inline-flex;
  gap: 3rem;
  animation: marquee 25s linear infinite;
  will-change: transform;
}

.marquee-item {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-blue);
}

@keyframes marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   Seções Gerais & Elementos Geométricos Laterais
   ========================================================================== */
.section-relative {
  position: relative;
  padding: 5rem 2rem;
  overflow: hidden;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.geo-accent-left, .geo-accent-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 110px;
  background: var(--primary-blue);
  border-radius: 5px;
  z-index: 5;
}

.geo-accent-left {
  left: 15px;
  box-shadow: 10px -25px 0 0 var(--dark-blue);
}

.geo-accent-right {
  right: 15px;
  box-shadow: -10px 25px 0 0 var(--dark-blue);
}

/* Seção Quem Somos */
.about-grid {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 450px;
}

.about-text h2 {
  color: var(--dark-blue);
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
}

.about-img-container {
  flex: 1 1 400px;
}

.about-img-container img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* ==========================================================================
   Grid de Categorias de Produtos (Estritamente 3 Colunas)
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(30, 37, 94, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 4px solid var(--primary-blue);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(30, 37, 94, 0.18);
}

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.card-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.card-body h3 {
  color: var(--dark-blue);
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.card-body p {
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ==========================================================================
   Avaliações Google
   ========================================================================== */
.reviews-section {
  background-color: var(--bg-light);
}

.google-rating-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  background: var(--white);
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.google-logo {
  width: 28px;
  height: 28px;
}

.rating-score {
  font-size: 1.4rem;
  font-weight: 700;
  color: #202124;
}

.rating-label {
  font-weight: 700;
  color: #1a73e8;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.google-stars {
  color: #f4b400;
  font-size: 1.2rem;
  letter-spacing: 2px;
}

.rating-count {
  font-size: 0.9rem;
  color: #5f6368;
}

.reviews-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0 2rem 0;
}

.review-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-left: 4px solid var(--primary-blue);
}

.stars {
  color: #f1c40f;
  margin-bottom: 0.5rem;
}

.author {
  font-weight: 700;
  color: var(--dark-blue);
  margin-top: 1rem;
  display: block;
}

/* ==========================================================================
   Footer & WhatsApp Flutuante
   ========================================================================== */
footer {
  background: var(--gradient-bg);
  color: var(--white);
  padding: 4rem 2rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2rem;
}

.footer-col a {
  color: #e0e0e0;
  text-decoration: none;
}

.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ==========================================================================
   Media Queries para Responsividade
   ========================================================================== */
@media (max-width: 992px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  body {
    padding-top: 90px;
  }
  .top-bar {
    display: none;
  }
  header {
    top: 0;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .geo-accent-left, .geo-accent-right {
    display: none;
  }
}

