/* ===========================================
   Driving Instructor Landing Page - Rebrand 2026
   Target Audience: Young (16-24)
   Vibe: Energetic, Confident, Modern
   =========================================== */

/* ---------- Variables & Tokens ---------- */
:root {
    /* Colors */
    --color-primary: #2563EB;
    /* Vibrant Blue */
    --color-primary-dark: #1E40AF;
    --color-accent: #FACC15;
    /* Electric Yellow */
    --color-accent-hover: #EAB308;

    --color-bg-body: #F8FAFC;
    /* Very Light Cool Gray */
    --color-bg-white: #FFFFFF;

    --color-text-main: #0F172A;
    /* Dark Navy/Slate */
    --color-text-muted: #64748B;

    --primary-gradient: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);

    /* Typography */
    --font-main: 'Heebo', sans-serif;

    /* Spacing */
    --container-padding: 1.5rem;
    --section-spacing: 2rem;

    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    --radius-md: 1rem;
    --radius-lg: 1.5rem;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg-body);
    color: var(--color-text-main);
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ---------- Components ---------- */

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-whatsapp,
.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 50px;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--color-primary);
    border: 2px solid #E2E8F0;
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background: #EFF6FF;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 16px rgba(37, 211, 102, 0.4);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 1rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
}

/* ---------- Header ---------- */
#main-header {
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    background: #1C1465;
    /* Deep Blue as requested */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: white;
    /* User requested white text */
    letter-spacing: -0.02em;
    text-align: center;
    width: 100%;
    /* Ensure it takes space to center if needed, or rely on flex */
    display: flex;
    justify-content: center;
}

@media (min-width: 768px) {
    .logo {
        width: auto;
        display: block;
    }
}

#main-header nav ul {
    display: none;
    /* Mobile first hidden, or strictly buttons */
}

@media (min-width: 768px) {
    #main-header nav ul {
        display: flex;
        gap: 2rem;
        align-items: center;
    }

    #main-header nav a {
        font-weight: 500;
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.9);
    }

    #main-header nav a:hover {
        color: var(--color-accent);
    }

    .nav-btn {
        background: var(--color-accent);
        color: var(--color-text-main) !important;
        padding: 0.5rem 1.25rem;
        border-radius: 50px;
        font-weight: 700 !important;
    }

    .nav-btn:hover {
        background: var(--color-accent-hover);
        transform: translateY(-1px);
    }
}

/* ---------- Hero Section ---------- */
#hero {
    padding: 1rem 0 1rem;
    overflow: hidden;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    padding: 1rem var(--container-padding);
}

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

#hero h1 {
    font-size: 3rem;
    /* Mobile Size */
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: var(--color-text-main);
}

.highlight {
    position: relative;
    z-index: 1;
    display: inline-block;
}

.highlight::before {
    content: '';
    position: absolute;
    bottom: 5px;
    right: -5px;
    width: 100%;
    height: 80%;
    background: var(--color-accent);
    transform: skew(-15deg);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    display: none;
    /* User commented it out in HTML, keeping hidden in CSS too */
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
    width: 100%;
    max-width: 350px;
    margin: 2rem auto 0;
}

.hero-buttons .btn-primary,
.hero-buttons .btn-whatsapp {
    width: 100%;
    /* Full width within the max-width container for mobile */
    padding: 1rem;
}

.hero-visual {
    position: relative;
    max-width: 380px;
    order: -1;
    /* Image appears before buttons on mobile if centered layout is desired, or keep default */
}

.graphic-blob {
    display: none;
    /* Removed for mockup alignment */
}

.hero-img {
    border-radius: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: white;
    width: 100%;
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: rotate(0deg) scale(1.02);
}

@media (min-width: 992px) {
    #hero {
        padding: 6rem 0;
        min-height: 90vh;
        display: flex;
        align-items: center;
    }

    .hero-wrapper {
        grid-template-columns: 1.2fr 0.8fr;
        text-align: right;
    }

    .hero-content {
        text-align: right;
    }

    #hero h1 {
        font-size: 5rem;
    }

    .hero-subtitle {
        margin-right: 0;
        margin-left: initial;
    }

    .hero-buttons {
        flex-direction: row;
        margin-right: 0;
        margin-left: initial;
        max-width: none;
        width: auto;
        justify-content: flex-start;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-whatsapp {
        width: auto;
    }

    .hero-visual {
        order: 0;
        margin: 0;
    }
}

/* ---------- Benefits Section ---------- */
#benefits {
    padding: var(--section-spacing) 0;
    background: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    /* Wider cards to accommodate side-by-side on desktop */
    gap: 1.5rem;
}

.benefit-card {
    background: var(--color-bg-body);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, background 0.3s;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    text-align: right;
    /* RTL consistency */
}

.benefit-card:hover {
    transform: translateY(-5px);
    background: #EFF6FF;
}

.benefit-card .icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    color: var(--color-primary);
    background: white;
    padding: 8px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

.benefit-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.benefit-info p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ---------- FAQ Section ---------- */
#faq {
    padding: var(--section-spacing) 0;
}

#faq h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 3rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.125rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    color: var(--color-primary);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 500px;
    /* Arbitrary large height for transition */
    opacity: 1;
}

/* ---------- Contact Section ---------- */
#contact {
    padding: var(--section-spacing) 0;
    background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
    color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
}

.contact-text h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.contact-text p {
    font-size: 1.25rem;
    color: #94A3B8;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.method-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 500;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    transition: background 0.3s;
}

.method-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.form-container {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    color: var(--color-text-main);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.input-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.btn-submit {
    width: 100%;
    background: var(--color-accent);
    color: var(--color-text-main);
}

.btn-submit:hover {
    background: var(--color-accent-hover);
}

/* ---------- Footer ---------- */
footer {
    background: #0F172A;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    text-align: center;
    color: #64748B;
}

/* ---------- Recommendations Carousel ---------- */
#recommendations {
    padding: var(--section-spacing) 0;
    background: #F1F5F9;
    /* Slightly darker than body */
}

.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 1.5rem;
    /* Padding for shadow clipping */
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    /* Hide scrollbar */
    scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-card {
    flex: 0 0 85%;
    /* Mobile: Show 85% of card to encourage scroll */
    max-width: 320px;
    /* Constrain width for screenshot proportions */
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    scroll-snap-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.carousel-card:hover {
    transform: translateY(-5px);
}

.image-card {
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
    /* Let the image itself have shadow */
}

.review-screenshot {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

.scroll-hint {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* ---------- Floating WhatsApp (Brand Accurate) ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    width: 64px;
    height: 64px;
    background: #25D366;
    /* Official Brand Color */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* Subtler shadow */
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-icon-svg {
    width: 36px;
    height: 36px;
    fill: white;
}

/* Mobile Polish */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        /* Ensure readable on small screens */
    }

    .navbar .logo {
        font-size: 1.5rem;
    }
}