/* CSS Design System - KidsClub.daFonte */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Quicksand:wght@500;600;700&display=swap');

:root {
  --verde-folha: #4A6B53;
  --verde-suave: #E8F0E6;
  --terracota: #D97757;
  --amarelo-sol: #F4C542;
  --creme-fundo: #FAF7F2;
  --castanho-texto: #3D342F;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

body {
  background-color: var(--creme-fundo);
  background-image:
    radial-gradient(circle at 12% 10%, rgba(232, 240, 230, 0.9) 0, rgba(232, 240, 230, 0) 34%),
    radial-gradient(circle at 88% 8%, rgba(217, 119, 87, 0.08) 0, rgba(217, 119, 87, 0) 26%),
    radial-gradient(circle at 50% 100%, rgba(74, 107, 83, 0.08) 0, rgba(74, 107, 83, 0) 24%);
  background-attachment: fixed;
  color: var(--castanho-texto);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
}

/* Previne duplo-toque com zoom acidental em botões e links no telemóvel */
a,
button,
input,
select,
textarea {
  touch-action: manipulation;
}

/* Previne o zoom automático invasivo do iPhone / Safari em campos de formulário */
@media (max-width: 768px) {

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.06) 30%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.65) 0, rgba(255, 255, 255, 0) 24%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.38) 0, rgba(255, 255, 255, 0) 18%);
  opacity: 0.72;
}

.brand-link {
  min-width: 0;
}

.brand-copy {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.brand-title,
.brand-subtitle {
  white-space: nowrap;
}

.brand-title {
  line-height: 1.05;
}

.brand-subtitle {
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
.font-heading {
  font-family: 'Fredoka', 'Quicksand', sans-serif;
}

.font-subheading {
  font-family: 'Quicksand', sans-serif;
}

/* Glassmorphism & Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(232, 240, 230, 0.8);
}

.glass-card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px rgba(74, 107, 83, 0.12);
}

/* Leaf float keyframe animation */
@keyframes leafFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-15px) rotate(6deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

.animate-leaf {
  animation: leafFloat 6s ease-in-out infinite;
}

.animate-leaf-delayed {
  animation: leafFloat 8s ease-in-out infinite 2s;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #4A6B53;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3d5844;
}

/* Wave divider SVG color matching */
.wave-divider-top {
  transform: rotate(180deg);
}

/* Dynamic Schedule Tab Active State */
.schedule-tab.active {
  background-color: var(--verde-folha);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(74, 107, 83, 0.3);
}

.pedagogy-tab.active {
  background-color: var(--terracota);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 87, 0.3);
}

.activity-filter-btn.active {
  background-color: var(--verde-folha);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(74, 107, 83, 0.25);
}

/* Badge highlight pulse */
.pulse-badge {
  animation: pulseGlow 2.5s infinite;
}

@keyframes pulseGlow {
  0% {
    box-shadow: 0 0 0 0 rgba(244, 197, 66, 0.7);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(244, 197, 66, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(244, 197, 66, 0);
  }
}

/* Custom Team Member Portrait Framing */
.team-img-alexandra {
  object-position: center 18% !important;
}

.team-img-margarida {
  object-position: center 25% !important;
}

.team-img-tiago {
  object-position: center 12% !important;
}

.team-img-silvia {
  object-position: center 30% !important;
}

.team-img-catarina {
  object-position: center 12% !important;
}

.team-img-natalia {
  object-position: center 18% !important;
}

/* Social link hover bounce */
.social-icon-btn {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon-btn:hover {
  transform: translateY(-2px);
}

/* Floating Background Decorative Icons Animation */
@keyframes float-leaf {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-12px) rotate(6deg);
  }
}

@keyframes float-leaf-delayed {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(-6deg);
  }
}

.animate-leaf {
  animation: float-leaf 7s ease-in-out infinite;
}

.animate-leaf-delayed {
  animation: float-leaf-delayed 8.5s ease-in-out infinite 1.5s;
}

/* Infinite Photo Marquee Animation */
@keyframes marqueeScroll {
  0% {
    transform: translateX(0%);
  }

  100% {
    transform: translateX(-50%);
  }
}

.photo-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 40s linear infinite;
}

.photo-marquee-track:hover {
  animation-play-state: paused;
}

/* Video Player Card Container */
.media-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.25rem;
}

