/* ==========================================================================
   COMPLEXO ESCOLAR PITABEL - PARQUE DAS ACÁCIAS
   Estilos Institucionais & Design de Elevada Excelência
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIÁVEIS E PALETA DE CORES INSTITUCIONAL
   -------------------------------------------------------------------------- */
:root {
  /* Cores Principais Institucionais */
  --primary-color: #0A2240;      /* Azul Marinho Imperial Escuro */
  --primary-light: #133968;      /* Azul Marinho Suave */
  --secondary-color: #1B4965;    /* Azul Académico Médio */
  --accent-color: #E67E22;       /* Laranja / Dourado Pitabel */
  --accent-light: #F39C12;      /* Amarelo/Dourado Destaque */
  --dark-color: #0B132B;        /* Texto Escuro Profundo */
  --light-color: #F8FAFC;       /* Fundo Neutro Claro */
  
  /* Cores Neutras e Complementares */
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  
  /* Estados e Utilidades */
  --success-color: #10B981;
  --warning-color: #F59E0B;
  --info-color: #0284C7;
  --shadow-sm: 0 2px 8px rgba(10, 34, 64, 0.05);
  --shadow-md: 0 6px 18px rgba(10, 34, 64, 0.08);
  --shadow-lg: 0 12px 28px rgba(10, 34, 64, 0.12);
  --shadow-xl: 0 24px 48px rgba(10, 34, 64, 0.18);
  
  /* Tipografia */
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;
  
  /* Transições e Bordas */
  --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
}

/* --------------------------------------------------------------------------
   2. RESET E ESTILOS BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  color: var(--gray-800);
  background-color: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.25;
}

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

ul, ol {
  list-style: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   3. COMPONENTES REUTILIZÁVEIS E DESTAQUES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-bg-light {
  background-color: var(--light-color);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  background: rgba(230, 126, 34, 0.12);
  color: var(--accent-color);
  font-weight: 700;
  font-size: 0.825rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 1rem;
  border: 1px solid rgba(230, 126, 34, 0.25);
  box-shadow: 0 2px 6px rgba(230, 126, 34, 0.08);
}

.section-title {
  font-size: 2.35rem;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
  border-radius: 2px;
  margin: 0.75rem auto 0 auto;
}

.section-header-left .section-title::after {
  margin-left: 0;
}

.section-subtitle {
  color: var(--gray-600);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Botões Institucionais */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-color) 0%, #D36E19 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(230, 126, 34, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ED8936 0%, var(--accent-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(230, 126, 34, 0.45);
}

.btn-navy {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn-navy:hover {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-white {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.8);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.btn-sm {
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   QUICK ACCESS DOCK & MODERN DESIGN ENHANCEMENTS
   -------------------------------------------------------------------------- */
.quick-dock-section {
  margin-top: -2.5rem;
  position: relative;
  z-index: 30;
  padding: 0 1.5rem;
}

.quick-dock-container {
  max-width: 1200px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-radius: 20px;
  padding: 1.25rem 1.75rem;
  box-shadow: 0 20px 40px rgba(10, 34, 64, 0.12);
  border: 1px solid rgba(226, 232, 240, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.quick-dock-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  transition: var(--transition-normal);
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  flex: 1;
  min-width: 190px;
}

.quick-dock-item:hover {
  background: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
  color: var(--accent-color);
}

.quick-dock-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(10, 34, 64, 0.08);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: var(--transition-fast);
}

.quick-dock-item:hover .quick-dock-icon {
  background: var(--accent-color);
  color: var(--white);
}

.quick-dock-niela {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.quick-dock-niela .quick-dock-icon {
  background: rgba(255, 255, 255, 0.2) !important;
  color: white !important;
}

.quick-dock-niela:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.45);
}

/* Feature Badge Glow */
.glow-badge {
  position: relative;
  overflow: hidden;
}

.glow-badge::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: rotate(30deg);
  animation: badgeGlow 4s infinite linear;
}

@keyframes badgeGlow {
  0% { transform: translateX(-100%) rotate(30deg); }
  100% { transform: translateX(100%) rotate(30deg); }
}

/* Cards Institucionais Modernos */
.card-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.card-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(10, 34, 64, 0.15);
}

