/**
 * CVU - Comissão do Vestibular Unificado da UEM
 * Estilos Customizados - Versão Limpa e Otimizada
 */

/* ===== VARIÁVEIS CSS ===== */
:root {
  --color-primary: #3366FF;
  --color-primary-hover: #0037DD;
  --color-secondary: #0189A1;
  --color-secondary-hover: #047B90;
  --color-dark: #00002f;
  --color-light: #f5f5f5;
  --color-gray-light: #efefef;
  --color-text: #333333;
  --color-text-light: #666666;
  --header-height: 90px;
  --header-height-sticky: 70px;
  --transition: all 0.3s ease;
}

/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  font-weight: 300;
  color: var(--color-text);
  line-height: 1.6;
  background: #ffffff;
}

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

a:hover {
  color: var(--color-primary-hover);
}

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

.container {
  max-width: 1140px;
}

/* ===== TIPOGRAFIA ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; font-weight: 800; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (max-width: 767.98px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  h3 { font-size: 1.5rem; }
}

/* ===== HEADER ===== */
#header {
  background: var(--color-dark);
  height: var(--header-height);
  position: relative;
  z-index: 1000;
  transition: var(--transition);
}

#header.sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height-sticky);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#header .logo {
  height: var(--header-height);
  display: flex;
  align-items: center;
}

#header.sticky .logo {
  height: var(--header-height-sticky);
}

#header .logo img {
  max-height: 50px;
  width: auto;
}

/* ===== MENU ===== */
.navbar {
  padding: 0;
}

.navbar-nav .nav-link {
  color: #ededed !important;
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 16px;
  font-weight: 300;
  padding: 0 15px;
  line-height: var(--header-height);
  transition: var(--transition);
}

#header.sticky .navbar-nav .nav-link {
  line-height: var(--header-height-sticky);
}

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
}

.navbar-nav .dropdown-menu {
  background: #ffffff;
  border: 1px solid #D5D7E0;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 0;
}

.navbar-nav .dropdown-item {
  color: var(--color-text);
  padding: 8px 20px;
  font-size: 14px;
  transition: var(--transition);
}

.navbar-nav .dropdown-item:hover {
  background: var(--color-gray-light);
  color: var(--color-primary);
}

.navbar-toggler {
  border-color: rgba(255,255,255,0.3);
  padding: 0.5rem;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== CARROSSEL ===== */
.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-carousel .slick-list,
.hero-carousel .slick-track {
  position: relative;
}

.hero-carousel .slick-slide {
  position: relative;
}

.hero-carousel .slick-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Setas do Carrossel */
.hero-carousel .slick-prev,
.hero-carousel .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  z-index: 100;
  background: rgba(0, 0, 0, 0.3);
  border: none;
  border-radius: 4px;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-carousel .slick-prev {
  left: 20px;
}

.hero-carousel .slick-next {
  right: 20px;
}

.hero-carousel .slick-prev:hover,
.hero-carousel .slick-next:hover {
  background: rgba(0, 0, 0, 0.6);
}

.hero-carousel .slick-prev:before,
.hero-carousel .slick-next:before {
  content: '';
  display: none;
}

/* Dots (Pontos de Navegação) */
.hero-carousel .slick-dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  z-index: 100;
}

.hero-carousel .slick-dots li {
  margin: 0;
  padding: 0;
  width: 12px;
  height: 12px;
}

.hero-carousel .slick-dots li button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 0;
  transition: all 0.3s ease;
}

.hero-carousel .slick-dots li button:before {
  display: none;
}

.hero-carousel .slick-dots li.slick-active button {
  background: var(--color-primary);
  transform: scale(1.2);
}

.hero-carousel .slick-dots li:hover button {
  background: rgba(255, 255, 255, 0.8);
}

/* ===== SEÇÃO DESTAQUE ===== */
.section-destaque {
  background: var(--color-gray-light);
  padding: 30px;
  margin: 30px auto;
  border-radius: 8px;
  text-align: center;
}

.section-destaque h3 {
  color: var(--color-text);
  margin-bottom: 15px;
}

.section-destaque p {
  color: var(--color-text-light);
  margin-bottom: 20px;
}

/* ===== BOTÕES ===== */
.btn-custom {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 10px 30px;
  border-radius: 20px;
  font-weight: 400;
  transition: var(--transition);
}

