/*
Theme Name: Proton e.MAS Mauritius
Description: Official Proton e.MAS website theme for Mahwa Motors Ltd, Mauritius. Electric vehicles for a sustainable future.
Author: Mahwa Motors Ltd
Version: 1.0
License: GPL v2 or later
Text Domain: proton-mauritius
Domain Path: /languages
Tags: automotive, electric-vehicles, business, responsive, custom-colors
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4

Proton e.MAS Mauritius WordPress Theme
Copyright 2024 Mahwa Motors Ltd
*/

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

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container { padding: 0 2rem; }
}

@media (min-width: 1024px) {
    .container { padding: 0 4rem; }
}

@media (min-width: 1280px) {
    .container { padding: 0 5rem; }
}

@media (min-width: 1536px) {
    .container { padding: 0 6rem; }
}

/* Color Variables - Updated to match original Proton e.MAS */
:root {
    --primary-color: #4eb0da;
    --primary-hover: #3da3ce;
    --secondary-color: #5bc4e0;
    --dark-color: #274255;
    --navy-color: #1a2332;
    --light-blue: #96b5c6;
    --very-light-blue: #c7d9df;
    --accent-cyan: #55c1db;
    --electric-blue: #00bcd4;
    --hero-gradient-start: #4eb0da;
    --hero-gradient-end: #2196f3;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (min-width: 768px) {
    h1 { font-size: 4rem; }
    h2 { font-size: 3rem; }
    h3 { font-size: 2.25rem; }
}

/* e.MAS Logo Typography */
.emas-logo {
    font-family: 'Roboto', sans-serif;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: white;
    text-transform: uppercase;
}

.emas-number {
    font-weight: 700;
}

/* Buttons - Updated to match original styling */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-color) 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 176, 218, 0.3);
}

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

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(78, 176, 218, 0.3);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Gradients - Updated to match original */
.gradient-blue {
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
}

.gradient-blue-to-teal {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.gradient-electric {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--electric-blue) 50%, var(--secondary-color) 100%);
}

/* Header - Updated styling */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(78, 176, 218, 0.1);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    min-height: 4rem;
}

@media (min-width: 1024px) {
    .header-container {
        min-height: 5rem;
    }
}

/* Logo - Updated to match original */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--gray-900);
}

.logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 0.75rem;
    box-shadow: 0 4px 15px rgba(78, 176, 218, 0.3);
}

@media (min-width: 1024px) {
    .logo-icon {
        width: 3rem;
        height: 3rem;
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-primary {
    font-weight: bold;
    font-size: 1rem;
    color: var(--gray-900);
}

.logo-secondary {
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 1024px) {
    .logo-primary {
        font-size: 1.125rem;
    }
    .logo-secondary {
        font-size: 0.9rem;
    }
}

/* Navigation */
.main-nav {
    display: none;
}

@media (min-width: 1024px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.nav-link {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

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

/* Mobile Menu */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Hero Section - Updated to match original */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--hero-gradient-start) 0%, var(--hero-gradient-end) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(78, 176, 218, 0.8) 0%, rgba(33, 150, 243, 0.9) 100%);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
    text-align: center;
    color: white;
    padding: 2rem 0;
}

.hero-title {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ffffff, #e0f7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 5rem;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.95;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
    }
}

/* Card Styles - Enhanced */
.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(78, 176, 218, 0.1);
}

.card:hover {
    box-shadow: 0 15px 40px rgba(78, 176, 218, 0.2);
    transform: translateY(-5px);
}

.card-content {
    padding: 2rem;
}

/* Product Cards - Specific styling for e.MAS models */
.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(78, 176, 218, 0.25);
    border-color: var(--primary-color);
}

.product-card .price {
    color: var(--primary-color);
    font-size: 2rem;
    font-weight: 700;
}

