/*
Theme Name: Edmonton Driving School Theme
Author: Gemini
Description: Custom theme for driving school with blue/orange branding.
Version: 1.0
*/

:root {
    --primary-blue: #003366;
    --accent-orange: #FF8C00;
    --light-gray: #f4f4f4;
    --text-dark: #333;
    --white: #ffffff;
    --whatsapp-green: #25D366;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', sans-serif; line-height: 1.6; color: var(--text-dark); background: var(--white); }
a { text-decoration: none; }
ul { list-style: none; }

/* LAYOUT */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* HEADER */
header { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; }
.nav-bar { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 1.5rem; font-weight: 800; color: var(--primary-blue); text-transform: uppercase; }
.logo span { color: var(--accent-orange); }
.nav-links { display: flex; gap: 25px; }
.nav-links a { color: var(--text-dark); font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-orange); }
.cta-btn-nav { background-color: var(--primary-blue); color: white !important; padding: 10px 20px; border-radius: 5px; font-weight: bold; }

/* HERO */
.hero { background: linear-gradient(rgba(0, 51, 102, 0.8), rgba(0, 51, 102, 0.8)), url('https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?auto=format&fit=crop&q=80&w=1200'); background-size: cover; background-position: center; height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; color: white; }
.hero-content h1 { font-size: 3.5rem; margin-bottom: 20px; font-weight: 700; }
.hero-content p { font-size: 1.25rem; margin-bottom: 30px; max-width: 700px; margin: 0 auto 30px auto; }
.main-btn { background-color: var(--accent-orange); color: white; padding: 15px 35px; font-size: 1.2rem; border-radius: 50px; font-weight: bold; display: inline-block; border: none; cursor: pointer; }
.main-btn:hover { background-color: #e67e00; }

/* FEATURES GRID */
.features { padding: 80px 0; background: var(--light-gray); }
.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; color: var(--primary-blue); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.feature-card { background: white; padding: 30px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); text-align: center; }
.icon { font-size: 2.5rem; margin-bottom: 20px; }
.feature-card h3 { color: var(--primary-blue); margin-bottom: 15px; }

/* PRICING */
.pricing-section { padding: 60px 0; background: var(--light-gray); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.price-card { background: white; border-radius: 10px; padding: 40px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.05); border-top: 5px solid transparent; }
.price-card.popular { border-top: 5px solid var(--accent-orange); }
.price-title { font-size: 1.5rem; color: var(--primary-blue); font-weight: 700; }
.price-tag { font-size: 2.5rem; font-weight: 800; color: var(--text-dark); margin: 10px 0 20px 0; }
.price-tag span { font-size: 1rem; font-weight: normal; color: #777; }
.features-list { text-align: left; margin-bottom: 30px; }
.features-list li { margin-bottom: 12px; }
.features-list li::before { content: "✔"; color: #28a745; margin-right: 10px; font-weight: bold; }
.book-btn { display: block; width: 100%; padding: 12px; background: var(--primary-blue); color: white; font-weight: bold; border-radius: 5px; text-align: center; }

/* FOOTER & MISC */
.cta-strip { background: var(--primary-blue); color: white; padding: 60px 0; text-align: center; }
.whatsapp-float { position: fixed; bottom: 40px; right: 40px; background: var(--whatsapp-green); color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 30px; box-shadow: 2px 2px 5px rgba(0,0,0,0.3); z-index: 9999; }
footer { background: #222; color: white; padding: 40px 0; text-align: center; }
.footer-links { margin-bottom: 20px; }
.footer-links a { color: #ccc; margin: 0 15px; }


/* RESPONSIVE (Mobile Styles) */
@media (max-width: 768px) { 
    /* 1. Stack Logo on top, Menu below */
    .nav-bar { 
        flex-direction: column; 
        height: auto; 
        padding: 10px 0;
        overflow: hidden; /* Prevents whole page scroll */
    }

    /* 2. Make Logo Smaller */
    .logo {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }

    /* 3. ONE LINE Scrollable Menu */
    .nav-links { 
        display: flex;       
        flex-direction: row;     /* Keep them in a row */
        width: 100%;
        overflow-x: auto;        /* Allow horizontal scrolling */
        white-space: nowrap;     /* Force them to stay on one line */
        gap: 10px;               /* Space between items */
        padding: 0 15px 10px 15px; /* Add padding for touch targets */
        justify-content: flex-start; 
        -webkit-overflow-scrolling: touch; /* Smooth scroll on iPhones */
    }

    /* 4. Style the links like mini-buttons */
    .nav-links a {
        display: inline-block;
        padding: 8px 12px;
        font-size: 0.9rem;
        background: #f8f9fa;     /* Light grey background */
        border-radius: 20px;     /* Rounded pill shape */
        border: 1px solid #ddd;
        flex-shrink: 0;          /* Prevents buttons from being squished */
    }

    /* 5. Highlight the Call Button */
    .cta-btn-nav {
        background-color: var(--primary-blue) !important;
        color: white !important;
        border: none !important;
    }
    
    /* 6. Fix Hero Font Size */
    .hero-content h1 { font-size: 2rem; }
}
/* SHARED PAGE HEADER (Like your Training Packages page) */
.page-header {
    background-color: var(--primary-blue); /* Uses your #003366 blue */
    padding: 60px 0;
    text-align: center;
    color: white;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white !important; /* Forces text to stay white */
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}
/* Hide the automatic system title to prevent doubling */
.entry-title, 
.page-title, 
.post-title {
    display: none !important;
}