/* css/style.css - WDN Montagem Industrial - VERSÃO FINAL OTIMIZADA */

:root {
  --azul: #2E4262;
  --cinza: #373435;
  --preto: #000000;
  --branco: #ffffff;
  --dourado: #C9A03D;
  --offwhite: #F8FAFC;
}

* { 
  scroll-behavior: smooth; 
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  overflow-x: hidden;
  color: #1e1e1e;
}

/* Font Utilities */
.font-russo { font-family: 'Russo One', sans-serif; }
.font-barlow { font-family: 'Barlow Condensed', sans-serif; }

/* Botões refinados */
.btn-wdn {
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  background: var(--azul); 
  color: white; 
  padding: 1rem 2.8rem;
  border-radius: 50px; 
  font-weight: 600; 
  text-decoration: none;
  border: 2px solid transparent;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
  font-size: 1rem; 
  letter-spacing: 0.5px;
  box-shadow: 0 10px 25px rgba(46,66,98,0.3);
  cursor: pointer; 
  position: relative; 
  overflow: hidden;
}

.btn-wdn:hover {
  background: var(--cinza); 
  transform: translateY(-5px);
  box-shadow: 0 20px 35px rgba(0,0,0,0.2); 
  color: white;
}

.btn-outline-wdn {
  background: transparent; 
  color: var(--azul); 
  border: 2px solid var(--azul);
  box-shadow: none; 
  display: inline-flex; 
  align-items: center;
  justify-content: center; 
  padding: 1rem 2.8rem; 
  border-radius: 50px;
  font-weight: 600; 
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.3, 1);
  font-size: 1rem; 
  cursor: pointer;
}

.btn-outline-wdn:hover {
  background: var(--azul); 
  color: white; 
  transform: translateY(-5px);
}

/* Títulos de seção refinados */
.section-title {
  font-size: 2.5rem; 
  font-weight: 700; 
  color: var(--azul);
  margin-bottom: 2.5rem; 
  position: relative;
}

.section-title::after {
  content: ''; 
  display: block; 
  width: 100px; 
  height: 4px;
  background: var(--dourado); 
  margin-top: 0.75rem; 
  border-radius: 4px;
  transition: width 0.3s ease;
}

.section-title:hover::after {
  width: 140px;
}

/* ===== HEADER REFINADO ===== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  background-color: transparent;
  transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1), background-color 0.3s ease, box-shadow 0.3s ease;
  transform: translateY(0);
}

header.header-hidden {
  transform: translateY(-100%);
}

header.header-scrolled {
  background-color: white;
  box-shadow: 0 4px 20px rgba(46,66,98,0.1);
  border-bottom: 1px solid rgba(201,160,61,0.2);
  backdrop-filter: blur(8px);
  background-color: rgba(255,255,255,0.95);
}

/* Links do menu */
.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 0.25rem;
  color: white; /* inicialmente branco */
  text-decoration: none;
  transition: color 0.2s ease;
}

header.header-scrolled .nav-link {
  color: var(--azul);
}

.nav-link:hover {
  color: var(--dourado); /* hover mantém dourado em ambos os estados */
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dourado);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Logo */
header img {
  filter: brightness(0) invert(1); /* logo branca */
  transition: filter 0.3s ease;
}

header.header-scrolled img {
  filter: none; /* logo original (colorida) */
}

/* Botão menu mobile */
#menu-toggle {
  color: white;
  transition: color 0.3s ease;
}

header.header-scrolled #menu-toggle {
  color: var(--azul);
}

/* Hero section refinada */
.hero-section {
  min-height: 100vh;
  margin-top: 0;
  padding-top: 70px;
  background-image: linear-gradient(112deg, rgba(46,66,98,0.95) 0%, rgba(55,52,53,0.85) 70%), url('https://i.pinimg.com/736x/4f/17/e6/4f17e683760008ba37bd593c4cb39edd.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  color: white;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  margin: 1.8rem 0 2.5rem;
  opacity: 0.95;
}

/* Cards de serviço refinados */
.service-card {
  background: white;
  border-radius: 36px;
  padding: 2.5rem;
  border: 1px solid rgba(55,52,53,0.08);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 18px 40px rgba(46,66,98,0.06);
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(46,66,98,0.15);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--azul), var(--dourado));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  background: rgba(46,66,98,0.05);
  transition: all 0.3s ease;
  margin-bottom: 1.75rem;
}

.service-card:hover .service-icon {
  background: var(--azul);
  color: white;
}

.service-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 0.75rem;
}

.service-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--azul);
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-link:hover {
  color: var(--dourado);
  transform: translateX(5px);
}

/* Portfolio cards refinados */
.portfolio-card {
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.portfolio-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
}

