/* =========================
   FONTES
========================= */
:root {
  --bs-body-font-family: 'Montserrat', sans-serif;

  /* CORES BASE */
  --primary: #005954;
  --secondary: #00AFA5;
  --gold: #B06F04;
  --darkgold: #805207;
  --dark: #004541;
  --light: #fff;
 }

/* =========================
   RESET / BASE
========================= */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--bs-body-font-family);
  line-height: 1.6;
}

/** {
  outline: 1px solid red;
}*/
/* =========================
   TIPOGRAFIA
========================= */
h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.5px;
}

h4, h5 {
  font-weight: 700;
}

.h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
}

p {
  font-weight: 400;
  line-height: 1.1;
}

.small-text {
  font-weight: 300;
}

.text-destaque {
  color: var(--secondary);
}

ul li [class*="fa-"] {
  color: var(--gold);
  font-size: 1rem;
}

.btn [class*="fa-"] {
  color: var(--light) !important;
}

/* =========================
   NAV
========================= */
.navbar {
  transition: all 0.3s ease;
  padding: 20px 0;
}

.navbar-nav {
  border-color: rgba(255,255,255,0.3) !important;
}

.navbar .nav-link {
  color: var(--light);
  transition: opacity 0.3s;
  font-size: .85rem;
}

.navbar .nav-link:hover {
  color: var(--secondary);
}

/* Estado ao rolar */
.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.7);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(8px);
}

.navbar.scrolled .navbar-nav {
  border-color: transparent !important;
}

/* estado padrão */
.navbar-collapse {
  justify-content: center;
  transition: all 0.3s ease;
}

/* estado scroll */
.navbar.scrolled .navbar-collapse {
  justify-content: flex-end !important;
}

.navbar:not(.scrolled) .nav-link {
  color: #fff;
}

/* LOGO oculta */
.nav-logo {
  max-width: 64px;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

/* Delay na entrada */
.navbar.scrolled .nav-logo {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.25s;
}

/* LOGO scroll */
.navbar.scrolled .nav-logo {
  opacity: 1;
  display: initial;
  transform: translateX(0) scale(1);
}

/* MENU para a direita */
.navbar.scrolled #menu {
  justify-content: flex-end !important;
}

/* Animando a transição do menu no scroll */
.nav-menu {
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}

/* posição inicial (centralizado) */
.navbar:not(.scrolled) .nav-menu {
  transform: translateX(0);
}

/* ao rolar → move pra direita */
.navbar.scrolled .navbar-collapse {
  justify-content: flex-end !important;
}

/* botao collapse customizado */
/* REMOVE PADRÃO BOOTSTRAP */
.navbar-toggler {
  border: none;
  box-shadow: none !important;
  padding: 0;
}

/* REMOVE ÍCONE PADRÃO */
.navbar-toggler-icon {
  display: none;
}

/* BASE DO BOTÃO */
.custom-toggler {
  width: 30px;
  height: 24px;
  position: relative;
}

/* LINHAS */
.custom-toggler .toggler-icon,
.custom-toggler .toggler-icon::before,
.custom-toggler .toggler-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 3px;
  background-color: #fff;
  left: 0;
  transition: all 0.3s ease;
}

/* LINHA CENTRAL */
.custom-toggler .toggler-icon {
  top: 50%;
  transform: translateY(-50%);
}

/* LINHA SUPERIOR */
.custom-toggler .toggler-icon::before {
  top: -8px;
}

/* LINHA INFERIOR */
.custom-toggler .toggler-icon::after {
  top: 8px;
}

