/* TAS - The Auto Shoppers - Professional Automotive CSS */

:root {
    /* Professional Automotive Color Scheme - Inspired by Bosch */
    --primary: #B71C1C;
    /* Deep Red - Professional automotive red */
    --primary-dark: #8B0000;
    /* Darker red for hover states */
    --secondary: #1A1A1A;
    /* Professional dark gray */
    --accent: #FFB800;
    /* Warning/accent yellow */
    --light: #F5F5F5;
    /* Clean light background */
    --dark: #212121;
    /* Text dark */
    --gray: #757575;
    /* Secondary text */
    --border: #E0E0E0;
    /* Subtle borders */
    --white: #FFFFFF;

    /* Typography - Modern Sans-Serif */
    --font-primary: 'Montserrat', sans-serif;
    --font-secondary: 'Open Sans', sans-serif;
}

/* Fix footer service list alignment */
.footer .btn.btn-link {
    padding-left: 0 !important;
    text-align: left;
    color: #ffffff;
    text-decoration: none;
}

/* Invert phone icon */
.fa-phone-alt {
    transform: scaleX(-1);
    display: inline-block;
}

/* Dark Mode Overrides - Premium Aesthetic */
body.dark-mode {
    --white: #0c0c0e;
    /* Deep obsidian */
    --light: #16161a;
    /* Elevated surface */
    --dark: #ffffff;
    /* Primary text */
    --secondary: #000000;
    --gray: #94a3b8;
    /* Slate gray text */
    --border: rgba(255, 255, 255, 0.08);
    /* Minimalist borders */
    --glass: rgba(255, 255, 255, 0.01);
    --accent-glow: rgba(183, 28, 28, 0.15);
    color-scheme: dark;
}

body.dark-mode {
    background-color: var(--white);
    color: var(--dark);
}

body.dark-mode .navbar {
    background-color: rgba(12, 12, 14, 0.8) !important;
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

body.dark-mode .navbar-light .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

body.dark-mode .navbar-light .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .bg-light {
    background-color: var(--light) !important;
}

body.dark-mode .text-secondary {
    color: var(--gray) !important;
}

body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6 {
    color: #ffffff;
}

body.dark-mode .navbar-light .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
}

body.dark-mode .navbar-light .navbar-nav .nav-link:hover,
body.dark-mode .navbar-light .navbar-nav .nav-link.active {
    color: var(--primary) !important;
}

body.dark-mode .service-item,
body.dark-mode .team-item,
body.dark-mode .testimonial-text,
body.dark-mode .card,
body.dark-mode .bg-white:not(.navbar),
body.dark-mode #calcForm {
    background: var(--glass) !important;
    backdrop-filter: blur(8px);
    border: 1px solid var(--border) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

body.dark-mode .service-item:hover {
    box-shadow: 0 0 30px var(--accent-glow);
    border-color: var(--primary) !important;
    background: rgba(183, 28, 28, 0.02) !important;
}

body.dark-mode .form-control,
body.dark-mode .form-select {
    background-color: #16161a;
    border-color: var(--border);
    color: #ffffff;
}

body.dark-mode .form-control:focus {
    background-color: #1c1c21;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(183, 28, 28, 0.25);
}

body.dark-mode .footer {
    background-color: #08080a !important;
    border-top: 1px solid var(--border);
}

body.dark-mode .btn-outline-secondary {
    border-color: var(--border);
    color: #ffffff;
}

body.dark-mode .btn-outline-secondary:hover {
    background-color: var(--border);
    color: #ffffff;
}

body.dark-mode .btn-light {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

body.dark-mode .btn-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-color: var(--border);
}

body.dark-mode .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

body.dark-mode .btn-primary,
body.dark-mode .btn-danger {
    color: #ffffff;
}

/* Dark Mode - Container backgrounds for calculator/offers */
body.dark-mode .container-xxl,
body.dark-mode .container-fluid:not(.bg-dark):not(.bg-danger):not(.bg-primary) {
    background-color: var(--white);
}

body.dark-mode .bg-light {
    background-color: #1a1a1f !important;
    color: #e0e0e0;
}

body.dark-mode .bg-light label,
body.dark-mode .bg-light .form-label,
body.dark-mode .bg-light .form-check-label {
    color: #e0e0e0 !important;
}

