/*
 * Site público (home, páginas institucionais e base do blog).
 * Estilos do blog ficam em blog.css; do admin, em admin.css.
 */

:root {
  --brand: #667eea;
  --brand-2: #764ba2;
  --brand-soft: rgba(102, 126, 234, .1);
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --success: #16a34a;

  --ink: #0b0e1c;          /* fundo do hero e rodapé */
  --ink-2: #141831;
  --on-ink: #e7e9f6;
  --on-ink-soft: #a3a8c6;

  --text: #1d2133;
  --text-soft: #4a4f66;
  --muted: #6b7088;
  --line: #e6e8f0;
  --bg: #ffffff;
  --bg-muted: #f6f7fb;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-lg: 0 24px 48px rgba(16, 24, 40, .12);
  --header-h: 72px;

  --font-display: "Poppins", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; color: var(--text); }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
ul[class], ol[class] { list-style: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: var(--bg); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid rgba(102, 126, 234, .55); outline-offset: 2px; }

/* ── Botões ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 .95rem/1 var(--font-display);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 20px rgba(102, 126, 234, .35); }
.btn-primary:hover { box-shadow: 0 12px 28px rgba(102, 126, 234, .45); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .08); }
.btn-outline { color: var(--text); border-color: var(--line); background: var(--bg); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-link { color: var(--on-ink); padding-left: 6px; padding-right: 6px; }
.btn-link:hover { color: #fff; transform: none; text-decoration: underline; text-underline-offset: 4px; }
.btn-sm { padding: 10px 18px; font-size: .88rem; }

/* ── Header ───────────────────────────────────────────── */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: background .25s ease, border-color .25s ease;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-logo { width: 40px; height: 40px; object-fit: contain; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--gradient); color: #fff;
  font: 700 .9rem var(--font-display);
}
.brand-name { font: 500 1.05rem var(--font-display); letter-spacing: -.01em; }
.brand-name strong { font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 26px; list-style: none; }
.site-nav-link {
  position: relative;
  color: var(--text-soft);
  text-decoration: none;
  font: 500 .95rem var(--font-display);
  padding: 6px 0;
  transition: color .2s;
}
.site-nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--gradient); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav-link:hover, .site-nav-link.is-active { color: var(--text); }
.site-nav-link:hover::after, .site-nav-link.is-active::after { transform: scaleX(1); }

