/*----------------------------------------
 * GOEASY DRIVING SCHOOL - Custom Styles
 * Author: GOEASY DRIVING SCHOOL
 * Version: 1.0
 *----------------------------------------*/

/* Base Styles & Variables
----------------------------------------*/
:root {
    /* Custom colors that complement the bootstrap theme */
    --primary-light: rgba(13, 110, 253, 0.25);
    --dark-overlay: rgba(33, 37, 41, 0.85);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* To keep footer at the bottom */
main {
    flex: 1 0 auto;
}

/* Utility Classes
----------------------------------------*/
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.transition-all {
    transition: all 0.3s ease;
}

/* Navigation
----------------------------------------*/
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background-color: var(--bs-dark);
}

.navbar-brand {
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 1rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--bs-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

/* Hero Section
----------------------------------------*/
.hero-section {
    background-color: var(--primary-light);
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-weight: 800;
    line-height: 1.2;
}

/* Services Section
----------------------------------------*/
.service-icon {
    height: 64px;
    width: auto;
    display: inline-block;
    margin-bottom: 1rem;
}

.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Testimonials
----------------------------------------*/
.testimonial-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

/* Contact Form
----------------------------------------*/
.form-control:focus,
.form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem var(--primary-light);
}

/* Map
----------------------------------------*/
.map-container {
    position: relative;
    height: 0;
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 0.5rem;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Footer
----------------------------------------*/
footer {
    background-color: var(--bs-dark);
}

footer a {
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

/* Accessibility
----------------------------------------*/
.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* Media Queries
----------------------------------------*/
@media (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
}

@media (max-width: 575.98px) {
    .hero-section {
        text-align: center;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

/* Print Styles
----------------------------------------*/
@media print {
    .navbar,
    .cta-section,
    .footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
        width: 100%;
    }
    
    h1, h2, h3, h4, h5, h6 {
        color: #000;
        margin-top: 1rem;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none !important;
        break-inside: avoid;
    }
}