/* =========================================================
   Identidade Visual — Azul Marinho • Cinza • Bege
   Base: Bootstrap 5
   ========================================================= */

/* ----------- Tokens (cores/raios/sombras) ----------- */
:root{
  /* brand */
  --navy: #0f2440;         /* azul marinho (principal) */
  --navy-2: #17365e;       /* hover / destaque */
  --beige: #f6f1e6;        /* fundo bege suave */
  --beige-2: #efe7d6;      /* variação */
  --gray-1: #f4f6f8;       /* cinza clarinho (background) */
  --gray-2: #e7ecf1;       /* bordas leves */
  --gray-3: #8b97a6;       /* texto secundário */
  --ink: #0b1220;          /* texto principal */

  /* estado */
  --success: #198754;
  --warning: #f59f00;
  --danger:  #dc3545;

  /* UI */
  --radius-xl: 1.25rem;    /* 20px */
  --radius-lg: 1rem;       /* 16px */
  --shadow-1: 0 10px 30px rgba(15, 36, 64, .08);
  --shadow-2: 0 16px 45px rgba(15, 36, 64, .12);

  /* links */
  --link: var(--navy);
  --link-hover: var(--navy-2);

  /* focus */
  --focus: rgba(23, 54, 94, .22);
}

/* ----------- Reset leve / base ----------- */
html, body { height: 100%; }

body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--beige) 0%, var(--gray-1) 40%, #fff 100%);
  margin: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* Texto mais elegante */
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.02em; }
p { line-height: 1.55; }

/* Links */
a { color: var(--link); }
a:hover { color: var(--link-hover); }

/* Evita "card link" ficar azul */
.card a, a.card { color: inherit; }

/* ----------- Utilitários da marca ----------- */
.brand-mark{
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(120% 120% at 30% 30%, #2a4d7b 0%, var(--navy) 60%, #08162a 100%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(15, 36, 64, .22);
  border: 1px solid rgba(255,255,255,.18);
}

/* ----------- Header / Navbar premium ----------- */
.blur-backdrop{
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}

header.sticky-top{
  background: rgba(255,255,255,.82) !important;
}

.nav-link-premium{
  position: relative;
  color: rgba(11, 18, 32, .88);
  text-decoration: none;
  padding: .25rem .1rem;
  transition: color .15s ease;
}

.nav-link-premium:hover{
  color: var(--navy);
}

.nav-link-premium::after{
  content:"";
  position:absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(15,36,64,.7) 50%, transparent 100%);
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .15s ease, transform .15s ease;
}

.nav-link-premium:hover::after{
  opacity: 1;
  transform: translateY(0);
}

/* ----------- Botões premium ----------- */
.btn-premium{
  border-radius: var(--radius-lg);
  padding: .65rem 1rem;
  box-shadow: 0 10px 18px rgba(15,36,64,.10);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.btn-premium:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(15,36,64,.14);
  filter: saturate(110%);
}

.btn-dark{
  background-color: var(--navy) !important;
  border-color: var(--navy) !important;
}

.btn-dark:hover{
  background-color: var(--navy-2) !important;
  border-color: var(--navy-2) !important;
}

/* ----------- Correção de contraste dos botões ----------- */

/* Botões escuros: texto e ícones sempre brancos */
.btn-dark,
.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active,
.btn-dark i,
.btn-dark span {
  color: #ffffff !important;
}

/* Links que se comportam como botão */
a.btn-dark {
  color: #ffffff !important;
  text-decoration: none;
}

/* Botão premium + dark (caso específico do projeto) */
.btn-dark.btn-premium {
  color: #ffffff !important;
}


/* Outline mais refinado */
.btn-outline-dark{
  border-color: rgba(15,36,64,.25) !important;
  color: var(--navy) !important;
  background: rgba(255,255,255,.75);
}

.btn-outline-dark:hover{
  border-color: rgba(15,36,64,.35) !important;
  background: rgba(246,241,230,.55) !important;
}

/* ----------- Cards premium ----------- */
.card-premium{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15,36,64,.08);
  box-shadow: var(--shadow-1);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.card-premium:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: rgba(15,36,64,.14);
}

/* Para cards com imagem (notícias) */
.card-premium img{
  display:block;
}

/* ----------- Section wrappers / blocos ----------- */
.section-soft{
  background: rgba(246,241,230,.55);
  border: 1px solid rgba(15,36,64,.06);
  border-radius: var(--radius-xl);
}

.section-soft .text-muted{
  color: rgba(11,18,32,.70) !important;
}

/* ----------- Forms (inbox/contato) ----------- */
.form-control,
.form-select{
  border-radius: 1rem;
  border-color: rgba(15,36,64,.18);
  background: rgba(255,255,255,.92);
}

.form-control:focus,
.form-select:focus{
  border-color: rgba(23,54,94,.45);
  box-shadow: 0 0 0 .25rem var(--focus);
}