/* Header transparente sobre o hero escuro da home */
.page-home .site-header:not(.is-scrolled):not(.is-open) { background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.page-home .site-header:not(.is-scrolled):not(.is-open) .brand,
.page-home .site-header:not(.is-scrolled):not(.is-open) .site-nav-link:hover { color: #fff; }
.page-home .site-header:not(.is-scrolled):not(.is-open) .site-nav-link { color: var(--on-ink-soft); }
.page-home .site-header:not(.is-scrolled):not(.is-open) .nav-toggle span { background: #fff; }
.page-home .site-header:not(.is-scrolled):not(.is-open) .brand-logo { filter: brightness(1.4); }

.nav-toggle { display: none; width: 42px; height: 42px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 0 9px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .2s; }
.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px 20px 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .site-header.is-open .site-nav { opacity: 1; transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav-link { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .site-nav-link::after { display: none; }
}

/* ── Flash ────────────────────────────────────────────── */
.flash-bar { margin-top: var(--header-h); padding: 12px 0; font-weight: 500; }
.flash-bar.is-notice { background: #ecfdf3; color: #166534; }
.flash-bar.is-alert { background: #fef2f2; color: #991b1b; }
.page-home .flash-bar { position: relative; z-index: 2; }

/* ── Hero ─────────────────────────────────────────────── */
.hero, .page-hero {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-ink);
  isolation: isolate;
}
.hero { min-height: min(100svh, 920px); display: flex; align-items: center; padding: calc(var(--header-h) + 48px) 0 96px; }
.page-hero { padding: calc(var(--header-h) + 72px) 0 80px; }

.hero-glow {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(600px circle at 12% 18%, rgba(102, 126, 234, .32), transparent 60%),
    radial-gradient(520px circle at 88% 78%, rgba(118, 75, 162, .38), transparent 60%),
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 55%, transparent 100%);
}

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
  color: var(--on-ink); font-size: .85rem; font-weight: 500; margin-bottom: 22px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .18); }

.hero h1, .page-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.hero .text-gradient, .page-hero .text-gradient { background: linear-gradient(135deg, #a5b4fc 0%, #c4a5f5 100%); -webkit-background-clip: text; background-clip: text; }

.roles { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 22px; }
.roles li { font: 500 1.05rem var(--font-display); color: var(--on-ink); display: flex; align-items: center; gap: 14px; }
.roles li + li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

.hero-lead { margin-top: 18px; font-size: 1.12rem; color: var(--on-ink-soft); max-width: 600px; }
.page-hero .hero-lead { font: 500 1.15rem var(--font-display); color: var(--on-ink); }
.page-hero-text { margin-top: 14px; color: var(--on-ink-soft); max-width: 720px; font-size: 1.05rem; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }

.hero-social { display: flex; gap: 10px; margin-top: 34px; }
.hero-social a, .site-footer .social a {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--on-ink); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  text-decoration: none; transition: background .2s, transform .15s, color .2s;
}
.hero-social a:hover, .site-footer .social a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

.hero-visual { position: relative; justify-self: center; width: min(400px, 100%); aspect-ratio: 1; }
.avatar-ring {
  position: absolute; inset: 8%;
  border-radius: 50%;
  padding: 6px;
  background: conic-gradient(from 210deg, #667eea, #764ba2, #22d3ee, #667eea);
  box-shadow: 0 30px 80px rgba(102, 126, 234, .35);
  animation: spin-slow 18s linear infinite;
}
.avatar-ring .avatar {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: contain;
  background: radial-gradient(circle at 30% 30%, #1f2547, var(--ink-2));
  padding: 14%;
  animation: spin-slow 18s linear infinite reverse;
}
.avatar-fallback { display: grid; place-items: center; font: 800 4rem var(--font-display); color: #fff; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .avatar-ring, .avatar-ring .avatar { animation: none; } }

.float-card {
  position: absolute;
  display: flex; flex-direction: column;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(20, 24, 49, .78);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
}
.float-card strong { font: 700 1.5rem var(--font-display); color: #fff; line-height: 1.1; }
.float-card span { font-size: .8rem; color: var(--on-ink-soft); }
.float-card-a { top: 6%; left: -6%; }
.float-card-b { bottom: 8%; right: -4%; }

.scroll-cue { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .3); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 900px) {
  .hero { min-height: 0; padding-bottom: 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; width: min(240px, 70vw); }
  .float-card { display: none; }
  .scroll-cue { display: none; }
}

/* ── Seções ───────────────────────────────────────────── */
.section { padding: 104px 0; }
.section-muted { background: var(--bg-muted); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head-row { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.section-kicker { font: 600 .8rem var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.section-title { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; }
.section-sub { margin-top: 12px; color: var(--text-soft); font-size: 1.08rem; }
@media (max-width: 700px) { .section { padding: 72px 0; } .section-head { margin-bottom: 32px; } }

/* Reveal (apenas quando o JS está ativo) */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

/* ── Sobre ────────────────────────────────────────────── */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: start; }
.about-text, .prose-block { margin-top: 22px; color: var(--text-soft); font-size: 1.08rem; }
.prose-block { margin-top: 0; }
.prose-block .section-title { margin-bottom: 22px; }
.about-text p + p, .prose-block p + p { margin-top: 1em; }
.about-text strong, .prose-block strong { color: var(--text); }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 4px;
}
.stat-card i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 10px; }
.stat-card strong { font: 700 2rem var(--font-display); line-height: 1.1; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card span { color: var(--text-soft); font-size: .92rem; }
.stat-card-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; }
.stat-card-wide i { margin-bottom: 0; flex-shrink: 0; }
.stat-card-wide strong { font-size: 1.5rem; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ── Experiência ──────────────────────────────────────── */
.timeline { position: relative; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--brand), var(--brand-2), transparent); }
.timeline-item { position: relative; padding-left: 48px; }
.timeline-item + .timeline-item { margin-top: 24px; }
.timeline-dot { position: absolute; left: 4px; top: 26px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--brand); }
.timeline-dot.is-current { background: var(--brand); box-shadow: 0 0 0 6px var(--brand-soft); }
.timeline-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow); }
.timeline-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .88rem; color: var(--text-soft); font-weight: 500; }
.timeline-card h3 { font-size: 1.25rem; margin-top: 8px; }
.timeline-company { margin-top: 2px; font-weight: 500; }
.timeline-company a { color: var(--brand); text-decoration: none; }
.timeline-company a:hover { text-decoration: underline; }
.timeline-summary { margin-top: 12px; color: var(--text-soft); }
.timeline-achievements { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.timeline-achievements li { position: relative; padding-left: 22px; color: var(--text-soft); font-size: .95rem; line-height: 1.6; }
.timeline-achievements li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--gradient); }
.timeline-more { margin-top: 8px; }
.timeline-more summary { cursor: pointer; width: fit-content; color: var(--brand); font: 600 .88rem var(--font-display); list-style: none; padding: 4px 0; }
.timeline-more summary::-webkit-details-marker { display: none; }
.timeline-more summary::after { content: " ↓"; }
.timeline-more[open] summary::after { content: " ↑"; }
.timeline-more .when-open, .timeline-more[open] .when-closed { display: none; }
.timeline-more[open] .when-open { display: inline; }
.timeline-more[open] { display: flex; flex-direction: column-reverse; }
.timeline-more[open] summary { margin-top: 4px; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.pill-success { background: #dcfce7; color: #166534; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chips li { padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: #4c51bf; font-size: .83rem; font-weight: 500; }
.chips-sm li { padding: 3px 10px; font-size: .78rem; }

/* ── Skills ───────────────────────────────────────────── */
.skill-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
@media (max-width: 400px) { .skill-groups { grid-template-columns: 1fr; } }
.skill-group { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.skill-group h3 { font-size: 1.05rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.skill-group h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--gradient); }
.skill-group ul { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-group li {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--bg-muted); border: 1px solid var(--line);
  font-size: .9rem; font-weight: 500; color: var(--text);
  transition: border-color .2s, transform .15s;
}
.skill-group li:hover { border-color: var(--brand); transform: translateY(-1px); }
.skill-group li i { color: var(--brand); width: 16px; text-align: center; }

/* ── Projetos ─────────────────────────────────────────── */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
@media (max-width: 400px) { .project-grid { grid-template-columns: 1fr; } }
.project-card {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  transition: transform .25s ease, box-shadow .25s ease;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.project-media { aspect-ratio: 16 / 10; background: var(--bg-muted); overflow: hidden; border-bottom: 1px solid var(--line); }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s ease; }
.project-card:hover .project-media img { transform: scale(1.04); }
.project-placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: var(--gradient); color: rgba(255, 255, 255, .8); font-size: 2.4rem; }
.project-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.project-body h3 { font-size: 1.15rem; }
.project-body p { margin-top: 8px; color: var(--text-soft); font-size: .95rem; flex: 1; }
.project-link { margin-top: 18px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font: 600 .92rem var(--font-display); text-decoration: none; }
.project-link i { font-size: .75rem; transition: transform .2s; }
.project-link:hover i { transform: translate(2px, -2px); }

/* ── Cards de post (home e blog) ─────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }

.post-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.post-card-cover { display: block; aspect-ratio: 16 / 9; background: var(--bg-muted); overflow: hidden; text-decoration: none; }
.post-card-cover img { width: 100%; height: 100%; object-fit: cover; }

.post-card-placeholder {
  --cat: var(--brand);
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cat), var(--brand-2) 140%);
  color: rgba(255, 255, 255, .85);
  font-size: 2.2rem;
}

.post-card-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card-body h3 { font-size: 1.12rem; line-height: 1.35; font-weight: 600; }
.post-card-body h3 a { color: var(--text); text-decoration: none; }
.post-card-body h3 a:hover { color: var(--brand); }
.post-card-body p { color: var(--text-soft); font-size: .93rem; line-height: 1.6; flex: 1; }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: .82rem; }

.cat-pill {
  --cat: var(--brand);
  align-self: flex-start;
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--cat);
  background: color-mix(in srgb, var(--cat) 12%, transparent);
}
.cat-pill:hover { background: color-mix(in srgb, var(--cat) 20%, transparent); }

/* ── Contato ──────────────────────────────────────────── */
.section-contact { background: linear-gradient(var(--bg) 50%, var(--ink) 50%); padding-bottom: 0; }
.contact-card {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.contact-info {
  position: relative;
  padding: 48px 44px;
  background: var(--gradient);
  color: #fff;
  overflow: hidden;
}
.contact-info::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.contact-info .section-kicker { color: rgba(255, 255, 255, .75); }
.contact-info h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.2rem); }
.contact-info > p { margin-top: 12px; color: rgba(255, 255, 255, .85); }
.contact-list { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.contact-list a, .contact-static { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; font-weight: 500; word-break: break-word; }
.contact-list i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .15); flex-shrink: 0; }
.contact-list a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.contact-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; position: relative; z-index: 1; }
.contact-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .15); text-decoration: none; transition: background .2s, transform .15s; }
.contact-social a:hover { background: rgba(255, 255, 255, .3); transform: translateY(-2px); }

