@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Source+Serif+4:wght@400;500;600&display=swap");

/* ========================================
   60/30/10 COLOR RULE
   60% — bg/sand (backgrounds, large areas)
   30% — ink/accent-strong (text, cards, structure)
   10% — accent green (CTAs, highlights, interactive)
   ======================================== */

:root {
  --bg: #f6f1e8;
  --bg-soft: #fdf9f2;
  --ink: #1f1b16;
  --ink-muted: #4a4239;
  --accent: #355847;
  --accent-strong: #2a4336;
  --accent-light: #d6e3da;
  --sand: #eadfcd;
  --card: #ffffff;
  --stroke: #d8d0c2;
  --shadow: 0 24px 60px rgba(32, 26, 18, 0.12);
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fffaf1 0%, var(--bg) 55%, #efe6d8 100%);
  line-height: 1.7;
  font-size: 1.05rem;
}

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

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}

.section.soft {
  background: var(--bg-soft);
}

.section.muted {
  background: var(--sand);
}

.section-head {
  margin-bottom: 36px;
  max-width: 680px;
}

h1,
h2,
h3 {
  font-family: "Source Serif 4", serif;
  font-weight: 600;
  color: var(--ink);
}

h1 {
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 10px;
}

p {
  color: var(--ink-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.lead {
  font-size: 1.15rem;
  margin: 24px 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: -999px;
  background: var(--accent);
  color: white;
  padding: 8px 14px;
  z-index: 100;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ========================================
   HEADER
   ======================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--stroke);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}

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

.brand img {
  width: 52px;
  height: 52px;
}

.brand span {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.nav {
  display: flex;
  gap: 18px;
  justify-content: center;
  font-size: 0.95rem;
  flex-wrap: wrap;
}

.nav a {
  position: relative;
  padding: 6px 2px;
  color: var(--ink-muted);
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  display: flex;
  gap: 10px;
}

/* Menu toggle — no border, right-aligned */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
}

.menu-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--ink);
  display: block;
  border-radius: 2px;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: var(--bg);
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  font-size: 1.05rem;
  color: var(--ink);
  font-weight: 500;
}