.portfolio-card:hover .portfolio-image {
  transform: scale(1.07);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  color: white;
  background: linear-gradient(to top, rgba(46,66,98,0.95) 0%, rgba(46,66,98,0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Desktop: aparece só no hover */
@media (min-width: 768px) {
  .portfolio-overlay {
    opacity: 0;
  }
  
  .portfolio-card:hover .portfolio-overlay {
    opacity: 1;
  }
  
  .portfolio-title,
  .portfolio-desc {
    transform: translateY(20px);
    transition: transform 0.3s ease;
  }
  
  .portfolio-card:hover .portfolio-title,
  .portfolio-card:hover .portfolio-desc {
    transform: translateY(0);
  }
}

/* Mobile: overlay sempre visível */
@media (max-width: 767px) {
  .portfolio-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(46,66,98,0.95) 0%, rgba(46,66,98,0.7) 60%, transparent 100%);
  }
  
  .portfolio-title,
  .portfolio-desc {
    transform: translateY(0);
  }
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.portfolio-desc {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Review cards refinados */
.review-card {
  border-radius: 32px;
  padding: 2.25rem;
  border-left: 6px solid var(--dourado);
  background: #fafcff;
  box-shadow: 0 8px 25px rgba(0,0,0,0.02);
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(46,66,98,0.1);
}

.stars-css {
  display: flex;
  gap: 5px;
  margin-bottom: 1.5rem;
}

.stars-css span {
  width: 22px;
  height: 22px;
  background: var(--dourado);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  display: inline-block;
}

/* Selos refinados */
.selo-item {
  flex: 1;
  text-align: center;
  font-weight: 600;
  color: var(--cinza);
  min-width: 180px;
  transition: all 0.3s ease;
}

.selo-item:hover {
  transform: translateY(-8px);
}

.selo-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
  display: inline-block;
  background: rgba(201, 160, 61, 0.1);
  padding: 1rem;
  border-radius: 50%;
}

.selo-item:hover .selo-icon {
  background: rgba(201, 160, 61, 0.2);
  transform: scale(1.1);
}

.selo-label {
  font-size: 1.125rem;
}

/* Footer refinado */
.footer {
  background: var(--preto);
  color: #bbb;
  padding: 4rem 0 2rem;
  position: relative;
}

.footer-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--azul), var(--dourado), var(--azul));
}

.footer-logo-text {
  font-family: 'Russo One', sans-serif;
  font-size: 1.5rem;
  color: white;
}

.footer-logo-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.875rem;
  color: #9ca3af;
}

.footer-link {
  color: #9ca3af;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.875rem;
}

.footer-link:hover {
  color: var(--dourado);
  padding-left: 5px;
}

/* Botões flutuantes refinados */
.float-buttons-container {
  position: fixed;
  bottom: 30px;
  right: 25px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.float-button {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 12px 28px rgba(0,0,0,0.25);
}

.float-button:hover {
  transform: scale(1.1) translateY(-5px);
}

.float-whatsapp { background: #25D366; }
.float-google { background: #DB4437; }

.float-svg {
  width: 30px;
  height: 30px;
  fill: white;
}

@media (max-width: 768px) {
  .float-svg {
    width: 25px;
    height: 25px;
  }
}

/* Scroll top button refinado */
.scroll-top {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 50;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--azul);
  box-shadow: 0 10px 25px rgba(46,66,98,0.3);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--cinza);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(46,66,98,0.4);
}

.scroll-top-svg {
  width: 24px;
  height: 24px;
  fill: white;
}

/* Animações refinadas */
[data-animate] {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(35px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  0% { opacity: 0; transform: translateX(-50px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  0% { opacity: 0; transform: translateX(50px); }
  100% { opacity: 1; transform: translateX(0); }
}

.animate-fadeUp { animation: fadeUp 1s forwards; }
.animate-slideInLeft { animation: slideInLeft 1s forwards; }
.animate-slideInRight { animation: slideInRight 1s forwards; }

/* ===== COMPONENTES ADICIONAIS ===== */

/* Contato */
.contato-card {
  background: white;
  border-radius: 32px;
  padding: 2rem;
  box-shadow: 0 18px 40px rgba(46,66,98,0.08);
  border: 1px solid rgba(55,52,53,0.05);
  height: fit-content;
}

.contato-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--dourado);
}

.contato-info {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.contato-link {
  color: var(--azul);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contato-link:hover {
  color: var(--dourado);
}

/* Mapa */
.map-container {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(46,66,98,0.1);
  height: 100%;
  min-height: 350px;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Footer complementos */
.footer-logo {
  margin-bottom: 1rem;
}

.footer-logo-text {
  display: block;
  font-family: 'Russo One', sans-serif;
  font-size: 2rem;
  color: white;
  line-height: 1;
}

.footer-logo-sub {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  color: #9ca3af;
  letter-spacing: 1px;
}

.footer-description {
  color: #9ca3af;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-top: 1rem;
}

.footer-title {
  color: white;
  font-weight: 600;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--dourado);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: var(--dourado);
  transform: translateY(-3px);
}

.social-svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 3rem;
  padding-top: 2rem;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

/* Responsividade global */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  
  .service-card {
    padding: 2rem;
  }
  
  .service-title {
    font-size: 1.5rem;
  }
  
  .float-button {
    width: 52px;
    height: 52px;
  }
  
  .scroll-top {
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: 1.75rem;
  }
  
  .hero-section {
    background-attachment: scroll;
  }
}