/* ===== Jesus Cabs - UNIFIED DESIGN SYSTEM ===== */

/* CSS Custom Properties */
:root {
    /* Enhanced Color Palette (Red & Blue) */
    --primary-red: #dc2626;      /* Main red for CTAs */
    --primary-blue: #096cc3;     /* Deep blue for branding */
    --accent-blue: #3b82f6;      /* Lighter blue for accents */
    --accent-red: #ef4444;       /* Lighter red for hovers */
    --neutral-50: #f8fafc;       /* Clean backgrounds */
    --neutral-900: #0f172a;      /* Dark text */

    /* Mapping to existing variables for compatibility */
    --primary-color: var(--primary-blue);
    --primary-dark: #1e3a8a; /* Darker shade of primary-blue */
    --primary-light: var(--accent-blue);
    --secondary-color: var(--primary-red);
    --secondary-dark: #b91c1c; /* Darker shade of primary-red */
    --secondary-light: var(--accent-red);
    --accent-color: var(--accent-blue);
    --accent-light: #60a5fa; /* Lighter shade of accent-blue */
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --danger-color: #f44336;
    --dark-color: var(--neutral-900);
    --light-color: var(--neutral-50);
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: var(--neutral-900);

    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Transitions */
    --transition-fast: 0.15s ease-in-out;
    --transition-base: 0.3s ease-in-out;
    --transition-slow: 0.5s ease-in-out;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--dark-color);
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-3xl); }
h4 { font-size: var(--font-size-2xl); }
h5 { font-size: var(--font-size-xl); }
h6 { font-size: var(--font-size-lg); }

p {
    margin-bottom: var(--spacing-md);
    color: var(--gray-700);
}

.lead {
    font-size: var(--font-size-lg);
    font-weight: 400;
    color: var(--gray-600);
}

/* ===== UTILITY CLASSES ===== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.text-success { color: var(--success-color) !important; }
.text-white { color: var(--white) !important; }
.text-muted { color: var(--gray-500) !important; }
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-light { background-color: var(--gray-100) !important; }
.bg-white { background-color: var(--white) !important; }
.bg-dark { background-color: var(--dark-color) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }
.shadow-xl { box-shadow: var(--shadow-xl) !important; }

.rounded { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }

/* ===== COMPONENTS ===== */

/* Brand Icon */
.brand-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
}

/* Navigation */
.navbar {
    background: var(--white) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary-color) !important;
}

.navbar-brand small {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    transition: var(--transition-fast);
    position: relative;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-base);
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-red) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-image: url(../images/hero-cars-kanyakumari.jpg);
    background-size: cover;
    background-position: center;
    color: var(--white);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="500" cy="500" r="400" fill="url(%23a)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(150 62 0 / 35%);
    backdrop-filter: blur(3px);
    /* border-radius: var(--radius-xl); */
    z-index: 1;
}

.text-sunset {
    color: #ff9800 !important;
}
.text-sunset-g{
    color: #5bff72;
}
.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition-base);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
}

.cta-sectiona{
    background: linear-gradient(135deg, #7fbde3 0%, #6ae0ab 100%);
    position: relative;
    overflow: hidden;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #a1e37f 0%, #b0e993 100%);
    position: relative;
    overflow: hidden;
}

/* .cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="b" cx="50%" cy="50%"><stop offset="0%" stop-color="%23ffffff" stop-opacity="0.1"/><stop offset="100%" stop-color="%23ffffff" stop-opacity="0"/></radialGradient></defs><circle cx="200" cy="200" r="300" fill="url(%23b)"/><circle cx="800" cy="800" r="400" fill="url(%23b)"/></svg>');
    opacity: 0.3;
} */
.place-img{
    width: 100%;
}
/* Service Cards */
.service-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-blue);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

/* Fleet Cards */
.fleet-card {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: var(--transition-base);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

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

.fleet-image {
    height: 200px;
    object-fit: cover;
    transition: var(--transition-base);
}

.fleet-card:hover .fleet-image {
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: var(--shadow-md);
}

/* Feature Icons */
.feature-icon {
    width:100%;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-md);
}

