/* Estilos para o site da Funcional Esquadrias */

/* Variáveis de cores */
:root {
  --primary-color: #0066cc; /* Azul principal */
  --primary-dark: #004d99; /* Azul escuro para hover */
  --primary-light: #e6f0ff; /* Azul claro para fundos */
  --secondary-color: #ffffff; /* Branco */
  --text-color: #333333; /* Cor de texto principal */
  --text-light: #666666; /* Cor de texto secundária */
  --accent-color: #f8f8f8; /* Cor de destaque suave */
  --border-color: #e0e0e0; /* Cor de borda */
  --shadow-color: rgba(0, 0, 0, 0.1); /* Cor de sombra */
  --whatsapp-color: #25D366; /* Cor do WhatsApp */
}

/* Reset e estilos gerais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px var(--shadow-color);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 15px auto 0;
}

/* Header e navegação */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--secondary-color);
  box-shadow: 0 2px 10px var(--shadow-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 10px 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.8rem;
  margin-left: 10px;
  margin-bottom: 0;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: 30px;
}

.nav-link {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
}

/* Hero section / Banner */
.hero {
  height: 100vh;
  background-color: var(--primary-light);
  position: relative;
  overflow: hidden;
  margin-top: 90px;
}

.hero-slider {
  height: 100%;
  width: 100%;
  position: relative;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.slide.active {
  opacity: 1;
}

.slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.6));
}

.slide-content {
  position: relative;
  z-index: 1;
  color: var(--primary-color);
  max-width: 600px;
  padding: 0 15px;
  margin-left: 10%;
}

.slide-content h2 {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: var(--text-color);
}

.slider-nav {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  z-index: 1;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.slider-dot.active {
  background-color: var(--secondary-color);
}

/* Sobre nós */
.about {
  background-color: var(--secondary-color);
}

.about-content {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 300px;
  padding-right: 30px;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px var(--shadow-color);
}

/* Serviços */
.services {
  background-color: var(--secondary-color);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--secondary-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-color);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.1);
}

.service-content {
  padding: 20px;
}

.service-content h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Galeria de projetos */
.projects {
  background-color: var(--secondary-color);
}

.projects-filter {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  margin: 5px;
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 300px;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 102, 204, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-item:hover .project-image {
  transform: scale(1.1);
}

.project-title {
  color: var(--secondary-color);
  text-align: center;
  padding: 0 15px;
}

.project-category {
  color: var(--secondary-color);
  font-size: 0.9rem;
  margin-top: 5px;
}

/* Depoimentos */
.testimonials {
  background-color: var(--secondary-color);
}

.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-slide {
  text-align: center;
  padding: 30px;
  display: none;
}

.testimonial-slide.active {
  display: block;
}

.testimonial-content {
  background-color: var(--secondary-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--shadow-color);
  margin-bottom: 30px;
  position: relative;
}

.testimonial-content::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 15px 15px 0;
  border-style: solid;
  border-color: var(--secondary-color) transparent transparent;
}

.testimonial-content p {
  font-style: italic;
  font-size: 1.1rem;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.author-image {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 15px;
}

.author-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-name {
  font-weight: 700;
  font-size: 1.1rem;
}

.author-title {
  color: var(--text-light);
  font-size: 0.9rem;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(0, 102, 204, 0.3);
  margin: 0 5px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background-color: var(--primary-color);
}

/* Contato */
.contact {
  background-color: var(--secondary-color);
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

.contact-info-item {
  display: flex;
  margin-bottom: 20px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-right: 15px;
}

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

.contact-details h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.contact-form {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background-color: var(--primary-light);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px var(--shadow-color);
  margin: 0 auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Mapa do Google */
.map-container {
  width: 100%;
  margin-top: 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-color);
}

.map-container iframe {
  display: block;
  width: 100%;
  border-radius: 8px;
}

/* WhatsApp Button */
.whatsapp-button {
  display: flex;
  align-items: center;
  background-color: var(--whatsapp-color);
  color: white;
  border-radius: 30px;
  padding: 10px 20px;
  margin-top: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  max-width: fit-content;
}

.whatsapp-button:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.whatsapp-button i {
  font-size: 1.5rem;
  margin-right: 10px;
}

.whatsapp-button span {
  font-weight: 600;
  color: white;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--secondary-color);
  padding: 60px 0 0;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-column {
  flex: 1;
  min-width: 250px;
  margin-bottom: 30px;
}

.footer-column h3 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: 10px;
}

.footer-link a {
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
}

.footer-link a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.social-links {
  display: flex;
}

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

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  margin-top: 30px;
}

.footer-bottom p {
  margin-bottom: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Botão voltar ao topo */
.back-to-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

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

.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-5px);
}

/* Responsividade */
@media screen and (max-width: 992px) {
  .section {
    padding: 60px 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .slide-content h2 {
    font-size: 2.5rem;
  }
  
  .map-container iframe {
    height: 350px;
  }
}

@media screen and (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 90px;
    left: -100%;
    width: 100%;
    flex-direction: column;
    background-color: var(--secondary-color);
    box-shadow: 0 5px 10px var(--shadow-color);
    padding: 20px 0;
    transition: all 0.3s ease;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .nav-item {
    margin: 10px 0;
    text-align: center;
  }
  
  .hero {
    height: 80vh;
  }
  
  .slide-content {
    margin-left: 5%;
    max-width: 90%;
  }
  
  .slide-content h2 {
    font-size: 2rem;
  }
  
  .about-text, .about-image {
    flex: 100%;
    padding-right: 0;
  }
  
  .about-image {
    margin-top: 30px;
  }
  
  .contact-info, .contact-form {
    flex: 100%;
  }
  
  .map-container iframe {
    height: 300px;
  }
}

@media screen and (max-width: 576px) {
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .slide-content h2 {
    font-size: 1.8rem;
  }
  
  .slide-content p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .whatsapp-button {
    margin-top: 15px;
    padding: 8px 15px;
  }
  
  .whatsapp-button i {
    font-size: 1.2rem;
  }
  
  .whatsapp-button span {
    font-size: 0.9rem;
  }
  
  .map-container iframe {
    height: 250px;
  }
}
