/* ==============================================
   CARO Driving School - Professional Styles
   Colors: Red (#C8102E), Blue (#003DA5), White (#FFFFFF)
   ============================================== */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #DC143C;
    --primary-blue: #1E90FF;
    --dark-blue: #1E3A8A;
    --light-blue: #0056D2;
    --white: #FFFFFF;
    --off-white: rgba(30, 144, 255, 0.03);
    --gray-light: rgba(220, 20, 60, 0.1);
    --gray: #1E90FF;
    --dark: #1E3A8A;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 5px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p {
    margin-bottom: 1rem;
    color: var(--gray);
}

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

/* Header Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.logo-blocks {
    display: flex;
    gap: 3px;
}

.logo-letter {
    width: 35px;
    height: 35px;
    background: var(--primary-red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 3px;
    transition: var(--transition);
}

.logo-letter:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(200, 16, 46, 0.3);
}

.logo-text {
    color: var(--primary-blue);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
}

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

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

.nav-cta {
    background: var(--primary-red);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 3px 15px rgba(200, 16, 46, 0.3);
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 61, 165, 0.3);
}

/* Mobile Navigation Toggle */
/* Hamburger menu removed for mobile-first horizontal scroll navigation */

/* Hero Section */
.hero {
    margin-top: 70px;
    padding: 80px 20px;
    background: linear-gradient(135deg, rgba(220, 20, 60, 0.05) 0%, rgba(30, 144, 255, 0.05) 100%);
    display: flex;
    align-items: center;
    min-height: 90vh;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.3), transparent);
    opacity: 0.1;
    border-radius: 50%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    color: var(--dark);
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.8s ease-out;
}

.hero-title .highlight {
    color: var(--primary-red);
    position: relative;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
    animation: slideInLeft 1s ease-out;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    animation: slideInUp 1.2s ease-out;
}

/* Buttons */
.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(200, 16, 46, 0.3);
}

.btn-primary:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(220, 20, 60, 0.4);
}

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

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

.btn-white {
    background: var(--white);
    color: var(--primary-red);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
    background: var(--off-white);
    transform: translateY(-3px);
}

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

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-3px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 2rem;
    animation: fadeIn 1.5s ease-out;
}

.stat {
    text-align: center;
}

.stat h3 {
    color: var(--primary-red);
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.stat p {
    color: var(--gray);
    font-size: 0.9rem;
}

.hero-image {
    flex: 1;
    max-width: 600px;
    animation: slideInRight 1s ease-out;
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-hover);
}