.btn-custom:hover {
  background: var(--color-primary-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(51, 102, 255, 0.3);
}

.btn-secondary-custom {
  background: var(--color-secondary);
  color: #fff;
}

.btn-secondary-custom:hover {
  background: var(--color-secondary-hover);
  color: #fff;
}

.btn-sm-custom {
  padding: 5px 15px;
  font-size: 12px;
  border-radius: 15px;
}

/* ===== CARDS DE IMAGEM ===== */
.image-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 15px;
  transition: var(--transition);
}

.image-card img {
  width: 100%;
  transition: transform 0.3s ease;
}

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

.image-card:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ===== SEÇÃO EVENTOS ===== */
.section-eventos {
  padding: 20px 0;
}

.evento-card {
  text-align: center;
  padding: 10px;
}

.evento-card .image-card {
  margin-bottom: 15px;
}

.evento-card .btn-group-custom {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.evento-card .btn-group-custom .btn {
  flex: 0 0 auto;
}

/* ===== FAQ CARDS ===== */
.faq-card {
  position: relative;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  margin-bottom: 15px;
}

.faq-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  transition: var(--transition);
}

.faq-card:hover::before {
  background: rgba(0, 0, 47, 0.75);
}

.faq-card.faq-pas:hover::before {
  background: rgba(1, 63, 74, 0.8);
}

.faq-card-content {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  color: #fff;
  z-index: 2;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.faq-card:hover .faq-card-content {
  opacity: 1;
  transform: translateY(0);
}

.faq-card-content h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.faq-card-content p {
  font-size: 16px;
  margin-bottom: 15px;
}

/* ===== ACCORDION ===== */
.accordion-custom {
  background: #fff;
  border: 1px solid #D5D7E0;
  border-radius: 8px;
  margin-bottom: 20px;
}

.accordion-custom:last-child {
  margin-bottom: 0;
}

.accordion-custom .accordion-header {
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: var(--transition);
}

.accordion-custom .accordion-header:hover {
  background: var(--color-gray-light);
}

.accordion-custom .accordion-header h4 {
  margin: 0;
  font-size: 20px;
}

.accordion-custom .accordion-icon {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.accordion-custom .accordion-header.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-custom > .accordion-body {
  display: none;
  padding: 20px;
  border-top: 1px solid #D5D7E0;
}

.accordion-custom > .accordion-body.show {
  display: block;
}

/* Grid de Eventos Anteriores */
.eventos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

@media (max-width: 991.98px) {
  .eventos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 575.98px) {
  .eventos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== FOOTER ===== */
#footer {
  background: var(--color-dark);
  color: #b0b0b0;
  padding: 40px 0 20px;
}

#footer h5 {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 15px;
}

#footer .footer-icon {
  font-size: 36px;
  color: #ffffff;
  margin-bottom: 15px;
}

#footer a {
  color: #d6d6d6;
  transition: var(--transition);
}

#footer a:hover {
  color: #f0f0f0;
}

#footer .footer-info {
  font-size: 14px;
  line-height: 1.8;
}

#footer .footer-info div {
  margin-bottom: 5px;
}

#footer .whatsapp-link:hover {
  color: #25D366;
}

#footer .copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 30px;
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 999;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  text-align: center;
  line-height: 44px; 
}

.back-to-top:hover {
  background: var(--color-primary-hover);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.p-5 {
    padding: 15px !important;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 991.98px) {
  :root {
    --header-height: 70px;
  }

  #header {
    height: var(--header-height);
  }

  .navbar-collapse {
        background: rgba(0, 0, 47, 0.95); /* reutiliza o tom do header */
        padding: 18px 20px;
        border-radius: 12px;
        margin-top: 12px;
    }

  .navbar-nav .nav-link {
    line-height: normal;
    padding: 10px 15px;
  }

  .section-destaque {
    padding: 20px;
    margin: 20px 10px;
  }
}

@media (max-width: 767.98px) {
  .section-destaque {
    padding: 15px;
    margin: 15px 5px;
  }

  .faq-card {
    height: 250px;
  }

  .faq-card-content {
    bottom: 20px;
    left: 20px;
    right: 20px;
  }

  .faq-card-content h3 {
    font-size: 20px;
  }

  .faq-card-content p {
    font-size: 14px;
  }

  #footer .footer-icon {
    font-size: 48px;
  }

  #footer .text-md-start {
    text-align: center !important;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
}

/* ===== UTILITÁRIOS ===== */
.section-spacing {
  padding: 30px 0;
}

.mb-custom {
  margin-bottom: 20px;
}

.text-light-custom {
  color: var(--color-text-light);
}

/* ===== LOADING ===== */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* ===== SMOOTH TRANSITIONS ===== */
.transition-all {
  transition: var(--transition);
}