.form-label{
  color: rgba(11,18,32,.82);
  font-weight: 600;
}

/* ----------- Badges / alerts ----------- */
.badge.text-bg-warning{
  color: #2b1d00 !important;
  background: linear-gradient(180deg, #ffd58a 0%, #ffcb6b 100%) !important;
  border: 1px solid rgba(0,0,0,.06);
}

.alert{
  border-radius: var(--radius-xl);
  border: 1px solid rgba(15,36,64,.08);
  box-shadow: 0 10px 20px rgba(15,36,64,.06);
}

/* ----------- Paginação ----------- */
.pagination .page-link{
  border-radius: .85rem !important;
  border-color: rgba(15,36,64,.15);
  color: var(--navy);
  background: rgba(255,255,255,.85);
}

.pagination .page-link:hover{
  background: rgba(246,241,230,.75);
}

.pagination .page-item.active .page-link{
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ----------- Offcanvas (menu mobile) ----------- */
.offcanvas{
  border-left: 1px solid rgba(15,36,64,.12);
  background: linear-gradient(180deg, #fff 0%, rgba(246,241,230,.55) 100%);
}

.offcanvas-title{
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ----------- Footer ----------- */
footer{
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(246,241,230,.65) 100%);
}

.footer-link{
  color: rgba(11,18,32,.78);
  text-decoration: none;
  font-weight: 600;
}

.footer-link:hover{
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ----------- Tabelas (se vocês tiverem listagens) ----------- */
.table{
  --bs-table-bg: transparent;
}

.table thead th{
  color: rgba(11,18,32,.78);
  font-weight: 700;
  border-bottom-color: rgba(15,36,64,.12) !important;
}

.table tbody td{
  border-top-color: rgba(15,36,64,.08) !important;
}

.table-hover tbody tr:hover{
  background: rgba(246,241,230,.55) !important;
}

/* ----------- Acessibilidade / Motion ----------- */
@media (prefers-reduced-motion: reduce){
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}


/* ----------- Conteúdo rico (CKEditor) ----------- */
.rich-content h2, .rich-content h3, .rich-content h4 {
  letter-spacing: -0.02em;
  margin-top: 1.25rem;
  margin-bottom: .5rem;
}

.rich-content p, .rich-content li {
  color: rgba(11,18,32,.78);
  line-height: 1.6;
}

.rich-content ul, .rich-content ol {
  padding-left: 1.25rem;
}

.rich-content a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.rich-content a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.rich-content table td, .rich-content table th {
  border: 1px solid rgba(15,36,64,.12);
  padding: .6rem .7rem;
}

.rich-content blockquote {
  border-left: 4px solid rgba(15,36,64,.25);
  padding-left: 1rem;
  color: rgba(11,18,32,.75);
}


.btn-premium {
  position: relative;
  z-index: 2;
}

/* Botão claro com texto azul institucional */
.btn-light {
  color: var(--navy) !important;
  background-color: rgba(255,255,255,.9);
  border-color: rgba(15,36,64,.15);
}

.btn-light:hover {
  color: var(--navy-2) !important;
  background-color: rgba(246,241,230,.85);
  border-color: rgba(15,36,64,.25);
}


/* =========================================================
   Sticky footer (footer sempre no fundo da tela)
   ========================================================= */

.layout-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.layout-content {
  flex: 1 0 auto;
}

/* Footer ocupa só o espaço dele */
footer {
  flex-shrink: 0;
}


/* --- Logo no header: nunca estoura o layout --- */
.brand-wrap{
  height: 60px;
  width: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

/* se a logo for horizontal, ela ainda cabe porque limitamos max-width */
.brand-logo{
  height: 60px !important;
  width: auto !important;
  max-width: 140px;
  object-fit: contain;
  display: block;
}


/* ===== Carousel premium: reserva espaço p/ indicadores e evita sobreposição ===== */
.carousel-premium .carousel-inner{
  padding-bottom: 3.25rem; /* espaço reservado para os indicadores */
}

.carousel-premium .carousel-indicators{
  bottom: .9rem;
  margin-bottom: 0;
  gap: .4rem;
}

/* indicadores em formato “pílula” */
.carousel-premium .carousel-indicators [data-bs-target]{
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background-color: rgba(15,36,64,.25);
  opacity: 1;
  border: 0;
}

.carousel-premium .carousel-indicators .active{
  background-color: rgba(15,36,64,.85);
}

/* setas com melhor presença (sem cobrir o conteúdo) */
.carousel-premium .carousel-control-prev,
.carousel-premium .carousel-control-next{
  width: 10%;
  z-index: 5;
  opacity: 1;
}

.carousel-premium .carousel-control-prev-icon,
.carousel-premium .carousel-control-next-icon{
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background-color: rgba(15, 36, 64, .75);
  background-size: 1.1rem 1.1rem;
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}
