/* Definições essenciais para organização dos estilos */
:root {
  --primary-color: #0d6efd;
  --secondary-color: #ffbd16;
  --background-color: #ebebeb;
  --background-secondary-color: #0c2445;
  --background-secondary-color-rgb: 12, 36, 69;
  --text-color: #212529;
  --border-radius: 0.25rem;
  --hero-max-width: 960px; /* largura máxima do conteúdo do carousel */
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Ajusta o scroll para compensar o header fixo */
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: "Roboto", Arial, sans-serif;
}

h1 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}
p {
  color: var(--secondary-color);
}

.contact-top {
  background-color: var(--secondary-color);
  border-bottom: solid 2px #FFF;
}

.contact-top a {
  color: var(--text-color);
  text-decoration: none;
  margin-left: 3px;
}

/* Hero CTA Section */
.hero-cta {
  background-color: var(--background-secondary-color);
  padding: 4rem 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.cta-buttons {
  margin-bottom: 3rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--text-color);
  padding: 0.8rem 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #e6a913;
  border-color: #e6a913;
  transform: translateY(-2px);
}

.btn-outline-secondary {
  border-color: white;
  color: white;
  padding: 0.8rem 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
  background-color: white;
  color: var(--background-secondary-color);
  transform: translateY(-2px);
}

.hero-features {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.feature-item i {
  font-size: 2rem;
  color: var(--secondary-color);
}

.feature-item span {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-features {
    flex-direction: column;
    gap: 2rem;
  }
  
  .hero-cta {
    padding: 3rem 0;
  }
}

/* About Section Styles */
.about-section {
  background-color: #fff;
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(12, 36, 69, 0.05);
  box-shadow: inset 0 40px 40px -40px rgba(235, 235, 235, 0.3);
}

.section-subtitle {
  color: var(--secondary-color);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 1rem;
}

.section-title {
  color: var(--background-secondary-color);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.about-text {
  color: #666;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.about-features .feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.about-features .feature i {
  color: var(--secondary-color);
  font-size: 1.25rem;
}

.about-features .feature span {
  color: var(--text-color);
  font-weight: 500;
}

.about-image-wrapper {
  position: relative;
  padding: 1rem;
}

.about-image {
  border-radius: 10px;
  position: relative;
  z-index: 1;
}

.experience-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: var(--secondary-color);
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  z-index: 2;
}

.experience-badge .years {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--background-secondary-color);
  display: block;
  line-height: 1;
}

.experience-badge .text {
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.9rem;
}

@media (max-width: 991px) {
  .section-title {
    font-size: 2rem;
  }
  
  .about-features {
    grid-template-columns: 1fr;
  }
  
  .experience-badge {
    padding: 1rem;
  }
  
  .experience-badge .years {
    font-size: 2rem;
  }
}

