/* Main CSS - Children and Money Educational Webinar */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Body lock for mobile menu */
body.menu-open {
  overflow: hidden;
}

/* Base typography */
body {
  font-size: 16px;
  line-height: 1.6;
}

/* Focus visible styles for accessibility */
*:focus-visible {
  outline: 2px solid #0c8eeb;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip to content (screen reader) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Smooth transitions for interactive elements */
a, button, input, textarea {
  transition: all 0.2s ease;
}

/* Custom selection color */
::selection {
  background-color: #b9dffe;
  color: #064b86;
}

/* Form input custom styles */
input:invalid:not(:placeholder-shown):not(:focus),
textarea:invalid:not(:placeholder-shown):not(:focus) {
  border-color: #ef4444;
}

input.success,
textarea.success {
  border-color: #587e5b;
  background-color: #f4f7f4;
}

input.error,
textarea.error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

/* Animation delays for staggered entrance */
.animate-delay-100 {
  animation-delay: 0.1s;
}

.animate-delay-200 {
  animation-delay: 0.2s;
}

.animate-delay-300 {
  animation-delay: 0.3s;
}

/* Hero pattern overlay */
.hero-pattern {
  background-image: radial-gradient(circle at 25% 25%, rgba(12, 142, 235, 0.04) 0%, transparent 50%),
                    radial-gradient(circle at 75% 75%, rgba(88, 126, 91, 0.04) 0%, transparent 50%);
}

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

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

/* Accordion styles for FAQ */
.faq-item {
  border-bottom: 1px solid #e5e7eb;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  cursor: pointer;
  user-select: none;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-answer.open {
  max-height: 500px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-icon.rotated {
  transform: rotate(180deg);
}

/* Mobile menu transitions */
#mobile-menu {
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

#mobile-menu.active {
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu > div:last-child {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

#mobile-menu.active > div:last-child {
  transform: translateX(0);
}

/* Cookie consent animation */
#cookie-consent {
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

#cookie-consent.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Image placeholder style */
img[src=""] {
  background: linear-gradient(135deg, #e0effe 0%, #e4ebe4 100%);
  display: block;
  min-height: 200px;
}

/* Print styles */
@media print {
  header, footer, #cookie-consent, #mobile-menu {
    display: none !important;
  }
  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #a3baa5;
}
