/* Paleta e fonte provisórias: a identidade visual oficial ainda será enviada pela SBCiAmb.
   Para trocar, basta ajustar os tokens abaixo. */
:root {
  --green-950: #062b20;
  --green-900: #0a3a2c;
  --green-800: #0f4c3a;
  --green-700: #17614a;
  --green-600: #23785b;
  --green-100: #e5f1ea;
  --leaf-500: #8cc63f;
  --leaf-600: #74aa2c;
  --ochre-500: #d69a2d;
  --ink: #102a22;
  --muted: #56685f;
  --paper: #ffffff;
  --canvas: #f5f7f2;
  --line: #dbe5dd;
  --shadow: 0 24px 60px -36px rgba(6, 43, 32, 0.45);
  --max: 1180px;
  --radius: 18px;
  --radius-lg: 30px;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: var(--font); line-height: 1.65; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.7rem); }
h3 { font-size: 1.25rem; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 3px solid var(--ochre-500); outline-offset: 4px; }
::selection { background: var(--green-100); color: var(--green-800); }

.wrap { width: min(calc(100% - 32px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; transform: translateY(-180%); padding: 10px 16px; background: var(--paper); border-radius: 8px; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

/* Cabeçalho */
.utility-bar { background: var(--green-950); color: #cfe3d7; font-size: 0.76rem; }
.utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.utility-inner p { margin: 0; }
.utility-links { display: flex; gap: 22px; }
.utility-links a:hover { color: white; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 24px; }
.brand { flex: 0 0 auto; }
.brand img { width: 220px; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 2px; flex: 1; }
.nav-link { position: relative; padding: 12px 10px; font-size: 0.86rem; font-weight: 650; color: #35554a; border-radius: 8px; white-space: nowrap; }
.nav-link::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px; background: var(--leaf-500); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav-link:hover, .nav-link.is-active { color: var(--ink); }
.nav-link:hover::after, .nav-link.is-active::after { transform: scaleX(1); }

/* Botões e links */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 999px; font-size: 0.92rem; font-weight: 700; line-height: 1; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -18px rgba(6,43,32,.8); }
.button-small { min-height: 42px; padding: 0 18px; font-size: 0.8rem; white-space: nowrap; }
.button-dark { background: var(--green-800); color: white; }
.button-dark:hover { background: var(--green-700); }
.button-accent { background: var(--leaf-500); color: var(--green-950); }
.button-accent:hover { background: var(--leaf-600); }
.button-ghost { background: transparent; color: white; border-color: rgba(255,255,255,.4); }
.button-ghost:hover { border-color: white; background: rgba(255,255,255,.07); }
.button-outline { background: transparent; color: var(--green-800); border-color: var(--green-800); }
.menu-toggle, .member-mobile { display: none; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; width: fit-content; color: var(--green-700); font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.text-link:hover { color: var(--green-900); }
.text-link-light { color: var(--leaf-500); }
.text-link-light:hover { color: white; }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--green-600); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow-light { color: var(--leaf-500); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--ink); }

/* Seções */
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section-soft { background: var(--canvas); }
.section-heading { margin-bottom: 40px; }
.section-heading > * { max-width: 760px; }
.section-heading p { color: var(--muted); }
.split-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.split-heading h2 { margin-bottom: 0; }
.intro-grid, .prose-grid, .two-column { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.prose p { color: #34483f; }
.prose .lead { color: var(--ink); }

/* Banner rotativo da página inicial */
.banner { position: relative; overflow: hidden; background: var(--green-900); color: white; }
/* Slides empilhados na mesma célula: o banner cresce até o slide mais alto e nunca corta o texto. */
.banner-track { display: grid; }
.banner-slide { position: relative; grid-area: 1 / 1; display: grid; place-items: center; min-height: clamp(440px, 62vh, 600px); padding: 56px 88px 84px; background-size: cover; background-position: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.banner-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,43,32,.15), rgba(6,43,32,.55) 70%, rgba(6,43,32,.7)); }
.banner-slide.is-active { opacity: 1; visibility: visible; }
.banner-caption { position: relative; max-width: 860px; text-align: center; }
.banner-caption h1, .banner-caption h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); margin-bottom: 14px; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.banner-caption p { max-width: 640px; margin: 0 auto 26px; font-size: clamp(1rem, 1.6vw, 1.2rem); color: #eef6f0; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.button-light { background: white; color: var(--green-900); }
.button-light:hover { background: var(--green-100); }
.banner-arrow { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); display: grid; place-items: center; width: 46px; height: 46px; border: 2px solid rgba(255,255,255,.8); border-radius: 50%; background: rgba(6,43,32,.25); color: white; font-size: 1.2rem; font-weight: 800; cursor: pointer; transition: background .2s ease; }
.banner-arrow:hover { background: rgba(6,43,32,.6); }
.banner-prev { left: 24px; }
.banner-next { right: 24px; }
.banner-dots { position: absolute; left: 0; right: 0; bottom: 22px; z-index: 2; display: flex; justify-content: center; gap: 10px; }
.banner-dot { width: 11px; height: 11px; padding: 0; border: 2px solid white; border-radius: 50%; background: transparent; cursor: pointer; }
.banner-dot.is-active { background: white; }

/* Apresentação centralizada */
.home-intro-inner { max-width: 900px; text-align: center; }
.home-intro-inner h2 { margin-bottom: 22px; }
.home-intro-inner p { color: #34483f; }
.button-row-center { justify-content: center; margin-top: 28px; }
.section-heading-center { text-align: center; }
.section-heading-center > * { margin-inline: auto; }
.center-link { display: flex; justify-content: center; margin-top: 32px; }
.section-tight { padding-top: 0; }

/* Hero das páginas internas */
.page-hero { background: linear-gradient(180deg, var(--green-100), var(--canvas)); padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 72px); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 820px; }
.page-hero .lead { max-width: 720px; color: var(--muted); }

/* Cartões */
.area-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.goal-card, .person-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.area-tile { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); box-shadow: 0 10px 30px -26px rgba(6,43,32,.6); }
.area-tile-art { display: grid; place-items: center; aspect-ratio: 4 / 3; }
.area-tile-art svg { width: 46%; height: auto; }
.tint-blue { background: #dcecf2; }
.tint-teal { background: #dcefec; }
.tint-green { background: #e6f1dc; }
.tint-sand { background: #fbf1da; }
.area-tile-body { padding: 22px 22px 26px; text-align: center; }
.area-tile-body h3 { margin-bottom: 8px; }
.area-tile-body p { color: var(--muted); font-size: .94rem; }
.goal-card p { color: var(--muted); }
.goal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.goal-card h3 { font-size: 1.1rem; }
.goal-card { border-top: 4px solid var(--leaf-500); }

.mission-panel { padding: clamp(36px, 6vw, 72px); border-radius: var(--radius-lg); background: var(--green-800); color: white; }
.mission-panel p { max-width: 900px; font-size: clamp(1.4rem, 2.6vw, 2.2rem); font-weight: 650; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 28px; }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 360px)); justify-content: center; gap: 18px; }
.news-card { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); background: var(--green-800); color: white; transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-thumb { display: block; aspect-ratio: 16 / 9; margin: 10px 10px 0; overflow: hidden; border-radius: 12px; background: var(--paper); }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb-placeholder { display: grid; place-items: center; height: 100%; background: linear-gradient(135deg, var(--green-100), #dcecf2); }
.news-thumb-placeholder img { width: 64px; height: 64px; object-fit: contain; }
.news-thumb-instagram { display: grid; place-items: center; background: linear-gradient(135deg, #f3c98b, #d6568f 55%, #6a4fc4); color: white; font-size: 1.4rem; font-weight: 800; }
.news-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 22px 24px 26px; }
.news-card small { color: var(--leaf-500); font-weight: 700; }
.news-card h3 { margin: 0; font-size: 1.15rem; }
.news-card p { color: #cfe3d7; flex: 1; font-size: .94rem; }
.news-card strong { color: white; font-size: .9rem; text-decoration: underline; text-underline-offset: 4px; }

/* Links relacionados */
.related-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.related-link { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 130px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); text-align: center; transition: border-color .2s ease, transform .2s ease; }
.related-link:hover { border-color: var(--green-600); transform: translateY(-2px); }
.related-link strong { font-size: 1.5rem; letter-spacing: -.02em; color: var(--green-800); }
.related-link img { max-height: 64px; margin: 0 auto; object-fit: contain; }
.related-link span { font-size: .8rem; line-height: 1.4; color: var(--muted); }

/* Chamadas finais */
.cta-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cta-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: clamp(32px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--canvas); border: 1px solid var(--line); text-align: center; }
.cta-card h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); color: var(--green-800); }
.cta-card p { max-width: 440px; color: var(--muted); margin-bottom: 22px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 24px 0 0; list-style: none; }
.tag-list li { padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .88rem; font-weight: 650; color: var(--green-800); }

.link-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.link-panel { display: flex; flex-direction: column; gap: 6px; padding: 32px; border-radius: var(--radius); background: var(--canvas); border: 1px solid var(--line); transition: background .2s ease; }
.link-panel:hover { background: var(--green-100); }
.link-panel h3 { font-size: 1.5rem; margin: 0; }
.link-panel > span[aria-hidden] { font-size: 1.4rem; color: var(--green-700); }

.fact-list { display: grid; gap: 14px; }
.fact-list div { display: grid; gap: 2px; padding: 20px 22px; border-left: 4px solid var(--leaf-500); background: var(--canvas); border-radius: 0 12px 12px 0; }
.fact-list strong { font-size: 1.15rem; color: var(--green-800); }
.fact-list span { color: var(--muted); font-size: .92rem; }

.name-list { columns: 2; column-gap: 32px; padding: 0; margin: 0; list-style: none; }
.name-list li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); font-weight: 600; }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.person-card span { display: block; margin-bottom: 12px; color: var(--green-600); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.person-card h3 { margin-bottom: 6px; }
.person-card p { color: var(--muted); font-weight: 600; }

.story-list { display: grid; gap: 22px; max-width: 860px; }
.story-article { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); scroll-margin-top: 120px; }
.story-article small { color: var(--green-600); font-weight: 700; }
.story-article h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 8px 0 16px; }
.story-article p { color: #34483f; }

.editorial-note { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
.editorial-note p { color: var(--muted); margin-bottom: 20px; }

.empty-state { max-width: 760px; padding: clamp(32px, 5vw, 56px); border: 1px dashed #b8cbbd; border-radius: var(--radius-lg); background: var(--canvas); }
.empty-state p { color: var(--muted); margin-bottom: 24px; }

.join-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.join-card { padding: clamp(30px, 4vw, 48px); border-radius: var(--radius-lg); background: var(--green-100); }
.join-card p { color: var(--muted); margin-bottom: 28px; }
.join-card-dark { background: var(--green-900); color: white; }
.join-card-dark p { color: #cfe3d7; }
.check-list { display: grid; gap: 14px; padding: 0; margin: 0; list-style: none; }
.check-list li { position: relative; padding: 16px 18px 16px 52px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; }
.check-list li::before { content: "✓"; position: absolute; left: 18px; top: 15px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--leaf-500); color: var(--green-950); font-size: .75rem; font-weight: 800; }

.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contact-card { display: grid; gap: 6px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); overflow-wrap: anywhere; }
a.contact-card:hover { border-color: var(--green-600); }
.contact-card .eyebrow { margin-bottom: 4px; }
.contact-card strong { font-size: 1.2rem; }
.contact-card small { color: var(--muted); font-size: .9rem; }
.contact-form-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); }
.contact-form-grid p { color: var(--muted); }
.contact-form { display: grid; gap: 16px; padding: clamp(24px, 4vw, 40px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.contact-form label { display: grid; gap: 6px; font-weight: 650; font-size: .9rem; }
.contact-form input, .contact-form textarea { width: 100%; padding: 13px 14px; border: 1px solid #c4d3c8; border-radius: 10px; background: var(--paper); color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid var(--green-600); outline-offset: 1px; }
.contact-form .button { justify-self: start; }
.form-status:empty { display: none; }
.form-status { color: var(--green-700); font-weight: 600; }

.membership-section { background: linear-gradient(135deg, var(--green-900), var(--green-700)); color: white; }
.membership-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 32px; align-items: center; }
.membership-grid p { color: #cfe3d7; max-width: 620px; }

.not-found { padding: clamp(80px, 12vw, 160px) 0; }
.not-found p { color: var(--muted); margin-bottom: 28px; }

/* Rodapé */
.site-footer { background: var(--green-950); color: #cfe3d7; padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-brand img { width: 240px; margin-bottom: 18px; }
.footer-brand p { max-width: 340px; font-size: .92rem; }
.site-footer h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--leaf-500); margin-bottom: 16px; }
.site-footer a { display: block; padding: 5px 0; font-size: .92rem; overflow-wrap: anywhere; }
.site-footer a:hover { color: white; }
.footer-note { margin-top: 12px; font-size: .86rem; color: #9fbcad; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: #9fbcad; }
.footer-bottom p { margin: 0; }
.footer-bottom a { display: inline; padding: 0; font-size: inherit; text-decoration: underline; }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Responsivo */
@media (max-width: 1180px) {
  .nav-link { padding: 12px 7px; font-size: .82rem; }
  .brand img { width: 190px; }
}
@media (max-width: 980px) {
  .member-desktop { display: none; }
  .header-inner { justify-content: space-between; min-height: 72px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-weight: 700; font-size: .85rem; cursor: pointer; }
  .menu-toggle-lines, .menu-toggle-lines::before, .menu-toggle-lines::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .2s ease; }
  .menu-toggle-lines::before, .menu-toggle-lines::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-lines::before { top: -6px; }
  .menu-toggle-lines::after { top: 6px; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines { background: transparent; }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::before { transform: translateY(6px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle-lines::after { transform: translateY(-6px) rotate(-45deg); }
  .main-nav { position: fixed; inset: 107px 0 0; display: none; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; padding: 20px 16px 32px; background: var(--paper); overflow-y: auto; }
  .main-nav.is-open { display: flex; }
  .nav-link { padding: 14px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-link::after { display: none; }
  .nav-link.is-active { color: var(--green-700); }
  .member-mobile { display: inline-flex; margin-top: 18px; min-height: 50px; }
  .intro-grid, .prose-grid, .two-column, .editorial-note, .contact-form-grid, .membership-grid { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .goal-grid, .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .utility-inner p { display: none; }
  .utility-inner { justify-content: center; }
  .main-nav { inset: 106px 0 0; }
  .brand img { width: 170px; }
  .menu-toggle-label { display: none; }
  .area-grid, .goal-grid, .contact-grid, .join-grid, .link-panels, .footer-grid { grid-template-columns: 1fr; }
  .area-tile-art { aspect-ratio: 16 / 7; }
  .area-tile-art svg { width: 28%; }
  .split-heading { flex-direction: column; align-items: start; }
  .name-list { columns: 1; }
  .banner-slide { padding: 48px 20px 76px; }
  .banner-arrow { display: none; }
  .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-pair { grid-template-columns: 1fr; }
  .button { width: 100%; }
  .button-row { flex-direction: column; align-items: stretch; }
  .contact-form .button { justify-self: stretch; }
  .story-article { padding: 24px; }
}
