/* Custom styles and animations for Covered Kids Learning Academy */

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

/* Base font settings */
body {
    font-family: 'Nunito', sans-serif;
    line-height: 1.6;
    color: #6c1f10;
}

/* Hero section specific styles */
#hero {
    background: linear-gradient(135deg, #fdf0eb 0%, #fefdf8 50%, #fdf8eb 100%);
    min-height: 100vh;
}

/* Section divider animation */
.section-divider {
    height: 4px;
    background: linear-gradient(90deg, #c73a14, #e2b045, #c73a14);
    border-radius: 2px;
    transition: width 0.3s ease;
}

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

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(199, 58, 20, 0.15);
}

/* Button styles */
.btn-primary {
    background: linear-gradient(135deg, #c73a14, #d94f25);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(199, 58, 20, 0.3);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a32c11, #c73a14);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(199, 58, 20, 0.4);
}

.btn-secondary {
    background: white;
    color: #c73a14;
    border: 2px solid #c73a14;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: #c73a14;
    color: white;
    transform: translateY(-2px);
}

/* Navigation styles */
.nav-link {
    position: relative;
    color: #6c1f10;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

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

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

/* Hamburger menu animation */
.hamburger span {
    display: block;
    width: 24px;
    height: 3px;
    background: #6c1f10;
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Form input styles */
.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #f3bba8;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    background: white;
    color: #6c1f10;
    transition: border-color 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #c73a14;
}

.form-input::placeholder {
    color: #e46642;
}

/* Success message animation */
.success-message {
    display: none;
    background: linear-gradient(135deg, #f9ddd3, #fdf0eb);
    border: 2px solid #f3bba8;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    color: #6c1f10;
    font-weight: 700;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(32px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-fredoka {
        font-size: 2rem;
    }
    
    .section-divider {
        width: 16px !important;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #c73a14;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .mobile-menu,
    .hamburger {
        display: none !important;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