/* Contact Info Cards */
.contact-info-card .card-body {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border-radius: var(--radius-lg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto var(--spacing-md);
}

/* Buttons */
.btn {
    border-radius: var(--radius-lg);
    font-weight: 600;
    padding: 12px 24px;
    transition: var(--transition-fast);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-red), var(--accent-red));
    color: var(--white);
    box-shadow: var(--shadow-md);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-red), var(--primary-red));
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

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

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 16px 32px;
    font-size: var(--font-size-lg);
}

/* Footer */
.footer-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a252f 100%);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

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

/* Contact Form */
.contact-form {
    background: var(--white);
    padding: var(--spacing-3xl);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.form-control {
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
    font-size: var(--font-size-base);
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* Map Placeholder */
.map-placeholder {
    background: var(--gray-100);
    border-radius: var(--radius-xl);
    padding: var(--spacing-4xl);
    border: 2px dashed var(--gray-300);
    transition: var(--transition-base);
}

.map-placeholder:hover {
    border-color: var(--primary-color);
    background: var(--gray-50);
}

/* Team Cards */
.team-card {
    border-radius: var(--radius-xl);
    transition: var(--transition-base);
}

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

.team-avatar {
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
}

/* Certification Cards */
.certification-card {
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
}

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

/* Price Display */
.price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        text-align: center;
    }

    h1 { font-size: var(--font-size-4xl); }
    h2 { font-size: var(--font-size-3xl); }
    h3 { font-size: var(--font-size-2xl); }

    .glass-card {
        margin-bottom: var(--spacing-lg);
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: var(--font-size-base);
    }

    .contact-form {
        padding: var(--spacing-xl);
    }
}

@media (max-width: 576px) {
    .brand-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .navbar-brand h1 {
        font-size: var(--font-size-lg);
    }

    .hero-section {
        min-height: 70vh;
    }

    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.form-control:focus,
.nav-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass-card {
        background: var(--white);
        border: 2px solid var(--dark-color);
    }

    .service-card,
    .fleet-card {
        border: 2px solid var(--dark-color);
    }
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .cta-section {
        display: none !important;
    }

    .hero-section {
        background: var(--white) !important;
        color: var(--dark-color) !important;
    }

    * {
        box-shadow: none !important;
    }
}

/* Booking Form */
.booking-form-container {
    padding: 2rem;
}

.booking-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.booking-form .form-control,
.booking-form .form-select {
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #000;
}

.booking-form .form-control::placeholder {
    color: rgba(0, 0, 0);
}

.booking-form .form-select {
    color: rgba(0, 0, 0);
}

.booking-form .form-select option {
    color: var(--dark-color);
}

.booking-form .form-control:focus,
.booking-form .form-select:focus {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: var(--accent-red);
    box-shadow: none;
    color: var(--white);
}

/* Team Card Enhancements */
.team-card .card-img-top-container {
    overflow: hidden;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    margin: -75px auto 0;
    border: 5px solid var(--white);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 2;
}

.team-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card .card-body {
    padding-top: 20px;
}

.team-card {
    border: none;
    box-shadow: var(--shadow-lg);
}

.story-image-container {
    position: relative;
}

.story-image-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-red));
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.1;
}

/* Service Card Enhancements */
.service-card .img-fluid {
    height: 100%;
    object-fit: cover;
}

.service-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== WHATSAPP CHAT BUTTON ===== */
/* WhatsApp Chat Button - Floating */
.whatsapp-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #ffffff;
    color: white;
    border: 1px solid #25d366;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: block !important;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    font-size: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;

}

.whatsapp-chat:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    background: #000000;
}

/* Ensure button stays above footer */
.whatsapp-chat {
    margin-bottom: 0;
    padding: 0;
}

.whatsapp-chat i {
    margin: 0;
    padding: 0;
}

/* Mobile responsiveness for WhatsApp button */
@media (max-width: 768px) {
    .whatsapp-chat {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
}

@media (max-width: 576px) {
    .whatsapp-chat {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    .mobile-nav{
        /* background: rgba(255, 255, 255, 0.8) !important;
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--gray-200); */
        padding: 50px 10px 40px;
    }
    .booking-form-container {
        padding: 0rem;
    }
    p{
        line-height: 1.3;
    }
    .mob-bntn {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.75rem !important;
        margin-bottom: 30px;
    }
    .mob-bntn a{
        flex: 1;
        min-width: 100px;
    }
}
