/*
   Jazel Driving School - V2 Modern Stylesheet
   Theme: Premium Modern Glassmorphic (Navy, Red, Orange)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@500;700;800&display=swap');

:root {
    /* Main Brand Colors from Logo */
    --navy-blue: #2B354F;
    --navy-blue-dark: #1F273D;
    --navy-blue-light: #3D4A6E;
    
    --brand-red: #E41B23;
    --brand-red-hover: #C5171E;

    --brand-orange: #F19C33;
    --brand-orange-hover: #D98929;

    /* Neutrals */
    --white: #ffffff;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-800: #1e293b;
    --slate-900: #0f172a;

    /* Refined Aesthetic Variables */
    --card-bg: rgba(255, 255, 255, 0.98);
    --card-bg-dark: rgba(43, 53, 79, 0.95);
    --card-border: var(--slate-200);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);

    /* Text */
    --text-primary: var(--slate-900);
    --text-secondary: var(--slate-800);
    --text-muted: #64748b;
    --text-light: #f8fafc;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 90px;
    --section-pad: 6rem 0;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================
   RESET & BASE LAYOUT
========================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    background-color: var(--slate-50);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.1;
    color: var(--navy-blue);
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: 1.75rem; font-weight: 600; }

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul { list-style: none; }
img { max-width: 100%; display: block; border-radius: 8px; }

/* ==========================================
   UTILITY CLASSES
========================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.text-red { color: var(--brand-red); }
.text-orange { color: var(--brand-orange); }
.text-navy { color: var(--navy-blue); }

.section { padding: var(--section-pad); }
.bg-navy { background-color: var(--navy-blue); color: var(--white); }
.bg-navy p, .bg-navy h2 { color: var(--white); }

.text-center { text-align: center; }

/* ==========================================
   BUTTONS
========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 50px;
    gap: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--brand-red);
    color: var(--white);
    box-shadow: 0 10px 20px -10px var(--brand-red);
}

.btn-primary:hover {
    background: var(--brand-red-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -10px var(--brand-red);
}

.btn-secondary {
    background: var(--brand-orange);
    color: var(--white);
    box-shadow: 0 10px 20px -10px var(--brand-orange);
}

.btn-secondary:hover {
    background: var(--brand-orange-hover);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px -10px var(--brand-orange);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--navy-blue);
    color: var(--navy-blue);
}

.bg-navy .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--navy-blue);
    color: var(--white);
    transform: translateY(-3px);
}

.bg-navy .btn-outline:hover {
    background: var(--white);
    color: var(--navy-blue);
}

/* ==========================================
   NAVIGATION
========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: var(--transition-base);
    background: transparent;
}

.navbar.scrolled {
    background: var(--white);
    height: 70px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--slate-100);
}

/* Specific logic for when navbar is NOT scrolled on a dark hero */
.navbar:not(.scrolled) .nav-link { color: var(--white); }
.navbar:not(.scrolled) .logo-text { filter: brightness(0) invert(1); }

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 40px;
    width: auto;
    transition: var(--transition-fast);
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--navy-blue);
    position: relative;
    font-family: 'Outfit', sans-serif;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--brand-red);
    transition: var(--transition-base);
    border-radius: 2px;
}

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

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    color: var(--white);
}

.navbar.scrolled .mobile-toggle {
    color: var(--navy-blue);
}

/* ==========================================
   HERO SECTION (GLASSMORPHISM)
========================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    background: url('../assets/hero-bg-v2.jpg') center/cover no-repeat;
    isolation: isolate;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(31, 39, 61, 0.95) 0%, rgba(31, 39, 61, 0.5) 100%);
    z-index: -1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    color: var(--white);
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
    margin-bottom: 1.5rem;
}

.hero-content p {
    color: var(--slate-200);
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.hero-glass-card {
    background: var(--card-bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--card-shadow);
    color: var(--white);
    transform: translateY(20px);
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
}

.glass-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.glass-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.glass-icon {
    background: var(--brand-orange);
    color: white;
    padding: 0.75rem;
    border-radius: 12px;
    display: flex;
}

/* ==========================================
   ABOUT / MISSION SECTION
========================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 24px;
}

.about-image {
    width: 100%;
    height: 600px;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(43, 53, 79, 0.3);
    position: relative;
    z-index: 2;
}

.about-accent-bg {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 80%;
    height: 80%;
    background: var(--brand-orange);
    border-radius: 24px;
    z-index: 1;
    opacity: 0.15;
}

/* Gallery Section Styles */
.gallery {
    padding: 100px 0;
    background-color: var(--slate-50);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 450px;
    box-shadow: var(--card-shadow);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.gallery-item:hover img {
    transform: scale(1.15);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-color: rgba(43, 53, 79, 0.85);
    color: var(--white);
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
}

.gallery-overlay h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.gallery-overlay p {
    font-size: 1rem;
    color: rgba(255,255,255,0.9);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.stats-card {
    position: absolute;
    bottom: 2rem;
    left: -2rem;
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    z-index: 3;
    display: flex;
    flex-direction: column;
    border-bottom: 4px solid var(--brand-orange);
}

.stat-num {
    font-size: 3rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--brand-red);
    line-height: 1;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--navy-blue);
    background: var(--slate-100);
    padding: 1rem;
    border-radius: 12px;
    transition: var(--transition-fast);
}

.feature-item:hover {
    background: var(--brand-red);
    color: var(--white);
    transform: translateY(-3px);
}

.feature-item i { stroke-width: 2.5; }

/* ==========================================
   PRICING SECTION
========================================== */
.pricing-section {
    background-color: var(--navy-blue);
    position: relative;
    padding: 8rem 0;
}

.pricing-header {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--white);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.pricing-card {
    background: var(--white);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.pricing-card.popular {
    background: var(--navy-blue-dark);
    border: 2px solid var(--brand-orange);
    color: var(--white);
    transform: scale(1.05);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-card.popular h4, 
.pricing-card.popular p,
.pricing-card.popular .price {
    color: var(--white);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-orange);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.price {
    font-size: 3.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: var(--brand-red);
    margin: 1.5rem 0;
    line-height: 1;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.pricing-card.popular .price span {
    color: rgba(255,255,255,0.7);
}

/* ==========================================
   TESTIMONIALS SECTION
========================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.test-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border-top: 4px solid var(--brand-red);
    position: relative;
    transition: var(--transition-base);
}

.test-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.stars {
    color: var(--brand-orange);
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.stars svg { fill: var(--brand-orange); }

/* ==========================================
   FOOTER / CONTACT INFO
========================================== */
.footer {
    background: var(--navy-blue-dark);
    color: var(--slate-200);
    padding-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-list i {
    color: var(--brand-red);
    margin-top: 0.25rem;
}

.social-flex {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: var(--brand-red);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

/* ==========================================
   ANIMATIONS & EFFECTS
========================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* ==========================================
   RESPONSIVE DESIGN
========================================== */
@media (max-width: 1024px) {
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-glass-card { margin-top: 2rem; text-align: left; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--navy-blue);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition-base);
        z-index: 999;
    }
    
    .nav-links.active { right: 0; }
    .nav-link { color: var(--white) !important; font-size: 1.5rem; }
    .mobile-toggle { display: block; z-index: 1001; }
    
    .pricing-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .contact-list li { justify-content: center; text-align: left; }
    .social-flex { justify-content: center; }
}
