/* Custom Styles & Animations para o Hotsite Outubro Rosa - Colégio Santíssimo Senhor */
/* As fontes são carregadas via <link> no index.html (evita o @import, que atrasa a renderização). */

:root {
  --primary-pink: #ec4899;
  --deep-pink: #be185d;
  --soft-pink: #fdf2f8;
  --accent-gold: #f59e0b;
  --institutional-navy: #1e293b;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #334155;
  background-color: #fffafc;
}

h1, h2, h3, .font-serif-title {
  font-family: 'Playfair Display', serif;
}

/* Rolagem suave nos links do menu, respeitando quem prefere menos movimento */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Compensa o cabeçalho fixo (80px) ao pular para uma seção */
section[id] {
  scroll-margin-top: 5.5rem;
}

/* Foco visível e consistente para navegação por teclado */
:focus-visible {
  outline: 3px solid #f472b6;
  outline-offset: 3px;
}

/* Item do menu correspondente à seção visível (definido pelo script.js) */
#desktop-nav a[aria-current="true"] {
  color: #db2777;
  box-shadow: inset 0 -2px 0 #ec4899;
}

/* Gradientes Suaves Temáticos */
.bg-rose-gradient {
  background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 50%, #fbcfe8 100%);
}

.bg-hero-gradient {
  background: radial-gradient(circle at top right, rgba(244, 114, 182, 0.25), transparent 45%),
              radial-gradient(circle at bottom left, rgba(236, 72, 153, 0.15), transparent 45%),
              linear-gradient(180deg, #ffffff 0%, #fff1f2 100%);
}

.bg-card-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(244, 114, 182, 0.2);
}

.bg-pink-signature {
  background: linear-gradient(135deg, #db2777 0%, #be185d 100%);
}

/* Efeito de brilho / halo */
.glow-pink {
  box-shadow: 0 10px 30px -5px rgba(219, 39, 119, 0.3);
}

.glow-pink-hover:hover {
  box-shadow: 0 15px 35px -5px rgba(219, 39, 119, 0.4);
  transform: translateY(-2px);
}

/* Animação de pulso do laço rosa */
@keyframes softPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-soft-pulse {
  animation: softPulse 3.5s ease-in-out infinite;
}

@keyframes floatElement {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

.animate-float {
  animation: floatElement 4s ease-in-out infinite;
}

/* FAQ com <details>: esconde o marcador padrão do navegador (Safari/Chrome antigos) */
.faq-trigger::-webkit-details-marker {
  display: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #fdf2f8;
}
::-webkit-scrollbar-thumb {
  background: #f472b6;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #db2777;
}

/* Card Badge */
.ribbon-pill {
  background: linear-gradient(90deg, #fce7f3 0%, #fbcfe8 100%);
  color: #9d174d;
  border: 1px solid #f472b6;
}

/* Animação suave para dropdown e feedback */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Prevenção de overflow horizontal em smartphones.
   "clip" (e não "hidden") no body, porque "hidden" transforma o body em
   contêiner de rolagem e quebra o cabeçalho fixo (position: sticky). */
body {
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

@supports not (overflow-x: clip) {
  html {
    overflow-x: hidden;
  }
}

/* Menos movimento para quem ativou essa preferência no sistema */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Friendly */
@media print {
  .no-print {
    display: none !important;
  }
}
