/* ============================================
   ANTONIO JOAQUIM — Design System
   Baseado no mockup Ouvidoria TCE-MT
   Paleta: #FFFFFF | #62B8D9 | #EBE8D9 | #575755
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ── CSS Custom Properties ── */
:root {
  --branco: #FFFFFF;
  --azul: #62B8D9;
  --azul-hover: #4FA8CC;
  --azul-light: #E8F4F9;
  --azul-dark: #3A8FB3;
  --creme: #EBE8D9;
  --creme-light: #F5F3EA;
  --chumbo: #575755;
  --chumbo-dark: #3D3D3B;
  --chumbo-light: #7A7A78;
  --alerta: #E67E22;
  --sucesso: #27AE60;
  --info: #2980B9;
  --dourado: #C9A84C;
  --dourado-light: #FDF6E3;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --shadow-sm: 0 1px 3px rgba(87,87,85,0.08);
  --shadow-md: 0 4px 12px rgba(87,87,85,0.1);
  --shadow-lg: 0 8px 30px rgba(87,87,85,0.12);
  --shadow-xl: 0 12px 40px rgba(87,87,85,0.15);
  --shadow-card: 0 2px 8px rgba(87,87,85,0.06), 0 8px 24px rgba(87,87,85,0.08);
  --shadow-card-hover: 0 4px 12px rgba(98,184,217,0.15), 0 12px 36px rgba(87,87,85,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
  --max-width: 1200px;
  --header-height: 64px;
  --nav-height: 52px;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--chumbo-dark); background: var(--creme-light); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--chumbo-dark); }
