/* ============================================================
   Hub Vértice — template de teste (conteúdo fictício)
   Tema: pinhal escuro + acento lima/âmbar
   ============================================================ */
:root {
  --pine-950: #0a1714;
  --pine-900: #0e211c;
  --pine-800: #143029;
  --pine-700: #1c453a;
  --paper:    #f4f1e9;
  --paper-2:  #ebe6da;
  --ink:      #11201b;
  --muted:    #5d6f67;
  --lime:     #c6f04a;
  --amber:    #f0a93b;
  --line:     rgba(17, 32, 27, .12);
  --line-d:   rgba(255, 255, 255, .12);
  --maxw: 1140px;
  --r: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --font-display: "Bricolage Grotesque", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.05; margin: 0; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .72rem;
  font-weight: 600; color: var(--pine-700); margin: 0 0 .8rem;
}
.section-alt .eyebrow, .hero .eyebrow, .stats-section .eyebrow { color: var(--lime); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600;
  font-size: .95rem; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--lime); color: var(--pine-950); }
.btn-primary:hover { background: #d4ff5e; }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-light { background: var(--paper); color: var(--pine-900); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 23, 20, .82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-d);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: conic-gradient(from 140deg, var(--lime), var(--amber), var(--lime));
  box-shadow: 0 0 0 4px rgba(198,240,74,.15);
}
.brand-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; }
.brand-name strong { font-weight: 800; }
.main-nav { display: flex; align-items: center; gap: 1.8rem; }
.main-nav a { color: rgba(255,255,255,.82); font-weight: 500; font-size: .95rem; transition: color .2s; }
.main-nav a:hover { color: var(--lime); }
.nav-cta {
  border: 1.5px solid rgba(255,255,255,.3); padding: .5rem 1.1rem;
  border-radius: 999px; color: #fff !important;
}
.nav-cta:hover { background: var(--lime); color: var(--pine-950) !important; border-color: var(--lime); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(198,240,74,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(240,169,59,.14), transparent 55%),
    var(--pine-950);
  padding: clamp(80px, 12vw, 150px) 0 clamp(70px, 9vw, 120px);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5; pointer-events: none;
}
.hero-slides { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; min-height: 320px; }
.hero-slide {
  position: absolute; inset: 0 24px; opacity: 0; transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none;
}
.hero-slide.is-active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.hero-slide h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; max-width: 16ch; }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,255,255,.8); max-width: 48ch; margin: 1.4rem 0 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-dots { display: flex; gap: .6rem; justify-content: center; margin-top: 2.5rem; position: relative; z-index: 2; }
.hero-dots button {
  width: 38px; height: 5px; border: 0; border-radius: 99px; cursor: pointer;
  background: rgba(255,255,255,.25); transition: background .3s;
}
.hero-dots button[aria-selected="true"] { background: var(--lime); }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 620px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: .8rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Sobre ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.about-copy h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 1.2rem; }
.about-copy p { color: var(--muted); font-size: 1.1rem; }
.tag-list { list-style: none; padding: 0; margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.tag-list li {
  background: var(--pine-900); color: #fff; padding: .5rem 1rem;
  border-radius: 999px; font-size: .85rem; font-weight: 500;
}
.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pillar {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.6rem; transition: transform .3s var(--ease), box-shadow .3s;
}
.section-alt .pillar { background: var(--paper); }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -22px rgba(17,32,27,.4); }
.pillar h3 { font-size: 1.2rem; margin-bottom: .4rem; color: var(--pine-700); }
.pillar p { margin: 0; color: var(--muted); font-size: .95rem; }
.about-pillars .pillar:last-child { grid-column: 1 / -1; }

/* ---------- Cards (programas) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.prog-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.8rem; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.prog-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(17,32,27,.5); }
.prog-emoji { font-size: 1.8rem; display: block; margin-bottom: 1rem; }
.prog-card h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.prog-card p { color: var(--muted); margin: 0; font-size: .96rem; }
.prog-card .arrow { position: absolute; top: 1.6rem; right: 1.6rem; color: var(--pine-700); opacity: .35; transition: .3s; }
.prog-card:hover .arrow { opacity: 1; transform: translate(3px,-3px); }

/* ---------- Stats ---------- */
.stats-section {
  background:
    radial-gradient(800px 400px at 100% 0%, rgba(198,240,74,.12), transparent 60%),
    var(--pine-900);
  color: #fff;
}
.stats-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }
.stats-copy h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 1rem; }
.stats-copy p { color: rgba(255,255,255,.78); margin-bottom: 1.8rem; }
.stats-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; text-align: center; }
.stat { background: rgba(255,255,255,.05); border: 1px solid var(--line-d); border-radius: var(--r); padding: 1.6rem .8rem; }
.stat-num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--lime); }
.stat-label { font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.7); }