/* Section Styles */
section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    color: var(--dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    text-align: center;
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* About Section */
.about {
    background: var(--off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.about-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.service-content {
    padding: 2rem;
}

.service-content h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.service-content ul {
    list-style: none;
    margin: 1.5rem 0;
}

.service-content li {
    padding: 0.5rem 0;
    color: var(--gray);
    position: relative;
    padding-left: 1.5rem;
}

.service-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: bold;
}

.service-btn {
    background: var(--primary-red);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    display: inline-block;
    font-weight: 600;
    transition: var(--transition);
}

.service-btn:hover {
    background: var(--primary-blue);
    transform: translateX(5px);
}

/* Simulator Section */
.simulator {
    background: linear-gradient(135deg, #1E90FF 0%, #0056D2 100%);
    color: var(--white);
}

.simulator-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.simulator-text {
    flex: 1;
}

.simulator-text h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.simulator-text .lead {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.simulator-text p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.simulator-features {
    list-style: none;
    margin: 2rem 0;
}

.simulator-features li {
    padding: 0.75rem 0;
    color: var(--white);
    font-size: 1.05rem;
}

.simulator-image {
    flex: 1;
}

.simulator-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Testimonials Section */
.testimonials {
    background: var(--off-white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.testimonial-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.testimonial-content {
    padding: 2rem;
}

.stars {
    color: #FFD700;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--dark);
}

.testimonial-content h4 {
    color: var(--primary-blue);
    margin-bottom: 0.25rem;
}

.testimonial-content span {
    color: var(--gray);
    font-size: 0.9rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #DC143C 0%, #B91C1C 100%);
    color: var(--white);
    text-align: center;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.contact-card {
    background: var(--off-white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
}

.contact-card h3 {
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.contact-card a {
    color: var(--primary-red);
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    background: var(--off-white);
    padding: 2rem;
    border-radius: 15px;
}

.contact-form h3 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-light);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 61, 165, 0.1);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1E3A8A 0%, #0056D2 100%);
    color: var(--white);
    padding: 50px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    padding: 0.5rem 0;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-section a:hover {
    color: var(--white);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 999;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #128C7E;
}

/* WhatsApp Icon Image Styling */
.whatsapp-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.2));
    transition: var(--transition);
}

.whatsapp-float:hover .whatsapp-icon-img {
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.3));
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* No hamburger menu - using horizontal scroll on mobile */

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        display: flex;
        flex-wrap: wrap;
        gap: 0;
        padding: 10px;
        align-items: center;
    }

    /* First Row: Logo (takes remaining space after call button if present) */
    .logo {
        order: 1;
        flex: 0 0 auto;
        flex-shrink: 0;
    }

    .logo-blocks {
        gap: 2px;
    }

    .logo-letter {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .logo-text {
        font-size: 0.7rem;
    }

    /* Second Row: Menu items below logo (full width, forces new line) */
    .nav-menu {
        order: 3;
        flex: 0 0 100%;
        width: 100%;
        margin-top: 10px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 8px 0;
    }

    .nav-menu::-webkit-scrollbar {
        display: none;
    }

    .nav-menu li {
        flex-shrink: 0;
        margin: 0;
    }

    .nav-menu .nav-link,
    .nav-menu .nav-cta {
        display: inline-block;
        padding: 8px 16px;
        font-size: 0.85rem;
        background: rgba(220, 20, 60, 0.08);
        border-radius: 20px;
        white-space: nowrap;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: linear-gradient(135deg, #DC143C 0%, #B91C1C 100%);
        color: white;
    }

    .nav-menu .nav-cta {
        background: linear-gradient(135deg, #1E90FF 0%, #0056D2 100%);
        color: white;
    }

    /* Hero Section Mobile */
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 80px 20px 60px;
    }

    .hero-content {
        max-width: 100%;
        padding: 0;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .stat-box {
        min-width: 100px;
    }

    /* Services Section Mobile */
    .simulator-content {
        flex-direction: column;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 25px 20px;
    }

    /* Contact Section Mobile */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-links {
        justify-content: center;
    }

    /* Typography Mobile */
    h1 { font-size: 1.8rem; line-height: 1.2; }
    h2 { font-size: 1.6rem; line-height: 1.3; }
    h3 { font-size: 1.3rem; line-height: 1.4; }

    p { font-size: 0.95rem; line-height: 1.6; }

    /* General spacing adjustments */
    section {
        padding: 60px 0;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile devices */
    .nav-container {
        padding: 8px;
    }

    .logo-letter {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }

    .logo-text {
        font-size: 0.65rem;
    }

    .nav-menu {
        margin-top: 8px;
        padding: 6px 0;
    }

    .nav-menu .nav-link,
    .nav-menu .nav-cta {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .hero {
        padding: 70px 15px 50px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .hero-stats {
        gap: 1rem;
    }

    .stat-box {
        min-width: 80px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }

    section {
        padding: 50px 0;
    }

    .container {
        padding: 0 12px;
    }

    .about-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 20px 15px;
    }

    .contact-grid {
        gap: 20px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .footer-grid {
        gap: 25px;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-icon-img {
        width: 50px;
        height: 50px;
    }
}

/* Loading State */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gray-light);
    border-radius: 50%;
    border-top-color: var(--primary-red);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Smooth Scroll for Sections */
section:target {
    scroll-margin-top: 80px;
}