﻿/* Reset básico */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16px; width: 100%; overflow-x: hidden; }
:root {
  --primary-color: #1a73e8;
  --secondary-color: #34a853;
  --dark-color: #202124;
  --light-color: #f8f9fa;
  --text-color: #5f6368;
  --white: #ffffff;
  --shadow: 0 2px 10px rgba(0,0,0,.1);
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6; color: var(--text-color);
  overflow-x: hidden; width: 100%; max-width: 100vw; position: relative;
}
img, video, iframe, embed, object { max-width: 100%; height: auto; display: block; }

/* Header e Navegação */
header {
  background: var(--white); box-shadow: var(--shadow);
  position: fixed; width: 100%; top: 0; left: 0; right: 0;
  z-index: 2000; transition: all .3s ease;
}
header.scrolled { box-shadow: 0 4px 15px rgba(0,0,0,.15); }
nav {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 5%; max-width: 1400px; margin: 0 auto; position: relative;
  transition: all .3s ease;
}
header.scrolled nav { padding: .6rem 5%; }
.logo { text-decoration: none; display: flex; align-items: center; transition: transform .3s; }
.logo:hover { transform: scale(1.05); }
.logo img { width: 250px; height: auto; transition: all .3s ease; }
header.scrolled .logo img { width: 180px; }

.menu-toggle {
  display: none; background: none; border: none; font-size: 1.9rem; color: var(--dark-color);
  cursor: pointer; transition: color .3s; z-index: 2100; padding: .5rem; -webkit-tap-highlight-color: transparent;
}
.menu-toggle:hover { color: var(--primary-color); }
.menu-toggle:active { opacity: .7; }

.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-links li a {
  text-decoration: none; color: var(--dark-color); font-weight: 500; position: relative; font-size: 1rem; transition: color .3s;
}
.nav-links li a:hover { color: var(--primary-color); }
.nav-links li a::after {
  content: ""; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
  background: var(--primary-color); transition: width .3s;
}
.nav-links li a:hover::after { width: 100%; }

/* Slider */
.slider {
  position: relative; height: 100vh; min-height: 520px; max-height: 820px;
  margin-top: 80px; overflow: hidden; z-index: 1;
}
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.9s ease-in-out, visibility 0.9s ease-in-out, z-index 0s 0.9s;
}
.slide.active {
  opacity: 1; visibility: visible; z-index: 1;
  transition: opacity 0.9s ease-in-out, visibility 0.9s ease-in-out, z-index 0s 0s;
}
.slide-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.slide-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.4); z-index: 1; }
.slide-content {
  position: relative; z-index: 2; text-align: center; color: var(--white);
  padding: 2rem; max-width: 900px;
}
.slide-content h2 {
  font-size: clamp(1.8rem, 5vw, 3.2rem); margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,.5); animation: fadeInUp 0.9s ease-out;
}
.slide-content p {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  text-shadow: 1px 1px 2px rgba(0,0,0,.5); animation: fadeInUp 0.9s ease-out .25s backwards;
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(28px);} to { opacity: 1; transform: translateY(0);} }

.slider-nav {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 12px; z-index: 5;
}
.slider-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: rgba(255,255,255,.55); border: 2px solid var(--white);
  cursor: pointer; transition: all .25s;
}
.slider-dot:hover { background: rgba(255,255,255,.85); }
.slider-dot.active { background: var(--white); transform: scale(1.18); }

/* Seções */
section { padding: 4rem 5%; max-width: 1400px; margin: 0 auto; width: 100%; }
section h2 { font-size: clamp(2rem, 4vw, 2.6rem); color: var(--dark-color); text-align: center; margin-bottom: 1rem; }
.section-subtitle { text-align: center; color: var(--text-color); margin-bottom: 3rem; font-size: clamp(1rem, 2vw, 1.1rem); }

