/* ===========================
   RESET BÁSICO
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

/* Remove decoração padrão */
a {
  text-decoration: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* ===========================
   ROOT (variáveis globais)
=========================== */
:root {
  --primary-color: #283049; /* Azul escuro */
  --secondary-color: #9d0707; /* Vermelho CTA */
  --bg-color: #ffffff; /* Fundo branco */
  --light-gray: #f5f5f5;
  --dark-gray: #333333;
  --text-color: #222222;

  /* Tipografia */
  --font-main: "Roboto", Arial, sans-serif;
  --font-title: "Montserrat", sans-serif;

  /* Espaçamentos */
  --container-width: 1200px;
  --section-padding: 4rem 1rem;

  /* Sombras e transições */
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

/* ===========================
   CONTAINERS E GRID
=========================== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===========================
   TIPOGRAFIA GLOBAL
=========================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-color);
}

p {
  margin-bottom: 1rem;
}

button,
.btn {
  font-family: var(--font-title);
  font-weight: 600;
  cursor: pointer;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  transition: var(--transition);
}

.btn-primary {
  background: var(--secondary-color);
  color: #fff;
}

.btn-primary:hover {
  background: #b00a0a;
  transform: scale(1.05);
}

/* ===========================
   SEÇÕES GERAIS
=========================== */
section {
  padding: var(--section-padding);
}

section:nth-child(even) {
  background-color: var(--light-gray);
}

/* ===== HEADER FIXO COM TRANSIÇÃO ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  background: var(--primary-color);
  color: #fff;
  box-shadow: var(--box-shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 0.5rem 0;
  background: var(--primary-color);
  backdrop-filter: blur(10px);
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  max-width: 100%;
}

/* ===== LOGO ===== */
.logo img {
  height: 7rem;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ===== MENU DESKTOP ===== */
.nav-menu ul {
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  color: #fff;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

/* underline animado */
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  height: 2px;
  width: 0%;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: var(--secondary-color);
}
.nav-menu a:hover::after {
  width: 100%;
}

/* ===== BOTÃO CTA ===== */
header .btn-primary {
  font-size: 0.9rem;
  margin-left: 1.5rem;
}

/* ===== BOTÃO HAMBURGUER ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 6px;
  transition: transform 0.3s ease;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.4s ease;
}

/* animação hamburguer -> X */
.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== MENU MOBILE ===== */
.mobile-menu {
  display: none;
  background: var(--primary-color);
  padding: 2rem 1.5rem;
  text-align: center;
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.4s ease;
}

.mobile-menu.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.mobile-menu a {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: var(--secondary-color);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .nav-menu,
  header .btn-primary {
    display: none;
  }
  .menu-toggle {
    display: flex;
    margin-right: 2rem;
  }

  header {
    max-width: 760px;
  }
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 100vh;
  background: url("../assets/hero-bg.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(40, 48, 73, 0.7); /* Azul escuro com opacidade */
}

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

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  color: #fff;
}

.hero h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
  color: #f1f1f1;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Botão Hero */
.hero .btn-primary {
  font-size: 1rem;
  padding: 1rem 2rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  animation: pulse 2s infinite;
}

/* ===== ANIMAÇÕES ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .hero h2 {
    font-size: 1.2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

/* ===== SOBRE A EMPRESA ===== */
.about {
  background: var(--light-gray);
}

.about-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 50%;
  animation: slideLeft 1s ease forwards;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.about-text p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

.about-text .btn {
  margin-top: 1rem;
}

.about-image {
  flex: 1 1 40%;
  animation: slideRight 1s ease forwards;
}

.about-image img {
  border-radius: 12px;
  box-shadow: var(--box-shadow);
}

/* ===== ANIMAÇÕES ===== */
@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 900px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-text,
  .about-image {
    flex: 1 1 100%;
    animation: none; /* Evita bug em mobile */
  }

  .about-text h2 {
    font-size: 1.8rem;
  }
}

/* ===== SERVIÇOS ===== */
.services {
  text-align: center;
  background: #fff;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.services .section-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--dark-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.service-card {
  background: var(--light-gray);
  padding: 2rem 1.5rem;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
  text-align: center; /* garante alinhamento */
  display: flex;
  flex-direction: column; /* organiza os elementos em coluna */
  justify-content: space-between; /* distribui melhor */
  height: 100%;
}

/* ===== IMAGENS DE SERVIÇOS ===== */
.service-card img {
  width: 20rem; /* tamanho ideal (desktop) */
  height: auto;
  object-fit: contain; /* evita distorção */
  display: block;
  margin: 0 auto 1rem auto; /* centraliza e dá espaçamento abaixo */
  transition: transform 0.3s ease;
}

.service-card:hover img {
  transform: scale(1.1); /* leve zoom no hover */
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--primary-color);
}

.service-card p {
  font-size: 1rem;
  margin-bottom: 1.2rem;
  color: var(--dark-gray);
}

.service-card .btn {
  font-size: 0.9rem;
  padding: 0.6rem 1.2rem;
}

/* Hover */
.service-card:hover {
  transform: translateY(-10px);
  background: #fefefe;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 600px) {
  .services h2 {
    font-size: 1.6rem;
  }

  .service-card {
    padding: 1.5rem 1rem;
  }

  .service-card img {
    width: 15rem; /* menor em mobile */
    height: auto;
  }
}
/* ===== CONTATO ===== */
.contact {
  background: var(--light-gray);
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.contact .section-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--dark-gray);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: var(--box-shadow);
}

