/* =========================================================
   2/5 · LAYOUT — estrutura da página: header, menu, seções,
   grades e rodapé (mobile-first; larguras maiores em responsive.css)
   ========================================================= */

/* ---------- Seções ---------- */
.section { padding-block: 76px; position: relative; overflow-x: clip; } /* ilustrações dos cantos não criam rolagem lateral */
.section-salvia { background: var(--salvia); }
.section-heading { position: relative; max-width: 660px; margin: 0 auto 44px; text-align: center; }
.section-heading .eyebrow { justify-content: center; }
.section-heading p:not(.eyebrow) { color: var(--texto-suave); margin-top: .9rem; font-size: 1.05rem; }
.section-heading-left { text-align: left; margin-inline: 0; }
.section-heading-left .eyebrow { justify-content: flex-start; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  background: transparent;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header.is-scrolled,
.site-header.menu-aberto {
  background: rgba(247, 245, 238, .95);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 1px 0 rgba(38, 66, 52, .08), 0 8px 24px rgba(38, 66, 52, .06);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 28px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--fonte-titulo); font-weight: 600; font-size: .95rem;
  letter-spacing: .03em; text-transform: uppercase; color: var(--verde-escuro);
  white-space: nowrap;
}
.brand-role { font-size: .68rem; letter-spacing: .42em; text-transform: uppercase; color: var(--oliva-texto); font-weight: 700; }
.footer-brand .brand-name { white-space: normal; }

/* ---------- Menu (painel no celular) ---------- */
.menu-toggle {
  width: 46px; height: 46px; display: grid; place-items: center; flex-shrink: 0;
  background: transparent; border: 0; border-radius: 50%; cursor: pointer;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--verde-escuro);
  transition: transform .35s var(--ease), background-color .2s;
}
.menu-toggle-bars { position: relative; }
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--creme);
  padding: 12px 20px 28px;
  box-shadow: 0 20px 30px rgba(38, 66, 52, .10);
  display: flex; flex-direction: column; gap: 18px;
}
.main-nav ul { display: flex; flex-direction: column; }
.main-nav ul a {
  display: block; padding: 14px 4px; text-decoration: none;
  font-weight: 600; font-size: 1.08rem; color: var(--verde-escuro);
  border-bottom: 1px solid rgba(38, 66, 52, .10);
}
.main-nav ul a:hover { color: var(--oliva-texto); }
.nav-cta { align-self: stretch; }

/* ---------- Grades das seções ---------- */
.hero-grid { display: grid; gap: 44px; align-items: center; }
.about-grid { display: grid; gap: 40px; align-items: center; }
.about-copy { max-width: 820px; margin-inline: auto; } /* "Sobre" em coluna única, sem foto */
.cards-grid { display: grid; gap: 18px; }
.steps-layout { display: grid; gap: 44px; align-items: center; }
.dif-grid { display: grid; gap: 18px; }
.talks-grid { display: grid; gap: 22px; max-width: 640px; margin-inline: auto; } /* fotos das palestras menores */
.faq-wrap { max-width: 820px; }
.contact-grid { display: grid; gap: 40px; }

.hero-media { position: relative; z-index: 0; max-width: 440px; width: 88%; margin-inline: auto; }
.steps-media { max-width: 380px; width: 100%; margin-inline: auto; }

/* ---------- Rodapé ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--verde-escuro); color: #D5DDD7; padding-top: 60px; font-size: .94rem; }
.footer-grid { display: grid; gap: 34px; padding-bottom: 44px; }
.brand-light .brand-name { color: var(--creme); }
.brand-light .brand-role { color: var(--oliva-claro); }
.footer-brand p { margin-top: 16px; }
.footer-brand address { margin-top: 8px; }
.footer-col h2 {
  font-family: var(--fonte-texto); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--oliva-claro); margin-bottom: 14px;
}
.footer-col li + li { margin-top: 8px; }
.site-footer a { color: #EEF2EF; text-decoration-color: rgba(201, 209, 163, .5); text-underline-offset: 3px; }
.site-footer a:hover { color: var(--branco); text-decoration-color: currentColor; }
.footer-legal { font-size: .86rem; }
.footer-bottom { border-top: 1px solid rgba(222, 228, 224, .14); padding-block: 20px 90px; font-size: .84rem; }
.footer-bottom-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