/* Sobre */
#sobre { background: var(--light-color); }
.sobre-content { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: center; }
.sobre-text p { margin-bottom: 1.5rem; font-size: clamp(1rem, 1.5vw, 1.1rem); line-height: 1.8; }
.sobre-image { display: flex; justify-content: center; align-items: center; }
.sobre-image img {
  width: 100%; max-width: 420px; border-radius: 10px; box-shadow: var(--shadow);
  aspect-ratio: 1 / 1; object-fit: cover; transition: transform .3s ease;
}
.sobre-image img:hover { transform: scale(1.05); }

/* Serviços */
.servicos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.servico-card {
  background: var(--white); padding: 2rem; border-radius: 10px; box-shadow: var(--shadow);
  transition: transform .3s, box-shadow .3s; text-align: center;
}
.servico-card:hover { transform: translateY(-10px); box-shadow: 0 5px 20px rgba(0,0,0,.15); }
.servico-icon { width: 100%; height: 120px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; }
.servico-icon img { width: 100%; max-width: 120px; height: 120px; object-fit: contain; }
.servico-card h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--dark-color); margin-bottom: 1rem; }
.servico-card p { color: var(--text-color); line-height: 1.6; font-size: clamp(.9rem, 1.5vw, 1rem); }

/* Galeria */
#galeria { background: var(--light-color); }
.galeria-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.5rem; }
.galeria-item {
  aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; box-shadow: var(--shadow);
  transition: transform .3s; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.galeria-item:hover { transform: scale(1.05); }
.galeria-item:active { transform: scale(0.98); }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .3s; }
.galeria-item:hover img { transform: scale(1.1); }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.95);
  align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent;
}
.lightbox.active { display: flex; animation: fadeIn .3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox-content {
  max-width: 90%; max-height: 85vh; width: auto; height: auto; object-fit: contain;
  animation: zoomIn .3s ease; box-shadow: 0 0 30px rgba(0,0,0,.5); pointer-events: none;
}
@keyframes zoomIn { from { transform: scale(.8); } to { transform: scale(1); } }
.lightbox-close {
  position: absolute; top: 20px; right: 35px; color: var(--white); font-size: 40px; font-weight: bold;
  cursor: pointer; transition: color .3s; z-index: 3100; user-select: none; width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.2); color: var(--white); border: none; font-size: 30px;
  padding: 15px 20px; cursor: pointer; transition: background .3s; border-radius: 5px; user-select: none; z-index: 3100;
}
.lightbox-prev:hover, .lightbox-next:hover,
.lightbox-prev:active, .lightbox-next:active { background: rgba(255,255,255,.4); }
.lightbox-prev { left: 20px; } .lightbox-next { right: 20px; }
.lightbox-caption {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: var(--white); font-size: 1.2rem; text-align: center; background: rgba(0,0,0,.7);
  padding: 10px 20px; border-radius: 5px; max-width: 80%; pointer-events: none;
}