.contact-form .form-group {
  margin-bottom: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  font-family: var(--font-main);
  outline: none;
  transition: border 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--secondary-color);
}

.contact-form button {
  width: 100%;
  font-size: 1rem;
}

/* ===== LOCALIZAÇÃO ===== */
.location {
  background: #fff;
  text-align: center;
}

.location h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.location .section-subtitle {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--dark-gray);
}

.map-container {
  width: 100%;
  height: 400px;
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.location .btn {
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-color);
  color: #fff;
  padding: 3rem 1rem 1.5rem;
  font-size: 0.95rem;
  max-width: 100%;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.footer h4 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #fff;
}

.footer p,
.footer a,
.footer ul li {
  color: #ddd;
  line-height: 1.6;
}

.footer a {
  transition: var(--transition);
}

.footer a:hover {
  color: var(--secondary-color);
}

.footer ul {
  list-style: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #ccc;
}

.footer-bottom a {
  color: var(--secondary-color);
  font-weight: 600;
}

/* Ajustes para telas pequenas */
@media (max-width: 480px) {
  .footer {
    padding: 2rem 0.5rem 1rem; /* reduz o padding lateral */
  }

  .footer-content {
    gap: 1rem; /* diminui o espaço entre colunas */
    grid-template-columns: 1fr; /* cada item ocupa 100% da largura */
  }
}

/*GALERIA*/

.gallery {
  padding: var(--spacing-xl) var(--spacing-sm);
  background: #f5f5f5; /* fundo suave */
  text-align: center;
}

.gallery h2 {
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  color: #283049; /* azul principal */
}

.slider-container {
  position: relative;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
  user-select: none;
}

.slide img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Botões */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(40, 48, 73, 0.8);
  color: #fff;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
  z-index: 10;
}

.slider-btn:hover {
  background: #9d0707;
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

/* CTA POPUP */
.cta-popup {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.cta-popup.active {
  display: flex;
  animation: fadeIn 0.3s ease-in-out;
}

.cta-popup-content {
  background: var(--bg-color);
  padding: 2rem;
  max-width: 400px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: slideUp 0.4s ease-out;
}

.cta-popup-content h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.cta-popup-content p {
  color: var(--dark-gray);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.btn-popup {
  display: inline-block;
  background: var(--secondary-color);
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-popup:hover {
  background: #b30a0a;
}

.cta-popup-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark-gray);
  transition: color 0.3s;
}

.cta-popup-close:hover {
  color: var(--secondary-color);
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===========================
   BOTÃO FIXO WHATSAPP (IMAGEM)
=========================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.whatsapp-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.whatsapp-float {
  animation: pulse 2s infinite;
}
