/*
  site-v2.css
  Base visual moderna para migração do site para Bootstrap 5.
  Mantém a paleta principal do projeto e substitui o visual legado.
*/

:root {
  --brand-primary: #08bdd8;
  --brand-primary-dark: #0b7f95;
  --brand-accent: #fddd04;
  --brand-accent-dark: #e8c900;
  --brand-ink: #16324a;
  --brand-text: #4b5b6b;
  --brand-muted: #7b8a9a;
  --brand-border: #e7eef5;
  --brand-surface: #ffffff;
  --brand-surface-soft: #f6f9fc;
  --brand-footer: #0f2233;
  --success-soft: #dbf7e8;
  --warning-soft: #fff4db;
  --info-soft: #ddeeff;
  --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.16);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --container-max: 1200px;
  --transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", "Segoe UI", Arial, sans-serif;
  color: var(--brand-text);
  background: var(--brand-surface-soft);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand-primary-dark);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition), background-color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

a:hover {
  color: var(--brand-primary);
  text-decoration: none;
}

.container,
.container-fluid {
  position: relative;
}

@media (min-width: 1400px) {
  .container {
    max-width: var(--container-max);
  }
}

/* ===== Helpers ===== */
.page-section {
  padding: 72px 0;
}

.section-heading {
  margin-bottom: 32px;
  text-align: center;
}

.section-heading__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(8, 189, 216, 0.10);
  color: var(--brand-primary-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-heading__title {
  margin: 0 0 12px;
  color: var(--brand-ink);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
}

.section-heading__text {
  max-width: 720px;
  margin: 0 auto;
  color: var(--brand-muted);
  font-size: 1rem;
}

.surface-card {
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* ===== Header / Navbar ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(231, 238, 245, 0.9);
}

.site-navbar {
  min-height: 86px;
}

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

.site-brand img {
  max-height: 58px;
  width: auto;
}

.site-nav .nav-link {
  color: var(--brand-ink);
  font-weight: 600;
  font-size: 0.97rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus,
.site-nav .nav-link.active {
  color: var(--brand-ink);
  background: rgba(253, 221, 4, 0.26);
}

.site-navbar .dropdown-menu {
  border: 1px solid var(--brand-border);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 0.6rem;
}

.site-navbar .dropdown-item {
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  font-weight: 500;
}

.site-navbar .dropdown-item:hover {
  background: rgba(8, 189, 216, 0.08);
}

.site-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: #f8fbff;
  border: 1px solid var(--brand-border);
  color: var(--brand-ink);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-user-badge i {
  color: var(--brand-primary);
}

/* ===== Hero ===== */
.hero-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(8, 189, 216, 0.88), rgba(10, 46, 84, 0.86)),
    url('../imagens/slideEscrita.jpg') center/cover no-repeat;
  color: #fff;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto -60px -120px auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(8px);
}

.hero-section__inner {
  position: relative;
  z-index: 1;
  padding: 110px 0 120px;
}

.hero-section__title {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  line-height: 1.08;
  font-weight: 700;
}

.hero-section__text {
  max-width: 720px;
  font-size: 1.1rem;
  opacity: 0.96;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ===== Buttons ===== */
.btn-brand,
.btn-brand-outline,
.btn-accent-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  padding: 0.85rem 1.25rem;
  border: 1px solid transparent;
  box-shadow: none;
}

.btn-brand {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color: #fff;
  box-shadow: 0 14px 28px rgba(8, 189, 216, 0.22);
}

.btn-brand:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(8, 189, 216, 0.28);
}

.btn-brand-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-brand-outline:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.btn-accent-soft {
  background: linear-gradient(135deg, var(--brand-accent), #ffd84f);
  color: var(--brand-ink);
  box-shadow: 0 14px 28px rgba(253, 221, 4, 0.22);
}

.btn-accent-soft:hover {
  color: var(--brand-ink);
  transform: translateY(-1px);
}

/* ===== Contact strip ===== */
.contact-strip {
  margin-top: -42px;
  position: relative;
  z-index: 2;
}

.contact-card {
  height: 100%;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--brand-surface);
  border: 1px solid var(--brand-border);
  box-shadow: var(--shadow-md);
}

.contact-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 189, 216, 0.10);
  color: var(--brand-primary-dark);
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.contact-card h3 {
  margin: 0 0 8px;
  color: var(--brand-ink);
  font-size: 1.05rem;
  font-weight: 700;
}

.contact-card p,
.contact-card a {
  margin: 0;
  color: var(--brand-text);
}

/* ===== Cards / concursos ===== */
.concursos-board {
  background: transparent;
}

.board-column {
  height: 100%;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--brand-border);
  background: var(--brand-surface);
  box-shadow: var(--shadow-sm);
}

.board-column__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--brand-border);
}

.board-column__title {
  margin: 0;
  color: var(--brand-ink);
  font-size: 1.3rem;
  font-weight: 700;
}

.board-column__count {
  min-width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-ink);
  background: #edf5fb;
}

.board-column--pre .board-column__count {
  background: var(--warning-soft);
}

.board-column--open .board-column__count {
  background: var(--success-soft);
}

.board-column--progress .board-column__count {
  background: var(--info-soft);
}

.concurso-card {
  padding: 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-border);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.concurso-card + .concurso-card {
  margin-top: 14px;
}

.concurso-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #d8e5f2;
}