/* Dark Mode - Calculator form inner bg-light panel fix */
body.dark-mode #calcForm,
body.dark-mode .container-xxl .bg-light {
    background-color: #1a1a1f !important;
    border: 1px solid var(--border);
}

body.dark-mode .container-xxl .bg-light h1,
body.dark-mode .container-xxl .bg-light h2,
body.dark-mode .container-xxl .bg-light h3,
body.dark-mode .container-xxl .bg-light p,
body.dark-mode .container-xxl .bg-light label,
body.dark-mode .container-xxl .bg-light span {
    color: #e0e0e0;
}

/* Dark Mode - Fix for paragraph and text colors */
body.dark-mode p {
    color: #b0b0b0;
}

body.dark-mode .text-muted {
    color: #888888 !important;
}

body.dark-mode .text-dark {
    color: var(--dark) !important;
}

body.dark-mode #spinner {
    background: var(--white) !important;
    backdrop-filter: none;
    border: none !important;
    box-shadow: none !important;
}

/* Dark Mode - Phone icon fix in topbar */
body.dark-mode .container-fluid.bg-dark .fa-phone-alt,
body.dark-mode .container-fluid.bg-dark .fa-map-marker-alt,
body.dark-mode .container-fluid.bg-dark .fa-clock,
body.dark-mode .container-fluid.bg-dark small.text-danger {
    color: var(--primary) !important;
}

body.dark-mode .container-fluid.bg-dark small {
    color: #CCCCCC !important;
}

/* Logo specific styles */
.logo-light {
    display: inline-block;
}

.logo-dark {
    display: none;
}

body.dark-mode .logo-light {
    display: none;
}

body.dark-mode .logo-dark {
    display: inline-block;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Custom Hover Lift Animation */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15) !important;
}

.btn-icon-animate {
    transition: transform 0.2s ease;
}

.hover-lift:hover .btn-icon-animate {
    transform: translateX(3px);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary);
}

/* Buttons - Professional & Subtle */
.btn {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 28px;
    border-radius: 2px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-danger,
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-danger:hover,
.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.3);
}

.btn-light {
    background-color: var(--white);
    color: var(--secondary);
    border: 2px solid var(--white);
}

.btn-light:hover {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
    border: 2px solid var(--secondary);
}

/* Navbar - Clean & Professional with Glassmorphism */
.navbar {
    background-color: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 0;
}

/* CTA button flush with navbar height */
@media (min-width: 992px) {
    .navbar.navbar-expand-lg {
        align-items: stretch !important;
    }

    .navbar .navbar-brand,
    .navbar .navbar-toggler {
        align-self: center;
    }

    .navbar>.btn {
        align-self: stretch !important;
        border-top: 0 !important;
        border-bottom: 0 !important;
        border-radius: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (min-width: 1200px) {
    .navbar>.btn {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}


.navbar>.btn:hover,
.navbar>.btn:focus {
    transform: none !important;
    filter: brightness(0.9);
    box-shadow: none !important;
}

.navbar-brand h2 {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    margin: 0;
    color: var(--secondary);
    white-space: nowrap;
    letter-spacing: 0px;
    transition: all 0.3s ease;
}

@media (max-width: 1300px) {
    .navbar-brand h2 {
        font-size: clamp(20px, 2vw, 24px);
    }
}


@media (max-width: 576px) {
    .navbar-brand h2 {
        font-size: 18px;
    }
}

.navbar-brand h2 i {
    color: var(--primary);
    margin-right: 8px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--secondary);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 24px 16px;
    margin: 0 3px;
    transition: all 0.3s ease;
}

@media (max-width: 1350px) {
    .navbar-light .navbar-nav .nav-link {
        padding: 24px 8px;
        margin: 0;
    }
}

@media (max-width: 1200px) {
    .navbar-light .navbar-nav .nav-link {
        padding: 24px 6px;
        font-size: 15px;
    }
}

@media (max-width: 1100px) {
    .navbar-light .navbar-nav .nav-link {
        padding: 24px 5px;
        font-size: 14px;
    }
}


.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

.navbar-light .navbar-nav .nav-link.active {
    position: relative;
}

.navbar-light .navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background-color: var(--primary);
}

/* Navbar Dropdown */
.navbar .dropdown-menu {
    border: none;
    border-top: 3px solid var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    min-width: 160px;
    padding: 8px 0;
}

.navbar .dropdown-item {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    color: var(--secondary);
    transition: all 0.2s ease;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    background-color: transparent;
    color: var(--primary);
    padding-left: 24px;
}

body.dark-mode .navbar .dropdown-menu {
    background-color: #1a1a2e;
    border-top-color: var(--primary);
}

body.dark-mode .navbar .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
}