.contact-form-wrap { padding: 44px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field-full { grid-column: 1 / -1; }
.form-field label { font: 600 .85rem var(--font-display); color: var(--text); }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  font: inherit;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--brand); background: var(--bg); box-shadow: 0 0 0 4px var(--brand-soft); }
.form-footer { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-errors { background: #fef2f2; color: #991b1b; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .92rem; }
.form-errors ul { margin: 6px 0 0 18px; list-style: disc; }

@media (max-width: 900px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-info, .contact-form-wrap { padding: 32px 24px; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-footer .btn { width: 100%; }
  #contact-recaptcha { transform: scale(.92); transform-origin: left; }
}

/* ── Páginas institucionais ───────────────────────────── */
.info-stack { display: grid; gap: 20px; }
.info-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.info-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gradient); }
.info-card h2 { font-size: 1.4rem; margin-bottom: 14px; }
.info-card p { color: var(--text-soft); font-size: 1.05rem; }
.info-card p + p { margin-top: .8em; }
.info-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
@media (max-width: 600px) { .info-card { padding: 28px 22px; } }

/* ── Rodapé ───────────────────────────────────────────── */
.site-footer { background: var(--ink); color: var(--on-ink-soft); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.site-footer .brand { color: #fff; }
.footer-brand p { margin-top: 14px; max-width: 360px; font-size: .95rem; }
.site-footer .social { display: flex; gap: 10px; margin-top: 20px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.footer-col a { color: var(--on-ink-soft); text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 22px 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ── Modal (resposta do formulário) ───────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 3000;
  display: grid; place-items: center;
  padding: 20px;
  background: rgba(11, 14, 28, .6);
  backdrop-filter: blur(4px);
  animation: fade-in .2s ease;
}
.modal-box { width: min(440px, 100%); background: var(--bg); border-radius: 20px; padding: 32px; text-align: center; box-shadow: var(--shadow-lg); }
.modal-box h3 { font-size: 1.35rem; margin-bottom: 10px; }
.modal-box p { color: var(--text-soft); margin-bottom: 24px; }
@keyframes fade-in { from { opacity: 0; } }
