/* =========================
   IBESE - Base CSS (MVP)
   Minimalista, moderno, azul
========================= */

:root {
  --bg: #ffffff;
  --text: #0b1220;
  --muted: #5b667a;
  --border: #e6eaf2;

  --primary: #1f4f7a;
  --primary-2: #163a59;

  --primary-light: #2f6fa6;

  --card: #ffffff;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.08);

  --radius: 14px;
  --container: 1120px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica,
    Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 18px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 78px;
  width: 100%;
  justify-content: space-between;
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  flex-shrink: 0;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  flex-wrap: nowrap;
}
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 10px;
}
.nav a.active {
  color: var(--primary);
  background: rgba(31, 79, 122, 0.12);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header.is-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.site-header.is-open .nav-toggle-bar:first-child {
  transform: translateY(7px) rotate(45deg);
}
.site-header.is-open .nav-toggle-bar:last-child {
  transform: translateY(-7px) rotate(-45deg);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.06s ease, background 0.2s ease, border-color 0.2s ease;
  user-select: none;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--primary-2);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: #cfd7e6;
}

/* Hero */
.hero {
  padding: 42px 0 18px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.12;
  margin: 0 0 10px;
  letter-spacing: -0.6px;
}
.lead {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 18px;
}
.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.badge-link {
  color: inherit;
}
.badge-link:hover {
  text-decoration: none;
  border-color: var(--primary);
}

/* Sections */
.section {
  padding: 28px 0;
}
.section-title {
  font-size: 22px;
  margin: 0 0 12px;
  letter-spacing: -0.2px;
}
.muted {
  color: var(--muted);
}
.badge-ghost {
  border-color: rgba(11, 18, 32, 0.12);
}

.section-institutional {
  background: linear-gradient(180deg, rgba(31, 79, 122, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
}
.institution-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
}
.institution-intro h2 {
  margin: 12px 0;
  font-size: 30px;
  letter-spacing: -0.4px;
}
.institution-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.institution-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.institution-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.institution-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 34px 0;
  margin-top: 48px;
  color: #f4f7fb;
  font-size: 13px;
  background: var(--primary);
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-2) 100%);
}
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 14px;
}
.site-footer a {
  color: #fff;
  font-weight: 600;
}
.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 920px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 34px;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* Brand (logo + texto em 2 linhas) */
.brand .brand-mark {
  display: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.2px;
}
.brand-subtitle {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
  letter-spacing: 0.2px;
}
.brand-logo {
  height: 45px;
  width: auto;
  display: block;
}
@media (max-width: 768px) {
  .brand-logo {
    height: 32px;
  }
}

.site-header a:hover {
  text-decoration: none;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 10px;
  }
  .header-inner {
    min-height: 64px;
    justify-content: space-between;
    gap: 12px;
  }
  .brand {
    flex: 1;
  }
  .header-right {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    margin-left: 0;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 5;
  }
  .site-header.is-open .header-right {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    white-space: normal;
  }
  .nav a {
    width: 100%;
  }
  .header-actions {
    flex-direction: column;
    width: 100%;
  }
  .header-actions .btn {
    width: 100%;
  }
  .brand-text {
    flex-direction: row;
    align-items: center;
    gap: 6px;
  }
  .brand-subtitle {
    display: inline-flex;
    line-height: 1.2;
    text-align: left;
  }
  .institution-grid {
    grid-template-columns: 1fr;
  }
  .institution-intro h2 {
    font-size: 26px;
  }
  .institution-cards {
    grid-template-columns: 1fr;
  }
  .target-grid {
    grid-template-columns: 1fr;
  }
  .section-cta .cta-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-institutional h1 {
    font-size: 30px;
  }
}
.hero-institutional {
  padding: 34px 0 18px;
  border-bottom: 1px solid var(--border);
}
.hero-institutional-inner {
  max-width: 760px;
}
.hero-institutional h1 {
  margin: 10px 0;
  font-size: 36px;
  letter-spacing: -0.6px;
}
.section-textual .textual-content {
  max-width: 920px;
  font-size: 16px;
  color: var(--muted);
}
.section-textual .textual-content p + p {
  margin-top: 14px;
}
.section-heading {
  max-width: 760px;
  margin-bottom: 18px;
}
.section-heading h2 {
  margin: 10px 0;
  font-size: 30px;
}
.section-target {
  background: rgba(31, 79, 122, 0.03);
}
.target-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.target-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
}
.target-card h3 {
  margin: 0 0 8px;
}
.target-card ul {
  padding-left: 18px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}
.section-differentials {
  background: linear-gradient(180deg, #fff 0%, rgba(31, 79, 122, 0.05) 100%);
}
.grid-differentials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) {
  .grid-differentials {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 540px) {
  .grid-differentials {
    grid-template-columns: 1fr;
  }
}
.diff-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.section-cta .cta-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