a { color: var(--azul-dark); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--azul); }
img { max-width: 100%; height: auto; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-lg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ── Page View (SPA) ── */
.page-view { display: none; }
.page-view.active { display: block; }

/* ── Top Bar ── */
.top-bar { background: var(--chumbo-dark); color: var(--branco); height: 36px; display: flex; align-items: center; font-size: 0.75rem; letter-spacing: 0.03em; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.top-bar a { color: rgba(255,255,255,0.7); font-size: 0.75rem; transition: color var(--transition-fast); }
.top-bar a:hover { color: var(--branco); }
.top-bar__links { display: flex; gap: var(--space-lg); list-style: none; }

/* ── Header ── */
.header { background: rgba(255,255,255,0.95); height: var(--header-height); border-bottom: 1px solid rgba(87,87,85,0.08); position: sticky; top: 0; z-index: 100; backdrop-filter: blur(12px); transition: box-shadow var(--transition-base); }
.header--scrolled { box-shadow: var(--shadow-md); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.header__logo { display: flex; align-items: center; gap: var(--space-md); text-decoration: none; color: inherit; }
.header__logo-text { display: flex; flex-direction: column; }
.header__logo-text span:first-child { font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem; color: var(--chumbo-dark); line-height: 1.2; }
.header__logo-text span:last-child { font-size: 0.7rem; color: var(--chumbo-light); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500; }
.header__actions { display: flex; align-items: center; gap: var(--space-md); }
.header__search { display: flex; align-items: center; background: var(--creme-light); border-radius: var(--radius-full); padding: 6px 14px; gap: 8px; border: 1px solid transparent; transition: all var(--transition-base); }
.header__search:focus-within { border-color: var(--azul); background: var(--branco); box-shadow: 0 0 0 3px rgba(98,184,217,0.15); }
.header__search input { border: none; background: transparent; font-family: var(--font-body); font-size: 0.85rem; color: var(--chumbo-dark); width: 180px; outline: none; }
.header__search input::placeholder { color: var(--chumbo-light); }
.header__search svg { width: 16px; height: 16px; color: var(--chumbo-light); flex-shrink: 0; }

/* ── Navigation ── */
.nav { background: var(--azul); height: var(--nav-height); position: sticky; top: var(--header-height); z-index: 99; box-shadow: 0 2px 8px rgba(98,184,217,0.2); }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav__list { display: flex; list-style: none; height: 100%; gap: 0; }
.nav__item { height: 100%; }
.nav__link { display: flex; align-items: center; height: 100%; padding: 0 var(--space-lg); color: var(--branco); font-size: 0.85rem; font-weight: 500; letter-spacing: 0.01em; position: relative; transition: all var(--transition-base); cursor: pointer; white-space: nowrap; gap: 6px; text-decoration: none; }
.nav__link::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 3px; background: var(--branco); border-radius: 3px 3px 0 0; transition: width var(--transition-base); }
.nav__link:hover, .nav__link.active { background: rgba(255,255,255,0.12); color: var(--branco); }
.nav__link:hover::after, .nav__link.active::after { width: 60%; }
.nav__link svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav__toggle { display: none; background: none; border: none; color: var(--branco); cursor: pointer; padding: 8px; align-items: center; justify-content: center; }
.nav__toggle svg { width: 24px; height: 24px; }

/* ── Breadcrumb ── */
.breadcrumb { padding: var(--space-md) 0; display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: var(--chumbo-light); }
.breadcrumb a { color: var(--azul-dark); font-weight: 500; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--chumbo-light); font-size: 0.7rem; }
.breadcrumb__current { color: var(--chumbo); font-weight: 500; }

/* ── Hero Section ── */
.hero { background: linear-gradient(135deg, var(--azul) 0%, var(--azul-dark) 50%, #2C7A96 100%); position: relative; overflow: hidden; padding: var(--space-3xl) 0; min-height: 400px; display: flex; align-items: center; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%); border-radius: 50%; animation: float-slow 20s ease-in-out infinite; }
.hero::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%); border-radius: 50%; animation: float-slow 15s ease-in-out infinite reverse; }

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -30px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero .container { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: var(--space-2xl); }
.hero__content { max-width: 560px; }
.hero__badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); padding: 6px 16px; border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 600; color: var(--branco); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: var(--space-lg); border: 1px solid rgba(255,255,255,0.2); }
.hero__badge svg { width: 14px; height: 14px; }
.hero__title { font-size: 2.6rem; font-weight: 800; color: var(--branco); margin-bottom: var(--space-md); line-height: 1.1; }
.hero__subtitle { font-size: 1.05rem; color: rgba(255,255,255,0.85); line-height: 1.6; margin-bottom: var(--space-xl); font-weight: 300; }
.hero__cta { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.hero__illustration { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Hero Photo */
.hero__photo { width: 220px; height: 220px; border-radius: 50%; border: 5px solid rgba(255,255,255,0.4); box-shadow: 0 8px 32px rgba(0,0,0,0.2), 0 0 0 8px rgba(255,255,255,0.1); overflow: hidden; background: rgba(255,255,255,0.1); transition: transform var(--transition-slow); }
.hero__photo:hover { transform: scale(1.05); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* ── Quick Access ── */
.quick-access { background: var(--branco); border-bottom: 1px solid rgba(87,87,85,0.06); padding: var(--space-md) 0; }
.quick-access .container { display: flex; align-items: center; gap: var(--space-md); }
.quick-access__label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; color: var(--chumbo-light); white-space: nowrap; }
.quick-access__items { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.quick-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 14px; border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 500; background: var(--creme-light); color: var(--chumbo); border: 1px solid rgba(87,87,85,0.08); transition: all var(--transition-base); cursor: pointer; white-space: nowrap; }
.quick-tag:hover { background: var(--azul-light); color: var(--azul-dark); border-color: var(--azul); }
.quick-tag svg { width: 12px; height: 12px; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 28px; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.9rem; font-weight: 600; cursor: pointer; border: 2px solid transparent; transition: all var(--transition-base); text-decoration: none; line-height: 1; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--branco); color: var(--azul-dark); border-color: var(--branco); }
.btn--primary:hover { background: transparent; color: var(--branco); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.15); }
.btn--outline { background: transparent; color: var(--branco); border-color: rgba(255,255,255,0.5); }
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: var(--branco); transform: translateY(-2px); }
.btn--azul { background: var(--azul); color: var(--branco); border-color: var(--azul); }
.btn--azul:hover { background: var(--azul-dark); border-color: var(--azul-dark); transform: translateY(-2px); box-shadow: 0 4px 16px rgba(98,184,217,0.3); }
.btn--sm { padding: 8px 18px; font-size: 0.82rem; }
.btn--lg { padding: 14px 36px; font-size: 1rem; }
.btn--google { background: var(--branco); color: var(--chumbo-dark); border: 2px solid rgba(87,87,85,0.15); font-weight: 600; gap: 12px; }
.btn--google:hover { border-color: var(--azul); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.btn--google svg { width: 20px; height: 20px; }

/* ── Section Layout ── */
.section { padding: var(--space-3xl) 0; }
.section--alt { background: var(--branco); }
.section__header { text-align: center; margin-bottom: var(--space-2xl); }
.section__title { font-size: 1.8rem; margin-bottom: var(--space-sm); }
.section__subtitle { font-size: 1rem; color: var(--chumbo-light); max-width: 600px; margin: 0 auto; }
.section__eyebrow { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--azul); margin-bottom: var(--space-sm); }

