/* Custom styles for Field of Dreams Nurture & Education Center */

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

/* Base typography */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Display font */
.font-display {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Custom color utilities */
.bg-terracotta-custom {
    background-color: #df4f22;
}

.bg-sand-custom {
    background-color: #e2ad3c;
}

.text-terracotta-custom {
    color: #df4f22;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

/* Animation classes */
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.6s ease-out forwards;
}

/* Animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Scroll reveal - progressive enhancement (content visible by default) */
.reveal-on-scroll {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 0;
    transform: translateY(30px);
}

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

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

/* Button effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

/* Card hover */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Image zoom */
.img-zoom-container {
    overflow: hidden;
}

.img-zoom-container img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.img-zoom-container:hover img {
    transform: scale(1.08);
}

/* Grid pattern background */
.grid-pattern {
    background-image: 
        linear-gradient(rgba(223, 79, 34, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(223, 79, 34, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Terracotta gradient */
.terracotta-gradient {
    background: linear-gradient(135deg, #df4f22 0%, #c93d18 50%, #a83016 100%);
}

/* Sand gradient */
.sand-gradient {
    background: linear-gradient(135deg, #e2ad3c 0%, #cc8f24 50%, #a86d1c 100%);
}

/* Trust blue gradient */
.trust-gradient {
    background: linear-gradient(135deg, #5279b0 0%, #3e6093 50%, #314c75 100%);
}

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

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

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

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

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #df4f22;
    box-shadow: 0 0 0 3px rgba(223, 79, 34, 0.15);
}

/* Success message animation */
@keyframes successPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.success-message {
    animation: successPulse 0.5s ease-out;
}

/* Reduced motion */
@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;
    }
    
    .reveal-on-scroll.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .magazine-grid {
        grid-template-columns: 1fr;
        grid-template-rows: 400px auto auto;
    }
    
    .magazine-grid .hero-image {
        grid-column: 1;
        grid-row: 1;
    }
    
    .magazine-grid .hero-content {
        grid-column: 1;
        grid-row: 2;
    }
    
    .magazine-grid .hero-cta {
        grid-column: 1;
        grid-row: 3;
    }
    
    .hero-image {
        min-height: 400px !important;
    }
    
    .font-display {
        font-size: 2rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .magazine-grid {
        grid-template-columns: 1.2fr 1fr;
    }
}

/* Large screens */
@media (min-width: 1280px) {
    .magazine-grid {
        grid-template-columns: 1.5fr 1fr;
    }
}

/* Print styles */
@media print {
    nav, .mobile-menu, #mobile-menu-btn, .animate-bounce {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .service-card, .bg-white {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