/* --------------------------------------------------------------------------
   4. TOPBAR SUPERIOR INSTITUCIONAL
   -------------------------------------------------------------------------- */
.topbar {
  background-color: var(--primary-color);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.825rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.topbar-item i {
  color: var(--accent-light);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.topbar-social {
  display: flex;
  gap: 0.75rem;
}

.topbar-social a {
  color: rgba(255, 255, 255, 0.8);
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.topbar-social a:hover {
  color: var(--white);
  background: var(--accent-color);
}

.topbar-niela-link {
  background: rgba(230, 126, 34, 0.2);
  color: #ffc107;
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  border: 1px solid rgba(255, 193, 7, 0.4);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.topbar-niela-link:hover {
  background: var(--accent-color);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   5. NAVBAR FIXA / STICKY COM GLASSMORPHISM
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 12px rgba(10, 34, 64, 0.06);
  z-index: 1000;
  transition: var(--transition-normal);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(10, 34, 64, 0.08);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo-badge, .logo-emblem-svg {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo-emblem-svg:hover {
  transform: scale(1.08) rotate(-2deg);
}

.niela-tab-btn {
  transition: var(--transition-fast);
  border-bottom: 3px solid transparent !important;
}

.niela-tab-btn.active {
  background: white !important;
  border-bottom-color: var(--primary-color) !important;
  color: var(--primary-color) !important;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1.1;
  letter-spacing: -0.3px;
}

.brand-subtitle {
  font-size: 0.725rem;
  color: var(--accent-color);
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Menu Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-700);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-light));
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
}

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary-color);
  cursor: pointer;
  padding: 0.5rem;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 34, 64, 0.65);
  backdrop-filter: blur(6px);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.mobile-nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 310px;
  height: 100vh;
  background-color: var(--white);
  z-index: 1002;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  box-shadow: var(--shadow-xl);
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--gray-600);
  cursor: pointer;
}

.mobile-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.mobile-links .nav-link {
  font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   6. HERO SECTION
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: radial-gradient(circle at 85% 15%, rgba(230, 126, 34, 0.18) 0%, transparent 45%),
              radial-gradient(circle at 15% 85%, rgba(27, 73, 101, 0.35) 0%, transparent 50%),
              linear-gradient(135deg, rgba(10, 34, 64, 0.94) 0%, rgba(15, 23, 42, 0.92) 100%),
              url('https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
  color: var(--white);
  padding: 5.5rem 0 6.5rem 0;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 1.25rem;
  background: rgba(230, 126, 34, 0.18);
  border: 1px solid rgba(255, 193, 7, 0.45);
  color: #FFC107;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-title {
  font-size: 3.4rem;
  color: var(--white);
  line-height: 1.12;
  margin-bottom: 1.35rem;
  letter-spacing: -0.8px;
  font-weight: 800;
}

.hero-title span {
  background: linear-gradient(135deg, #FFC107 0%, #E67E22 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 2.25rem;
  line-height: 1.65;
  max-width: 620px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-media {
  position: relative;
}

.hero-image-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  border: 4px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
}

.hero-image-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-image-frame:hover img {
  transform: scale(1.03);
}

.hero-floating-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: var(--white);
  color: var(--dark-color);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 10;
  border-left: 4px solid var(--accent-color);
}

.floating-icon {
  width: 48px;
  height: 48px;
  background: rgba(230, 126, 34, 0.12);
  color: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Indicadores de Estatística no Hero */
.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-stat-item {
  text-align: left;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.hero-stat-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   7. SOBRE A ESCOLA
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
}

.about-img-main {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about-experience-badge {
  position: absolute;
  top: 20px;
  right: -20px;
  background: var(--primary-color);
  color: var(--white);
  padding: 1.25rem 1.75rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
  border-bottom: 4px solid var(--accent-color);
}

.about-experience-badge span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.about-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--gray-50);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--primary-color);
}

