/* Layout e seções do site multipágina. Tokens e componentes: design-system.css */

.page {
  padding-bottom: 0;
}

.section {
  padding: 4.5rem 6vw;
  scroll-margin-top: 5.5rem;
}

.section--tight {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.section--dark {
  background: var(--verde-escuro);
  color: var(--creme);
}

.section--dark h2,
.section--dark .section-title {
  color: var(--creme);
}

.section--dark p {
  color: var(--menta);
}

.section--dark .btn {
  background: var(--creme);
  color: var(--verde-escuro);
  border-bottom-color: var(--terracota);
}

.section--dark .btn:hover,
.section--dark .btn:active {
  background: var(--branco);
  color: var(--verde-escuro);
}

.section--dark .btn:focus-visible {
  outline-color: var(--creme);
}

.section__inner {
  width: min(72rem, 100%);
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: 42rem;
}

.eyebrow,
.kicker {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--verde);
}

.section-title {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--verde-escuro);
}

.section-lead {
  margin: 0 0 1.5rem;
  max-width: 40rem;
  color: var(--texto);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin-top: 1.75rem;
}

/* —— Header / nav multipágina —— */

.nav-group {
  position: relative;
}

.nav-group > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.45rem 0.1rem;
  color: var(--verde-escuro);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--sans);
}

.nav-group > summary::-webkit-details-marker {
  display: none;
}

.nav-group > summary::after {
  content: " ▾";
  font-size: 0.7em;
  opacity: 0.7;
}

.nav-submenu {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 16rem;
  margin: 0;
  padding: 0.6rem 0;
  list-style: none;
  background: var(--creme);
  border: 1px solid var(--linha);
}

.nav-submenu a {
  display: block;
  padding: 0.55rem 1rem;
  color: var(--verde-escuro);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.nav-submenu a:hover,
.nav-submenu a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

@media (min-width: 861px) {
  .nav-submenu {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0;
    z-index: 12;
    box-shadow: 0 8px 24px rgba(46, 82, 72, 0.08);
  }

  .nav-group:not([open]) .nav-submenu {
    display: none;
  }
}

@media (max-width: 860px) {
  .nav-group {
    width: 100%;
    border-top: 1px solid var(--linha);
  }

  .nav-group > summary {
    padding: 0.85rem 0;
  }

  .nav-submenu {
    border: 0;
    border-top: 1px solid var(--linha);
    padding: 0 0 0.5rem 0.75rem;
    background: transparent;
  }

  .nav-submenu a {
    padding: 0.65rem 0;
    border-top: 1px solid var(--linha);
  }

  .site-nav .btn {
    display: inline-flex;
    margin-top: 0.9rem;
    align-self: flex-start;
  }
}

/* —— Hero —— */

.hero-page {
  padding: 10vh 6vw 5rem;
  border-bottom: 1px solid var(--linha);
}

.hero-page__inner {
  width: min(72rem, 100%);
  margin: 0 auto;
}

.hero-page h1 {
  margin: 0 0 1.25rem;
  max-width: 18ch;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.8rem, 7vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--verde-escuro);
}

.hero-page__text {
  margin: 0;
  max-width: 38rem;
  color: var(--texto);
}

.hero-page__meta {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  font-size: 0.95rem;
  color: var(--verde);
}

.gold-rule {
  display: block;
  width: 4.5rem;
  height: 2px;
  margin: 0 0 1.5rem;
  background: var(--dourado);
  border: 0;
}

/* —— Breadcrumb —— */

.breadcrumb {
  width: min(72rem, calc(100% - 12vw));
  margin: 1.25rem auto 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--verde);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  opacity: 0.7;
}

