/* OABPrev-SC Eleições — estilos base complementares ao Tailwind (CDN) */

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

:root {
  --color-primary: #c52227;
  --color-primary-dark: #b03f38;
  --color-navy: #273f4b;
  --color-navy-dark: #1f2c33;
  --color-muted: #979797;
  --color-muted-light: #bcbcbc;
  --color-muted-lighter: #bdbdbd;
}

* {
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  color: #111827;
  background: #ffffff;
  overflow-x: hidden;
}

.font-inter {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

/* Gradient text helper */
.text-gradient {
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.gradient-red-dark {
  background-image: linear-gradient(90deg, var(--color-primary-dark) 0%, #4a1a18 100%);
}

.gradient-black-red {
  background-image: linear-gradient(90deg, #000000 0%, var(--color-primary) 100%);
}

.gradient-navy-red {
  background-image: linear-gradient(91deg, var(--color-navy) 9%, var(--color-primary) 100%);
}

.gradient-blue-red-text {
  background-image: linear-gradient(90deg, #315375 0%, var(--color-primary-dark) 100%);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.35);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background-image: linear-gradient(90deg, var(--color-primary) 0%, var(--color-navy) 112%);
  color: #fff;
}

.btn-outline {
  border: 1.5px solid #ffffff;
  color: #fff;
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-outline-dark {
  border: 1.5px solid var(--color-navy);
  color: var(--color-navy);
  background: transparent;
}

.btn-white {
  background: #ffffff;
  color: var(--color-navy);
}

.link-underline {
  text-decoration: underline;
  text-underline-offset: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.15s ease, gap 0.15s ease;
  /* reset para quando aplicado a um <button> (ex.: gatilho do modal de currículo) */
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.link-underline:hover {
  opacity: 0.75;
  gap: 9px;
}

.icon-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Hero */
.hero-card {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(75deg, rgba(0, 0, 0, 0.88) 15%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0) 78%);
}

.candidatos-hero {
  background-image: linear-gradient(100deg, var(--color-navy) 0%, var(--color-primary) 100%);
}

/* Timeline card */
.timeline-card {
  background-image: linear-gradient(61deg, #f8fdff 9%, #dceafd 100%);
  border-radius: 28px;
}

.timeline-row {
  position: relative;
  z-index: 1;
}

.timeline-row.active::before {
  content: '';
  position: absolute;
  inset: -8px -16px;
  background: #b9d3f6;
  border-radius: 14px;
  z-index: -1;
}

/* Documentos (dark) section */
.docs-card {
  background: linear-gradient(180deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  border-radius: 30px;
}

.doc-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Descrição do documento: some por padrão, aparece ao passar o mouse na linha (.group) */
.doc-description {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.doc-divider.group:hover .doc-description {
  max-height: 6rem;
  opacity: 1;
  margin-top: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-navy-dark);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.4rem 1.1rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}

a.pill:hover {
  opacity: 0.8;
}

/* Steps */
.step-number {
  background-image: linear-gradient(180deg, var(--color-primary) 0%, var(--color-navy) 100%);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.step-divider {
  border-left: 1px solid #e5e7eb;
}

/* Article cards */
.article-card {
  background: linear-gradient(180deg, #eef6ff 0%, #c5dfeb 100%);
  border-radius: 24px;
}

/* Candidate card */
.candidate-photo {
  position: relative;
  border-radius: 23px;
  overflow: hidden;
  aspect-ratio: 455 / 605;
  background-size: cover;
  background-position: center top;
}

.candidate-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, var(--color-primary) 130%);
  opacity: 0.28;
  pointer-events: none;
}

.candidate-info {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, 0.82);
  border-radius: 15px;
  padding: 12px 16px;
}

.tag-pill {
  display: inline-block;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 6px;
}

/* Tabs (candidatos) */
.tab-btn {
  padding: 0.9rem 1.75rem;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #fff;
  transition: all 0.2s ease;
}

.tab-btn.is-active {
  background: var(--color-primary);
}

.tab-btn:not(.is-active) {
  background: var(--color-navy);
  opacity: 0.22;
}

.tab-btn:not(.is-active):hover {
  opacity: 0.35;
}

/* Footer */
.footer-gradient {
  background: linear-gradient(180deg, #000000 0%, #315375 100%);
}

.footer-link {
  color: rgba(249, 250, 251, 0.7);
  transition: color 0.15s ease;
}

.footer-link:hover {
  color: #fff;
}

/* Decorative ring over portrait photos */
.deco-ring {
  position: absolute;
  border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%;
  border: 2px solid;
  border-image: linear-gradient(160deg, #ffffff 0%, var(--color-primary) 70%) 1;
  opacity: 0.85;
  pointer-events: none;
}

/* Mobile nav */
#mobile-menu {
  transition: max-height 0.3s ease, opacity 0.25s ease;
}

/* Carousel */
.carousel-track {
  scroll-snap-type: x mandatory;
}

.carousel-track > * {
  scroll-snap-align: start;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #d1d5db;
  transition: background 0.2s ease, width 0.2s ease;
}

.carousel-dot.is-active {
  background: var(--color-primary);
  width: 22px;
}

::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

/* ---------------------------------------------------
 * Modal de currículo (Candidatos)
 * Overlay sólido, sem blur, conforme solicitado.
 * ------------------------------------------------- */
.modal-overlay {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-overlay.is-open {
  opacity: 1;
}

.modal-dialog {
  transform: translateY(16px) scale(0.98);
  transition: transform 0.2s ease;
}

.modal-overlay.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

/* Conteúdo do editor WYSIWYG do ACF (campo "curriculo") */
.curriculo-content {
  color: #374151;
  font-size: 0.95rem;
  line-height: 1.7;
}

.curriculo-content > *:first-child {
  margin-top: 0;
}

.curriculo-content > *:last-child {
  margin-bottom: 0;
}

.curriculo-content p {
  margin: 0 0 1rem;
}

.curriculo-content h1,
.curriculo-content h2,
.curriculo-content h3,
.curriculo-content h4,
.curriculo-content h5,
.curriculo-content h6 {
  color: var(--color-navy);
  font-weight: 700;
  margin: 1.5rem 0 0.6rem;
  line-height: 1.3;
}

.curriculo-content h1 { font-size: 1.4rem; }
.curriculo-content h2 { font-size: 1.25rem; }
.curriculo-content h3,
.curriculo-content h4 { font-size: 1.05rem; }

.curriculo-content ul,
.curriculo-content ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.curriculo-content ul { list-style: disc; }
.curriculo-content ol { list-style: decimal; }
.curriculo-content li { margin-bottom: 0.4rem; }

.curriculo-content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.curriculo-content strong { font-weight: 700; color: #111827; }
.curriculo-content em { font-style: italic; }

.curriculo-content blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: 1rem;
  margin: 0 0 1rem;
  color: #4b5563;
  font-style: italic;
}

.curriculo-content img {
  border-radius: 12px;
  margin: 0.75rem 0;
}
