/**
 * KidTrip shared site styles
 * Linked from every page; Tailwind CDN still handles utility classes.
 */

:root {
  --primary-color: #4f46e5;
  --secondary-color: #f59e0b;
  --accent-color: #10b981;
  --text-dark: #1f2937;
  --text-light: #6b7280;
}

iframe {
  margin: 0 auto;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
}

/* Homepage hero */
.gradient-bg {
  background: linear-gradient(
      135deg,
      rgba(102, 126, 234, 0.2) 0%,
      rgba(118, 75, 162, 0.6) 100%
    ),
    url('https://images.unsplash.com/photo-1706059922924-247ffa0410ab');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .gradient-bg {
    background-attachment: scroll;
  }

  section[style*="background-attachment: fixed"] {
    background-attachment: scroll !important;
  }
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Contact form */
.form-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Mobile menu */
body.mobile-menu-open {
  overflow: hidden;
}

details > summary {
  list-style: none;
}

details > summary::-webkit-details-marker {
  display: none;
}

#mobile-menu details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

#mobile-menu details > summary::after {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 0.5rem;
  height: 0.5rem;
  border-style: solid;
  border-width: 0 2px 2px 0;
  border-color: #6b7280;
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
}

#mobile-menu details[open] > summary::after {
  transform: rotate(45deg);
}
