/* styles.css - Clevepar Parafusos */
/* ---------- Variáveis e Configuração Base ---------- */
:root {
  --primary-color: #000000;      /* Preto */
  --secondary-color: #007848;    /* Verde médio escuro */
  --accent-color: #FFD700;       /* Amarelo forte */
  --text-color: #333333;         /* Texto padrão */
  --light-color: #ffffff;        /* Branco puro */
  --light-gray: #f8f9fa;         /* Cinza claro */
  --medium-gray: #e9ecef;        /* Cinza médio */
  --dark-gray: #6c757d;          /* Cinza escuro */
  --shadow-light: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-medium: 0 4px 15px rgba(0,0,0,0.1);
  --shadow-heavy: 0 8px 20px rgba(0,0,0,0.15);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  --border-radius-small: 4px;
  --border-radius-medium: 8px;
  --border-radius-large: 12px;
}

/* Reset e Estilos Gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
font-family: 'Roboto', sans-serif;
color: var(--text-color);
overflow-x: hidden;
scroll-behavior: smooth;
}
h1, h2, h3, h4, h5, h6 {
font-weight: 700;
line-height: 1.3;
margin-bottom: 1rem;
}
p {
line-height: 1.6;
margin-bottom: 1rem;
}
img {
max-width: 100%;
height: auto;
}
a {
color: inherit;
text-decoration: none;
transition: color var(--transition-fast);
}
section {
padding: 70px 0;
position: relative;
}
.container {
padding: 0 20px;
}
/* ---------- Animações Gerais ---------- */
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideInFromBottom {
from {
transform: translateY(50px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
@keyframes slideInFromRight {
from {
transform: translateX(50px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes slideInFromLeft {
from {
transform: translateX(-50px);
opacity: 0;
}
to {
transform: translateX(0);
opacity: 1;
}
}
@keyframes pulse {
0% { transform: scale(1); }
50% { transform: scale(1.05); }
100% { transform: scale(1); }
}
@keyframes rotateIn {
from {
transform: rotate(-10deg);
opacity: 0;
}
to {
transform: rotate(0);
opacity: 1;
}
}
/* Classe para elementos que aparecem com scroll */
.fade-in {
opacity: 0;
transform: translateY(30px);
transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.active {
opacity: 1;
transform: translateY(0);
}
/* ---------- Header & Navbar ---------- */
.navbar {
  background-color: var(--light-color);
  box-shadow: var(--shadow-light);
  padding: 10px 0;
  transition: padding var(--transition-normal), box-shadow var(--transition-normal);
  position: sticky;
  top: 0;
  z-index: 1000;
  will-change: padding, box-shadow;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.navbar.scrolled {
  padding: 10px 0 !important;
  box-shadow: var(--shadow-medium);
}

.navbar.scrolled .navbar-brand img {
  max-height: 70px !important;
}

.navbar-brand {
padding: 0;
transition: transform var(--transition-normal);
}
.navbar-brand:hover {
transform: scale(1.02);
}
.navbar-brand img {
max-height: 150px;
transition: all var(--transition-normal);
}
.navbar.scrolled .navbar-brand img {
max-height: 60px;
}
.navbar-nav {
margin-left: auto; /* Alinha os itens da nav à direita */
}
.nav-item {
margin: 0 5px;
position: relative;
}
.nav-link {
color: var(--primary-color);
font-weight: 500;
padding: 8px 15px;
transition: all var(--transition-fast);
position: relative;
}
.nav-link::after {
content: '';
position: absolute;
width: 0;
height: 2px;
bottom: 0;
left: 50%;
background-color: var(--secondary-color);
transition: all var(--transition-normal);
transform: translateX(-50%);
}
.nav-link:hover::after,
.nav-link:focus::after {
width: 70%;
}
.nav-link:hover,
.nav-link:focus {
color: var(--secondary-color);
}
.navbar-toggler {
border: none;
padding: 10px;
transition: all var(--transition-fast);
}
.navbar-toggler:focus {
box-shadow: none;
outline: none;
}
.navbar-toggler-icon {
width: 24px;
height: 24px;
position: relative;
}
/* Botão na navbar */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-color);
    font-weight: 500;
    padding: 5px 15px !important; /* Menor altura e largura */
    border-radius: var(--border-radius-small);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 14px !important; /* Reduz o tamanho do texto */
    width: auto !important;
    min-width: unset !important;
    max-width: 150px !important; /* Limita o tamanho se quiser */
    text-align: center;
    white-space: nowrap;
}
.btn-primary::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 0;
height: 100%;
background-color: var(--secondary-color);
transition: all 0.3s;
z-index: -1;
}
.btn-primary:hover::before {
width: 100%;
}
.btn-primary:hover {
border-color: var(--secondary-color);
color: var(--light-color);
transform: translateY(-2px);
box-shadow: var(--shadow-medium);
}
/* ---------- Hero Section ---------- */
.hero-section {
  background-color: var(--secondary-color);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
content: '';
position: absolute;
top: 0;
right: 0;
width: 300px;
height: 300px;
background-color: rgba(255, 255, 255, 0.05);
border-radius: 50%;
transform: translate(150px, -150px);
}
.hero-section::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 200px;
height: 200px;
background-color: rgba(255, 255, 255, 0.05);
border-radius: 50%;
transform: translate(-100px, 100px);
}
.hero-text {
color: var(--accent-color);
font-weight: 700;
text-shadow: 0 2px 4px rgba(0,0,0,0.2);
animation: fadeIn 1s ease forwards;
}
.hero-section p.lead {
color: var(--light-color);
margin-bottom: 30px;
max-width: 90%;
animation: slideInFromBottom 1s ease 0.3s both;
}
.hero-section .btn-secondary {
background-color: var(--accent-color);
border-color: var(--accent-color);
color: var(--primary-color);
font-weight: 600;
padding: 12px 30px;
border-radius: var(--border-radius-small);
box-shadow: var(--shadow-medium);
transition: all var(--transition-normal);
animation: slideInFromBottom 1s ease 0.6s both;
}
.hero-section .btn-secondary:hover {
background-color: #e6c300;
transform: translateY(-3px);
box-shadow: var(--shadow-heavy);
}
.hero-image-container {
position: relative;
border-radius: var(--border-radius-medium);
overflow: hidden;
box-shadow: var(--shadow-heavy);
transform: perspective(1000px) rotateY(-5deg);
transition: all var(--transition-normal);
animation: slideInFromRight 1s ease 0.3s both;
}
.hero-image-container:hover {
transform: perspective(1000px) rotateY(0);
}
.hero-image-container img {
transition: transform var(--transition-normal);
}
.hero-image-container:hover img {
transform: scale(1.05);
}
.carousel-item img {
  height: 350px; /* ou o tamanho que quiser */
  object-fit: cover;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  padding: 10px;
}
.carousel-inner {
  aspect-ratio: 1200 / 525; /* Mantém proporção da imagem original */
  width: 100%;
  max-width: 1200px;
  margin: 0 auto; /* Centraliza o carrossel */
  border-radius: 12px; /* Borda arredondada, opcional */
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* Preenche sem distorcer */
  object-position: center;
  border-radius: inherit;
}
/* ---------- Brands Section ---------- */
.brands-section {
  margin: 1 !important;
  padding: 1 !important;
  overflow: hidden;
}

.brands-section .container-fluid {
  margin: 1 !important;
  padding: 1 !important;
}

.brands-section img {
  height: 400px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 1 !important;
  padding: 1 !important;
}

/* Remove margens de seções vizinhas */
.brands-section + *,
.brands-section * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Celulares: garante sem espaços */
@media (max-width: 576px) {
  .brands-section img {
    height: auto; /* Mantém a responsividade */
  }
}


/* ---------- Produtos em Destaque ---------- */
.produtos-section {
background-color: var(--light-color);
padding: 80px 0;
}
.produtos-section h2 {
position: relative;
display: inline-block;
margin-bottom: 50px;
}
.produtos-section h2::after {
content: '';
position: absolute;
width: 80px;
height: 3px;
background-color: var(--secondary-color);
bottom: -10px;
left: 50%;
transform: translateX(-50%);
}
.card {
border: none;
border-radius: var(--border-radius-medium);
box-shadow: var(--shadow-light);
transition: all var(--transition-normal);
margin-bottom: 25px;
overflow: hidden;
}
.card:hover {
transform: translateY(-8px);
box-shadow: var(--shadow-heavy);
}
.product-image {
height: 200px;
object-fit: contain;
padding: 1px;
background-color: var(--light-color);
transition: all var(--transition-normal);
}
.card:hover .product-image {
transform: scale(1.05);
}
.card-body {
padding: 40px;
}
.card-title {
color: var(--primary-color);
font-weight: 600;
margin-bottom: 8px;
font-size: 1.2rem;
}
.card-text {
color: var(--dark-gray);
margin-bottom: 15px;
}
.btn-primary {
width: 100% !important;
font-weight: 500;
}
.produtos-section .text-center {
margin-top: 40px;
}
.produtos-section .btn-secondary {
padding: 12px 30px;
border-radius: var(--border-radius-small);
font-weight: 600;
transition: all var(--transition-normal);
background-color: var(--secondary-color);
border-color: var(--secondary-color);
color: var(--light-color);
}
.produtos-section .btn-secondary:hover {
background-color: #007848;
transform: translateY(-3px);
box-shadow: var(--shadow-medium);
}
@media (max-width: 767.98px) {
  /* Fazer os cards ocuparem 100% da largura */
  .produtos-section .col-6 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  /* Reduzir padding interno do card para economizar espaço */
  .card-body {
    padding: 20px;
  }

  /* Ajustar imagem para responsividade total */
  .product-image {
    height: auto;
    max-height: 200px;
  }

  /* Diminuir fonte dos títulos e descrições no mobile */
  .card-title {
    font-size: 1rem;
  }

  .card-text {
    font-size: 0.9rem;
  }
}

.swiper-button-next::after,
.swiper-button-prev::after {
  color: #006b3c !important; /* verde escuro */
}

/* ---------- Categorias ---------- */
.category-section {
background-color: #f8f9fa;
padding: 80px 0;
}
.category-section h2 {
position: relative;
margin-bottom: 60px;
display: inline-block;
}
.category-section h2::after {
content: '';
position: absolute;
width: 50%;
height: 3px;
background-color: var(--secondary-color);
bottom: -15px;
left: 25%;
}
.category-card {
background-color: var(--light-color);
border-radius: 10px;
box-shadow: var(--box-shadow);
text-align: center;
padding: 30px;
height: 100%;
transition: all var(--transition-speed);
position: relative;
overflow: hidden;
}
.category-card::before {
content: '';
position: absolute;
width: 100%;
height: 5px;
background-color: var(--secondary-color);
bottom: 0;
left: 0;
transform: scaleX(0);
transition: all var(--transition-speed);
}
.category-card:hover {
transform: var(--hover-transform);
box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}
.category-card:hover::before {
transform: scaleX(1);
}
.category-card img {
height: 120px;
width: auto;
margin-bottom: 20px;
transition: all var(--transition-speed) ease;
}
.category-card:hover img {
transform: scale(1.1);
}
.category-card h5 {
font-weight: 600;
color: var(--primary-color);
transition: all var(--transition-speed);
}
.category-card:hover h5 {
color: var(--secondary-color);
}
/* ---------- Features ---------- */
.feature-icon {
font-size: 2.5rem;
color: var(--accent-color);
margin-bottom: 20px;
transition: all var(--transition-normal);
display: inline-block;
}
.feature-icon i {
background-color: rgba(255, 215, 0, 0.1);
width: 80px;
height: 80px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
transition: all var(--transition-normal);
}
.col-md-4:hover .feature-icon i {
background-color: var(--accent-color);
color: var(--primary-color);
transform: rotateY(360deg);
}
.col-md-4:hover .feature-icon {
transform: translateY(-10px);
}
.col-md-4 h4 {
font-size: 1.3rem;
font-weight: 600;
color: var(--primary-color);
margin-bottom: 10px;
}
.col-md-4 p {
color: var(--dark-gray);
}

/* Estilo GIF */
.gif-section {
  padding: 0;
  margin: 0;
}

.gif-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Aumenta a altura do GIF em telas pequenas */
@media (max-width: 576px) {
  .gif-img {
    height: 140px; /* ou o valor que quiser */
    object-fit: cover;
  }
}
/* ---------- Sobre Nós ---------- */
.sobre-section {
background-color: var(--light-color);
padding: 80px 0;
}
.sobre-section img {
border-radius: var(--border-radius-medium);
box-shadow: var(--shadow-medium);
transition: all var(--transition-normal);
}
.sobre-section img:hover {
transform: scale(1.02);
box-shadow: var(--shadow-heavy);
}
.sobre-section h2 {
color: var(--primary-color);
position: relative;
display: inline-block;
margin-bottom: 25px;
}
.sobre-section h2::after {
content: '';
position: absolute;
width: 60px;
height: 3px;
background-color: var(--secondary-color);
bottom: -10px;
left: 0;
}
.sobre-section p {
color: var(--text-color);
margin-bottom: 15px;
line-height: 1.7;
}
.sobre-section .col-md-6.mb-4.mb-md-0 img {
    position: relative;
    top: 60px; /* valor negativo para subir, ajuste conforme quiser */
}
@media (max-width: 767.98px) {
  .sobre-section .col-md-6 p:first-of-type {
    margin-top: 20px; /* ajuste conforme desejar */
  }

  .sobre-imagens img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .sobre-imagens .col-4 {
    padding: 0 5px;
  }

  .sobre-imagens.row {
    margin-right: -5px;
    margin-left: -5px;
  }
}


/* ---------- Contato e Mapa ---------- */
.contato-section {
padding: 80px 0;
background-color: var(--light-gray);
}
.contato-section h2 {
color: var(--primary-color);
position: relative;
display: inline-block;
margin-bottom: 30px;
}
.contato-section h2::after {
content: '';
position: absolute;
width: 60px;
height: 3px;
background-color: var(--secondary-color);
bottom: -10px;
left: 0;
}
.form-label {
color: var(--primary-color);
font-weight: 500;
}
.form-control {
border-radius: var(--border-radius-small);
padding: 12px 15px;
border: 1px solid var(--medium-gray);
transition: all var(--transition-fast);
}
.form-control:focus {
border-color: var(--secondary-color);
box-shadow: 0 0 0 0.2rem rgba(0, 120, 72, 0.25);
}
.map-container {
height: 300px;
border-radius: var(--border-radius-medium);
overflow: hidden;
box-shadow: var(--shadow-light);
}
.map-container iframe {
border-radius: var(--border-radius-medium);
}
.contato-section .card {
border-radius: var(--border-radius-medium);
box-shadow: var(--shadow-medium);
transition: all var(--transition-normal);
}
.contato-section .card:hover {
box-shadow: var(--shadow-heavy);
}
.contato-section .card h5 {
color: var(--primary-color);
font-weight: 600;
margin-bottom: 10px;
display: flex;
align-items: center;
}
.contato-section .card h5 i {
margin-right: 10px;
color: var(--secondary-color);
}
.contato-section .card p {
color: var(--dark-gray);
margin-bottom: 15px;
}
.contato-section .card .btn-secondary {
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.contato-section .card .btn-secondary i {
margin-right: 10px;
}
/* ---------- Footer ---------- */
footer {
background-color: var(--secondary-color);
color: var(--light-color);
padding: 60px 0 20px;
position: relative;
overflow: hidden;
}
footer::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 5px;
background: var(--accent-color);
}
footer img {
max-height: 140px;
margin-bottom: 2rem;
}
.social-icons {
margin-bottom: 25px;
}
.social-icons a {
color: var(--light-color);
font-size: 1.8rem;
margin-right: 20px;
transition: all var(--transition-normal);
display: inline-block;
}
.social-icons a:hover {
color: var(--accent-color);
transform: translateY(-5px);
}
footer ul li {
margin-bottom: 12px;
}
footer ul li a {
color: rgba(255, 255, 255, 0.85);
font-weight: 500;
transition: all var(--transition-fast);
display: inline-block;
}
footer ul li a:hover {
color: var(--light-color);
transform: translateX(5px);
}
footer h5 {
color: var(--light-color);
font-weight: 600;
margin-bottom: 20px;
position: relative;
}
footer h5::after {
content: '';
position: absolute;
width: 40px;
height: 2px;
background-color: var(--accent-color);
bottom: -8px;
left: 0;
}
footer p {
  color: #ffffff !important;
  margin-bottom: 8px;
}

footer p i {
  margin-right: 10px;
  color: #ffffff !important;
}

footer hr {
background-color: rgba(255, 255, 255, 0.85);
opacity: 1;
color: var(--light-color);
}
footer .small {
color: rgba(255, 255, 255, 0.85);
color: var(--light-color);
}
footer .nome-desenvolvedor {
  font-weight: 500;
  transition: all var(--transition-fast);
  text-decoration: underline;
}

footer .nome-desenvolvedor:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* ---------- WhatsApp Float Button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: white;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: all 0.3s ease-in-out;
  animation: pulse 2s infinite;
}

.whatsapp-float i {
  font-size: 1.3rem;
  margin-right: 10px;
}

/* Para celular: esconde o texto e ajusta padding/shape */
@media (max-width: 576px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
  }

  .whatsapp-float i {
    margin: 0;
    font-size: 1.5rem;
  }

  .whatsapp-text {
    display: none;
  }
}

/* Hover: muda para fundo branco e texto verde */
.whatsapp-float:hover {
    background-color: white;
    color: #25d366;
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

/* Animação de pulsar */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}


/* ---------- Responsividade ---------- */
@media (max-width: 1199.98px) {
.navbar-brand img {
max-height: 60px;
}
.hero-section {
    padding: 80px 0 60px;
}

.feature-icon i {
    width: 70px;
    height: 70px;
}
}
@media (max-width: 991.98px) {
.navbar-collapse {
background-color: var(--light-color);
padding: 15px;
border-radius: var(--border-radius-medium);
box-shadow: var(--shadow-medium);
margin-top: 10px;
}
.navbar-nav .nav-item {
    margin: 5px 0;
}

.nav-link::after {
    display: none;
}

.hero-section {
    padding: 60px 0;
}

.hero-text {
    font-size: 2.2rem;
}

.hero-image-container {
    margin-top: 30px;
    transform: perspective(1000px) rotateY(0);
}

.sobre-section img {
    margin-bottom: 30px;
}

.category-card img {
    max-height: 70px;
}
}
@media (max-width: 767.98px) {
section {
padding: 50px 0;
}
.hero-section {
    padding: 50px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 2rem;
}

.hero-section p.lead {
    font-size: 1.1rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-image-container {
    max-width: 80%;
    margin: 30px auto 0;
}

.sobre-section h2,
.contato-section h2 {
    text-align: center;
}

.sobre-section h2::after,
.contato-section h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.feature-icon i {
    width: 60px;
    height: 60px;
}

.card-title {
    font-size: 1.1rem;
}

.social-icons {
    text-align: center;
}

footer img {
    display: block;
    margin: 0 auto 20px;
}

footer ul {
    text-align: center;
}

footer h5 {
    text-align: center;
    margin-top: 20px;
}

footer h5::after {
    left: 50%;
    transform: translateX(-50%);
}

footer p {
    text-align: center;
}

.whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
}
}
@media (max-width: 575.98px) {
.navbar-brand img {
max-height: 50px;
}
.hero-section h1 {
    font-size: 1.8rem;
}

.hero-section p.lead {
    font-size: 1rem;
}

.hero-section .btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.produtos-section h2,
.sobre-section h2,
.contato-section h2 {
    font-size: 1.8rem;
}

.category-card {
    padding: 15px 10px;
}

.category-card img {
    max-height: 60px;
}

.category-card h5 {
    font-size: 0.9rem;
}

.feature-icon i {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
}

.col-md-4 h4 {
    font-size: 1.1rem;
}

.sobre-section p,
.contato-section p {
    font-size: 0.9rem;
}

.card-title {
    font-size: 1rem;
}

.card-text {
    font-size: 0.9rem;
}

.btn {
    font-size: 0.9rem;
}

.whatsapp-float {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
    bottom: 15px;
    right: 15px;
}
} 
.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #222;
  color: #fff;
  padding: 15px 20px;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}
.cookie-banner p {
  margin: 0;
  padding-right: 10px;
}
.cookie-banner button {
  background-color: #007bff;
  border: none;
  color: white;
  padding: 6px 12px;
  font-size: 0.9rem;
  border-radius: 4px;
  cursor: pointer;
}
.cookie-banner button:hover {
  background-color: #0056b3;
}