.concurso-card__title {
  margin: 0 0 10px;
  color: var(--brand-ink);
  font-size: 1.05rem;
  line-height: 1.45;
  font-weight: 700;
}

.concurso-card__meta {
  color: var(--brand-muted);
  font-size: 0.94rem;
  margin-bottom: 14px;
}

.concurso-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.empty-state {
  text-align: center;
  border: 1px dashed #d9e4ef;
  border-radius: var(--radius-md);
  padding: 24px 18px;
  color: var(--brand-muted);
  background: #fbfdff;
}

.empty-state strong {
  display: block;
  color: var(--brand-ink);
  margin-bottom: 6px;
}

/* ===== Forms ===== */
.form-control,
.form-select {
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid #dbe6ef;
  box-shadow: none;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(8, 189, 216, 0.5);
  box-shadow: 0 0 0 0.25rem rgba(8, 189, 216, 0.16);
}

.form-label {
  color: var(--brand-ink);
  font-weight: 600;
}

/* ===== Footer ===== */
.site-footer {
  background: linear-gradient(180deg, #16324a 0%, var(--brand-footer) 100%);
  color: rgba(255, 255, 255, 0.82);
  margin-top: 72px;
}

.site-footer__top {
  padding: 54px 0 26px;
}

.site-footer__brand img {
  max-height: 58px;
  margin-bottom: 14px;
}

.site-footer__title {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.site-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__list li + li {
  margin-top: 10px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding: 18px 0;
  font-size: 0.94rem;
}

/* ===== Legacy compatibility helpers ===== */
.ajustes-nav {
  padding-top: 0;
}

.margin-content,
.inscricao-content,
.recursos-content {
  padding-top: 32px;
}

.rodape {
  background: transparent;
}

.txt-footer {
  text-align: right;
}

#btnVoltarTopo {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-accent), #ffd84f);
  color: var(--brand-ink);
  box-shadow: var(--shadow-md);
  display: none;
  z-index: 1080;
}

#btnVoltarTopo:hover {
  transform: translateY(-2px);
}

/* ===== Responsive ===== */
@media (max-width: 991.98px) {
  .site-header {
    background: rgba(255, 255, 255, 0.98);
  }

  .site-navbar {
    min-height: 76px;
  }

  .site-brand img {
    max-height: 48px;
  }

  .contact-strip {
    margin-top: 24px;
  }

  .page-section {
    padding: 56px 0;
  }
}

@media (max-width: 767.98px) {
  .hero-section__inner {
    padding: 74px 0 82px;
  }

  .hero-section__text {
    font-size: 1rem;
  }

  .contact-card,
  .board-column {
    padding: 18px;
  }

  .txt-footer {
    text-align: left;
  }

  #btnVoltarTopo {
    right: 18px;
    bottom: 18px;
  }
}

.site-navbar {
    background: #fff;
    border-bottom: 1px solid var(--brand-border);
    padding: .8rem 0;
}

.site-brand img {
    max-height: 50px;
}

/* MENU */
.site-nav .nav-link {
    font-weight: 600;
    color: var(--brand-ink);
    padding: .6rem .9rem;
    border-radius: 10px;
    transition: .2s ease;
}

.site-nav .nav-link:hover {
    background: rgba(8,189,216,.08);
    color: var(--brand-primary-dark);
}

.site-nav .nav-link.active {
    background: var(--brand-ink);
    color: #fff;
}

/* USUÁRIO */
.site-user-badge {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .8rem;
    border-radius: 999px;
    background: rgba(8,189,216,.10);
    font-weight: 600;
}

/* DROPDOWN */
.dropdown-menu {
    border-radius: 14px;
    border: 1px solid var(--brand-border);
    box-shadow: var(--shadow-md);
    padding: .5rem;
}

.dropdown-item {
    border-radius: 10px;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(8,189,216,.08);
}

/* BOTÃO HAMBURGUER */
.navbar-toggler {
    padding: .4rem .6rem;
    border-radius: 10px;
    background: rgba(8,189,216,.08);
}

/* CORREÇÃO DO ÍCONE (ESSENCIAL) */
.navbar-toggler-icon {
    background-image: none;
    width: 24px;
    height: 18px;
    position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--brand-ink);
    transition: .2s ease;
}

.navbar-toggler-icon::before {
    top: 0;
}

.navbar-toggler-icon span {
    top: 8px;
}

.navbar-toggler-icon::after {
    bottom: 0;
}

/* MOBILE */
@media (max-width: 991.98px) {
    .site-nav {
        padding-top: 1rem;
    }

    .site-nav .nav-link {
        width: 100%;
        padding: .8rem;
    }

    .site-user-badge {
        justify-content: center;
        margin-top: .5rem;
    }
}


.btn-sistema {
    display: inline-block;
    padding: 12px 22px;
    font-size: 15px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    border: none;
    font-weight: 500;
}

/* botão principal (boleto) */
.btn-boleto {
    background: #2c7be5;
    color: #fff;
}

.btn-boleto:hover {
    background: #1a68d1;
    color: #fff;
}

/* botão secundário */
.btn-continuar {
    background: #f1f3f5;
    color: #333;
}

.btn-continuar:hover {
    background: #e2e6ea;
}

/* container centralizado */
.box-acoes {
    margin-top: 25px;
    text-align: center;
}

/* imagem clicável do boleto */
.img-boleto {
    cursor: pointer;
    max-width: 220px;
    transition: transform 0.2s ease;
}

.img-boleto:hover {
    transform: scale(1.05);
}
