/* ================================================
   IECH - Instituto Evangelístico Charley Huffman
   Estilos Customizados
   ================================================ */

/* --- Variáveis de Cores --- */
:root {
  --azul-escuro: #0C2D6B;
  --azul-medio: #1A4A9C;
  --azul-noite: #081437;
  --dourado: #C8A84B;
  --dourado-claro: #E8C96A;
  --ciano: #1B8FA8;
  --ciano-claro: #E8F6FA;
  --branco: #FFFFFF;
  --cinza-claro: #F8F9FF;
}

/* --- Reset e Base --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', sans-serif;
  color: #1a1a2e;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Tipografia --- */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

/* --- Navbar --- */
.navbar {
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--dourado);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* --- Hero --- */
.hero-overlay {
  background: linear-gradient(135deg, rgba(8, 20, 55, 0.92) 0%, rgba(12, 45, 107, 0.85) 100%);
}

/* --- Cards --- */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(12, 45, 107, 0.12);
}

/* --- Stat Cards (Hero) --- */
.stat-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 168, 75, 0.3);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
}

/* --- Botão Dourado --- */
.btn-dourado {
  background-color: var(--dourado);
  color: var(--azul-noite);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-dourado:hover {
  background-color: var(--dourado-claro);
  transform: translateY(-1px);
}

/* --- Botão Outline --- */
.btn-outline {
  border: 2px solid var(--branco);
  color: var(--branco);
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
}

.btn-outline:hover {
  background-color: var(--branco);
  color: var(--azul-escuro);
}

/* --- Botões da Navbar --- */
.btn-nav-webmail {
  border: 1.5px solid rgba(255,255,255,0.45);
  color: rgba(255,255,255,0.85);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  transition: all 0.25s ease;
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;
}

.btn-nav-webmail:hover {
  border-color: rgba(255,255,255,0.85);
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.btn-nav-portal {
  background-color: var(--ciano);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  transition: all 0.25s ease;
  display: inline-block;
  text-decoration: none;
  white-space: nowrap;
}

.btn-nav-portal:hover {
  background-color: #157f96;
  transform: translateY(-1px);
}

/* --- Seção Alternada --- */
.section-alt {
  background-color: var(--cinza-claro);
}

/* --- Linha Dourada de Acento --- */
.gold-line {
  width: 60px;
  height: 3px;
  background-color: var(--dourado);
  border-radius: 2px;
}

/* --- Badge/Pill --- */
.pill {
  background-color: var(--ciano-claro);
  color: var(--ciano);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  display: inline-block;
}

/* --- Avatar de Professor --- */
.professor-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: var(--azul-escuro);
  color: var(--dourado);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Formulário --- */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}

.form-input:focus {
  outline: none;
  border-color: var(--azul-medio);
  box-shadow: 0 0 0 3px rgba(26, 74, 156, 0.1);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.375rem;
  color: #374151;
  font-size: 0.9rem;
}

.form-section-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--azul-escuro);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--dourado);
  margin-bottom: 1.5rem;
}

/* --- Downloads - Busca --- */
.search-input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--azul-medio);
}

/* --- Grade Curricular - Período --- */
.periodo-card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.periodo-card:hover {
  box-shadow: 0 8px 30px rgba(12, 45, 107, 0.08);
}

.periodo-header {
  padding: 1.25rem 1.5rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.periodo-body {
  padding: 1.25rem 1.5rem;
}

.periodo-body li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.95rem;
}

.periodo-body li:last-child {
  border-bottom: none;
}

/* --- Depoimentos --- */
.depoimento-card {
  position: relative;
  padding: 2rem;
  border-radius: 12px;
  background: white;
  border: 1px solid #e5e7eb;
}

.depoimento-card::before {
  content: '"';
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  color: var(--dourado);
  opacity: 0.3;
  position: absolute;
  top: 0.5rem;
  left: 1rem;
  line-height: 1;
}

/* --- Page Hero (Páginas internas) --- */
.page-hero {
  background-color: var(--azul-noite);
  padding: 6rem 0 3rem;
  text-align: center;
}

.page-hero h1 {
  color: white;
  font-size: 2.5rem;
}

.page-hero .gold-line {
  margin: 1rem auto 0;
}

/* --- Footer --- */
footer a {
  transition: color 0.3s ease;
}

/* --- Mobile Menu --- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-menu.open {
  max-height: 500px;
}

/* --- Tabela Comparativa --- */
.compare-table th {
  background-color: var(--azul-escuro);
  color: white;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}

.compare-table td {
  border-bottom: 1px solid #e5e7eb;
}

/* --- Mensagem de Sucesso (Formulário) --- */
.success-message {
  background-color: var(--azul-noite);
  color: white;
  border-radius: 12px;
  padding: 3rem;
  text-align: center;
}

/* --- Scrollbar Customizada --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--azul-medio);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--azul-escuro);
}

/* --- Responsivo --- */
@media (max-width: 768px) {
  .page-hero {
    padding: 5rem 0 2rem;
  }

  .page-hero h1 {
    font-size: 1.875rem;
  }

  .stat-card {
    padding: 0.75rem;
  }
}