body.dark-mode .navbar .dropdown-item:hover {
    color: var(--primary);
}

/* Topbar - Subtle Information Bar */
.container-fluid.bg-dark {
    background-color: var(--secondary) !important;
    padding: 10px 0;
}

.container-fluid.bg-dark small {
    font-size: 13px;
    color: #CCCCCC;
}

.container-fluid.bg-dark .text-danger {
    color: var(--primary) !important;
}

/* Hero Carousel - Fit Window Height */
#header-carousel .carousel-item {
    height: calc(100vh - 76px);
    min-height: 500px;
}

#header-carousel .carousel-item>img {
    height: 100%;
    object-fit: cover;
}

/* Hero Carousel - Professional Overlay */
.carousel-caption {
    background: rgba(26, 26, 26, 0.75);
    backdrop-filter: blur(2px);
}

.carousel-caption h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
}

.carousel-caption h6 {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary);
}

.carousel-caption p {
    font-size: 18px;
    line-height: 1.8;
    color: #E0E0E0;
}

/* Service Cards - Clean & Modern */
.service-item {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 30px;
    transition: all 0.3s ease;
    height: 100%;
}

.service-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.service-item .btn-square {
    width: 60px;
    height: 60px;
    background-color: var(--primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.service-item h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 12px;
}

.service-item p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.service-item ul li {
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 8px;
}

/* Service Tabs - Professional */
.service .nav .nav-link {
    background-color: var(--light);
    border: 1px solid var(--border);
    border-radius: 4px;
    margin-bottom: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.service .nav .nav-link:hover {
    background-color: var(--white);
    border-color: var(--primary);
}

.service .nav .nav-link.active {
    background-color: var(--primary);
    border-color: var(--primary);
}

.service .nav .nav-link.active h4,
.service .nav .nav-link.active i {
    color: var(--white) !important;
}

/* Booking Section - Professional Form */
.booking {
    background: linear-gradient(rgba(26, 26, 26, 0.85), rgba(26, 26, 26, 0.85)),
        url(../img/carousel-bg-2.jpg) center center no-repeat;
    background-size: cover;
    padding: 60px 0;
}

.form-control,
.form-select {
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(183, 28, 28, 0.1);
}

.form-floating label {
    font-size: 14px;
    color: var(--gray);
}

/* Team Section - Clean Cards */
.team-item {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.team-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

.team-item .team-text {
    background-color: var(--white);
}

.team-item .bg-light {
    background-color: var(--light) !important;
    padding: 20px;
    text-align: center;
}

.team-item h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 5px;
}

.team-item small {
    font-size: 13px;
    color: var(--gray);
}

/* Service Page - Sticky Booking Sidebar */
.service-booking-sidebar {
    position: sticky;
    top: 80px;
    background: linear-gradient(135deg, #B71C1C 0%, #8B0000 100%);
    border-radius: 8px;
    padding: 32px 24px;
    box-shadow: 0 12px 40px rgba(183, 28, 28, 0.3);
    animation: sidebarSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transform: translateY(30px);
    opacity: 0;
}

@keyframes sidebarSlideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.service-booking-sidebar .sidebar-header {
    text-align: center;
    margin-bottom: 24px;
}

.service-booking-sidebar .sidebar-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: #ffffff;
    backdrop-filter: blur(4px);
}

/* Pulsing glow on the icon */
.sidebar-icon-pulse {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
}

.service-booking-sidebar .sidebar-header h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.service-booking-sidebar .sidebar-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin-bottom: 0;
}

/* Staggered field entrance */
.sidebar-field {
    animation: fieldFadeIn 0.4s ease forwards;
    animation-delay: var(--field-delay, 0s);
    opacity: 0;
    transform: translateY(12px);
}

@keyframes fieldFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar-input {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
    border-radius: 4px !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
    transition: all 0.3s ease !important;
}

.sidebar-input::placeholder {
    color: rgba(255, 255, 255, 0.5) !important;
}

.sidebar-input:focus {
    background: rgba(255, 255, 255, 0.18) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transform: scale(1.02);
}

.btn-book-sidebar {
    background: #ffffff !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 14px !important;
    border: none !important;
    border-radius: 4px !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
    position: relative;
    overflow: hidden;
}

.btn-book-sidebar:hover {
    background: #f0f0f0 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Shimmer effect on button */
.btn-book-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(183, 28, 28, 0.08), transparent);
    animation: btnShimmer 3s ease-in-out infinite;
}