.about-feature-icon {
  width: 36px;
  height: 36px;
  background: rgba(10, 34, 64, 0.1);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.about-units-box {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(230, 126, 34, 0.08);
  border-radius: var(--radius-md);
  border: 1px dashed var(--accent-color);
  font-size: 0.9rem;
  color: var(--gray-800);
}

/* --------------------------------------------------------------------------
   8. MISSÃO, VISÃO E VALORES
   -------------------------------------------------------------------------- */
.mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.mvv-card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.mvv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--primary-color);
  transition: var(--transition-fast);
}

.mvv-card:nth-child(2)::before {
  background: var(--accent-color);
}

.mvv-card:nth-child(3)::before {
  background: var(--secondary-color);
}

.mvv-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.mvv-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem auto;
  background: var(--gray-100);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  transition: var(--transition-fast);
}

.mvv-card:hover .mvv-icon {
  background: var(--primary-color);
  color: var(--white);
}

.mvv-card:nth-child(2):hover .mvv-icon {
  background: var(--accent-color);
}

/* --------------------------------------------------------------------------
   9. NÍVEIS DE ENSINO
   -------------------------------------------------------------------------- */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.level-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.level-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.level-card-header {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.level-card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.level-card:hover .level-card-header img {
  transform: scale(1.08);
}

.level-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary-color);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.level-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.level-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.level-desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.level-features-list {
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--gray-700);
}

.level-features-list li {
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.level-features-list li i {
  color: var(--success-color);
}

/* --------------------------------------------------------------------------
   10. SECÇÃO ESPECIAL: PROPINAS, TAFARIFA & CALCULADORA INTERACTIVA
   -------------------------------------------------------------------------- */
.pricing-section {
  background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.pricing-table-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.table-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
}

.custom-table {
  width: 100%;
  border-collapse: collapse;
}

.custom-table th, .custom-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.95rem;
}

.custom-table th {
  background: var(--gray-100);
  color: var(--primary-color);
  font-weight: 700;
}

.custom-table tr:hover {
  background: rgba(10, 34, 64, 0.02);
}

.price-tag-value {
  font-weight: 800;
  color: var(--primary-color);
}

.discount-badges {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.discount-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--gray-800);
}

.discount-item i {
  color: var(--success-color);
  font-size: 1.1rem;
}

/* Calculadora Interactiva */
.calculator-card {
  background: var(--primary-color);
  color: var(--white);
  padding: 2.25rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.calculator-card h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.form-control {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  outline: none;
  transition: var(--transition-fast);
}

.form-control option {
  background-color: var(--primary-color);
  color: var(--white);
}

.form-control:focus {
  border-color: var(--accent-color);
  background: rgba(255, 255, 255, 0.15);
}

.calc-result-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--accent-light);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.calc-total {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-light);
}

/* --------------------------------------------------------------------------
   11. NIELAAPP - ÁREA DO ENCARREGADO
   -------------------------------------------------------------------------- */
.niela-section {
  background: linear-gradient(135deg, #0A2240 0%, #134074 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.niela-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.niela-content h2 {
  color: var(--white);
}

.niela-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.niela-feature-card {
  background: rgba(255, 255, 255, 0.07);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition-fast);
}

.niela-feature-card:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-3px);
}

.niela-feature-card i {
  color: var(--accent-light);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  display: block;
}

.niela-feature-card h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.niela-feature-card p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.75);
}

.niela-app-mockup {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 310px;
  background: #111;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.phone-screen {
  background: #f1f5f9;
  border-radius: 30px;
  overflow: hidden;
  height: 580px;
  color: var(--dark-color);
  display: flex;
  flex-direction: column;
}

.phone-header {
  background: var(--primary-color);
  color: var(--white);
  padding: 1.5rem 1rem 1rem 1rem;
  text-align: center;
}

.phone-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
}

