/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  font-size: 1rem;
  line-height: 1.6;
}

/* Cabeçalho escuro */
.dark-header {
  background-color: #0d1b2a;
  padding: 1rem 2rem;
  border-bottom: 1px solid #e0e0e0;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 52px;
  max-width: 200px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
}

#language-selector {
  padding: 0.4rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}

/* Hero Section */
.hero-overlay {
  position: relative;
  text-align: center;
  background-color: #f5f7fa;
}

.hero-overlay img {
  max-height: 400px;
  width: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #0d1b2a;
  max-width: 600px;
  padding: 1rem;
  text-align: center;
}

.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Botões */
.cta-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #0d1b2a;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  margin-right: 1rem;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.cta-button:hover {
  background-color: #092033;
}

.cta-button.secondary {
  background-color: #e0e0e0;
  color: #0d1b2a;
}

/* Services */
.services {
  padding: 4rem 2rem;
  background-color: #ffffff;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #0d1b2a;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.service-item {
  padding: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background-color: #f9f9f9;
  transition: transform 0.3s;
  text-align: center;
}

.service-item:hover {
  transform: translateY(-4px);
}

.service-item img {
  height: 48px;
  margin-bottom: 1rem;
}

.bms-icon {
  height: 64px;
}

.service-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #0d1b2a;
}

/* Página Residencial */
.page-intro {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.page-intro h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #0d1b2a;
}

.page-intro p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.6;
}

/* Grid de Soluções Residenciais */
.solution-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1.5rem 2rem 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.solution-card {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s;
}

.solution-card:hover {
  transform: translateY(-4px);
}

.solution-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.solution-card h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #0d1b2a;
}

.solution-card p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

/* Imagens de Projetos */
.project-image {
  display: block;
  margin: 0 auto 1rem auto;
  max-height: 360px;
  width: auto;
  border-radius: 6px;
}

/* Imagem Sobre */
.about-image {
  display: block;
  margin: 2rem auto;
  max-height: 360px;
  width: auto;
  border-radius: 8px;
}

/* Parceiros */
.partners {
  padding: 4rem 2rem;
  background-color: #f5f7fa;
  text-align: center;
}

.partners h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #0d1b2a;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.partner-item img {
  max-height: 40px;
  margin-bottom: 0.5rem;
  transition: transform 0.3s;
}

.partner-item img:hover {
  transform: scale(1.1);
}

.partner-item p {
  font-size: 0.9rem;
  color: #333;
  text-align: center;
}

/* Bloco Lutron */
.lutron-block {
  text-align: center;
  margin-top: 3rem;
}

.lutron-logo {
  max-height: 60px;
  margin-bottom: 1rem;
}

.lutron-technologies {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.lutron-technologies img {
  max-height: 40px;
  transition: transform 0.3s;
}

.lutron-technologies img:hover {
  transform: scale(1.1);
}

.lutron-caption {
  font-size: 0.95rem;
  color: #333;
  margin-top: 0.5rem;
}

/* Página Institucional */
.institutional-hero {
  text-align: center;
  background-color: #f5f7fa;
  padding: 2rem;
}

.institutional-hero img {
  max-height: 400px;
  width: auto;
  display: block;
  margin: 0 auto 1rem auto;
  border-radius: 8px;
}

.institutional-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem;
  animation: fadeIn 1s ease-in-out;
}

.institutional-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  transition: transform 0.3s;
  text-align: center;
}

.institutional-item:hover {
  transform: translateY(-4px);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Rodapé */
footer {
  background-color: #0d1b2a;
  color: #ffffff;
  padding: 2rem;
  text-align: center;
}

.footer-content a {
  color: #ffffff;
  text-decoration: underline;
}

.social-icons {
  margin-top: 1rem;
}

/* Responsividade */
@media (max-width: 768px) {
  .hero-text {
    position: static;
    transform: none;
    padding: 2rem;
    text-align: center;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }

  .service-grid,
  .solution-grid,
  .partner-grid,
  .institutional-grid {
    grid-template-columns: 1fr;
  }

  .lutron-technologies {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .page-intro,
  .hero-text,
  .services,
  .partners,
  .institutional-hero {
    padding: 2rem 1rem;
  }

  .cta-button {
    display: block;
    margin: 1rem auto;
    width: fit-content;
  }

  .logo {
    height: 48px;
    max-width: 160px;
  }

  #language-selector {
    margin-top: 1rem;
  }
}
