:root {
  --bg: #f7f7f5;
  --text: #1f1f1f;
  --muted: #606060;
  --orange: #eb7a22;
  --orange-dark: #d56611;
  --green: #69a84f;
  --green-light: #b9d9a6;
  --teal-soft: #a8c5cb;
  --border: #e8e8e8;
  --white: #ffffff;
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  --radius: 22px;
  --container: 1180px;
  --header-offset: 110px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) - 24px);
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(247, 247, 245, 0.94), rgba(247, 247, 245, 0.94)),
    radial-gradient(circle at 20% 30%, rgba(0,0,0,0.03) 0 2px, transparent 2px),
    radial-gradient(circle at 80% 70%, rgba(0,0,0,0.03) 0 2px, transparent 2px);
  background-size: auto, 240px 240px, 300px 300px;
}

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

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

.section {
  padding: 48px 0;
  scroll-margin-top: calc(var(--header-offset) - 24px);
}

.section-tight {
  padding-bottom: 24px;
}

.section-after-tight {
  padding-top: 68px;
}

.muted-bg {
  background: rgba(255, 255, 255, 0.28);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 247, 245, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 88px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.brand-logo-secondary {
  height: 44px;
}

.main-nav > ul {
  display: flex;
  justify-content: center;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.main-nav li {
  position: relative;
}

.has-submenu {
  padding-bottom: 14px;
  margin-bottom: -14px;
}

.main-nav a {
  color: #1e1e1e;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
}

.main-nav a:hover {
  color: var(--orange);
}

.has-submenu > a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.has-submenu > a::after {
  content: "▾";
  font-size: 0.72rem;
  transform: translateY(-1px);
}

.submenu {
  position: absolute;
  top: calc(100% - 2px);
  left: 0;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding-left: 0;
  padding: 6px 0;
  background: rgba(247, 247, 245, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.submenu li {
  width: 100%;
}

.submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -14px;
  height: 14px;
}


.submenu a {
  display: block;
  padding: 6px 14px;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.15;
}

.has-submenu:hover .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.2;
  transition: 0.25s ease;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-dark);
}

.btn-outline {
  border: 2px solid var(--orange);
  color: #1e1e1e;
  background: var(--white);
  text-align: center;
  font-size: 0.84rem;
  padding: 10px 14px;
}

.header-cta {
  white-space: nowrap;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 400;
  line-height: 1.08;
}

.hero h1 span {
  font-weight: 800;
}

.hero p {
  max-width: 640px;
  font-size: 1.08rem;
  line-height: 1.75;
  color: #373737;
  margin-bottom: 22px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-logo {
  max-width: 420px;
  width: 100%;
}

.title-orange,
.title-green,
.section-title {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.title-orange {
  color: var(--orange);
  font-weight: 800;
}

.title-green {
  color: var(--green);
  font-weight: 800;
}

.section-title {
  color: #111;
  font-weight: 800;
}

.text-standard {
  font-size: 1.08rem;
  line-height: 1.75;
  color: #333;
}

.highlight-text {
  border-left: 4px solid var(--orange);
  padding: 0 0 0 16px;
  margin: 0;
  color: #292929;
  font-size: 1.08rem;
  line-height: 1.75;
}

.highlight-text.small {
  font-size: 1.08rem;
}

.section-intro {
  margin: 0 0 26px;
  color: #333;
  font-size: 1.08rem;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.advantages-line {
  position: relative;
  height: 4px;
  background: var(--green);
  margin: 44px 0 28px;
}

.adv-card {
  position: relative;
  padding-top: 34px;
}

.adv-dot {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--green-light);
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-money::before,
.icon-exchange::before,
.icon-leaf::before {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.icon-money::before {
  content: "💧";
}

.icon-exchange::before {
  content: "↔";
  font-size: 1.25rem;
  font-weight: 700;
}

.icon-leaf::before {
  content: "🍃";
}

.adv-card h3 {
  font-size: 1.05rem;
  margin: 0 0 14px;
  text-align: center;
}

.adv-box {
  min-height: 170px;
  background: var(--green);
  color: var(--white);
  border-radius: 14px;
  padding: 20px 24px;
}

.adv-box p {
  margin: 0;
  line-height: 1.6;
}

.adv-card h3 {
  font-size: 1.05rem;
  margin: 0 0 14px;
}

.adv-box {
  min-height: 170px;
  background: var(--green);
  color: var(--white);
  border-radius: 14px;
  padding: 20px;
}

.adv-box p {
  margin: 0;
  line-height: 1.6;
}

.modality-list {
  display: grid;
  gap: 18px;
  max-width: 520px;
}

.modality-item {
  border-left: 4px solid var(--orange);
  padding-left: 14px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.footnote {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

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

.profile-card {
  background: var(--teal-soft);
  border-radius: 26px;
  min-height: 230px;
  padding: 28px 24px;
  color: var(--white);
}

.profile-card h3 {
  margin: 0 0 22px;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

.profile-card p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.45;
}

.context-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 28px;
  align-items: start;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.context-list {
  margin-bottom: 18px;
}

.context-list li {
  display: block;
  background: #ffef9a;
  padding: 4px 8px;
  margin-bottom: 6px;
  font-size: 0.92rem;
  width: fit-content;
}

.context-highlight {
  display: inline;
  background: #ffef9a;
  box-shadow: 0 0 0 2px #ffef9a;
}

.context-grid p {
  line-height: 1.75;
  color: #333;
}

.credit-box {
  background: var(--white);
  border: 2px solid rgba(235, 122, 34, 0.65);
  border-radius: 28px;
  padding: 26px 22px;
  box-shadow: var(--shadow);
  max-width: 320px;
  justify-self: end;
}

.credit-box h3 {
  margin: 0 0 18px;
  color: #1a6078;
  font-size: 1.6rem;
  line-height: 1.15;
}

.credit-pill {
  background: var(--orange);
  color: var(--white);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  margin-bottom: 12px;
}

.credit-pill small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(31, 31, 31, 0.88);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: var(--shadow);
}

.back-to-top:hover {
  background: rgba(31, 31, 31, 1);
}

.site-footer {
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 0.95rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  width: 26px;
  height: 3px;
  background: #222;
  border-radius: 999px;
}

@media (max-width: 980px) {
  :root {
    --header-offset: 94px;
  }

  .header-inner {
    grid-template-columns: auto auto auto;
    justify-content: space-between;
  }

  .menu-toggle {
    display: inline-flex;
    order: 3;
  }

  .header-cta {
    display: none;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: rgba(247, 247, 245, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: none;
  }

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

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

  .main-nav > ul > li {
    width: 100%;
  }

  .main-nav > ul > li > a {
    display: block;
    width: 100%;
    padding: 12px 0;
  }

  .submenu {
    list-style: none;
    position: static;
    display: flex;
    flex-direction: column;
    min-width: 100%;
    padding: 4px 0;
    margin: 0;
    border: 0;
    box-shadow: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
    gap: 0;
  }

  .submenu li {
    width: 100%;
    margin: 0;
  }

  .submenu a {
    display: block;
    width: 100%;
    padding: 4px 0;
    font-size: 0.9rem;
    line-height: 1.2;
  }

  .hero-grid,
  .context-grid,
  .profile-grid,
  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .hero-logo {
    max-width: 260px;
  }

  .advantages-line {
    display: none;
  }

  .credit-box {
    justify-self: stretch;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 34px 0;
  }

  .section-tight {
    padding-bottom: 18px;
  }

  .section-after-tight {
    padding-top: 42px;
  }

  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .brand-logo {
    height: 34px;
  }

  .brand-logo-secondary {
    height: 36px;
  }

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

  .hero p {
    font-size: 1rem;
  }

  .btn {
    width: 100%;
  }

  .highlight-text,
  .highlight-text.small,
  .section-intro,
  .text-standard {
    font-size: 1rem;
  }

  .modality-item {
    font-size: 1.9rem;
  }

  .profile-card {
    min-height: auto;
  }

  .back-to-top {
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
    font-size: 0.84rem;
    width: auto;
  }
}

/* Logos institucionais */

.logos {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.logos img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

/* Isolamento da landing */

.landing {
  min-height: 100vh;
}

.cta-card {
  display: block;
  border: 2px solid var(--orange);
  border-radius: 12px;
  padding: 6px 10px;
  text-align: center;
  text-decoration: none;
  background: transparent;
  line-height: 1.1;
}

.cta-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #000;
  margin-bottom: 3px;
}

.cta-button {
  display: block;
  background: var(--orange);
  color: white;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

.cta-card:hover .cta-button {
  background: var(--orange-dark);
}