.mobile-cta {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

/* ========================================
   HERO — eyebrow closer to top, more breathing room for title
   ======================================== */

.hero {
  padding-top: 40px;
  padding-bottom: 84px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: 40px;
}

.hero-copy .eyebrow {
  margin-bottom: 20px;
}

.hero-copy .subtitle {
  font-size: 1.4rem;
  margin: 12px 0;
  color: var(--ink);
}

.brand-title {
  font-size: clamp(2.8rem, 4vw, 4.2rem);
  letter-spacing: -0.02em;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.brand-title span {
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-art {
  position: relative;
}

.hero-art img {
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-card {
  position: absolute;
  right: 6%;
  bottom: -30px;
  background: var(--card);
  padding: 18px 20px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  max-width: 280px;
}

.micro {
  margin-top: 16px;
  font-size: 0.9rem;
}

/* ========================================
   LAYOUT
   ======================================== */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: start;
}

.split h2 {
  white-space: nowrap;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.cards {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.people {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.subsection-title {
  margin-top: 40px;
  font-size: 1.35rem;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 12px 30px rgba(32, 26, 18, 0.08);
  border: 1px solid rgba(216, 208, 194, 0.7);
}

.card.person img {
  border-radius: 16px;
  margin-bottom: 14px;
}

.card.person a {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card.person a:hover h3 {
  color: var(--accent);
  text-decoration: underline;
}

/* ========================================
   BUTTONS
   ======================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.button.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 14px 26px rgba(53, 88, 71, 0.25);
}

.button.secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.button.ghost {
  background: transparent;
  border-color: var(--stroke);
  color: var(--ink);
}

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

/* ========================================
   LISTS — bolder, more prominent
   ======================================== */

.list {
  list-style: none;
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.list li {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
}

.list li::before {
  content: "\2022";
  color: var(--accent);
  margin-right: 10px;
  font-weight: 700;
}

/* ========================================
   "PARA QUEM É" — more space before button, button with background
   ======================================== */

#para-quem .button {
  margin-top: 24px;
}

/* ========================================
   TIMELINE
   ======================================== */

.timeline {
  display: grid;
  gap: 22px;
}

.timeline-item {
  background: var(--card);
  padding: 24px;
  border-radius: 20px;
  border-left: 6px solid var(--accent);
  box-shadow: 0 12px 30px rgba(32, 26, 18, 0.08);
}

.timeline-tag {
  display: inline-block;
  padding: 6px 12px;
  background: var(--accent-light);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin-bottom: 12px;
}

/* ========================================
   HIGHLIGHT BOX
   ======================================== */

.highlight-box {
  background: var(--accent-strong);
  color: white;
  padding: 26px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.highlight-box p {
  color: rgba(255, 255, 255, 0.85);
}

/* ========================================
   IMPACTO — columns aligned at top
   ======================================== */

.grid.two.aligned-top {
  align-items: start;
}

/* ========================================
   FAQ — bigger fonts, better consistency
   ======================================== */

.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--stroke);
  padding: 20px 22px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease;
}

.faq-item:hover {
  background: var(--accent-light);
}

.faq-item .icon {
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-panel {
  padding: 4px 22px 20px;
  display: none;
}

.faq-panel p {
  font-size: 1.08rem;
  line-height: 1.7;
}

.faq-item[aria-expanded="true"] + .faq-panel {
  display: block;
}

/* ========================================
   CONTACT
   ======================================== */

.contact-info {
  margin-top: 16px;
}

.contact-info p {
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.contact-info a {
  color: var(--accent);
  text-decoration: underline;
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
  background: var(--ink);
  color: #efe7dd;
  padding: 40px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  align-items: center;
}

.site-footer p {
  color: rgba(239, 231, 221, 0.7);
  font-size: 0.95rem;
}

.site-footer a.button.ghost {
  border-color: rgba(239, 231, 221, 0.3);
  color: #efe7dd;
}

/* ========================================
   PRESS KIT (unused but kept)
   ======================================== */

.press-kit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  align-items: start;
}

.press-assets {
  display: grid;
  gap: 16px;
}

/* ========================================
   RESPONSIVE — MOBILE
   ======================================== */

@media (max-width: 960px) {
  .nav,
  .header-cta {
    display: none;
  }

  .header-inner {
    grid-template-columns: auto 1fr;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-card {
    position: static;
    margin-top: 18px;
  }

  /* Apoiadoras carousel on mobile */
  .grid.people.carousel-mobile {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 12px;
    -webkit-overflow-scrolling: touch;
  }

  .grid.people.carousel-mobile .card.person {
    min-width: 150px;
    max-width: 170px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

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

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

  .cta-group {
    flex-direction: column;
    align-items: stretch;
  }

}

/* ========================================
   MODAL
   ======================================== */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(31, 27, 22, 0.6);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  background: var(--card);
  border-radius: 24px;
  padding: 40px 36px;
  max-width: 420px;
  width: 90vw;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--ink-muted);
  cursor: pointer;
  line-height: 1;
}

.modal h3 {
  margin-bottom: 14px;
}

.modal p {
  margin-bottom: 22px;
}

.modal .button {
  font-size: 1rem;
}

.modal-alt {
  margin-top: 14px;
  font-size: 0.92rem;
}

.modal-alt a {
  color: var(--accent);
  text-decoration: underline;
}

/* ========================================
   FORM — Inscrição
   ======================================== */

.form-container {
  max-width: 740px;
}

.form {
  display: grid;
  gap: 36px;
  margin-top: 32px;
}

.form fieldset {
  border: none;
  padding: 0;
}

.form legend {
  font-family: "Source Serif 4", serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-light);
  width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.form-field label {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--card);
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(53, 88, 71, 0.15);
}

.form-field textarea {
  resize: vertical;
  min-height: 100px;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a4239' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 4px;
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-muted);
  cursor: pointer;
}

.radio-label input,
.checkbox-label input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.checkbox-label.confirm {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
  padding: 14px 16px;
  background: var(--accent-light);
  border-radius: 12px;
}

.form-actions {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.form-actions .button {
  padding: 16px 40px;
  font-size: 1.1rem;
}

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