/* ── Card Grid ── */
.card-grid { display: grid; gap: var(--space-lg); }
.card-grid--2 { grid-template-columns: repeat(2, 1fr); }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ── Navigation Cards ── */
.nav-card { background: var(--branco); border-radius: var(--radius-lg); padding: var(--space-xl); display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-md); box-shadow: var(--shadow-card); border: 1px solid rgba(87,87,85,0.06); transition: all var(--transition-base); cursor: pointer; position: relative; overflow: hidden; text-decoration: none; color: inherit; }
.nav-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--azul); transform: scaleX(0); transform-origin: left; transition: transform var(--transition-base); }
.nav-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.nav-card:hover::before { transform: scaleX(1); }
.nav-card__icon { width: 52px; height: 52px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; background: var(--azul-light); color: var(--azul); transition: all var(--transition-base); font-size: 1.5rem; }
.nav-card:hover .nav-card__icon { background: var(--azul); color: var(--branco); transform: scale(1.05); }
.nav-card__icon svg { width: 24px; height: 24px; }
.nav-card__title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--chumbo-dark); }
.nav-card__desc { font-size: 0.85rem; color: var(--chumbo-light); line-height: 1.5; }
.nav-card__arrow { margin-top: auto; display: flex; align-items: center; gap: 4px; font-size: 0.82rem; font-weight: 600; color: var(--azul); transition: gap var(--transition-base); }
.nav-card:hover .nav-card__arrow { gap: 10px; }
.nav-card__arrow svg { width: 16px; height: 16px; }

/* ── Stat/KPI Cards ── */
.stats-grid, .dashboard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.stat-card, .dash-kpi { background: var(--branco); border-radius: var(--radius-lg); padding: var(--space-xl); text-align: center; box-shadow: var(--shadow-card); border: 1px solid rgba(87,87,85,0.06); transition: all var(--transition-base); }
.stat-card:hover, .dash-kpi:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.stat-card__value, .dash-kpi__value { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800; color: var(--azul); line-height: 1; margin-bottom: var(--space-xs); }
.stat-card__label, .dash-kpi__label { font-size: 0.82rem; color: var(--chumbo-light); font-weight: 500; }

/* ── Biography ── */
.bio-section { margin-bottom: var(--space-2xl); }
.bio-section__title { font-size: 1.3rem; margin-bottom: var(--space-lg); padding-bottom: var(--space-sm); border-bottom: 2px solid var(--azul-light); }
.bio-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--space-md); }
.bio-info-card { background: var(--branco); border-radius: var(--radius-md); padding: var(--space-lg); box-shadow: var(--shadow-sm); border-left: 4px solid var(--azul); }
.bio-info-card__label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--azul); margin-bottom: var(--space-xs); }
.bio-info-card__value { font-size: 1rem; color: var(--chumbo-dark); font-weight: 500; }
.edu-card { background: var(--branco); border-radius: var(--radius-lg); padding: var(--space-xl); box-shadow: var(--shadow-card); border: 1px solid rgba(87,87,85,0.06); transition: all var(--transition-base); }
.edu-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.edu-card__icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: var(--space-md); }
.edu-card__degree { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--chumbo-dark); margin-bottom: var(--space-xs); }
.edu-card__institution { font-size: 0.85rem; color: var(--chumbo-light); }
.edu-card__year { font-size: 0.78rem; color: var(--azul); font-weight: 600; margin-top: var(--space-sm); }