@keyframes btnShimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Sidebar divider & labels */
/* Booking page glass card */
.booking-glass-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

body.dark-mode .booking-glass-card {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Booking page section dividers (light background) */
.booking-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
}

.booking-divider::before,
.booking-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
}

.booking-divider span {
    color: var(--primary);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.sidebar-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 8px 0;
}

.sidebar-divider::before,
.sidebar-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.sidebar-divider span {
    color: #ffffff;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    white-space: nowrap;
}

.sidebar-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 6px;
}

.sidebar-input option {
    background: #1a1a1a;
    color: #ffffff;
}

.sidebar-emergency {
    text-align: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.sidebar-emergency a {
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 600;
    transition: letter-spacing 0.2s ease;
}

.sidebar-emergency a:hover {
    letter-spacing: 1px;
}

.service-booking-sidebar .alert-success {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.service-booking-sidebar .alert-danger {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* On mobile, sidebar unsticks and flows naturally below services */
@media (max-width: 991.98px) {
    .service-booking-sidebar {
        position: static;
        margin-top: 1rem;
    }
}

/* Gallery Section */
.gallery-item {
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.gallery-item:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.gallery-img {
    height: 240px;
    overflow: hidden;
}

.gallery-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 20px;
    background-color: var(--white);
}

.gallery-caption h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 8px;
}

.gallery-caption p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 0;
}

body.dark-mode .gallery-item {
    border-color: var(--border);
}

body.dark-mode .gallery-item:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--accent-glow);
}

body.dark-mode .gallery-caption {
    background-color: var(--light);
}

body.dark-mode .gallery-caption h5 {
    color: #ffffff;
}

/* Knowledge / Blog Cards */
.knowledge-card {
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.knowledge-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.knowledge-card-img {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: var(--light);
}

.knowledge-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.knowledge-card:hover .knowledge-card-img img {
    transform: scale(1.05);
}

.knowledge-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light);
}

.knowledge-card-video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--primary);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.knowledge-card-body {
    padding: 20px 20px 10px;
}

.knowledge-card-body h5 {
    font-size: 18px;
    font-weight: 600;
    color: var(--secondary);
    line-height: 1.4;
}

.knowledge-card-body p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.knowledge-card-footer {
    padding: 0 20px 20px;
    font-size: 14px;
}

.knowledge-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark);
}

body.dark-mode .knowledge-card {
    background: var(--glass);
    border-color: var(--border);
}

body.dark-mode .knowledge-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px var(--accent-glow);
}

body.dark-mode .knowledge-card-body h5 {
    color: #ffffff;
}

body.dark-mode .knowledge-card-placeholder {
    background-color: #1a1a1f;
}

/* Testimonials - Subtle & Professional */
.testimonial-item {
    padding: 20px;
}

.testimonial-text {
    background-color: var(--light);
    padding: 30px;
    border-radius: 4px;
    border-left: 4px solid var(--primary);
}

.testimonial-carousel .owl-item.center .testimonial-text {
    background-color: var(--primary) !important;
    border-left-color: var(--primary-dark);
}

.testimonial-carousel .owl-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.testimonial-carousel .owl-nav button[class*="owl-"] {
    width: 45px;
    height: 45px;
    border-radius: 50% !important;
    background: transparent !important;
    color: var(--primary) !important;
    font-size: 16px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid var(--primary) !important;
    outline: none;
}

.testimonial-carousel .owl-nav button[class*="owl-"] span {
    display: none;
}

.testimonial-carousel .owl-nav button[class*="owl-"]:hover {
    background: var(--primary) !important;
    color: #fff !important;
    transform: scale(1.1);
}

