/* Reset & base */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Poppins", sans-serif;
  background: #F8F9FA;
  color: #222;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  line-height: 1.5;
}

/* layout container */
.interface {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* header / menu */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: transparent;
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: #fff;
  box-shadow: 0 6px 18px rgba(31,41,55,0.06);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: center; /* centraliza menu */
  padding: 18px 0;
}

/* desktop menu */
.menu-desktop ul {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center;
  justify-content: center;
}
.menu-desktop a {
  text-decoration: none;
  color: #16223B;
  font-weight: 600;
  padding: 8px 6px;
  transition: color .15s ease, transform .15s ease;
}
.menu-desktop a:hover { color: #3A6EA5; transform: translateY(-2px); }

/* mobile toggle */
.mobile-toggle {
  position: absolute;
  left: 20px;
  top: 16px;
  background: transparent;
  border: 0;
  font-size: 26px;
  display: none;
  cursor: pointer;
}

/* mobile menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 78%;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  z-index: 60;
  transition: right .28s ease;
  padding: 20px;
  box-shadow: -6px 0 30px rgba(0,0,0,0.08);
}
.mobile-menu.open { right: 0; }
.mobile-close { background: transparent; border: 0; font-size: 22px; margin-bottom: 10px; cursor: pointer; }
.mobile-menu nav ul { list-style: none; padding-top: 10px; }
.mobile-menu nav li { margin: 8px 0; }
.mobile-menu nav a { text-decoration: none; color: #16223B; font-size: 18px; display: block; padding: 12px 6px; }

/* overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 50;
  display: none;
}
.overlay.show { display: block; }

/* HERO / SLIDER */
.hero {
  position: relative;
  height: 70vh;
  min-height: 420px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* slides container (CSS only slider with fade) */
.hero-slides { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1s ease, transform 1s ease;
  display: grid;
  place-items: center;
}
/* show slides in sequence using animation */
.hero-slide:nth-child(1) { animation: fade 12s infinite; animation-delay: 0s; }
.hero-slide:nth-child(2) { animation: fade 12s infinite; animation-delay: 4s; }
.hero-slide:nth-child(3) { animation: fade 12s infinite; animation-delay: 8s; }

@keyframes fade {
  0% { opacity: 0; transform: scale(1.02); }
  6% { opacity: 1; transform: scale(1.00); }
  30% { opacity: 1; transform: scale(1.00); }
  36% { opacity: 0; transform: scale(0.98); }
  100% { opacity: 0; transform: scale(0.98); }
}

.hero-image {
  max-width: 80%;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.12));
}

/* Hero content (text and CTA) centered over slides */
.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  text-shadow: 0 6px 20px rgba(0,0,0,0.35);
  padding: 12px;
}
.hero-content h1 {
  font-size: 28px;
  margin-bottom: 8px;
  color: #1b2a41;
  font-weight: 600;
}
.hero-content p { margin-bottom: 14px; color: #f3f5f7; }
.btn-primary {
  display: inline-block;
  background: #fff;
  color: #1b2a41;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(27,42,65,0.08);
}

/* section titles */
.section-title {
  text-align: center;
  font-size: 28px;
  margin: 48px 0 22px;
  color: #1e1e1e;
}
.section-title span { color: #3A6EA5; }

/* SOBRE */
.sobre { padding: 48px 0; }
.sobre-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.img-sobre img { width: 100%; max-width: 420px; display: block; margin: 0 auto; }
.txt-sobre h2 { font-size: 28px; margin-bottom: 12px; }
.txt-sobre h2 span { display: block; color: #3A6EA5; }
.txt-sobre p { color: #333; margin-bottom: 12px; }
.img-sobre img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto;
  border: 4px solid #3A6EA5;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}


/* especialidades */
.especialidades { padding: 32px 0; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 22px rgba(16,24,40,0.04);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(16,24,40,0.07); }
.card-icon { font-size: 42px; color: #3A6EA5; margin-bottom: 8px; }

/* projetos */
.projetos { padding: 48px 0; }
.projetos-caixa { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.projetos-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(16,24,40,0.04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.projetos-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(16,24,40,0.07); }
.projetos-imagem { width: 100%; height: 220px; object-fit: cover; display: block; }
.caixa-textos-projeto { padding: 16px; }

/* contato / formulario */
.contato { padding: 56px 0; }
.form-contato { max-width: 640px; margin: 0 auto; display: grid; gap: 12px; }
.form-contato input, .form-contato textarea {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  background: #fff;
  font-size: 16px;
}
.form-contato input[type="submit"] {
  background: #3A6EA5;
  color: #fff;
  border: 0;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

/* footer */
footer { padding: 32px 0; background: transparent; color: #222; }
.footer-grid { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; }
.logo-footer h3 { margin-bottom: 4px; }
.footer-bottom { text-align: center; padding-top: 12px; border-top: 1px solid rgba(0,0,0,0.05); font-size: 14px; color: #6b7280; }

/* small screens */
@media (max-width: 900px) {
  .menu-desktop { display: none; }
  .mobile-toggle { display: inline-block; }
  .hero { height: 56vh; min-height: 360px; }
  .hero-image { max-width: 90%; }
  .sobre-grid { grid-template-columns: 1fr; text-align: center; }
  .img-sobre img { max-width: 320px; }
  .cards { grid-template-columns: 1fr; }
  .section-title { font-size: 22px; margin-top: 28px; }
  .hero-content h1 { font-size: 20px; }
}

/* extra small */
@media (max-width: 480px) {
  .hero { height: 48vh; min-height: 300px; }
  .hero-image { max-width: 95%; }
  .form-contato input, .form-contato textarea { font-size: 15px; }
}
.projetos-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.projetos-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.10);
}