/* Celestial Morning Sun & Afternoon Sunset Animations */
@keyframes sun-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes sun-rise-bounce {
  0% {
    transform: translateY(30px) scale(0.7);
    opacity: 0;
  }

  60% {
    transform: translateY(-8px) scale(1.08);
    opacity: 1;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes sunset-dip-horizon {
  0% {
    transform: translateY(-15px) scale(1);
    opacity: 1;
  }

  50% {
    transform: translateY(8px) scale(0.92);
    opacity: 0.9;
  }

  100% {
    transform: translateY(18px) scale(0.85);
    opacity: 0.8;
  }
}

@keyframes pulse-gentle {

  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.animate-sun-spin {
  animation: sun-spin 25s linear infinite;
}

.animate-sun-rise {
  animation: sun-rise-bounce 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-sunset-dip {
  animation: sunset-dip-horizon 4s ease-in-out infinite alternate;
}

.animate-pulse-gentle {
  animation: pulse-gentle 3s ease-in-out infinite;
}

/* Schedule Switcher Tabs Hover and Active State Fix */
.schedule-tab {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: #3D342F;
}

.schedule-tab:not(.active):hover {
  background-color: #FAF7F2 !important;
  color: #4A6B53 !important;
}

.schedule-tab.active {
  background-color: #4A6B53 !important;
  color: #FFFFFF !important;
}

.schedule-tab.active:hover {
  background-color: #3d5945 !important;
  color: #FFFFFF !important;
}

/* Activity Categories Filter Buttons */
.activity-filter-btn {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: #3D342F;
}

.activity-filter-btn:not(.active):hover {
  background-color: #FFFFFF !important;
  color: #4A6B53 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.activity-filter-btn.active {
  background-color: #4A6B53 !important;
  color: #FFFFFF !important;
}

.activity-filter-btn.active:hover {
  background-color: #3d5945 !important;
  color: #FFFFFF !important;
}

/* Floating Ambient Nature Music Widget & Equalizer */
@keyframes eq-bounce-1 {

  0%,
  100% {
    height: 4px;
  }

  50% {
    height: 14px;
  }
}

@keyframes eq-bounce-2 {

  0%,
  100% {
    height: 12px;
  }

  50% {
    height: 5px;
  }
}

@keyframes eq-bounce-3 {

  0%,
  100% {
    height: 6px;
  }

  50% {
    height: 15px;
  }
}

@keyframes eq-bounce-4 {

  0%,
  100% {
    height: 10px;
  }

  50% {
    height: 4px;
  }
}

.audio-playing .eq-bar-1 {
  animation: eq-bounce-1 0.75s ease-in-out infinite;
}

.audio-playing .eq-bar-2 {
  animation: eq-bounce-2 0.65s ease-in-out infinite 0.12s;
}

.audio-playing .eq-bar-3 {
  animation: eq-bounce-3 0.85s ease-in-out infinite 0.25s;
}

.audio-playing .eq-bar-4 {
  animation: eq-bounce-4 0.7s ease-in-out infinite 0.18s;
}

.photo-marquee-track:hover {
  animation-play-state: paused;
}

/* Video Player Card Container */
.media-video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.25rem;
}

/* Celestial Morning Sun & Afternoon Sunset Animations */
@keyframes sun-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes sun-rise-bounce {
  0% {
    transform: translateY(30px) scale(0.7);
    opacity: 0;
  }

  60% {
    transform: translateY(-8px) scale(1.08);
    opacity: 1;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes sunset-dip-horizon {
  0% {
    transform: translateY(-15px) scale(1);
    opacity: 1;
  }

  50% {
    transform: translateY(8px) scale(0.92);
    opacity: 0.9;
  }

  100% {
    transform: translateY(18px) scale(0.85);
    opacity: 0.8;
  }
}

@keyframes pulse-gentle {

  0%,
  100% {
    opacity: 0.8;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.animate-sun-spin {
  animation: sun-spin 25s linear infinite;
}

.animate-sun-rise {
  animation: sun-rise-bounce 1s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-sunset-dip {
  animation: sunset-dip-horizon 4s ease-in-out infinite alternate;
}

.animate-pulse-gentle {
  animation: pulse-gentle 3s ease-in-out infinite;
}

/* Schedule Switcher Tabs Hover and Active State Fix */
.schedule-tab {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  color: #3D342F;
}

.schedule-tab:not(.active):hover {
  background-color: #FAF7F2 !important;
  color: #4A6B53 !important;
}

.schedule-tab.active {
  background-color: #4A6B53 !important;
  color: #FFFFFF !important;
}

.schedule-tab.active:hover {
  background-color: #3d5945 !important;
  color: #FFFFFF !important;
}

/* Floating Ambient Nature Music Widget & Equalizer */
@keyframes eq-bounce-1 {

  0%,
  100% {
    height: 4px;
  }

  50% {
    height: 14px;
  }
}

@keyframes eq-bounce-2 {

  0%,
  100% {
    height: 12px;
  }

  50% {
    height: 5px;
  }
}

@keyframes eq-bounce-3 {

  0%,
  100% {
    height: 6px;
  }

  50% {
    height: 15px;
  }
}

@keyframes eq-bounce-4 {

  0%,
  100% {
    height: 10px;
  }

  50% {
    height: 4px;
  }
}

.audio-playing .eq-bar-1 {
  animation: eq-bounce-1 0.75s ease-in-out infinite;
}

.audio-playing .eq-bar-2 {
  animation: eq-bounce-2 0.65s ease-in-out infinite 0.12s;
}

.audio-playing .eq-bar-3 {
  animation: eq-bounce-3 0.85s ease-in-out infinite 0.25s;
}

.audio-playing .eq-bar-4 {
  animation: eq-bounce-4 0.7s ease-in-out infinite 0.18s;
}

.audio-paused .eq-bar {
  animation: none !important;
  height: 4px !important;
  opacity: 0.45;
}

.ambient-sound-toggle {
  width: 2.75rem;
  height: 2.75rem;
  transition: width 280ms cubic-bezier(0.4, 0, 0.2, 1), transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.ambient-sound-toggle:hover {
  box-shadow: 0 18px 34px rgba(74, 107, 83, 0.18);
  transform: translateY(-1px);
}

.ambient-sound-toggle.audio-playing {
  width: 14.5rem;
  padding-left: 0.45rem;
  padding-right: 0.85rem;
  background: #FAF7F2;
  border-color: rgba(74, 107, 83, 0.26);
  box-shadow: 0 14px 28px rgba(61, 52, 47, 0.16);
}

.ambient-sound-toggle.audio-playing .ambient-sound-icon-wrap {
  background: #4A6B53;
  color: #FFFFFF;
}

.ambient-sound-toggle.audio-paused {
  background-color: #FAF7F2;
  justify-content: center;
  gap: 0;
  padding-left: 0;
  padding-right: 0;
}

.ambient-sound-toggle.audio-paused .ambient-sound-details {
  display: none;
}

.ambient-sound-toggle.audio-paused .ambient-sound-icon-wrap {
  margin: 0;
}

.ambient-sound-details {
  max-width: 0;
  opacity: 0;
  transform: translateX(-8px);
  transition: max-width 280ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms ease, transform 280ms ease;
  overflow: hidden;
  white-space: nowrap;
}

.ambient-sound-toggle.audio-playing .ambient-sound-details {
  max-width: 11rem;
  opacity: 1;
  transform: translateX(0);
}

#ambient-sound-widget {
  filter: drop-shadow(0 12px 30px rgba(74, 107, 83, 0.15));
}

@media (max-width: 639px) {
  #ambient-sound-widget {
    right: 1rem !important;
    bottom: 1rem !important;
  }

  .ambient-sound-toggle {
    width: 3rem !important;
    height: 3rem !important;
    padding: 0 !important;
    border-radius: 9999px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .ambient-sound-toggle.audio-playing {
    width: 3rem !important;
    box-shadow: 0 0 0 4px rgba(74, 107, 83, 0.2), 0 10px 24px rgba(74, 107, 83, 0.25) !important;
    animation: sound-pulse 2s infinite ease-in-out;
  }

  .ambient-sound-toggle .ambient-sound-details {
    display: none !important;
  }
}

@keyframes sound-pulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.06);
  }
}

/* Activity Categories Filter Buttons */
.activity-filter-btn {
  background-color: #FAF7F2;
  color: #3D342F;
  border: 1px solid #E8F0E6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.activity-filter-btn:not(.active):hover {
  background-color: #E8F0E6 !important;
  color: #4A6B53 !important;
  border-color: rgba(74, 107, 83, 0.3) !important;
}

.activity-filter-btn.active {
  background-color: #4A6B53 !important;
  color: #FFFFFF !important;
  border-color: #4A6B53 !important;
  box-shadow: 0 4px 12px rgba(74, 107, 83, 0.25) !important;
}

/* ============================================================
   Hero Enrollment Action Buttons (Full Width 100%)
   ============================================================ */
.hero-action-buttons-wrap {
  width: 100% !important;
  display: flex !important;
}

.hero-action-buttons-wrap a,
.hero-action-buttons-wrap button,
.open-enrollment-btn {
  box-sizing: border-box;
}

@media (min-width: 640px) {

  .hero-action-buttons-wrap a,
  .hero-action-buttons-wrap button {
    flex: 1 1 0% !important;
  }
}

/* ============================================================
   Ícones das Atividades - Estabilidade e Performance
   ============================================================ */
.activity-icon-container {
  will-change: transform;
}

/* ============================================================
   Easter Eggs Animations
   ============================================================ */
@keyframes crabWiggle {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  25% {
    transform: rotate(-14deg) scale(1.06);
  }
  75% {
    transform: rotate(14deg) scale(1.06);
  }
}

.animate-crab-wiggle {
  animation: crabWiggle 0.75s ease-in-out infinite;
  display: inline-block;
  transform-origin: center bottom;
}