/* Custom styles for Kids at Play website */

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

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

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

::-webkit-scrollbar-thumb {
    background: #102a43;
    border-radius: 5px;
}

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

/* Animation for service cards */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(16, 42, 67, 0.25);
}

/* Gold line animation */
.gold-line {
    width: 60px;
    height: 4px;
    background: #eead1a;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.gold-line:hover {
    width: 80px;
}

/* Button hover effects */
.btn-primary {
    background: #eead1a;
    color: #102a43;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #d99704;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(238, 173, 26, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #102a43;
    border: 2px solid #102a43;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #102a43;
    color: #f0f4f8;
}

/* Navigation link underline animation */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #eead1a;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #eead1a;
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Contact form inputs */
.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #d9e2ec;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    outline: none;
    border-color: #eead1a;
    box-shadow: 0 0 0 3px rgba(238, 173, 26, 0.1);
}

.contact-form input:hover,
.contact-form textarea:hover,
.contact-form select:hover {
    border-color: #bcccdc;
}

/* Section padding */
.section-padding {
    padding: 6rem 5%;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 4rem 5%;
    }
}

/* Hero section grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 5%;
}

.hero-image-side {
    position: relative;
    overflow: hidden;
}

.hero-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero accent circle */
.hero-accent {
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 200px;
    height: 200px;
    background: #eead1a;
    border-radius: 50%;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image-side {
        min-height: 50vh;
    }
    
    .hero-content {
        padding: 3rem 5%;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 3rem 5%;
    }
    
    .hero-accent {
        width: 150px;
        height: 150px;
        bottom: -30px;
        left: -30px;
    }
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 3px solid #eead1a;
    outline-offset: 2px;
}

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

/* Print styles */
@media print {
    .btn-primary,
    .btn-secondary {
        background: #102a43 !important;
        color: white !important;
    }
    
    .hero-grid {
        grid-template-columns: 1fr !important;
    }
}
