:root {
  --blue: #1F3F66;
  --blue-light: #4F6F8F;
  --gold: #C8A25A;
  --text: #4A4A4A;
  --light: #F2F2F2;
  --white: #FFFFFF;
  --border: #DCDCDC;
  --shadow: 0 18px 45px rgba(31, 63, 102, 0.12);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.menu-open {
  overflow: hidden;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(31, 63, 102, 0.1);
  backdrop-filter: blur(12px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--blue);
  min-width: 190px;
}

.brand-logo {
  display: block;
  width: min(220px, 42vw);
  height: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  list-style: none;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-menu a {
  position: relative;
  padding: 10px 0;
}

.nav-menu a::after {
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 0;
  height: 2px;
  content: "";
  background: var(--gold);
  transition: width 180ms ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--blue);
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: calc(100vh - 82px);
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(110deg, rgba(31, 63, 102, 0.98) 0%, rgba(31, 63, 102, 0.98) 56%, transparent 56%, transparent 100%),
    url("imagens/background-topo-campanha.webp");
  background-position: center, right center;
  background-size: cover, auto 100%;
  background-repeat: no-repeat;
  color: var(--white);
}

.hero-seal {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 56%;
  width: clamp(130px, 13vw, 220px);
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 18px 24px rgba(31, 63, 102, 0.22));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 56px;
}

.hero-copy {
  max-width: 560px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  content: "";
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--blue);
  line-height: 1.18;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: clamp(2.3rem, 6vw, 4.7rem);
  letter-spacing: 0;
}

.hero-title-image {
  max-width: 560px;
}

.hero-title-image img:not(.hero-seal) {
  display: block;
  width: min(100%, 520px);
  height: auto;
}

.hero p {
  max-width: 570px;
  font-size: 1.08rem;
}

.hero-subtitle {
  color: #F5E6C7;
  font-size: 1.2rem;
  font-weight: 700;
}

.hero-lead {
  color: var(--white);
  font-weight: 700;
  font-size: 0.8rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--blue);
  background: var(--gold);
}

.btn-primary:hover {
  background: #D6B66F;
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover {
  color: var(--blue);
  background: var(--white);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 38px;
}

.section-heading-centered {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-heading-centered .eyebrow {
  justify-content: center;
}

.section-heading-icon {
  display: block;
  width: min(500px, 100%);
  height: auto;
  margin: 0 auto 24px;
  object-fit: contain;
}

.section-heading h2,
.page-hero h1 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.feature-grid {
  display: grid;
  gap: 24px;
}

.feature-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card,
.compact-card,
.action-card,
.team-card,
.info-panel,
.contact-info,
.contact-form {
  background: var(--white);
  border: 1px solid rgba(31, 63, 102, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-card,
.compact-card,
.action-card,
.team-card {
  padding: 28px;
}

.feature-icon,
.team-card span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 22px;
  color: var(--blue);
  background: rgba(200, 162, 90, 0.22);
  border-radius: var(--radius);
  font-weight: 700;
}

.feature-card h3,
.compact-card h3,
.action-card h3,
.team-card h2 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.audience-icon {
  display: block;
  width: 58px;
  height: 58px;
  margin-bottom: 22px;
  object-fit: contain;
}

.importance,
.audience,
.contact-section {
  background: var(--light);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  list-style: none;
}

.timeline li {
  padding: 30px 24px;
  background: var(--white);
  border: 1px solid rgba(31, 63, 102, 0.1);
  border-top: 4px solid var(--gold);
  border-radius: var(--radius);
}

.timeline span,
.step-list span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: var(--white);
  background: var(--blue);
  border-radius: 50%;
  font-weight: 700;
}

.timeline h3 {
  font-size: 1.08rem;
}

.action-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
}

.text-link {
  width: fit-content;
  margin-top: auto;
  color: var(--blue);
  font-weight: 700;
  border-bottom: 2px solid var(--gold);
}

.progress-section {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
}

.progress-box {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 40px;
  color: var(--white);
}

.progress-box h2,
.progress-box p {
  color: var(--white);
}

.progress-area {
  padding: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 700;
}

.progress-bar {
  height: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.progress-bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gold);
  border-radius: inherit;
  transition: width 1400ms ease;
}

.final-cta {
  padding: 72px 0;
  color: var(--white);
  background: var(--blue);
  text-align: center;
}