/* ---------- Notícias ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.news-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.news-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -28px rgba(17,32,27,.5); }
.news-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--pine-700), var(--pine-900)); position: relative; }
.news-thumb span { position: absolute; left: 1rem; bottom: 1rem; background: var(--lime); color: var(--pine-950); font-size: .72rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; }
.news-body { padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.news-date { font-size: .8rem; color: var(--muted); }
.news-body h3 { font-size: 1.15rem; line-height: 1.2; }
.news-body p { color: var(--muted); font-size: .92rem; margin: 0; flex: 1; }
.news-more { font-weight: 600; color: var(--pine-700); font-size: .9rem; }

/* ---------- Sponsors ---------- */
.sponsor-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.sponsor-logo {
  aspect-ratio: 5/2; display: grid; place-items: center; border-radius: 14px;
  background: var(--paper-2); border: 1px solid var(--line);
  font-weight: 700; color: var(--muted); font-size: .9rem; letter-spacing: .04em;
  transition: .3s;
}
.sponsor-logo:hover { color: var(--pine-700); transform: translateY(-3px); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--lime); color: var(--pine-950); padding: clamp(56px, 8vw, 90px) 0; }
.cta-inner { text-align: center; }
.cta-inner h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: .6rem; }
.cta-inner p { margin: 0 0 1.8rem; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pine-950); color: rgba(255,255,255,.78); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand { color: #fff; font-size: 1.5rem; display: inline-block; margin-bottom: 1rem; }
.footer-addr { font-size: .92rem; line-height: 1.7; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { display: block; color: rgba(255,255,255,.7); font-size: .92rem; padding: .25rem 0; transition: color .2s; }
.site-footer a:hover { color: var(--lime); }
.footer-note { border-top: 1px solid var(--line-d); margin-top: 2.5rem; padding-top: 1.5rem; }
.footer-note p { font-size: .82rem; color: rgba(255,255,255,.5); margin: 0; }

/* ---------- AI Widget ---------- */
.ai-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--lime); color: var(--pine-950);
  display: grid; place-items: center; box-shadow: 0 14px 34px -10px rgba(0,0,0,.5);
  transition: transform .25s var(--ease);
}
.ai-fab:hover { transform: scale(1.07) rotate(-4deg); }
.ai-panel {
  position: fixed; right: 22px; bottom: 94px; z-index: 80;
  width: min(380px, calc(100vw - 32px)); height: min(540px, calc(100vh - 130px));
  background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 70px -24px rgba(0,0,0,.45);
  transform-origin: bottom right; animation: pop .3s var(--ease);
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.ai-head { background: var(--pine-900); color: #fff; padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; }
.ai-head strong { font-family: var(--font-display); display: block; }
.ai-status { font-size: .72rem; color: var(--lime); }
.ai-close { background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; line-height: 1; }
.ai-log { flex: 1; overflow-y: auto; padding: 1.2rem; display: flex; flex-direction: column; gap: .8rem; }
.msg { max-width: 80%; padding: .7rem 1rem; border-radius: 16px; font-size: .92rem; line-height: 1.45; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--pine-800); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--paper-2); color: var(--ink); border-bottom-left-radius: 4px; }
.msg.bot.pending { opacity: .6; font-style: italic; }
.ai-form { display: flex; gap: .5rem; padding: .8rem; border-top: 1px solid var(--line); background: var(--paper); }
.ai-form input { flex: 1; border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1rem; font: inherit; outline: none; }
.ai-form input:focus { border-color: var(--pine-700); }
.ai-form button { width: 44px; border: 0; border-radius: 50%; background: var(--lime); color: var(--pine-950); cursor: pointer; font-size: 1rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 880px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--pine-900); padding: 1.4rem 24px; gap: 1rem; border-bottom: 1px solid var(--line-d);
  }
  .nav-toggle { display: flex; }
  .about-grid, .stats-wrap { grid-template-columns: 1fr; gap: 2.4rem; }
  .cards-grid, .news-grid { grid-template-columns: 1fr 1fr; }
  .sponsor-strip { grid-template-columns: repeat(3,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cards-grid, .news-grid, .stats-grid, .about-pillars { grid-template-columns: 1fr; }
  .about-pillars .pillar:last-child { grid-column: auto; }
  .sponsor-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
