/* ==================== BASE ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

/* ==================== ANIMATIONS ==================== */

/* Fade-in on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children delay */
.grid .fade-in:nth-child(1) { transition-delay: 0ms; }
.grid .fade-in:nth-child(2) { transition-delay: 80ms; }
.grid .fade-in:nth-child(3) { transition-delay: 160ms; }
.grid .fade-in:nth-child(4) { transition-delay: 240ms; }
.grid .fade-in:nth-child(5) { transition-delay: 320ms; }
.grid .fade-in:nth-child(6) { transition-delay: 400ms; }

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

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px -8px rgba(31, 36, 70, 0.1);
}

/* ==================== HEADER SHADOW ON SCROLL ==================== */
#header.scrolled {
  box-shadow: 0 1px 12px rgba(31, 36, 70, 0.06);
}

/* ==================== FAQ ACCORDION ==================== */
.faq-item .faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.open .faq-content {
  max-height: 400px;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

/* Override Tailwind's hidden for FAQ animation */
.faq-item .faq-content.hidden {
  display: block;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.faq-item.open .faq-content.hidden {
  max-height: 400px;
  padding-bottom: 1.25rem;
}

/* ==================== LANGUAGE SWITCH ==================== */
#lang-toggle {
  cursor: pointer;
  user-select: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 640px) {
  .fade-in {
    transform: translateY(12px);
  }
}

/* ==================== SELECTION ==================== */
::selection {
  background: rgba(49, 70, 150, 0.15);
  color: #1F2446;
}

/* ==================== FOCUS STYLES ==================== */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #314696;
  outline-offset: 2px;
  border-radius: 4px;
}