.final-cta h2 {
  max-width: 760px;
  margin: 0 auto 28px;
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.final-cta p {
  margin: -10px auto 28px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
}

.site-footer {
  padding: 48px 0;
  color: rgba(255, 255, 255, 0.82);
  background: #17304E;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 36px;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
}

.site-footer h2 {
  font-size: 1.25rem;
}

.site-footer h3 {
  font-size: 1rem;
}

.footer-logo {
  display: block;
  width: min(230px, 100%);
  height: auto;
  margin-top: 18px;
}

.site-footer ul {
  list-style: none;
}

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

.page-hero {
  padding: 96px 0 72px;
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
}

.page-hero h1 {
  max-width: 900px;
  color: var(--white);
}

.content-grid,
.steps-layout,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 34px;
  align-items: start;
}

.rich-text {
  max-width: 800px;
}

.rich-text h2 {
  font-size: 2rem;
}

.rich-text p {
  font-size: 1.05rem;
}

.info-panel,
.contact-info,
.contact-form {
  padding: 30px;
}

.check-list {
  display: grid;
  gap: 14px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  content: "•";
  font-size: 1.7rem;
  line-height: 1;
}

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

.step-list {
  display: grid;
  gap: 20px;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 28px;
  background: var(--white);
  border: 1px solid rgba(31, 63, 102, 0.1);
  border-radius: var(--radius);
}

.step-list span {
  margin: 0;
}

.highlight-panel {
  background: var(--blue);
  color: var(--white);
}

.highlight-panel h2 {
  color: var(--white);
}

.links-list {
  display: grid;
  gap: 18px;
}

.links-intro {
  max-width: 720px;
  margin-bottom: 12px;
  color: var(--blue);
  font-weight: 700;
}

.resource-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  color: var(--blue);
  background: var(--white);
  border: 1px solid rgba(31, 63, 102, 0.12);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

.resource-link:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 162, 90, 0.55);
}

.resource-link strong {
  color: var(--gold);
}

.contact-grid {
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
}

.contact-info {
  background: var(--blue);
  color: var(--white);
}

.contact-info h2 {
  color: var(--white);
}

.contact-info a:hover {
  color: var(--gold);
}

.form-field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

label {
  color: var(--blue);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  padding: 14px 15px;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
}

input:focus,
textarea:focus {
  outline: 3px solid rgba(200, 162, 90, 0.28);
  border-color: var(--gold);
}

.form-feedback {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--blue);
  font-weight: 700;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: fixed;
    inset: 82px 0 auto 0;
    display: grid;
    gap: 0;
    padding: 14px 20px 24px;
    background: var(--white);
    border-bottom: 1px solid rgba(31, 63, 102, 0.1);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 220ms ease;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-menu a {
    display: block;
    padding: 15px 0;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: auto;
    background-image:
      linear-gradient(180deg, rgba(31, 63, 102, 0.96) 0%, rgba(31, 63, 102, 0.96) 100%),
      url("imagens/background-topo-campanha.webp");
    background-position: center, right center;
    background-size: cover, auto 100%;
    background-repeat: no-repeat;
  }

  .hero-seal {
    top: auto;
    right: 22px;
    bottom: 22px;
    left: auto;
    width: 120px;
    transform: none;
  }

  .hero-grid,
  .progress-box,
  .content-grid,
  .steps-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid.three,
  .feature-grid.four,
  .timeline,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .section {
    padding: 64px 0;
  }

  .navbar {
    min-height: 74px;
  }

  .brand {
    min-width: 0;
  }

  .nav-menu {
    inset: 74px 0 auto 0;
  }

  .hero {
    padding-top: 38px;
    padding-bottom: 64px;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-title-image {
    position: relative;
    width: fit-content;
  }

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

  .hero-title-image img:not(.hero-seal) {
    width: min(100%, 360px);
  }

  .hero-seal {
    top: 36%;
    right: 28px;
    bottom: auto;
    left: auto;
    width: 108px;
    transform: translateY(-50%);
  }

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

  .feature-grid.three,
  .feature-grid.four,
  .timeline,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 72px 0 54px;
  }

  .step-list li {
    grid-template-columns: 1fr;
  }

  .resource-link {
    align-items: flex-start;
    flex-direction: column;
  }

}