.breadcrumb a {
  color: var(--verde-escuro);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

/* —— Listas e cards —— */

.challenge-list,
.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.challenge-list {
  display: grid;
  gap: 0;
}

.challenge-list li {
  border-top: 1px solid var(--verde);
  padding: 1.1rem 0 1.25rem;
}

.challenge-list a {
  display: grid;
  gap: 0.35rem;
  text-decoration: none;
  color: inherit;
}

.challenge-list strong {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  color: var(--verde-escuro);
}

.challenge-list span {
  font-size: 0.95rem;
  color: var(--verde);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.area-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.3rem 1.4rem;
  background: var(--papel);
  border: 1px solid var(--linha);
  border-top: 2px solid var(--verde);
  text-decoration: none;
  color: inherit;
}

.area-card:hover {
  border-color: var(--verde);
}

.area-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.1;
  color: var(--verde-escuro);
}

.area-card p {
  margin: 0;
  flex: 1;
  font-size: 0.98rem;
}

.area-card .more {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--verde);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding-top: 0.8rem;
  border-top: 1px solid var(--verde);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--verde);
}

.steps strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--verde-escuro);
}

.steps p {
  margin: 0;
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem 3rem;
  align-items: start;
}

/* —— FAQ —— */

.faq {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.faq details {
  border-top: 1px solid var(--linha);
  padding: 1rem 0;
}

.faq details:last-child {
  border-bottom: 1px solid var(--linha);
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--verde-escuro);
  font-family: var(--sans);
}

.faq p {
  margin: 0.75rem 0 0;
  max-width: 40rem;
}

/* —— Form —— */

.form-panel {
  margin-top: 1.5rem;
  padding: 1.5rem 1.4rem 1.6rem;
  background: var(--papel);
  border: 1px solid var(--linha);
}

.form-panel h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 500;
  color: var(--verde-escuro);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--verde-escuro);
}

.field .req {
  color: var(--verde);
}

.field input,
.field select,
.field textarea {
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--linha);
  border-radius: 8px;
  background: var(--creme);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 1rem;
}

.field textarea {
  min-height: 8rem;
  resize: vertical;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--verde-escuro);
  outline-offset: 2px;
}

.form-note {
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.form-note a {
  color: var(--verde-escuro);
  font-weight: 500;
}

.form-actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.form-hint {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--terracota);
  background: var(--creme);
  font-size: 0.9rem;
}

/* —— Footer —— */

.site-footer {
  margin-top: 0;
  padding: 3.5rem 6vw 2.5rem;
  border-top: 1px solid var(--linha);
  background: var(--papel);
}

.site-footer__inner {
  width: min(72rem, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h2 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--verde-escuro);
}

.site-footer p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

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

.site-footer li + li {
  margin-top: 0.4rem;
}

.site-footer a {
  color: var(--verde-escuro);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-footer a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

.site-footer__bottom {
  width: min(72rem, 100%);
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--linha);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--verde);
}

.site-footer__bottom a {
  color: var(--verde);
}

.stub-note {
  margin: 4rem auto;
  width: min(40rem, calc(100% - 12vw));
  padding: 1.5rem;
  border: 1px solid var(--linha);
  background: var(--papel);
}

.note-provisional {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--dourado);
  background: var(--papel);
  font-size: 0.9rem;
}

.values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.values li {
  padding: 1.15rem 1.2rem;
  background: var(--papel);
  border: 1px solid var(--linha);
}

.values strong {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--verde-escuro);
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.toc a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--verde-escuro);
  text-decoration: none;
}

.toc a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.28em;
}

.photo-inline {
  margin: 1.5rem 0 0;
  max-width: 22rem;
}

.photo-inline img {
  display: block;
  width: 100%;
  height: 26rem;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 7rem 7rem 0.75rem 0.75rem;
}

.photo-inline figcaption {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  color: var(--verde);
}

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

.stub-note h1 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 500;
  color: var(--verde-escuro);
}

@media (max-width: 900px) {
  .area-grid,
  .split,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-page {
    padding-top: 6vh;
  }

  .form-grid,
  .steps {
    grid-template-columns: 1fr;
  }
}