/* Biography Hero (photo + intro) */
.bio-hero { display: flex; gap: var(--space-2xl); align-items: flex-start; margin-bottom: var(--space-2xl); padding-bottom: var(--space-2xl); border-bottom: 1px solid rgba(87,87,85,0.08); }
.bio-hero__photo { width: 280px; height: 340px; border-radius: var(--radius-lg); overflow: hidden; flex-shrink: 0; box-shadow: var(--shadow-lg); }
.bio-hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.bio-hero__content { flex: 1; }
.bio-hero__intro { font-size: 1.1rem; color: var(--chumbo); line-height: 1.8; margin-top: var(--space-md); font-weight: 300; }

/* Biography Body (prose chapters) */
.bio-body { max-width: 800px; }
.bio-chapter { margin-bottom: var(--space-2xl); }
.bio-chapter__title { font-size: 1.25rem; color: var(--azul-dark); margin-bottom: var(--space-md); padding-bottom: var(--space-sm); border-bottom: 2px solid var(--azul-light); display: flex; align-items: center; gap: var(--space-sm); }
.bio-chapter__text { font-size: 0.95rem; color: var(--chumbo); line-height: 1.8; }
.bio-chapter__text p { margin-bottom: var(--space-md); }
.bio-chapter__text p:last-child { margin-bottom: 0; }
.bio-chapter__text strong { color: var(--chumbo-dark); font-weight: 600; }
.bio-list { list-style: none; padding: var(--space-md) 0; }
.bio-list li { position: relative; padding: var(--space-sm) 0 var(--space-sm) var(--space-xl); font-size: 0.95rem; color: var(--chumbo); line-height: 1.6; }
.bio-list li::before { content: ''; position: absolute; left: 8px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--azul); }
.bio-list li strong { color: var(--chumbo-dark); }

/* ── Timeline ── */
.timeline { position: relative; padding-left: 50px; max-width: 800px; }
.timeline::before { content: ''; position: absolute; left: 20px; top: 0; bottom: 0; width: 3px; background: linear-gradient(to bottom, var(--azul-light), var(--azul), var(--azul-light)); border-radius: 3px; }
.timeline__item { position: relative; margin-bottom: var(--space-xl); padding: var(--space-lg); background: var(--branco); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); border: 1px solid rgba(87,87,85,0.06); transition: all var(--transition-base); }
.timeline__item:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.timeline__item--highlight { border-left: 4px solid var(--dourado); }
.timeline__item--hidden { opacity: 0; transform: translateX(-20px); }
.timeline__item--visible { opacity: 1; transform: translateX(0); transition: opacity 0.5s ease, transform 0.5s ease; }
.timeline__dot { position: absolute; left: -42px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; border-radius: 50%; background: var(--azul); border: 4px solid var(--branco); box-shadow: var(--shadow-sm), 0 0 0 3px var(--azul-light); z-index: 1; transition: all var(--transition-base); }
.timeline__item:hover .timeline__dot { transform: translateY(-50%) scale(1.3); box-shadow: var(--shadow-md), 0 0 0 4px var(--azul-light); }
.timeline__dot--gold { background: var(--dourado); box-shadow: var(--shadow-sm), 0 0 0 3px var(--dourado-light); }
.timeline__year { font-family: var(--font-heading); font-weight: 700; color: var(--azul-dark); font-size: 1.1rem; }
.timeline__title { font-weight: 600; color: var(--chumbo-dark); margin-top: 2px; font-size: 1rem; }
.timeline__desc { font-size: 0.88rem; color: var(--chumbo-light); margin-top: 4px; line-height: 1.5; }

