/* Premium Custom Design System for Colégio Natikiri */
:root {
  --primary-color: #0f766e; /* Deep Teal / Green typical for schools */
  --primary-dark: #115e59;
  --bg-dark: #0f172a; /* Slate 900 */
}

/* Global Header Premium */
.header-premium-solid {
  background-color: var(--primary-color) !important;
  color: white !important;
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.2) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.header-premium-solid * {
  color: white !important;
}
.header-premium-solid .nav-link-hover:hover {
  background-color: rgba(255, 255, 255, 0.15) !important;
}

/* Extracurriculars Hero Banner */
.hero-extracurricular {
  position: relative;
  background-image: url('/images/extra-jango-real.jpg');
  background-size: cover;
  background-position: center;
  border-bottom-left-radius: 4rem;
  border-bottom-right-radius: 4rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.hero-extracurricular::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.6));
  backdrop-filter: blur(2px);
  z-index: 1;
}
.hero-extracurricular > * {
  position: relative;
  z-index: 2;
}

/* Premium Cards */
.premium-card {
  background: #ffffff;
  border-radius: 2rem !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
}
.premium-card:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

/* Typography Visibility Overrides */
.text-always-visible {
  color: white !important;
  opacity: 1 !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
}
.text-footer-visible {
  color: rgba(255, 255, 255, 0.95) !important;
  font-size: 13px !important;
}

/* Buttons */
.btn-premium {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
  color: white !important;
  box-shadow: 0 10px 15px -3px rgba(15, 118, 110, 0.3) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}
.btn-premium:hover {
  transform: scale(1.03) !important;
  box-shadow: 0 15px 25px -3px rgba(15, 118, 110, 0.4) !important;
}

/* Custom Hero Gradients for Inner Pages */
.gradient-hero {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 40%, #0f172a 100%) !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 118, 110, 0.1);
  border-bottom-left-radius: 3rem;
  border-bottom-right-radius: 3rem;
}

.gradient-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 60%),
                    radial-gradient(circle at 80% 70%, rgba(13, 148, 136, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

/* Glass card styling for Event items */
.glass-card {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 2rem !important;
  transition: all 0.4s ease !important;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08) !important;
  background: #ffffff !important;
}

/* --- Bug Fixes & Premium Enhancements --- */

/* 1. Header Overlap & Title Clipping */
main > section.pt-40,
main > section.pt-32,
main > div.pt-40 {
  padding-top: 11rem !important; /* Give extra space so titles aren't cut by header */
}

/* Adjust homepage hero to start completely BELOW the header */
section.h-screen {
  margin-top: 90px !important; 
  height: calc(100vh - 90px) !important;
}

section.h-screen > div.relative.h-full.flex.items-center {
  padding-top: 0px !important; /* Reset inner padding */
}

/* Increase gradient-hero bottom padding so the wave overlay doesn't cut text */
.gradient-hero {
  padding-bottom: 7rem !important;
}

/* 2. Header Matrículas 2026 Button (White-on-white text) */
.header-premium-solid a.bg-white,
.header-premium-solid a.bg-white * {
  color: var(--primary-color) !important;
}
.header-premium-solid a.bg-white:hover {
  background-color: rgba(255, 255, 255, 0.9) !important;
}

/* 3. Sticky Glassmorphic Header Transitions */
/* Make header solid from the beginning since the slider no longer sits behind it */
.header-premium-solid.py-5,
.header-premium-solid.py-3 {
  background-color: rgba(15, 118, 110, 0.95) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Golden Scrolled Action Button */
.header-premium-solid.py-3 a[href="/pre-inscricao"] {
  background-color: #facc15 !important;
  color: #022c22 !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 20px rgba(250, 204, 21, 0.25) !important;
  border: none !important;
}
.header-premium-solid.py-3 a[href="/pre-inscricao"] * {
  color: #022c22 !important;
}
.header-premium-solid.py-3 a[href="/pre-inscricao"]:hover {
  background-color: #eab308 !important;
}

/* 4. Stats Counters Contrast Fix */
.bg-\[\#022c22\] .text-primary {
  color: #facc15 !important; /* Premium Gold for high contrast and readability */
}

/* 5. Pre-Inscrição Page Overlaps & Missing Tailwind Utility Classes */
.pl-14 {
  padding-left: 3.5rem !important; /* 56px */
}
.pr-6 {
  padding-right: 1.5rem !important; /* 24px */
}

/* Extra focus feedback for inputs */
input.focus\:bg-white:focus {
  background-color: #ffffff !important;
  border: 1px solid var(--primary-color) !important;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.15) !important;
}

/* 6. Events Page Card Heights */
.grid.md\:grid-cols-2.lg\:grid-cols-3 > div > div > div.glass-card {
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
}
.grid.md\:grid-cols-2.lg\:grid-cols-3 > div > div > div.glass-card > div.p-8 {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}
.grid.md\:grid-cols-2.lg\:grid-cols-3 > div > div > div.glass-card > div.p-8 > div:last-child {
  margin-top: auto !important; /* Pull the card's footer button/info to the bottom */
}

/* 7. Footer Padding & Giant Gaps */
footer.bg-\[\#022c22\] > div.container-narrow.section-padding {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

/* 8. Mobile Header Fix: Keep solid background to ensure white text/icons are visible */
@media (max-width: 768px) {
  .header-premium-solid.py-5 {
    background-color: var(--primary-color) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  }
}

/* 9. Mobile Menu Overlay Fix: Prevent text from being forced to white on white background */
.header-premium-solid .fixed.bg-white,
.header-premium-solid .fixed.bg-white * {
  color: var(--bg-dark) !important; 
}

/* Maintain proper colors for the mobile menu elements */
.header-premium-solid .fixed.bg-white .gradient-primary,
.header-premium-solid .fixed.bg-white .gradient-primary * {
  color: white !important;
}
.header-premium-solid .fixed.bg-white .text-primary {
  color: var(--primary-color) !important;
}

/* Premium styling for the mobile hamburger button */
.header-premium-solid button.md\:hidden {
  background-color: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}
.header-premium-solid button.md\:hidden * {
  color: white !important;
}

/* -----------------------------------------------------------
   NOVA ESTÉTICA PREMIUM & MICRO-INTERAÇÕES
   ----------------------------------------------------------- */

/* Animação sutil de brilho nos botões principais */
@keyframes premiumPulse {
  0% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(15, 118, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(15, 118, 110, 0); }
}

.btn-premium {
  animation: premiumPulse 2s infinite;
}

.btn-premium:hover {
  animation: none; /* Pausa o pulso ao passar o mouse */
  filter: brightness(1.1);
}

/* Sombras mais suaves e profissionais para os cards */
.premium-card {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
  border-radius: 24px !important; /* Bordas um pouco mais arredondadas (modernas) */
}

.premium-card:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-10px) !important;
}

