/* =========================
   HSW TECH SOLUTIONS
   STYLE PREMIUM CORPORATIVO
   ========================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #0b1220;
  color: #ffffff;
  line-height: 1.6;
}

/* =========================
   HEADER
========================= */

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background: rgba(10, 15, 25, 0.95);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #1f2937;
}

.header img {
  height: 45px;
}

.header nav a {
  color: #cbd5e1;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

.header nav a:hover,
.header nav a.active {
  color: #3b82f6;
}

/* =========================
   HERO
========================= */

.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.9)),
              url('../img/hero.jpg') center/cover no-repeat;
}

.hero h1 {
  font-size: 42px;
  max-width: 900px;
  margin-bottom: 20px;
}

.hero p {
  color: #cbd5e1;
  max-width: 700px;
  margin: auto;
}

.hero-buttons {
  margin-top: 25px;
}

.btn-primary {
  background: #3b82f6;
  padding: 12px 25px;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  margin-right: 10px;
  display: inline-block;
}

.btn-secondary {
  border: 1px solid #3b82f6;
  padding: 12px 25px;
  color: #3b82f6;
  text-decoration: none;
  border-radius: 8px;
}

/* =========================
   SEÇÕES
========================= */

section {
  padding: 80px 60px;
}

h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

p {
  color: #cbd5e1;
}

/* =========================
   CARDS SERVIÇOS
========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.card {
  background: #111827;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #1f2937;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  border-color: #3b82f6;
}

/* =========================
   PÁGINAS INTERNAS
========================= */

.page-hero {
  padding: 80px 60px;
  text-align: center;
  background: #0f172a;
  border-bottom: 1px solid #1f2937;
}

.page-hero h1 {
  font-size: 36px;
}

.content {
  max-width: 900px;
  margin: auto;
}

.highlight {
  background: #111827;
  border-radius: 12px;
  padding: 40px;
  border: 1px solid #1f2937;
}

/* =========================
   SERVIÇOS
========================= */

.cards-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  background: #111827;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #1f2937;
}

/* =========================
   GALERIA (PROJETOS)
========================= */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.overlay {
  position: absolute;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  width: 100%;
  padding: 15px;
}

/* LIGHTBOX */

#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

#lightbox img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 10px;
}

#close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  cursor: pointer;
}

/* =========================
   PARCEIROS
========================= */

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.partner-card {
  background: #111827;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #1f2937;
}

.partner-card a {
  display: inline-block;
  margin-top: 10px;
  color: #3b82f6;
}

/* =========================
   CONTATO
========================= */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-card {
  background: #111827;
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #1f2937;
}

/* =========================
   FOOTER
========================= */

footer {
  text-align: center;
  padding: 30px;
  background: #0f172a;
  border-top: 1px solid #1f2937;
  color: #94a3b8;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 900px) {
  .grid,
  .cards-section,
  .gallery,
  .partners-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .header {
    flex-direction: column;
  }

  section {
    padding: 40px 20px;
  }
}