/* Custom CSS for Epic Boost Provence */

/* CSS Variables for Provence color palette */
:root {
    --primary-color: #7B68EE;          /* Lavender purple */
    --secondary-color: #FFD700;         /* Warm yellow */
    --accent-color: #DEB887;            /* Burlywood/Earth tone */
    --success-color: #9ACD32;           /* Yellow green */
    --text-dark: #2C3E50;               /* Dark blue-grey */
    --text-light: #FFFFFF;              /* White */
    --background-light: #FFF8DC;        /* Cornsilk */
    --background-dark: #2C3E50;         /* Dark blue-grey */
    --border-color: #E8E8E8;            /* Light grey */
    --shadow-color: rgba(123, 104, 238, 0.15); /* Lavender shadow */
}

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #FFFFFF;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--text-dark);
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* Bootstrap Overrides */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #9370DB);
    border: none;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #9270DB, var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    font-weight: 600;
    padding: 10px 28px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

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

.text-primary {
    color: var(--primary-color) !important;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark) !important;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, 
        rgba(123, 104, 238, 0.8), 
        rgba(255, 215, 0, 0.6)), 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="lavender" patternUnits="userSpaceOnUse" width="40" height="40"><circle cx="20" cy="20" r="2" fill="%23E6E6FA" opacity="0.3"/></pattern></defs><rect width="100%" height="100%" fill="url(%23lavender)"/></svg>');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(123, 104, 238, 0.6), 
        rgba(255, 215, 0, 0.4));
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-buttons {
    margin-top: 2rem;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.2));
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* About Section */
.about-content {
    padding: 2rem 0;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    margin: 1rem 0;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.8;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.service-icon {
    margin-bottom: 1.5rem;
}

.service-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.service-features li {
    padding: 0.3rem 0;
    color: var(--text-dark);
    opacity: 0.8;
}

.service-features li:before {
    content: "✓";
    color: var(--success-color);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Route Cards */
.route-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.route-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.route-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.route-content {
    padding: 1.5rem;
}

.route-details {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.7;
}

.route-duration, .route-distance {
    display: flex;
    align-items: center;
}

.route-duration i, .route-distance i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Testimonial Cards */
.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stars {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

.testimonial-author {
    margin-top: 1rem;
    font-weight: 600;
}

.testimonial-author span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    font-weight: normal;
}

/* Newsletter Section */
.newsletter-form {
    max-width: 500px;
    margin: 0 auto;
}

.newsletter-form .input-group {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    overflow: hidden;
}

.newsletter-form .form-control {
    border: none;
    padding: 15px 20px;
    font-size: 1rem;
}

.newsletter-form .form-control:focus {
    box-shadow: none;
}

/* Contact Section */
.contact-info {
    padding: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.contact-details h5 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-details p {
    margin-bottom: 0;
    color: var(--text-dark);
    opacity: 0.8;
}

.contact-details a {
    color: var(--primary-color);
    text-decoration: none;
}

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

/* Footer */
.footer {
    background: var(--background-dark) !important;
}

.footer h5, .footer h6 {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer p {
    color: var(--text-light);
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    margin-right: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--background-dark);
    color: var(--text-light);
    padding: 1rem 0;
    z-index: 1050;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.cookie-banner a {
    color: var(--secondary-color);
}

.cookie-banner .btn {
    font-size: 0.9rem;
    padding: 8px 16px;
}

/* Cookie Modal */
.cookie-category {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.cookie-category:last-child {
    border-bottom: none;
}

/* Legal Pages */
.legal-section {
    padding-top: 120px;
    background-color: var(--background-light);
}

.legal-content {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.legal-title {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.legal-subtitle {
    color: var(--text-dark);
    opacity: 0.7;
    margin-bottom: 2rem;
    font-style: italic;
}

.legal-section-content h2 {
    color: var(--primary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-section-content h3 {
    color: var(--text-dark);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.legal-section-content ul {
    margin-bottom: 1rem;
}

.legal-section-content li {
    margin-bottom: 0.5rem;
}

.cookie-table {
    margin: 1rem 0;
}

.cookie-table table {
    font-size: 0.9rem;
}

.cookie-table th {
    background-color: var(--primary-color);
    color: white;
    border: none;
}

.cookie-table td {
    vertical-align: middle;
}

/* Thank You Page */
.thank-you-section {
    padding-top: 120px;
    background: linear-gradient(135deg, var(--background-light), white);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.thank-you-content {
    text-align: center;
    padding: 2rem;
}

.thank-you-icon {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.thank-you-image {
    margin: 2rem 0;
}

.thank-you-actions {
    margin-top: 2rem;
}

.next-step-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.next-step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.next-step-icon {
    font-size: 2.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .stats-row {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-item {
        margin: 0.5rem 0;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .route-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .legal-content {
        padding: 1.5rem;
    }
    
    .legal-title {
        font-size: 2rem;
    }
    
    .cookie-banner .row {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-banner .col-md-4 {
        margin-top: 1rem;
    }
    
    .thank-you-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .thank-you-actions .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .newsletter-form .input-group {
        flex-direction: column;
        border-radius: 15px;
    }
    
    .newsletter-form .form-control,
    .newsletter-form .btn {
        border-radius: 15px;
        margin-bottom: 1rem;
    }
    
    .service-card,
    .route-card,
    .legal-content {
        margin: 1rem;
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .cookie-banner,
    .footer,
    .scroll-indicator,
    .hero-buttons,
    .thank-you-actions {
        display: none !important;
    }
    
    .hero-section {
        background: none;
        color: black;
    }
    
    .legal-section {
        padding-top: 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #0000FF;
        --secondary-color: #FFD700;
        --text-dark: #000000;
        --border-color: #000000;
    }
}

/* Focus styles for accessibility */
button:focus,
.btn:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip link for screen readers */
.skip-link {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.skip-link:focus {
    left: 6px;
    top: 7px;
}
