/* Instituto ABRE — site institucional estático */

:root {
  --green: #0b5716;
  --green-dark: #073d10;
  --green-soft: #587e1d;
  --yellow: #fbbb04;
  --cream: #fffeeb;
  --gray-bg: #ededed;
  --text: #333333;
  --hero-text: #1a1a1a;
  --white: #ffffff;
  --max-width: 1140px;
  --radius: 6px;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

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

h1, h2, h3 {
  line-height: 1.25;
  margin: 0 0 16px;
}

p {
  margin: 0 0 16px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  text-align: center;
}

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

.btn-outline {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--green-dark);
}

.btn-yellow:hover {
  background: #e0a802;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: var(--white);
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-header .logo img {
  height: 46px;
  width: auto;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--green);
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green);
}

.main-nav .nav-login {
  padding: 8px 18px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
}

.main-nav .nav-login:hover {
  background: var(--green-dark);
  color: var(--white);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--hero-text);
}

.hero .container {
  position: relative;
  padding-top: 90px;
  padding-bottom: 90px;
}

.hero h1 {
  font-size: 2.4rem;
  text-transform: uppercase;
  max-width: 560px;
  color: var(--hero-text);
}

.hero .subtitle {
  font-size: 1.1rem;
  max-width: 560px;
  margin-bottom: 32px;
  color: var(--hero-text);
}

.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(190px, 260px));
  gap: 14px;
}

.hero-actions a {
  background: var(--white);
  border: 1px solid #e2e2e2;
  color: var(--hero-text);
  padding: 16px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.hero-actions a:hover {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

.hero-small {
  padding-top: 56px;
  padding-bottom: 56px;
}

.hero-small h1 {
  font-size: 2rem;
}

.breadcrumb {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  font-weight: 700;
  margin-bottom: 10px;
}

/* Plain hero (banner image strip + heading below, no overlay/CTAs) */

.hero-plain-image {
  height: 320px;
  background-size: cover;
  background-position: center;
}

.hero-plain .container {
  padding-top: 28px;
  padding-bottom: 0;
}

.hero-plain h1 {
  font-size: 1.4rem;
  color: var(--text);
  text-transform: uppercase;
  margin: 0;
}

@media (max-width: 760px) {
  .hero-plain-image {
    height: 180px;
  }
}

/* ---------- Sections ---------- */

section {
  padding: 64px 0;
}

.section-cream {
  background: var(--cream);
}

.section-title {
  color: var(--green);
  text-transform: uppercase;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.two-col.reverse .media {
  order: 2;
}

/* Rights / benefits grid */

.rights-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
  margin-top: 32px;
}

.rights-grid figure {
  margin: 0;
}

.rights-grid img {
  width: 110px;
  height: 110px;
  margin: 0 auto 14px;
}

.rights-grid figcaption {
  font-weight: 700;
  color: var(--green-dark);
  font-size: 0.95rem;
}

/* Benefits list (o programa) */

.benefits-list {
  counter-reset: benefit;
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  gap: 18px;
}

.benefits-list li {
  background: var(--white);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow);
}

.benefits-list strong {
  color: var(--green);
}

/* Objetivos list */

.objectives {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.objectives li {
  padding-left: 34px;
  position: relative;
}

.objectives li::before {
  content: counter(roman, upper-roman) ".";
  counter-increment: roman;
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 800;
}

.objectives {
  counter-reset: roman;
}

/* Cursos - stories grid */

.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stories-grid img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

@media (max-width: 760px) {
  .stories-grid {
    grid-template-columns: 1fr;
  }
}

/* CTA banner */

.cta-banner {
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--white);
  text-align: center;
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 87, 22, 0.72);
}

.cta-banner .container {
  position: relative;
  padding: 56px 24px;
}

.cta-banner h2 {
  text-transform: uppercase;
  margin-bottom: 24px;
}

/* Units accordion */

.units-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.unit {
  border: 1px solid #e2e2e2;
  border-radius: var(--radius);
  overflow: hidden;
}

.unit summary {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  color: var(--green-dark);
  background: var(--cream);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.unit summary::-webkit-details-marker {
  display: none;
}

.unit summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--green);
}

.unit[open] summary::after {
  content: "\2212";
}

.unit-body {
  padding: 20px 22px 26px;
  display: grid;
  gap: 14px;
}

.unit-body .label {
  font-weight: 700;
  color: var(--green);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.unit-body ul {
  margin: 0;
  padding-left: 18px;
}

.unit-coming-soon {
  color: #888;
  font-style: italic;
}

/* Quem somos mission box */

.mission {
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.mission h2 {
  color: var(--yellow);
  text-transform: uppercase;
  font-size: 1.4rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--gray-bg);
  padding: 40px 0 24px;
  margin-top: 40px;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.site-footer .logo img {
  height: 42px;
}

.site-footer .main-nav ul {
  justify-content: center;
}

.site-footer .copyright {
  font-size: 0.8rem;
  color: #999;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
  }

  .two-col.reverse .media {
    order: 0;
  }

  .rights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 0;
  }

  .site-header .container {
    flex-wrap: wrap;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .rights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
