/* ===================== Reset ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===================== Variáveis ===================== */
:root {
  --navy: #163A5E;
  --blue: #3E77AA;
  --white: #FFFFFF;
  --bg-soft: #F3F6FA;
  --text-dark: #0E2238;
  --header-h: 64px;
}

/* ===================== Base ===================== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background-color: var(--navy);
  color: var(--white);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

section {
  scroll-margin-top: calc(var(--header-h) + 20px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===================== Header ===================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;

  background: rgba(22, 58, 94, 0.25);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.site-header .logo img {
  height: 40px;
  display: block;
}

.site-header .nav ul {
  display: flex;
  gap: 24px;
  align-items: center;
  height: 100%;
}

.site-header .nav ul li a {
  font-weight: 700;
  opacity: 0.95;
  line-height: var(--header-h);
  display: inline-block;
}

.site-header .nav ul li a:hover {
  opacity: 0.8;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* ===================== Hero / Banner ===================== */
.hero {
  min-height: 100vh;
  padding-top: var(--header-h);
  background: url("../img/banner.jpg") no-repeat center top / cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  margin-top: 500px;
}

/* ===================== Botão ===================== */
.btn-principal {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 800;
  border: 2px solid var(--blue);
  transition: all 0.25s ease;
}

.btn-principal:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}

/* ===================== Hero Mobile ===================== */
@media (max-width: 768px) {
  .hero {
    min-height: 70vh;
    background-image: url("../img/banner-mobile.jpg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }

  .hero::after {
    background: rgba(22, 58, 94, 0.15);
  }

  .hero-content {
    position: absolute;
    left: 50%;
    bottom: 40px;
    transform: translateX(-50%);
    margin-top: 0;
    width: 100%;
    max-width: 340px;
    padding: 0 16px;
  }

  .btn-principal {
    width: 100%;
  }
}

/* ===================== About ===================== */
.about {
  padding: 80px 0;
  text-align: justify;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 18px;
  text-align: center;
}

.about p {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0.95;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
  text-align-last: left;
}

/* ===================== Services ===================== */
.services {
  background: #FFFFFF;
  color: #163A5E;
  padding: 80px 0;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.section-subtitle {
  margin-bottom: 40px;
  font-size: 1.05rem;
  opacity: 0.85;
}

.service-groups {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.group-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 24px;
  text-align: left;
  box-shadow: 0 12px 26px rgba(0,0,0,0.12);
}

.group-card h3 {
  margin-bottom: 14px;
}

.group-card ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.group-card li {
  padding-left: 16px;
  position: relative;
}

.group-card li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* ===================== Portfolio ===================== */
.portfolio {
  padding: 80px 0;
  text-align: center;
}

.portfolio h2 {
  font-size: 2rem;
  margin-bottom: 40px;
}

.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.portfolio-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  box-shadow: 0 10px 22px rgba(0,0,0,0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.portfolio-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 14px 28px rgba(0,0,0,0.35);
}

/* ===================== Contact ===================== */
.contact {
  background: #FFFFFF;
  color: #163A5E;
  padding: 80px 0;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.contact-subtitle {
  margin-bottom: 40px;
  font-size: 1.05rem;
  opacity: 0.85;
}

.contact p {
  max-width: 820px;
  margin: 0 auto 36px;
  color: #333;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  background: var(--bg-soft);
  border-radius: 18px;
  padding: 28px;
  border: 1px solid rgba(22,58,94,0.12);
}

/* ===================== Footer ===================== */
.site-footer {
  background: #0F2C47;
  padding: 40px 20px;
  text-align: center;
}

.site-footer p {
  background: #0F2C47;
  padding: 10px 20px;
  text-align: center;
}

/* ===================== WhatsApp Floating ===================== */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #25D366;
  padding: 12px 16px;
  border-radius: 999px;
  font-weight: 800;
  z-index: 2000;
}

/* ===================== Responsivo Geral ===================== */
@media (max-width: 1024px) {
  .service-groups {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    background: transparent;
    color: var(--white);

    border: none;
    border-radius: 0;

    font-size: 1.9rem;
    line-height: 1;
    cursor: pointer;
  }

  .site-header .nav {
    position: absolute;
    top: var(--header-h);
    right: 16px;
    width: min(280px, 92vw);
  }

  .site-header .nav ul {
    display: none;
    flex-direction: column;
    gap: 12px;

    background: rgba(22, 58, 94, 0.98);
    padding: 14px;
    border-radius: 14px;

    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 14px 28px rgba(0,0,0,0.30);
  }

  .site-header .nav.active ul {
    display: flex;
  }

  .site-header .nav ul li a {
    color: var(--white);
    line-height: normal;
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    opacity: 0.98;
  }

  .site-header .nav ul li a:hover {
    background: rgba(255,255,255,0.08);
    opacity: 1;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .portfolio-gallery img {
    height: 200px;
  }

  .about p {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
    text-align-last: left;
    word-spacing: normal;
  }
}

@media (max-width: 600px) {
  .service-groups {
    grid-template-columns: 1fr;
  }
}