/* ── Acervo ── */
.acervo-filters { background: var(--branco); border-radius: var(--radius-lg); padding: var(--space-lg); box-shadow: var(--shadow-sm); margin-bottom: var(--space-lg); display: flex; gap: var(--space-md); flex-wrap: wrap; align-items: center; }
.acervo-filters input[type="text"], .acervo-filters input[type="date"], .acervo-filters select { padding: 10px 16px; border: 1px solid rgba(87,87,85,0.15); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.88rem; color: var(--chumbo-dark); background: var(--creme-light); transition: all var(--transition-fast); outline: none; }
.acervo-filters input[type="text"] { flex: 1; min-width: 250px; }
.acervo-filters input[type="date"] { width: 160px; }
.acervo-filters select { min-width: 180px; }
.acervo-filters input:focus, .acervo-filters select:focus { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(98,184,217,0.15); }
.acervo-stats { display: flex; align-items: center; gap: var(--space-lg); padding: var(--space-md) 0; margin-bottom: var(--space-lg); border-bottom: 1px solid rgba(87,87,85,0.08); font-size: 0.85rem; color: var(--chumbo-light); }
.acervo-stats span { display: inline-flex; align-items: center; gap: 6px; }
.acervo-stats strong { color: var(--azul-dark); font-weight: 700; }
.acervo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-lg); }
.acervo-card, .record-card { background: var(--branco); border-radius: var(--radius-lg); padding: var(--space-xl); box-shadow: var(--shadow-card); border: 1px solid rgba(87,87,85,0.06); transition: all var(--transition-base); display: flex; flex-direction: column; gap: var(--space-sm); }
.acervo-card:hover, .record-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.acervo-card__meta, .record-card__meta { display: flex; gap: var(--space-md); font-size: 0.78rem; }
.acervo-card__date, .record-card__date { color: var(--azul); font-weight: 600; }
.acervo-card__source, .record-card__source { color: var(--chumbo-light); background: var(--creme-light); padding: 2px 10px; border-radius: var(--radius-full); font-weight: 500; }
.acervo-card__title, .record-card__title { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--chumbo-dark); line-height: 1.3; }
.acervo-card__snippet, .record-card__snippet { font-size: 0.88rem; color: var(--chumbo-light); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acervo-card__link, .record-card__link { margin-top: auto; display: flex; align-items: center; gap: 4px; font-size: 0.82rem; font-weight: 600; color: var(--azul); transition: gap var(--transition-base); }
.acervo-card__link:hover, .record-card__link:hover { gap: 10px; }
.acervo-card__link svg, .record-card__link svg { width: 14px; height: 14px; }
.acervo-pagination { display: flex; justify-content: center; align-items: center; gap: var(--space-sm); margin-top: var(--space-2xl); }
.acervo-pagination button { width: 40px; height: 40px; border: 1px solid rgba(87,87,85,0.15); border-radius: var(--radius-sm); background: var(--branco); color: var(--chumbo); font-family: var(--font-body); font-size: 0.88rem; font-weight: 500; cursor: pointer; transition: all var(--transition-fast); }
.acervo-pagination button:hover { background: var(--azul-light); border-color: var(--azul); color: var(--azul-dark); }
.acervo-pagination button.active { background: var(--azul); color: var(--branco); border-color: var(--azul); }

/* ── Login Gate ── */
.login-gate { text-align: center; padding: var(--space-3xl) var(--space-xl); max-width: 600px; margin: 0 auto; }
.login-gate__icon { width: 80px; height: 80px; border-radius: 50%; background: var(--azul-light); color: var(--azul); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--space-xl); }
.login-gate__icon svg { width: 40px; height: 40px; }
.login-gate__title { font-size: 1.6rem; margin-bottom: var(--space-md); }
.login-gate__desc { font-size: 1rem; color: var(--chumbo-light); line-height: 1.6; margin-bottom: var(--space-xl); }
.auth-box { background: var(--branco); border-radius: var(--radius-lg); padding: var(--space-2xl); box-shadow: var(--shadow-lg); border: 1px solid rgba(87,87,85,0.06); }
.auth-features { display: flex; flex-direction: column; gap: var(--space-md); margin-top: var(--space-xl); text-align: left; }
.auth-feature { display: flex; align-items: center; gap: var(--space-md); padding: var(--space-md); background: var(--creme-light); border-radius: var(--radius-md); font-size: 0.9rem; color: var(--chumbo); }
.auth-feature svg { width: 20px; height: 20px; color: var(--azul); flex-shrink: 0; }