/* =========================
   ESTADO ABERTO (X)
========================= */
.navbar-toggler[aria-expanded="true"] .toggler-icon {
  background-color: transparent;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon::before {
  transform: rotate(45deg);
  top: 0;
}

.navbar-toggler[aria-expanded="true"] .toggler-icon::after {
  transform: rotate(-45deg);
  top: 0;
}

/* =========================
   HERO
========================= */
.hero {
  background: url('../images/img-hero-001.jpg') center/cover no-repeat;
  color: #fff;
  padding: 128px 0;
  position: relative;
  height: 100%;
}

.hero:before {
  background: url('../images/img-det-001.svg') no-repeat;
  mix-blend-mode: soft-light;
  left: 0;
}

.hero:after {
  content: "";
  background: url('../images/bg-det-001.svg') repeat-x;
  background-position: -2px bottom;
  padding-top: 5rem;
  position: absolute;
  bottom: 0px;
  z-index: 0;
  height: 82px;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.hero .lead span {
  display: inline-block;
  background-color: var(--primary);
  padding: 1rem 1.2rem;
  font-size: 3rem;
  font-weight: 900;
  border-top-left-radius: 1.5rem;
  border-bottom-right-radius: 1.5rem;
}

.hero-logo {
  transition: all 0.3s ease;
}

/* marca desaparece do Hero apos scroll */
  .navbar.scrolled ~ .hero .hero-logo {
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

/* BADGES */
.hero-badge {
  border: 2px solid var(--light);
  padding: .3rem .8rem;
  font-size: 0.85rem;
  display: inline-block;
}

/* =========================
   BOTÕES
========================= */
/*.bt-inscricao {display: none}*/

.btn-main {
  background: var(--gold);
  color: #fff;
  border-radius: 8px;
  padding: 12px 24px;
  border: none;
  transition: 0.3s;
  font-weight: 700;
  text-transform: uppercase;
}

.btn-main:hover {
  transform: scale(1.05);
  background: #d97706;
  color: #fff;
}

.btn-main.btn-small {
    border-radius: 6px;
    padding: 6px 12px;
    font-size: .75rem;
  }

/* =========================
   SEÇÕES
========================= */
.section-dark, 
.section-primary {
  color: #fff;
  padding: 3rem 0;
}

.section-dark {
  background: var(--dark);
  padding-top: 6rem;
}
.section-dark:after {
  content: "";
  background: url('../images/bg-det-002.svg') repeat-x;
  background-position: -2px -2px;
  padding-bottom: 5rem;
  padding-top: 5rem;
  position: absolute;
  top: 0px;
  left: 0;
  z-index: 0;
  height: 82px;
  width: 100%;
  opacity: .5;
}

.section-primary {
  background: var(--primary);
}

.section-light {
  background: var(--light);
  position: relative;
}

.section-light,
.section-dark,
.section-primary {
  position: relative;
}

.section-light h2,
.section-light h3 {
  color: var(--dark);
}

/*== BG detalhe superior - sessoes ==*/
#processo:after,
#premiacao:after,
.hero:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  height: 100vh;
  width: 100%;
  pointer-events: none;
  background-position: 0 -2px !important;
}

#processo:after,
#premiacao:after {
  opacity: .6;
}

/*section .container {
    z-index: 1;
    position: relative;
}*/

/* ==== SEÇÃO - Sobre ===== */
#sobre { position:relative; }

#sobre h2 {
  font-weight: 300;
  color: var(--secondary);
}

#sobre h2 .text-destaque {
  color: var(--light);
  font-weight: 700;
}

#sobre h3 {
  color: var(--secondary);
}

/* ==== SEÇÃO - Publico ===== */
#publico { 
  position:relative; 
  padding-bottom: 3rem !important
}

#publico:after {
  content: "";
  background: url('../images/bg-det-002.svg') repeat-x;
  background-position: -2px bottom;
  position: absolute;
  bottom: 0;
  z-index: 1;
  height: 82px;
  width: 100%;
  opacity: .5;
}

#publico .img-publico {
  position: relative;
  z-index: 2;
  bottom: -5rem;
}

#publico .bloco-esq, 
#publico .bloco-dir {
  position: relative;
  z-index: 3;
}

/* ==== SEÇÃO - Processo ===== */
#processo {}

#processo:after {
  background: url('../images/img-det-002.svg') no-repeat;
}

/* ==== SEÇÃO - Info ===== */
#inscricoes-info {}

/* ==== SEÇÃO - Premiação ===== */
#premiacao:after {
  background: url('../images/img-det-003.svg') no-repeat;
  background-position: right 0 !important;
}

#premiacao .icon-circle {
  background-color: var(--secondary);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 10rem;
  height: 10rem;
  z-index: 1;
}

#premiacao .icon-circle img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ==== SEÇÃO - Inscrição ===== */
#inscricao {
  background: #ffffff;
  background: -webkit-linear-gradient(180deg,rgba(255, 255, 255, 1) 0%, rgba(217, 217, 217, 1) 15%);
  background: -moz-linear-gradient(180deg,rgba(255, 255, 255, 1) 0%, rgba(217, 217, 217, 1) 15%);
  background: linear-gradient(180deg,rgba(255, 255, 255, 1) 0%, rgba(217, 217, 217, 1) 15%);
}

#inscricao h2 {
  color: var(--darkgold);
}

