/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Variáveis de cor e tipografia */
:root {
  --primary: #4a90e2;
  --secondary: #ffffff;
  --accent: #50e3c2;
  --dark: #333333;
  --light: #f9f9f9;
  --font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* Base */
body {
  font-family: var(--font-family);
  color: var(--dark);
  line-height: 1.6;
  background: var(--secondary);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(10px);
  z-index: 1000;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--dark);
  text-decoration: none;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color .3s;
}
.nav-links a:hover {
  color: var(--primary);
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  text-align: center;
  padding: 0 1rem;
  color: var(--secondary);
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 1rem;
}
.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 1.5rem;
}
.btn {
  background: var(--secondary);
  color: var(--primary);
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  transition: transform .3s;
}
.btn:hover {
  transform: scale(1.05);
}

/* Seções */
.section {
  padding: 4rem 0;
}
.bg-light {
  background: var(--light);
}

/* Sobre */
.sobre-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 2rem;
}
.sobre-content img {
  border-radius: 1rem;
}
.sobre-content p {
  margin-bottom: 1rem;
}
@media (max-width: 768px) {
  .sobre-content {
    grid-template-columns: 1fr;
  }
}

/* Produtos */
.produtos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.produto-item {
  border: 1px solid var(--primary);
  padding: 1rem;
  border-radius: 0.5rem;
  background: var(--light);
}
.produto-item h4 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* Serviços - Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.card {
  background: var(--secondary);
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 2rem;
  text-align: center;
  transition: transform .3s;
}
.card:hover {
  transform: translateY(-5px);
}
.card img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
}
.card h3 {
  margin-bottom: 0.5rem;
  color: var(--primary);
}

/* Portfólio - Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.grid a {
  display: block;
  overflow: hidden;
  border-radius: 0.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.grid img {
  transition: transform .3s;
}
.grid img:hover {
  transform: scale(1.05);
}

/* Depoimentos */
.depoimentos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.depoimento-card {
  background: var(--secondary);
  padding: 2rem;
  border-left: 4px solid var(--primary);
  border-radius: 0.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.depoimento-card p {
  font-style: italic;
  margin-bottom: 1rem;
}
.depoimento-card h4 {
  font-weight: bold;
  color: var(--dark);
}
@media (max-width: 768px) {
  .depoimentos {
    grid-template-columns: 1fr;
  }
}

/* Contato */
.contact-info p {
  margin-bottom: 0.5rem;
}
.contact-info a {
  color: var(--primary);
  text-decoration: none;
}
.contact-info a:hover {
  text-decoration: underline;
}
form {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-family: var(--font-family);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
}
button.btn {
  width: fit-content;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 4rem;
  height: 4rem;
}
.whatsapp-float img {
  width: 100%;
  height: 100%;
}

/* Lightbox */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.lightbox.visible {
  display: flex;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 0.5rem;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
}

/* Animações */
.animate-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.animate-slide-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.visible {
  opacity: 1;
  transform: translateY(0);
}