.product-card .model-name {
    color: var(--gray-900);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.product-card .tagline {
    color: var(--gray-600);
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.25rem;
    font-weight: 400;
}

/* Grid Layouts */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-cols-1 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    .grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Section Padding */
.section {
    padding: 5rem 0;
}

.section-sm {
    padding: 3rem 0;
}

.section-lg {
    padding: 7rem 0;
}

/* Background Colors - Updated */
.bg-gray-50 {
    background-color: var(--gray-50);
}

.bg-gray-100 {
    background-color: var(--gray-100);
}

.bg-light-blue {
    background-color: var(--very-light-blue);
}

.bg-white {
    background-color: white;
}

.bg-primary {
    background-color: var(--primary-color);
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.bg-dark {
    background-color: var(--dark-color);
}

.bg-navy {
    background-color: var(--navy-color);
}

/* Text Colors */
.text-white {
    color: white;
}

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

.text-secondary {
    color: var(--secondary-color);
}

.text-gray-600 {
    color: var(--gray-600);
}

.text-gray-700 {
    color: var(--gray-700);
}

.text-gray-900 {
    color: var(--gray-900);
}

/* Text Alignment */
.text-center {
    text-align: center;
}

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

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

/* Spacing */
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

/* Footer - Updated styling */
.site-footer {
    background: linear-gradient(135deg, var(--navy-color) 0%, var(--dark-color) 100%);
    color: white;
    padding: 3rem 0 2rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-weight: 600;
}

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

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

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-bottom {
    border-top: 1px solid rgba(78, 176, 218, 0.2);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* Forms - Enhanced styling */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(78, 176, 218, 0.1);
    transform: translateY(-1px);
}

/* Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Electric/Tech Animation Effects */
.electric-glow {
    box-shadow: 0 0 20px rgba(78, 176, 218, 0.5);
    animation: electricPulse 2s ease-in-out infinite alternate;
}

@keyframes electricPulse {
    from {
        box-shadow: 0 0 20px rgba(78, 176, 218, 0.5);
    }
    to {
        box-shadow: 0 0 30px rgba(78, 176, 218, 0.8);
    }
}

/* Utility Classes */
.hidden {
    display: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.flex {
    display: flex;
}

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

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

.justify-between {
    justify-content: space-between;
}

.space-x-4 > * + * {
    margin-left: 1rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.w-full {
    width: 100%;
}

.h-full {
    height: 100%;
}

.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.z-10 {
    z-index: 10;
}

.rounded {
    border-radius: 0.375rem;
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 1rem;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.shadow-electric {
    box-shadow: 0 10px 25px rgba(78, 176, 218, 0.3);
}

/* Pagination Styles */
.pagination-wrapper {
    margin: 4rem 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: var(--gray-700);
    border: 2px solid var(--gray-300);
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-numbers.prev:hover,
.pagination .page-numbers.next:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

/* Mobile Menu Styles */
@media (max-width: 1023px) {
    .main-nav {
        display: none;
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
        padding: 2rem;
        z-index: 100;
        transform: translateY(-100%);
        transition: all 0.3s ease;
    }

    .main-nav.active {
        display: block;
        transform: translateY(-100%);
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .main-nav .nav-link {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--gray-200);
        font-size: 1.125rem;
    }

    body.menu-open {
        overflow: hidden;
    }
}

/* Header Scroll Effects */
.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

/* Loading States */
.site-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
    color: white;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Form States */
.form-group.focused .form-input,
.form-group.focused .form-select,
.form-group.focused .form-textarea {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(78, 176, 218, 0.1);
}

.form-group.filled .form-label {
    color: var(--primary-color);
}

/* Success States */
.btn.success {
    background-color: #10b981;
    border-color: #10b981;
}

.btn.success:hover {
    background-color: #059669;
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.animated {
    opacity: 1;
    transform: translateY(0);
}

.product-card {
    transition: all 0.3s ease;
}

.product-card.animated {
    animation: slideUp 0.6s ease-out;
}

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

/* Enhanced Card Hover Effects */
.card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(78, 176, 218, 0.2);
}

/* Feature List Styling */
.features-list li {
    display: flex;
    align-items: flex-start;
    padding: 0.5rem 0;
}

.features-list li:before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 0.75rem;
    margin-top: 0.1rem;
}

/* Responsive Text Sizes */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .product-card .price {
        font-size: 1.5rem;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    :root {
        --gray-50: #1f2937;
        --gray-100: #374151;
        --gray-200: #4b5563;
        --gray-300: #6b7280;
    }
}

/* Animations */
.transition {
    transition: all 0.3s ease;
}

/* Performance Optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Accessibility Improvements */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

.btn:focus {
    outline: 3px solid var(--secondary-color);
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .btn {
        border-width: 3px;
    }

    .card {
        border: 2px solid var(--gray-300);
    }
}

/* Print Styles */
@media print {
    .site-header,
    .mobile-menu-toggle,
    .btn,
    .site-footer {
        display: none;
    }

    body {
        color: black;
        background: white;
    }

    .hero-section {
        background: none;
        color: black;
    }
}
