﻿:root {
  --primary: #5ab0a8;
  --secondary: #0177c8;
  --accent: #efb500;
  --dark: #0f2c4d;
  --text-dark: #2e3440;
  --muted: #6b7480;
  --white: #ffffff;
  --section-bg: #f5fbfd;
}

* {
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Nunito', sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  z-index: 999;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

nav .logo img {
  height: 52px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 8px 6px;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: rgba(90, 176, 168, 0.12);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 3px;
  margin: 4px 0;
  background: var(--secondary);
  transition: transform 0.3s ease, opacity 0.3s ease;
  border-radius: 2px;
}

nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

body.nav-open {
  overflow: hidden;
  position: relative;
}

section {
  padding: 100px 0;
}

section,
article[id] {
  scroll-margin-top: 92px;
}

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

/* Hero */
.hero {
  min-height: 90vh;
  background-image: linear-gradient(120deg, rgba(90, 176, 168, 0.15), rgba(1, 119, 200, 0.12)), url('assets/network_bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 90px;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.9));
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 40px;
  width: 100%;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 10px 0 12px;
  color: var(--dark);
}

.hero-text .lede {
  font-size: 1.05rem;
  max-width: 580px;
  color: var(--muted);
}

.hero-text .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--secondary);
  font-size: 0.9rem;
  margin: 0;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-tags span {
  background: rgba(1, 119, 200, 0.1);
  color: var(--dark);
  padding: 8px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-elements {
  width: 100%;
  max-width: 820px;
  justify-self: end;
}

/* Sobre */
.sobre {
  background: var(--section-bg);
}

.sobre .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.sobre h2 {
  font-size: 2.3rem;
  margin-top: 0;
  color: var(--primary);
}

.sobre p {
  font-size: 1.05rem;
  margin-bottom: 12px;
}

.sobre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.sobre-tags span {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 8px 12px;
  border-radius: 12px;
  font-weight: 700;
  color: var(--dark);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.sobre-pilares {
  margin-top: 10px;
}

.sobre-image img {
  width: 220px;
  max-width: 100%;
}

/* Missão & Visão */
.mission-vision {
  background-image: url('assets/network_bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.mission-vision::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.9));
  z-index: 0;
}

.mission-vision .container {
  position: relative;
  z-index: 1;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.mv-card {
  background: #fff;
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  border-top: 5px solid var(--primary);
}

.mv-card h2 {
  margin: 4px 0 10px;
  color: var(--dark);
  font-size: 1.8rem;
}

.mv-card .lede {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.mv-card .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--secondary);
  margin: 0;
}

.mv-card.vision-card {
  border-top-color: var(--secondary);
}

.bullets {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.bullets li {
  padding-left: 26px;
  margin-bottom: 12px;
  position: relative;
  font-size: 1rem;
}

.bullets li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  color: var(--primary);
  position: absolute;
  left: 0;
  top: 0;
}

.mv-card.vision-card .bullets li::before {
  color: var(--secondary);
}

.bullets.tight li {
  margin-bottom: 8px;
}

/* Projects */
.projects {
  background-image: url('assets/pattern_bg.jpg');
  background-size: contain;
  background-repeat: repeat;
  color: var(--dark);
}

.projects h2 {
  text-align: center;
  font-size: 2.5rem;
  color: var(--secondary);
  margin-bottom: 40px;
}

.subsection {
  margin-bottom: 60px;
}

.subsection h3 {
  font-size: 2rem;
  color: var(--secondary);
  margin-bottom: 10px;
}

.subsection .subtagline {
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 30px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.card {
  background-color: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  margin-bottom: 10px;
}

.card h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--dark);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.project-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
}

.project-grid.reverse {
  flex-direction: row-reverse;
}

.project-grid .image {
  flex: 1 1 40%;
  text-align: center;
}

.project-grid .image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.project-grid .text {
  flex: 1 1 55%;
  background: linear-gradient(135deg, #01467a, #016bb5);
  color: #ffffff;
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(2px);
}

.project-grid .text h3 {
  font-size: 2rem;
  margin-top: 0;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.project-grid .text .bullets li::before {
  color: var(--accent);
}

.project-grid .text p {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Gestão & Avaliação */
.gestao,
.avaliacao {
  background-image: url('assets/network_bg.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.gestao::before,
.avaliacao::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  z-index: 0;
}

.gestao .container,
.avaliacao .container {
  position: relative;
  z-index: 1;
}

.gestao-grid,
.avaliacao-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 30px;
}

.gestao h2,
.avaliacao h2 {
  font-size: 2.2rem;
  color: var(--secondary);
  margin-top: 0;
}

.gestao-text,
.avaliacao-text {
  flex: 1 1 55%;
}

.gestao-image,
.avaliacao-image {
  flex: 1 1 40%;
  text-align: center;
}

.gestao-image img,
.avaliacao-image img {
  max-width: 100%;
  height: auto;
}

/* Footer */
footer {
  background: linear-gradient(120deg, var(--primary), #32928b);
  color: var(--white);
  text-align: center;
  padding: 40px 0;
}

footer .footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer img {
  height: 80px;
  margin-bottom: 10px;
}

footer p {
  margin: 0;
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 1024px) {
  section {
    padding: 80px 0;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 100px;
  }
  .nav-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: calc(100vh - 72px);
    background: #ffffff;
    z-index: 1000;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0 20px;
    max-height: 0;
    overflow-y: auto;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    transition: max-height 0.35s ease, opacity 0.25s ease;
    opacity: 0;
    border-radius: 0 0 10px 10px;
  }
  nav.open .nav-links {
    max-height: calc(100vh - 72px);
    opacity: 1;
  }
  .nav-links li {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 0;
  }
  .hero {
    min-height: 80vh;
    padding-top: 100px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-elements {
    max-width: 640px;
    justify-self: center;
  }
  .project-grid,
  .gestao-grid,
  .avaliacao-grid {
    flex-direction: column;
  }
  .project-grid.reverse {
    flex-direction: column;
  }
  .project-grid .text,
  .project-grid .image,
  .gestao-text,
  .gestao-image,
  .avaliacao-text,
  .avaliacao-image {
    flex: 1 1 100%;
  }
}

@media (max-width: 640px) {
  nav .logo img {
    height: 46px;
  }
  .hero-text .lede,
  .sobre p,
  .project-grid .text p {
    font-size: 1rem;
  }
  .project-grid .text h3,
  .subsection h3,
  .gestao h2,
  .avaliacao h2 {
    font-size: 1.6rem;
  }
  section {
    padding: 70px 0;
  }
}