/* Efeito Glassmorphism avançado */
.glass-card {
  background: rgba(255, 255, 255, 0.7) !important; /* Mais transparente */
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05) !important;
}

/* Tipografia refinada para títulos */
h1, h2, h3, .font-display {
  letter-spacing: -0.02em !important;
}

/* Esconder completamente qualquer parte do formulário original caso ainda renderize */
div[class*="pre-inscricao"],
form[class*="pre-inscricao"],
section[class*="pre-inscricao"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  position: absolute !important;
}

/* -----------------------------------------------------------
   REFINAMENTOS GLOBAIS DE TIPOGRAFIA E EXPERIÊNCIA
   ----------------------------------------------------------- */

/* Aplicação global da fonte Outfit para um visual mais moderno e sofisticado */
body, h1, h2, h3, h4, h5, h6, p, a, button, input, select, textarea, .font-sans, .font-display {
  font-family: 'Outfit', sans-serif !important;
}

/* Melhorar a suavidade do scroll na página toda */
html {
  scroll-behavior: smooth !important;
}

/* Cor da seleção de texto (quando o utilizador seleciona texto) */
::selection {
  background: var(--primary-color) !important;
  color: #ffffff !important;
}
::-moz-selection {
  background: var(--primary-color) !important;
  color: #ffffff !important;
}

/* Deixar todas as imagens com aspeto mais limpo e impedir arrasto acidental */
img {
  -webkit-user-drag: none;
  user-select: none;
}

/* Refinamento das imagens dentro de cards (arredondamento e transição no hover) */
.premium-card img {
  border-top-left-radius: 24px !important;
  border-top-right-radius: 24px !important;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}
.premium-card:hover img {
  transform: scale(1.05) !important;
}
/* Impedir que a imagem saia do card durante o scale */
.premium-card {
  overflow: hidden !important;
}

/* Ajustes no background geral para não ser apenas branco, mas um cinza muito subtil que destaca os cards */
body {
  background-color: #f8fafc !important; /* Slate 50 */
}