/* Contato */
.contato-container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; max-width: 1000px; margin: 0 auto; }
.contato-form { display: flex; flex-direction: column; gap: 1rem; }
.contato-form input, .contato-form textarea {
  padding: 1rem; border: 2px solid #e0e0e0; border-radius: 5px; font-size: 1rem; font-family: inherit; transition: border-color .3s; width: 100%;
}
.contato-form input:focus, .contato-form textarea:focus { outline: none; border-color: var(--primary-color); }
.contato-form textarea { min-height: 150px; resize: vertical; }
.btn-submit {
  padding: 1rem 2rem; background: var(--primary-color); color: var(--white); border: none; border-radius: 5px;
  font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .3s, transform .3s;
}
.btn-submit:hover { background: #1557b0; transform: translateY(-2px); }
.contato-info h3 { color: var(--dark-color); margin-bottom: 1.5rem; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.info-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.info-item i { font-size: 1.5rem; color: var(--primary-color); min-width: 30px; }
.info-item span { font-size: clamp(.9rem, 1.5vw, 1rem); color: var(--text-color); word-break: break-word; }
.social-links { display: flex; gap: 1rem; margin-top: 1rem; }
.social-links a {
  width: 50px; height: 50px; border-radius: 50%; background: var(--primary-color);
  display: flex; align-items: center; justify-content: center; color: var(--white); font-size: 1.5rem;
  transition: transform .3s, background .3s;
}
.social-links a:hover { transform: translateY(-5px); background: var(--secondary-color); }

/* Footer */
footer {
  background: var(--dark-color); color: var(--white); text-align: center; padding: 2rem;
  font-size: clamp(.9rem, 1.5vw, 1rem);
}

/* WhatsApp Float (posicionado e legível) */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; border-radius: 50%;
  background: #25d366; color: #fff; text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.28);
  z-index: 5000; transition: transform .25s, box-shadow .25s;
}
.whatsapp-float i { font-size: 28px; line-height: 1; color: #fff; }
.whatsapp-float:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 8px 24px rgba(0,0,0,.35); }

/* Responsivo Tablet */
@media (max-width: 1024px) {
  .logo img { width: 220px; } header.scrolled .logo img { width: 160px; }
  .slider { max-height: 640px; }
  section { padding: 3rem 5%; }
  .servicos-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .galeria-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}

/* Responsivo Mobile */
@media (max-width: 768px) {
  html { font-size: 14px; }
  .menu-toggle { display: block; }
  nav { padding: .8rem 4%; width: 100%; }
  header.scrolled nav { padding: .6rem 4%; }

  .nav-links {
    position: absolute; top: 100%; left: 0; width: 100%; background: var(--white);
    display: flex; flex-direction: column; gap: 0; box-shadow: 0 5px 10px rgba(0,0,0,.1);
    max-height: 0; opacity: 0; pointer-events: none;
    overflow: hidden; transition: max-height .4s ease, opacity .25s ease; z-index: 2500;
  }
  .nav-links.active {
    max-height: 80vh; opacity: 1; pointer-events: auto;
  }
  .nav-links li { width: 100%; text-align: center; border-bottom: 1px solid #f0f0f0; }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links li a { display: block; padding: 1rem; font-size: 1rem; }
  .nav-links li a::after { display: none; }

  .logo img { width: 160px; } header.scrolled .logo img { width: 130px; }

  .slider { margin-top: 65px; height: 58vh; min-height: 360px; max-height: 520px; }
  .slide-content { padding: 1.4rem; }
  .slide-content h2 { font-size: 1.6rem; }
  .slide-content p  { font-size: .95rem; }
  .slider-nav { bottom: 14px; gap: 10px; }
  .slider-dot { width: 10px; height: 10px; }

  section { padding: 2.5rem 4%; }
  section h2 { font-size: 1.8rem; margin-bottom: .8rem; }
  .section-subtitle { margin-bottom: 2rem; font-size: 1rem; }

  .sobre-content { grid-template-columns: 1fr; gap: 2rem; }
  .sobre-image img { max-width: 280px; margin: 0 auto; display: block; }

  .servicos-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .servico-card { padding: 1.5rem; }
  .servico-icon { height: 100px; }
  .servico-icon img { max-width: 100px; height: 100px; }

  .galeria-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }

  .contato-container { grid-template-columns: 1fr; gap: 2rem; }
  .contato-form input, .contato-form textarea { padding: .8rem; font-size: 16px; width: 100%; }
  .contato-form textarea { min-height: 120px; }
  .btn-submit { padding: .9rem 1.5rem; font-size: 1rem; }

  footer { padding: 1.5rem 1rem; font-size: .9rem; }
}

/* Mobile pequeno */
@media (max-width: 480px) {
  html { font-size: 13px; }
  nav { padding: .7rem 3%; } header.scrolled nav { padding: .5rem 3%; }
  .logo img { width: 140px; } header.scrolled .logo img { width: 110px; }
  .slider { height: 50vh; min-height: 320px; margin-top: 60px; }
  .slide-content { padding: 1rem; }
  .slide-content h2 { font-size: 1.4rem; }
  .slide-content p  { font-size: .9rem; }
  section { padding: 2rem 3%; }
  .section-subtitle { font-size: .95rem; }
  .whatsapp-float { width: 56px; height: 56px; }
  .whatsapp-float i { font-size: 26px; }
}