/* ── Footer ── */
.footer { background: var(--chumbo-dark); color: rgba(255,255,255,0.7); padding: var(--space-3xl) 0 0; }
.footer .container { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--space-2xl); }
.footer__brand { display: flex; flex-direction: column; gap: var(--space-md); }
.footer__brand-name { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--branco); }
.footer__brand p { font-size: 0.85rem; line-height: 1.6; color: rgba(255,255,255,0.5); }
.footer__col-title { font-family: var(--font-heading); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--branco); margin-bottom: var(--space-md); }
.footer__list { list-style: none; display: flex; flex-direction: column; gap: var(--space-sm); }
.footer__list a { color: rgba(255,255,255,0.5); font-size: 0.85rem; transition: color var(--transition-fast); }
.footer__list a:hover { color: var(--branco); }
.footer__bottom { margin-top: var(--space-2xl); border-top: 1px solid rgba(255,255,255,0.08); padding: var(--space-lg) 0; font-size: 0.78rem; color: rgba(255,255,255,0.35); text-align: center; }

/* ── View Indicator ── */
.view-indicator { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; background: rgba(98,184,217,0.08); border-radius: var(--radius-full); font-size: 0.7rem; color: var(--azul-dark); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; position: fixed; bottom: 20px; right: 20px; z-index: 200; backdrop-filter: blur(8px); border: 1px solid rgba(98,184,217,0.15); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid, .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .footer .container { grid-template-columns: repeat(2, 1fr); }
  .hero__illustration { display: none; }
  .acervo-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --header-height: 56px; --nav-height: 44px; }
  .hero { padding: var(--space-2xl) 0; min-height: auto; }
  .hero__title { font-size: 1.8rem; }
  .hero__subtitle { font-size: 0.95rem; }
  .section { padding: var(--space-2xl) 0; }
  .section__title { font-size: 1.4rem; }
  .card-grid--2, .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
  .stats-grid, .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
  .nav__toggle { display: flex; }
  .nav__list { display: none; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--azul-dark); flex-direction: column; padding: var(--space-md) 0; box-shadow: var(--shadow-lg); }
  .nav__list--open { display: flex; }
  .nav__link { padding: var(--space-md) var(--space-lg); font-size: 0.9rem; }
  .nav__link::after { display: none; }
  .footer .container { grid-template-columns: 1fr; }
  .quick-access .container { flex-direction: column; align-items: flex-start; }
  .quick-access__items { overflow-x: auto; width: 100%; flex-wrap: nowrap; padding-bottom: 4px; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .acervo-filters { flex-direction: column; }
  .acervo-filters input[type="text"] { min-width: 100%; }
  .timeline { padding-left: 35px; }
  .timeline::before { left: 14px; }
  .timeline__dot { left: -30px; width: 14px; height: 14px; }
  .top-bar__links { display: none; }
  .bio-hero { flex-direction: column; gap: var(--space-lg); }
  .bio-hero__photo { width: 200px; height: 240px; align-self: center; }
}

@media (max-width: 480px) {
  .stats-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .dash-kpi__value, .stat-card__value { font-size: 1.8rem; }
  .header__search { display: none; }
}

@media print {
  .header, .nav, .top-bar, .footer, .view-indicator { display: none; }
  .page-view { display: block !important; }
  .section { padding: 1rem 0; }
}
