@import url('https://fonts.googleapis.com/css2?family=Jost:wght@400;500;600;700;800&display=swap');

:root {
  --color-primary: #1A4A8B;
  --color-primary-dark: #133970;
  --color-primary-light: #E8EEF7;
  --color-snow: #f8f9fa;
  --color-alabaster: #dee2e6;
  --color-slate: #adb5bd;
  --color-iron: #495057;
  --color-carbon: #212529;

  --bg: var(--color-snow);
  --bg-soft: #ffffff;
  --text: var(--color-carbon);
  --muted: var(--color-iron);
  --brand: var(--color-primary);
  --brand-dark: var(--color-primary-dark);
  --accent: var(--color-primary);
  --card: rgba(255, 255, 255, 0.9);
  --shadow: 0 14px 30px rgba(19, 57, 112, 0.14);
  --radius: 18px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Jost', 'Futura', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 4%, #ffffff 0%, transparent 38%),
    radial-gradient(circle at 95% 14%, #e8eef7 0%, transparent 34%),
    linear-gradient(145deg, #f8f9fa 0%, #eef2f7 100%);
  min-height: 100vh;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
  background: rgba(248, 249, 250, 0.9);
  border-bottom: 1px solid rgba(26, 74, 139, 0.14);
}

.header-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.9rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.site-nav a {
  font-family: 'Jost', 'Futura', system-ui, sans-serif;
  font-size: 0.86rem;
  text-decoration: none;
  color: var(--accent);
  padding: 0.46rem 0.72rem;
  border-radius: 999px;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(26, 74, 139, 0.12);
  color: var(--brand-dark);
  transform: translateY(-1px);
}

.site-nav a.active {
  background: var(--brand);
  color: #fff;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.2rem 1rem 2.6rem;
}

.hero,
.page-hero {
  background:
    linear-gradient(130deg, rgba(26, 74, 139, 0.96), rgba(19, 57, 112, 0.92)),
    linear-gradient(90deg, #2a5ca2, #133970);
  color: #fff;
  padding: clamp(1.4rem, 4vw, 2.8rem);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  animation: rise 720ms ease both;
}

/* Featured image in hero */
.hero-featured {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  margin-bottom: 0.9rem;
}

@media (max-width: 720px) {
  .hero-featured {
    height: 160px;
  }
}

.hero::after,
.page-hero::after {
  content: '';
  position: absolute;
  inset: auto -50px -60px auto;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 238, 247, 0.52) 0%, transparent 68%);
}

h1,
h2,
h3 {
  font-family: 'Jost', 'Futura', system-ui, sans-serif;
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(1.8rem, 4.8vw, 3.1rem);
  margin-bottom: 0.45rem;
}

h2 {
  font-size: clamp(1.26rem, 3.4vw, 2rem);
  margin-bottom: 0.7rem;
  color: var(--brand-dark);
}

.subtitle {
  max-width: 64ch;
  margin: 0;
  font-size: 1.08rem;
}

.button-row {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.62rem 1.1rem;
  font-family: 'Jost', 'Futura', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 2px solid transparent;
  transition: transform 200ms ease, box-shadow 200ms ease, background-color 200ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.18);
}

.btn.primary {
  background: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.btn.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.68);
}

.grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid rgba(26, 74, 139, 0.12);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow);
  animation: rise 760ms ease both;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

/* Card images */
.card-img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0 0.75rem 0;
}

@media (max-width: 720px) {
  .card-img {
    height: 120px;
  }
}

section {
  margin-top: 1.5rem;
}

.timeline {
  border-left: 4px solid rgba(26, 74, 139, 0.34);
  padding-left: 1rem;
  display: grid;
  gap: 1rem;
}

.timeline article {
  background: var(--card);
  border-radius: 14px;
  padding: 0.86rem;
  border: 1px solid rgba(26, 74, 139, 0.18);
}

.timeline .year {
  font-family: 'Jost', 'Futura', system-ui, sans-serif;
  font-weight: 700;
  color: var(--brand-dark);
}

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

.list-clean {
  margin: 0;
  padding-left: 1rem;
}

.list-clean li + li {
  margin-top: 0.42rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

thead {
  background: var(--accent);
  color: #fff;
  font-family: 'Jost', 'Futura', system-ui, sans-serif;
}

th,
td {
  text-align: left;
  padding: 0.78rem;
  border-bottom: 1px solid rgba(26, 74, 139, 0.12);
}

tbody tr:hover {
  background: rgba(232, 238, 247, 0.72);
}

.download-link {
  font-family: 'Jost', 'Futura', system-ui, sans-serif;
  font-weight: 700;
  color: var(--brand-dark);
}

.info-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid rgba(26, 74, 139, 0.13);
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

form {
  display: grid;
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-family: 'Jost', 'Futura', system-ui, sans-serif;
  font-weight: 600;
  color: var(--accent);
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(26, 74, 139, 0.25);
  border-radius: 10px;
  padding: 0.62rem;
  font: inherit;
  background: #fff;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

/* Honeypot helper class: visually hidden but accessible to assistive tech avoidance
   Use on a container wrapping a fake field to trap bots that fill all inputs. */
.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button {
  border: 0;
  cursor: pointer;
}

iframe {
  width: 100%;
  min-height: 220px;
  border: 0;
  border-radius: 12px;
}

.site-footer {
  margin-top: 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  padding-bottom: 1rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .header-wrap {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo {
    height: 46px;
  }

  .site-nav ul {
    justify-content: flex-start;
  }

  .hero,
  .page-hero {
    border-radius: 18px;
  }
}

/* Enhanced two-column timeline (alternate left/right) */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: rgba(26, 74, 139, 0.14);
  transform: translateX(-50%);
}

.timeline-item {
  background: var(--card);
  border: 1px solid rgba(26, 74, 139, 0.12);
  border-radius: 14px;
  padding: 1rem;
  width: calc(50% - 2rem);
  box-shadow: var(--shadow);
  position: relative;
}

.timeline-item.left {
  justify-self: start;
  margin-right: auto;
}

.timeline-item.right {
  justify-self: end;
  margin-left: auto;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 1.1rem;
  width: 14px;
  height: 14px;
  background: var(--bg);
  border: 4px solid var(--brand);
  border-radius: 50%;
}

.timeline-item.left::after {
  right: -38px;
}

.timeline-item.right::after {
  left: -38px;
}

.timeline-item .year {
  font-weight: 700;
  color: var(--brand-dark);
  margin-bottom: 0.4rem;
}

@media (max-width: 720px) {
  .timeline::before {
    left: 18px;
  }
  .timeline-item {
    width: 100%;
    margin-left: 36px;
  }
  .timeline-item.left,
  .timeline-item.right {
    justify-self: start;
    margin: 0 0 1rem 0;
  }
  .timeline-item::after {
    left: -38px;
    right: auto;
  }
}

/* Instalacoes: force 5 columns on wide screens, stack on smaller viewports */
.instalacoes-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}

.instalacoes-grid .card-img {
  height: 120px;
}

.instalacoes-grid .card {
  padding: 0.6rem;
}

.instalacoes-grid .card h2 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.instalacoes-grid .card p,
.instalacoes-grid .card .list-clean,
.instalacoes-grid .card ul {
  font-size: 0.86rem;
}

@media (max-width: 1200px) {
  .instalacoes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .instalacoes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .instalacoes-grid .card-img {
    height: 100px;
  }
}

@media (max-width: 520px) {
  .instalacoes-grid {
    grid-template-columns: 1fr;
  }
  .instalacoes-grid .card-img {
    height: 84px;
  }
}