:root {
  --ink: #111827;
  --ink-2: #27323a;
  --muted: #5d6972;
  --soft: #f4f6f7;
  --paper: #ffffff;
  --line: #dde4e7;
  --navy: #0c2331;
  --navy-2: #102f3f;
  --teal: #006b68;
  --teal-dark: #07504e;
  --gold: #b99455;
  --slate: #25313b;
  --shadow-sm: 0 8px 24px rgba(15, 35, 49, 0.08);
  --shadow-md: 0 18px 50px rgba(15, 35, 49, 0.12);
  --radius: 2px;
  --radius-card: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -0.045em;
  font-size: clamp(1.1rem, 2vw, 1.38rem);
  line-height: 1;
}

.logo span {
  color: var(--teal);
  margin-left: 4px;
  font-weight: 500;
}

.menu {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 700;
}

.menu a {
  position: relative;
  padding: 25px 0;
}

.menu a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 18px;
  height: 2px;
  background: var(--teal);
  transition: right 0.22s ease;
}

.menu a:hover::after { right: 0; }
.menu a:hover { color: var(--teal); }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--navy);
  font-size: 1.8rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  background: var(--teal);
  color: var(--paper);
  border-radius: var(--radius);
  font-weight: 800;
  border: 1px solid var(--teal);
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--paper);
  border-color: rgba(255,255,255,0.45);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.75);
}

.light .btn-secondary,
#contato .btn-secondary {
  color: var(--navy);
  border-color: var(--line);
  background: var(--paper);
}

.light .btn-secondary:hover,
#contato .btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-small {
  min-height: 38px;
  padding: 0 18px !important;
  color: var(--paper) !important;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--paper);
  padding: clamp(82px, 10vw, 132px) 0 clamp(72px, 8vw, 104px);
  background:
    linear-gradient(90deg, rgba(12,35,49,0.96) 0%, rgba(12,35,49,0.92) 47%, rgba(12,35,49,0.62) 100%),
    radial-gradient(circle at 82% 18%, rgba(185,148,85,0.35), transparent 25%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 45%, var(--teal-dark) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, black, transparent 88%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -8%;
  top: 12%;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255,255,255,0.12);
  transform: rotate(38deg);
  pointer-events: none;
}

.hero-grid,
.split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
}

h1, h2, h3 {
  line-height: 1.08;
  margin-top: 0;
  color: inherit;
}

h1 {
  max-width: 900px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(2.65rem, 5.8vw, 5.5rem);
  letter-spacing: -0.055em;
  margin-bottom: 26px;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3.45rem);
  letter-spacing: -0.045em;
  margin-bottom: 22px;
  color: var(--navy);
}

h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--navy);
}

.hero-text {
  color: rgba(255,255,255,0.84);
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
  max-width: 760px;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-meta span {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.86);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255,255,255,0.06);
}

.hero-card {
  background: rgba(255,255,255,0.96);
  color: var(--ink);
  border-top: 5px solid var(--gold);
  border-radius: var(--radius-card);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}

.hero-card h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.15rem);
  margin-bottom: 16px;
}

.hero-card p,
.hero-card li {
  color: var(--muted);
}

.hero-card ul {
  padding-left: 0;
  list-style: none;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}

.hero-card li {
  padding-left: 22px;
  position: relative;
  font-weight: 700;
}

.hero-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  background: var(--teal);
}

.section {
  padding: clamp(66px, 8vw, 104px) 0;
}

.light { background: var(--soft); }

.section h2 + .wide,
.section-intro,
.wide {
  font-size: 1.07rem;
  max-width: 920px;
  color: var(--muted);
}

.section-intro {
  margin-top: -6px;
  margin-bottom: 30px;
}

#sobre .split { align-items: start; }
#sobre p { color: var(--muted); }

.values { display: grid; gap: 16px; }

.values > div,
.programs,
.card,
.knowledge-grid article,
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
}

.values strong {
  color: var(--navy);
  display: block;
  margin-bottom: 8px;
  font-size: 0.98rem;
}

.values p,
.programs p,
.programs li,
.card p,
.knowledge-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

.cards,
.knowledge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.card,
.knowledge-grid article {
  position: relative;
  min-height: 220px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card::before,
.knowledge-grid article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: var(--teal);
  opacity: 0.9;
}

.card:hover,
.knowledge-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0,107,104,0.28);
}

.card h3,
.knowledge-grid h3 {
  padding-left: 4px;
  color: var(--navy);
}

.programs {
  border-top: 5px solid var(--teal);
}

.programs ul {
  padding-left: 0;
  list-style: none;
  margin: 18px 0;
  display: grid;
  gap: 12px;
}

.programs li {
  position: relative;
  padding-left: 24px;
}

.programs li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 800;
}

.note {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 20px;
}

.cta {
  background:
    linear-gradient(90deg, rgba(12,35,49,0.96), rgba(12,35,49,0.90)),
    linear-gradient(135deg, var(--navy), var(--teal-dark));
  color: var(--paper);
  text-align: left;
}

.cta .container {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.cta h2 {
  color: var(--paper);
  margin-bottom: 12px;
  max-width: 850px;
}

.cta p {
  color: rgba(255,255,255,0.78);
  max-width: 760px;
  margin: 0;
}

#contato p { color: var(--muted); }

.contact-form {
  display: grid;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 800;
  color: var(--navy);
  font-size: 0.9rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  font: inherit;
  background: var(--soft);
  color: var(--ink);
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(0,107,104,0.20);
  border-color: var(--teal);
  background: var(--paper);
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  padding: 52px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-grid strong {
  display: block;
  color: var(--paper);
  margin-bottom: 12px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
}

.footer-grid a:hover { color: var(--gold); }

.footer-logo {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--paper);
}

@media (max-width: 980px) {
  .container { width: min(100% - 36px, 860px); }
  .hero-grid,
  .split { grid-template-columns: 1fr; }
  .cards,
  .knowledge-grid { grid-template-columns: repeat(2, 1fr); }
  .cta .container { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav { min-height: 66px; }
  .menu-toggle { display: block; }

  .menu {
    display: none;
    position: absolute;
    left: 18px;
    right: 18px;
    top: 66px;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .menu.open { display: flex; }

  .menu a {
    padding: 14px 12px;
    color: var(--navy);
    border-bottom: 1px solid var(--line);
  }

  .menu a:not(.btn)::after { display: none; }

  .menu a:last-child {
    border-bottom: 0;
    margin-top: 10px;
    text-align: center;
  }

  .btn-small { color: var(--paper) !important; }

  .hero { padding: 72px 0 60px; }
  .hero-card { margin-top: 10px; }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn { width: 100%; }

  .cards,
  .knowledge-grid,
  .footer-grid { grid-template-columns: 1fr; }

  .card,
  .knowledge-grid article { min-height: auto; }

  .section { padding: 58px 0; }
}

@media (max-width: 420px) {
  .container { width: min(100% - 28px, 100%); }
  h1 { font-size: 2.35rem; }
  h2 { font-size: 1.9rem; }
  .hero-meta span { width: 100%; }

  .values > div,
  .programs,
  .card,
  .knowledge-grid article,
  .contact-form,
  .hero-card {
    padding: 22px;
  }
}