/* Contact Section Styles */
.contact-section {
  background-color: #fff;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

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

.highlight-card {
  background: linear-gradient(135deg, var(--background-secondary-color) 0%, #1a396b 100%);
  color: white;
  padding: 2rem;
  text-align: center;
}

.highlight-card h3,
.highlight-card p {
  color: white;
}

.contact-icon {
  width: 70px;
  height: 70px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.contact-icon i {
  font-size: 2rem;
  color: var(--background-secondary-color);
}

.contact-icon-small {
  width: 45px;
  height: 45px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-small i {
  font-size: 1.25rem;
  color: var(--background-secondary-color);
}

.contact-card h3 {
  color: var(--background-secondary-color);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-text {
  flex: 1;
}

.contact-text p {
  color: #666;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.contact-link {
  color: var(--background-secondary-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease;
  font-weight: 500;
}

.contact-link:hover {
  color: var(--secondary-color);
}

/* Formulário de Contato */
.contact-form-wrapper {
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  border: 1px solid rgba(0,0,0,0.05);
}

.form-label {
  font-weight: 500;
  color: var(--background-secondary-color);
}

.form-control,
.form-select {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.1);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.25rem rgba(255,189,22,0.25);
}

.map-wrapper {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 15px;
  overflow: hidden;
}

@media (max-width: 991px) {
  .contact-info {
    margin-bottom: 2rem;
  }
  
  .map-wrapper {
    margin-top: 2rem;
  }
  
  .highlight-card {
    padding: 1.5rem;
  }
}

/* Products Section Styles */
.products-section {
  background-color: #f8f9fa;
  position: relative;
  background: linear-gradient(to bottom, #fff 0%, rgba(248, 249, 250, 0.5) 100%);
  box-shadow: inset 0 -60px 60px -60px rgba(12, 36, 69, 0.03);
}

.section-description {
  color: #666;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 1rem;
}

.category-card {
  background: #fff;
  border-radius: 10px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 10px 30px rgba(12, 36, 69, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(12, 36, 69, 0.03);
}

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

.category-icon {
  width: 70px;
  height: 70px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.category-icon i {
  font-size: 2rem;
  color: var(--background-secondary-color);
}

.category-card h3 {
  color: var(--background-secondary-color);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.category-card p {
  color: #666;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.category-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-items li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #555;
  margin-bottom: 0.5rem;
}

.category-items li i {
  color: var(--secondary-color);
}

.catalogo-info {
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .category-card {
    padding: 1.5rem;
  }
  
  .category-icon {
    width: 60px;
    height: 60px;
  }
  
  .category-icon i {
    font-size: 1.5rem;
  }
  
  .category-card h3 {
    font-size: 1.25rem;
  }
}

header nav {
  background-color: var(--background-secondary-color);
  padding: 0.5rem 0;
}

.logo {
  width: 20px;
}

header nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

header nav .nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.2rem;
  transition: color 0.2s;
}

header nav ul li a:hover {
  color: var(--secondary-color);
}

header nav .nav-link:hover {
  color: var(--secondary-color) !important;
}

.navbar-toggler {
  border-color: #fff;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255,1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.hero-section {
  background-color: var(--background-secondary-color);
}

.gradient {
  background: linear-gradient(180deg, transparent, #ebebeb);
  bottom: 0px;
  height: 80px;
  left: 0;
  position: absolute;
  width: 100%;
  z-index: 3;
}

/* Wrapper interno dos slides: mantém proporção e centraliza conteúdo */
.hero-section .slide-wrapper {
  width: 100%;
  aspect-ratio: 21 / 9; /* ajuste para 16/9 ou outro, se preferir */
  max-height: clamp(260px, 45vw, 560px); /* altura responsiva com limites */
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Imagem preenche o wrapper mantendo corte agradável */
.hero-section .slide-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* evita cortar a imagem */
  object-position: center;
  background-color: var(
    --background-secondary-color
  ); /* barras laterais/topo com a cor do hero */
}

.carousel-indicators {
  margin-bottom: 100px;
}

/* Evite sobrescrever regras internas do Bootstrap no .carousel-item,
   pois isso pode quebrar as transições. Se precisar alinhar conteúdo,
   estilize elementos internos (por exemplo, um wrapper dentro do item). */

@media (max-width: 768px) {
  header nav .navbar-brand img {
    width: 180px !important;
  }
}

/* Footer Styles */
.footer {
  background: var(--background-secondary-color);
  color: rgba(255, 255, 255, 0.8);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255, 255, 255, 0.1) 50%,
    transparent 100%);
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--secondary-color);
  color: var(--background-secondary-color);
  transform: translateY(-3px);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-link:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-contact i {
  color: var(--secondary-color);
  font-size: 1.2rem;
}

.footer-contact span {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-divider {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 2rem 0;
}

.copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.credit {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.credit a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
}

.credit a:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .footer {
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .footer-contact li {
    justify-content: center;
  }
  
  .footer-link:hover {
    transform: none;
  }
}

/* Botão Voltar ao Topo */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: var(--secondary-color);
  color: var(--background-secondary-color);
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.back-to-top:hover {
  background-color: #e6a913;
  transform: translateY(-3px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}