/* =========================
   MODAL
========================= */
.modal-content {
  border-radius: 12px;
}

.modal-body p {
  line-height: 1.5;
}

.modal-title {
  color: var(--dark);
}

.modal .btn-main {
  padding: 12px;
  font-weight: 600;
}

.modal .btn-close {
    top: -3rem;
    right: .5rem;
    color: var(--light) !important;
    background-image: none !important;
}

.modal .btn-close:before {
    content: "\f00d";
    font-weight: 900;
    font-family: "Font Awesome 6 Free";
    font-size: 2rem;
    color: var(--light);
    opacity: 1 !important;
}

/* overhide botão modal */
.modal .btn-close {
  --bs-btn-close-color: #FFF !important;
  --bs-btn-close-bg: none !important;
  --bs-btn-close-opacity: 1 !important;
}

/* FUNDO DO MODAL (BACKDROP) */
.modal-backdrop.show {
  opacity: 1; /* remove transparência padrão */
  background-color: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
}

/* anima backdrop */
.modal-backdrop {
  transition: opacity 0.3s ease;
}

/* anima modal */
.modal.fade .modal-dialog {
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.modal.show .modal-dialog {
  transform: translateY(0);
}

/* =========================
   ICON BOX
========================= */

.icon-box i {
  font-size: 40px;
  margin-bottom: 10px;
  color: var(--secondary);
}

/* =========================
   CARDS
========================= */
.card-custom {
  background-color: transparent;
  border: 3px solid var(--light);
  border-radius: 8px;
  color: #fff;
}

.card-custom ul li {
  margin-bottom: .75rem;
  line-height: 1.2;
}

.card-custom ul li i {
  margin-top: 3px;
}

/* =========================
   CTA
========================= */
#cta {
  padding-top: 6rem;
}

/* =========================
   FOOTER
========================= */
footer {
  background: var(--dark);
  color: #fff;
  font-size: 14px;
}

/* =========================
   @media queries
========================= */
/* Dispositivos large (desktops com menos de 1200px) */
@media (max-width: 1199.98px) {
  #publico .img-publico {
    bottom: -7rem;
  }

  #publico:after {
    bottom: -1px;
  }

  .hero:after,
  #sobre:after,
  #publico:after,
  .section-dark:after {
    background-size: 70%;
  }

  .hero:before,
  #processo:after,
  #premiacao:after  {
    background-size: 32vh;
    left: 0;
  }
}

/* Dispositivos medios (tablets com menos de 992px) */
@media (max-width: 991.98px) { 
  #publico .img-publico {
    bottom: 3rem;
  }

  .hero-logo {
    width: 80vw;
  }
}

 /*/ Dispositivos small (telefones em modo paisagem, com menos de 768px) */
@media (max-width: 767.98px) {
/*--- tirar animacoes responsivo ---*/
/** {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -o-transition: none !important;
    -ms-transition: none !important;
    transition: none !important;
  }*/

  .hero:after,
  #sobre:after,
  #publico:after,
  .section-dark:after {
    background-size: 85%;
  }

  .hero {
    padding: 80px 0;
    text-align: center;
  }

  .hero .lead span {
    font-size: 6vw;
  }

 .navbar {
    background-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transition: all 0.3s ease;
  }

  .navbar.scrolled,
  .navbar.menu-open {
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
  }

  .navbar .nav-link {
    font-size: 1.5rem;
  }

  /* menu alinhado à direita */
  .navbar-collapse {
    justify-content: flex-end !important;
    height: 100vh;
  }

  .navbar-nav {
    border: none !important;
  }

 /* logo visível */
   .nav-logo {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .navbar.scrolled .nav-logo,
  .navbar.menu-open .nav-logo {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.25s;
  }

  #publico:after {
    background-size: 90%;
  }

  .section-dark {
    padding: 60px 0;
  }

footer .logo-footer {
    width: calc(100% - 50%) !important;
  }
}

/* Dispositivos extra small (telefones em modo retrato, com menos de 576px) */
@media (max-width: 575.98px) { 
  .hero-badge {
    width: 100%;
  }

  .hero:before,
  #processo:after,
  #premiacao:after {
    background-size: 33.3vh;
  }

  .h-33 {
    height: 33.3% !important;
  }
}

/* reorganizando blocos no modo mobile para Processos */
@media (max-width: 359.98px) {
  #processo [class*="col-"] {
      width: 100% !important;
  }
}

/* modal especialidades (nao tem no boostrap) */
@media (min-width: 1200px) {

}
