:root {
  --maroon: #5b2a27;
  --maroon-dark: #3e1c1a;
  --maroon-deep: #2a1412;
  --gold: #c9a574;
  --gold-light: #e4d3ac;
  --cream: #f5f1e9;
  --cream-alt: #ece3d3;
  --ink: #2b211e;
  --ink-muted: #6b5c53;
  --white: #ffffff;
  --shadow: 0 12px 30px rgba(42, 20, 18, 0.12);
  --radius: 6px;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--maroon);
  line-height: 1.2;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75em;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--maroon);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
}

.brand .logo-mark {
  width: 34px;
  height: 42px;
  color: var(--gold);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  letter-spacing: 0.03em;
}

.brand-text span {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--cream);
  opacity: 0.88;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  opacity: 1;
  border-color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gold-light);
  border-radius: 4px;
  color: var(--cream);
  width: 42px;
  height: 38px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--maroon-dark);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .main-nav.open { max-height: 460px; }
  .main-nav a {
    width: 100%;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
}

/* ---------- Hero / Carrossel ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: var(--maroon-deep);
}

.hero-carousel {
  position: absolute;
  inset: 0;
}

.hero-carousel-fallback {
  background: linear-gradient(155deg, var(--maroon) 0%, var(--maroon-dark) 65%, var(--maroon-deep) 100%);
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s ease;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(42,20,18,0.86) 0%, rgba(42,20,18,0.72) 55%, rgba(42,20,18,0.55) 100%);
}

.hero-content {
  position: relative;
  max-width: 720px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-content h1 {
  color: var(--white);
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}

.hero-content p.lead {
  font-size: 1.15rem;
  color: var(--gold-light);
  max-width: 560px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(245,241,233,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
}

.hero-dot.active { background: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover { transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--maroon-deep);
}
.btn-gold:hover { background: var(--gold-light); }

.btn-outline {
  background: transparent;
  border-color: var(--gold-light);
  color: var(--cream);
}
.btn-outline:hover { background: rgba(228,211,172,0.12); }

.btn-maroon {
  background: var(--maroon);
  color: var(--cream);
}
.btn-maroon:hover { background: var(--maroon-dark); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }

.section-alt { background: var(--cream-alt); }

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

/* ---------- Quem Somos ---------- */
.prose {
  font-size: 1.05rem;
  color: var(--ink);
}
.prose p { margin-bottom: 1.1em; }

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.mv-card p { color: var(--ink-muted); margin: 0; }

@media (max-width: 760px) {
  .mv-grid { grid-template-columns: 1fr; }
}

/* ---------- Equipe ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.team-photo {
  aspect-ratio: 4 / 3;
  background: var(--cream-alt);
}

.team-photo img { width: 100%; height: 100%; object-fit: cover; }

.team-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--gold);
}

.team-info { padding: 22px 24px; }
.team-info h3 { margin-bottom: 2px; }

.team-role {
  color: var(--maroon);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 2px;
}

.team-oab {
  color: var(--ink-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.team-info p { color: var(--ink-muted); font-size: 0.93rem; }

/* ---------- Cards / Áreas ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}

.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-muted); margin: 0; font-size: 0.95rem; }

/* ---------- Publicações ---------- */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--cream-alt);
}

.tab-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding: 10px 18px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.tab-btn.active {
  color: var(--maroon);
  border-color: var(--gold);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.pub-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pub-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.pub-thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--cream-alt);
}
.pub-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pub-item .pub-main { flex: 1; min-width: 200px; }
.pub-item .pub-main h3 { margin-bottom: 4px; font-size: 1.05rem; }
.pub-item .pub-year {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
  text-transform: uppercase;
}
.pub-item p { color: var(--ink-muted); font-size: 0.93rem; margin: 6px 0 0; }
.pub-item .pub-link {
  white-space: nowrap;
  font-weight: 600;
  color: var(--maroon);
  border-bottom: 1px solid var(--gold);
}

.empty-state {
  color: var(--ink-muted);
  font-style: italic;
  padding: 24px 0;
}

/* ---------- Na Mídia ---------- */
.media-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.media-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.media-thumb {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
  background: var(--maroon-deep);
  box-shadow: 0 0 0 1px var(--cream-alt);
}
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }

.media-thumb-video .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.1rem;
  background: rgba(42,20,18,0.35);
}

.media-info { flex: 1; min-width: 200px; }

.media-item .media-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}

/* ---------- Lightbox / Vídeo ---------- */
.lightbox-overlay, .video-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,10,9,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 40px 20px;
}
.lightbox-overlay.open, .video-overlay.open { display: flex; }

.lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.video-frame {
  width: min(900px, 100%);
  aspect-ratio: 16 / 9;
}
.video-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Contato ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cream-alt);
}

.contact-row:last-child { border-bottom: none; }

.contact-row .icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--maroon);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-row a, .contact-row span.value {
  font-weight: 600;
  color: var(--maroon);
}

.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
  margin: 16px 0 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d9cfbe;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--cream);
}

.contact-form textarea { min-height: 120px; resize: vertical; }

@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--maroon-deep);
  color: var(--gold-light);
  padding: 48px 0 28px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(228,211,172,0.15);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand .logo-mark {
  width: 28px;
  height: 34px;
  color: var(--gold);
}

.footer-brand strong {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--cream);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--gold-light);
  opacity: 0.85;
}
.footer-links a:hover { opacity: 1; }

.footer-bottom {
  padding-top: 20px;
  font-size: 0.78rem;
  opacity: 0.65;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom a { opacity: 1; color: var(--gold); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

.lattes-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--maroon);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--maroon-deep);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }
