/* Additional custom styles for SAGE Truck Driving Schools */

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

/* Custom font loading */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('https://fonts.gstatic.com/s/playfairdisplay/v30/nuFiD-vYK6PtxujBjE7jCf_64xyN3cY.woff2') format('woff2');
}

/* Base styles */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #fefdf8;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Button hover effects */
.btn-primary {
    background: linear-gradient(135deg, #166534 0%, #15803d 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #14532d 0%, #166534 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(20, 83, 45, 0.3);
}

.btn-secondary {
    border: 2px solid #fefdf8;
    color: #fefdf8;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #fefdf8;
    color: #14532d;
}

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

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(20, 83, 45, 0.15);
}

/* Form input focus states */
.form-input:focus {
    border-color: #166534;
    outline: none;
    box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.1);
}

/* Navigation scroll effect */
.nav-scrolled {
    background: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

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

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

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

/* Floating animations */
@keyframes float1 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}

.float-1 { animation: float1 6s ease-in-out infinite; }
.float-2 { animation: float2 7s ease-in-out infinite; }
.float-3 { animation: float3 5s ease-in-out infinite; }

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

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

::-webkit-scrollbar-thumb {
    background: #166534;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #14532d;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
}