/* Footer - Professional Dark */
.footer {
    background-color: var(--secondary);
    color: #CCCCCC;
}

.footer h4 {
    color: var(--white);
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer p,
.footer a:not(.btn) {
    font-size: 14px;
    color: #CCCCCC;
}

.footer .btn.btn-link:hover {
    color: var(--primary);
}

.footer a:not(.btn-danger):hover,
.footer .footer-link:hover,
.footer .btn-social:hover {
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.footer .btn-danger:hover {
    background-color: var(--primary-dark) !important;
    color: #ffffff !important;
}

.footer .footer-link {
    cursor: pointer;
}

/* Page Header - Clean */
.page-header {
    background-position: center;
    background-size: cover;
    padding: 80px 0;
}

.page-header-inner {
    background: rgba(26, 26, 26, 0.75);
    backdrop-filter: blur(2px);
    padding: 60px 0;
}

/* Utility Classes */
.bg-light {
    background-color: var(--light) !important;
}

.bg-danger,
.bg-primary {
    background-color: var(--primary) !important;
}

.bg-secondary {
    background-color: var(--secondary) !important;
}

.text-danger,
.text-primary {
    color: var(--primary) !important;
}

.text-secondary {
    color: var(--secondary) !important;
}

.border-bottom {
    border-bottom: 2px solid var(--primary) !important;
}

/* Spinner */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity 0.5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}

.spinner-border {
    border-color: var(--primary);
    border-right-color: transparent;
}

/* Floating Dark Mode Toggle */
.dark-mode-float {
    position: fixed;
    bottom: 90px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 100;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dark-mode-float:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-mode .dark-mode-float {
    background-color: #ffffff;
    color: #1a1a1a;
}

@media (max-width: 576px) {
    .dark-mode-float {
        width: 44px;
        height: 44px;
        font-size: 18px;
        bottom: 72px;
        left: 16px;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 99;
    background-color: var(--primary);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 991.98px) {

    /* Mobile nav: prevent overflow off-screen */
    .navbar-collapse {
        max-height: 90vh;
        overflow-y: auto;
    }

    .navbar-light .navbar-nav .nav-link {
        padding: 12px 0;
        margin: 0;
        font-size: 14px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    body.dark-mode .navbar-light .navbar-nav .nav-link {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar-light .navbar-nav .nav-link.active::after {
        display: none;
    }

    /* Mobile dropdown: inline accordion style */
    .navbar .dropdown-menu {
        border: none;
        border-top: none;
        box-shadow: none;
        padding: 0 0 4px 16px;
    }

    .navbar .dropdown-item {
        font-size: 13px;
        padding: 8px 8px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    }

    body.dark-mode .navbar .dropdown-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .carousel-caption {
        top: 10%;
    }

    .carousel-caption h1 {
        font-size: 36px;
    }

    .carousel-caption img {
        display: none;
    }
}

@media (max-width: 768px) {
    .carousel-caption {
        top: 5%;
        padding-bottom: 20px;
    }

    .carousel-caption h1 {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .carousel-caption p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .carousel-caption .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .page-header-inner {
        padding: 30px 0 !important;
    }

    .page-header h1 {
        font-size: 32px;
    }

    /* Adjust padding for sections on tablet/mobile */
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

@media (max-width: 576px) {
    .carousel-caption h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    .carousel-caption h6 {
        font-size: 12px;
    }

    .carousel-caption p {
        display: none;
        /* Hide paragraph on very small screens to keep action buttons visible */
    }

    .carousel-caption .btn {
        padding: 8px 16px;
        font-size: 12px;
        margin-bottom: 5px;
    }

    /* Compact spacing for mobile */
    .container-xxl,
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    .display-4 {
        font-size: calc(1.375rem + 1.5vw);
        /* Responsive font scaling */
    }

    /* Ensure forms are comfortable on mobile */
    .form-control,
    .form-select {
        font-size: 16px;
        /* Prevent zoom on iOS */
    }
}

/* Professional Animations */
.wow {
    visibility: hidden;
}

.animated {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fadeInUp {
    animation-name: fadeInUp;
}

/* Skeleton Loading */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background-color: #eee;
    background-image: linear-gradient(90deg, #eee, #f5f5f5, #eee);
    background-size: 200px 100%;
    background-repeat: no-repeat;
    animation: skeleton-loading 1.5s infinite;
}

body.dark-mode .skeleton {
    background-color: #333;
    background-image: linear-gradient(90deg, #333, #444, #333);
}

/* App Store Buttons - Branded Badge Style */
.app-store-btn {
    display: inline-flex;
    align-items: center;
    background-color: #111111;
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 10px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 10px;
    min-width: 145px;
}

.app-store-btn:hover {
    background-color: #222222;
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.app-store-btn i {
    font-size: 26px;
    flex-shrink: 0;
}

.app-store-btn .btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.app-store-btn .btn-text small {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    line-height: 1.2;
}

.app-store-btn .btn-text span {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

/* =============================================
   Brands Marquee Section
   ============================================= */
.brands-section {
    background-color: var(--light);
    overflow: hidden;
}

body.dark-mode .brands-section {
    background-color: #1a1a1f;
}

.brands-marquee-wrapper {
    width: 100%;
    overflow: hidden;
}

.brands-track {
    display: flex;
    width: max-content;
    gap: 16px;
    padding: 8px 0;
}

.brands-track-left {
    animation: brandsScrollLeft 35s linear infinite;
}

.brands-track-right {
    animation: brandsScrollRight 35s linear infinite;
}

@keyframes brandsScrollLeft {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes brandsScrollRight {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.brand-card {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0 24px;
    user-select: none;
}

.brand-card img {
    width: 100px;
    height: 64px;
    object-fit: contain;
    filter: grayscale(1) opacity(0.6);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.brand-card:hover img {
    transform: scale(1.25);
    filter: grayscale(0) opacity(1);
}

/* Dark mode — all logos: greyscale + invert so they're visible on dark bg */
body.dark-mode .brand-card img {
    filter: grayscale(1) invert(1) opacity(0.7);
}

/* Dark mode hover — colored logos: restore original color */
body.dark-mode .brand-card:not(.logo-dark-brand):hover img {
    filter: grayscale(0) invert(0) opacity(1);
}

/* Dark mode hover — inherently dark/black logos: keep inverted (stays white/visible) */
body.dark-mode .brand-card.logo-dark-brand:hover img {
    filter: grayscale(1) invert(1) opacity(1);
}

/* Pause on hover */
.brands-track-left:hover,
.brands-track-right:hover {
    animation-play-state: paused;
}

/* Coming Soon badge on store buttons */
.app-store-btn .coming-soon-badge {
    font-size: 9px;
    background: var(--primary);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: auto;
    align-self: flex-start;
}

/* =============================================
   RESPONSIVE FIXES — 2026-03-10
   Breakpoints: ≤1200px, ≤992px, ≤768px, ≤576px, ≤400px
   ============================================= */

/* About badge — only apply negative offset on lg+ so it doesn't overflow on mobile */
.about-badge {
    position: absolute;
    top: 0;
    left: 0;
}

@media (min-width: 992px) {
    .about-badge {
        margin-top: -3rem;
        margin-left: -3rem;
    }
}

/* Carousel — cap height on mobile so it doesn't dominate the viewport */
@media (max-width: 768px) {
    #header-carousel .carousel-item {
        height: 60vh;
        min-height: 340px;
    }
}

@media (max-width: 576px) {
    #header-carousel .carousel-item {
        height: 55vh;
        min-height: 300px;
    }
}

/* About image column — ensure proper min-height when stacked on mobile */
@media (max-width: 991.98px) {
    .about-img-col {
        min-height: 300px !important;
    }
}

/* Contact map — scale down on mobile */
@media (max-width: 768px) {
    .contact-map-iframe {
        height: 280px !important;
        min-height: 280px !important;
    }
}

/* Service items — smaller icon and heading on mobile */
@media (max-width: 576px) {
    .service-item .btn-square {
        width: 48px;
        height: 48px;
        font-size: 22px;
        flex-shrink: 0;
    }

    .service-item h5 {
        font-size: 16px;
    }
}

/* Booking info emergency panel — reduce padding on mobile */
@media (max-width: 576px) {
    .booking .bg-danger.p-4,
    .container-xxl .bg-danger.p-4 {
        padding: 1rem !important;
    }
}

/* Footer newsletter — prevent button overlapping input on small screens */
@media (max-width: 576px) {
    .footer .position-relative input.form-control {
        padding-right: 5rem;
    }

    .footer .col-lg-5 .row .col-6 a.btn-link {
        font-size: 13px;
        padding: 4px 0;
    }
}

/* App store buttons — tighter on mobile */
@media (max-width: 576px) {
    .app-store-btn {
        min-width: 130px;
        padding: 8px 14px;
    }

    .app-store-btn .btn-text span {
        font-size: 14px;
    }
}

/* WhatsApp + back-to-top — smaller on mobile so they don't crowd content */
@media (max-width: 576px) {
    .whatsapp-btn {
        width: 44px;
        height: 44px;
        font-size: 24px;
        bottom: 20px;
        left: 16px;
    }

    .back-to-top {
        right: 16px;
        bottom: 20px;
        width: 40px;
        height: 40px;
    }
}

/* Mobile App Preview section — reduce padding on mobile */
@media (max-width: 576px) {
    .bg-primary.rounded.p-5 {
        padding: 1.5rem !important;
    }

    .bg-primary.rounded h1.display-4 {
        font-size: 1.8rem;
    }
}

/* General heading scale on mobile */
@media (max-width: 576px) {
    h1:not(.display-3):not(.display-4) {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .display-3 {
        font-size: clamp(1.6rem, 7vw, 2.5rem) !important;
    }
}

/* overflow-x: hidden already set on body earlier in this file */

/* =============================================
   CAROUSEL BUTTON GROUP — always a flex row, no text-wrap
   ============================================= */
.carousel-btn-group {
    display: flex;
    flex-wrap: nowrap;       /* never stack the two buttons */
    gap: 10px;
    justify-content: center;
    margin-top: 8px;
}

.carousel-btn-group .btn {
    white-space: nowrap;     /* prevent "BOOK\nNOW" word-wrap */
}

@media (min-width: 992px) {
    .carousel-btn-group {
        justify-content: flex-start;
    }
}

/* Carousel caption — full width on mobile so buttons have room */
@media (max-width: 768px) {
    .carousel-caption {
        left: 0 !important;
        right: 0 !important;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .carousel-btn-group .btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .carousel-caption {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .carousel-btn-group .btn {
        padding: 9px 16px;
        font-size: 12px;
    }
}

/* =============================================
   SERVICE HIGHLIGHT BOXES — reduce vertical padding on mobile
   ============================================= */
@media (max-width: 576px) {
    .container-xxl .d-flex.py-5.px-4 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* =============================================
   TEAM PAGE — ensure images don't stretch
   ============================================= */
.team-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: top;
}

@media (max-width: 576px) {
    .team-item img {
        height: 220px;
    }
}

/* =============================================
   UPDATES PAGE — consistent card image height
   ============================================= */
@media (max-width: 992px) {
    .updates-card img,
    .container-xxl .bg-light.p-4.rounded img.img-fluid {
        width: 100%;
        height: 200px;
        object-fit: cover;
    }
}

/* =============================================
   FOOTER — padding on mobile
   ============================================= */
@media (max-width: 768px) {
    .footer .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* =============================================
   CAROUSEL — remove mb-5 gap on mobile
   ============================================= */
@media (max-width: 768px) {
    .container-fluid.p-0.mb-5 {
        margin-bottom: 0 !important;
    }
}

/* =============================================
   TESTIMONIAL NAV — smaller on mobile
   ============================================= */
@media (max-width: 576px) {
    .testimonial-carousel .owl-nav button[class*="owl-"] {
        width: 36px;
        height: 36px;
        font-size: 14px !important;
    }
}

/* =============================================
   BOOKING PANEL — full width on smaller phones
   ============================================= */
@media (max-width: 576px) {
    .booking-panel {
        width: 100%;
    }
}

/* =============================================
   BOOKING GLASS CARD — reduce padding on mobile
   ============================================= */
@media (max-width: 576px) {
    .booking-glass-card {
        padding: 1.5rem !important;
    }
}

/* =============================================
   FOOTER — reduce row gap on mobile
   ============================================= */
@media (max-width: 576px) {
    .footer .row.g-5 {
        --bs-gutter-y: 2rem;
    }
}