.app-widget {
  background: var(--white);
  padding: 0.85rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   12. PORQUÊ ESCOLHER O PITABEL?
   -------------------------------------------------------------------------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.why-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.why-icon {
  width: 56px;
  height: 56px;
  background: rgba(230, 126, 34, 0.12);
  color: var(--accent-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   13. SECÇÃO DE ESTATÍSTICAS ANIMADAS
   -------------------------------------------------------------------------- */
.stats-section {
  background: var(--primary-color);
  color: var(--white);
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-box {
  padding: 1.5rem;
}

.counter {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent-light);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-box p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   14. ACTIVIDADES ESCOLARES
   -------------------------------------------------------------------------- */
.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.activity-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition-normal);
}

.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.activity-img {
  height: 200px;
  overflow: hidden;
}

.activity-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.activity-card:hover .activity-img img {
  transform: scale(1.08);
}

.activity-content {
  padding: 1.5rem;
}

/* --------------------------------------------------------------------------
   15. GALERIA DE FOTOS COM LIGHTBOX
   -------------------------------------------------------------------------- */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 240px;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 34, 64, 0.75);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--white);
  opacity: 0;
  transition: var(--transition-normal);
  padding: 1rem;
  text-align: center;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  padding: 2rem;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 900px;
  max-height: 85vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* --------------------------------------------------------------------------
   16. TESTEMUNHOS
   -------------------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stars {
  color: #F59E0B;
  margin-bottom: 1rem;
}

.testimonial-text {
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--secondary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   17. NOTÍCIAS E AVISOS
   -------------------------------------------------------------------------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.news-image {
  height: 190px;
  position: relative;
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-color);
  color: var(--white);
  padding: 0.2rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.news-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-date {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

/* --------------------------------------------------------------------------
   18. MATRÍCULAS / BANNER CTA
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--white);
  padding: 5rem 0;
  border-radius: var(--radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner h2 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 650px;
  margin: 0 auto 2rem auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   19. CONTACTOS E FORMULÁRIO
   -------------------------------------------------------------------------- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
}

.contact-info-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: rgba(10, 34, 64, 0.08);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-form-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

.input-field {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-300);
  outline: none;
  transition: var(--transition-fast);
}

.input-field:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(10, 34, 64, 0.1);
}

.map-container {
  margin-top: 3.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   20. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background-color: var(--dark-color);
  color: rgba(255, 255, 255, 0.8);
  padding: 5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.15rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 3px;
  background-color: var(--accent-color);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 5px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   21. BOTÕES FLUTUANTES (WHATSAPP E BACK-TO-TOP)
   -------------------------------------------------------------------------- */
.floating-btn-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  z-index: 999;
}

.btn-floating {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  transition: var(--transition-normal);
  border: none;
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--white);
}

.btn-whatsapp:hover {
  transform: scale(1.1);
  background-color: #1EBE5D;
}

.btn-back-to-top {
  background-color: var(--primary-color);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
}

.btn-back-to-top.active {
  opacity: 1;
  visibility: visible;
}

.btn-back-to-top:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   22. MODAL DE MATRÍCULAS / INFORMAÇÕES
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(10, 34, 64, 0.75);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--white);
  width: 100%;
  max-width: 620px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  background: var(--primary-color);
  color: var(--white);
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: var(--white);
}

.modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-body {
  padding: 2rem;
}

/* --------------------------------------------------------------------------
   23. RESPONSIVIDADE (MOBILE-FIRST & MEDIA QUERIES)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .pricing-grid, .niela-grid, .contacts-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .mvv-grid, .why-grid, .activities-grid, .testimonials-grid, .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .levels-grid, .gallery-grid, .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .quick-dock-section {
    margin-top: -1.5rem;
  }

  .quick-dock-container {
    padding: 1rem;
    gap: 0.75rem;
  }

  .quick-dock-item {
    min-width: 100%;
    padding: 0.65rem 1rem;
  }

  .topbar {
    display: none; /* Oculta topbar no telemóvel para um cabeçalho mais limpo */
  }

  .nav-menu, .nav-cta .btn {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .mvv-grid, .why-grid, .activities-grid, .testimonials-grid, .news-grid, .levels-grid, .gallery-grid, .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }
}
