/* =============================================
   BU SABER AUTO PARTS - STYLESHEET
   ============================================= */

/* CSS Variables for New Color Palette */
:root {
    --primary: #15608B;      /* Classic Azure - main brand color */
    --secondary: #05355D;    /* Deep Sea Blue - for important elements */
    --accent: #FEBA53;       /* Vibrant Amber - calls to action, highlights */
    --dark: #081A2D;         /* Midnight Navy - text and dark backgrounds */
    --light: #ffffff;        /* White */
    --neutral: #549ABE;      /* Soft Sky Blue - backgrounds, subtle elements */
    --earth: #8A5438;        /* Rich Leather - accents, borders */
    --gray: #64748b;         /* Medium gray */
    --success: #10b981;      /* Green for positive elements */
    --warning: #f59e0b;      /* Amber for warnings/attention */
    --danger: #ef4444;       /* Red for important alerts */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background-color: #fafafa;
    overflow-x: hidden;
}

/* Focus styles for accessibility */
:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent);
    color: var(--dark);
    padding: 8px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    z-index: 10000;
    transition: var(--transition);
}

.skip-link:focus {
    top: 6px;
}

/* Screen reader only text */
.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;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--dark);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout components */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 6px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    text-align: center;
}

.btn:hover,
.btn:focus {
    background-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(5, 53, 93, 0.2);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover,
.btn-outline:focus {
    background-color: var(--primary);
    color: var(--light);
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    color: var(--dark);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin: 1rem auto 0;
    border-radius: 2px;
}

.text-center {
    text-align: center;
}

/* Header styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--light);
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 60px;
    width: auto;
    border-radius: 4px;
}

.logo-text {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

.nav-link {
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    color: var(--dark);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

/* Show underline on hover and focus */
.nav-link:hover::after,
.nav-link:focus::after {
    width: 100%;
}

/* ALWAYS show underline for active section - FIXED */
.nav-link.active::after {
    width: 100% !important;
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    margin-left: auto; 
    margin-right: 1rem;
    padding: 0.8rem;
    border-radius: 4px;
    min-width: 44px; 
    min-height: 44px; 
    
    align-items: center;
    justify-content: center;
    position: relative; 
    z-index: 1001;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus {
    color: var(--primary);
    background-color: rgba(21, 96, 139, 0.1);
}

/* Hero section styles */
.hero {
    height: 100vh;
    min-height: 600px;
    background: 
        /* Radial white fade from center */
        radial-gradient(
            ellipse at center,
            rgba(255, 255, 255, 0.4) 0%,
            rgba(255, 255, 255, 0.1) 40%,
            transparent 70%
        ),
        /* Blue overlay */
        linear-gradient(135deg, 
            rgba(5, 53, 93, 0.6) 0%,
            rgba(21, 96, 139, 0.7) 100%
        ), 
        url('./Pictures/HeroPage/CarWithSpareParts.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--light);
    padding-top: 80px;
    position: relative;
    overflow: hidden; /* Important for car animation */
}


.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    animation: fadeInUp 1s ease;
    color: var(--light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.2s both;
    color: var(--light);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.4s both;
    flex-wrap: wrap;
}

/* Update button styles to work better with the hero */
.hero .btn {
    background-color: var(--accent);
    color: var(--dark);
    font-weight: 600;
    border: 2px solid var(--accent);
}

.hero .btn:hover,
.hero .btn:focus {
    background-color: transparent;
    color: var(--light);
    border-color: var(--light);
    transform: translateY(-2px);
}

.hero .btn-outline {
    background-color: transparent;
    border: 2px solid var(--light);
    color: var(--light);
}

.hero .btn-outline:hover,
.hero .btn-outline:focus {
    background-color: var(--accent);
    color: var(--dark);
    border-color: var(--accent);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--light);
    animation: bounce 2s infinite;
    text-align: center;
    cursor: pointer;
    border: none;
    background: transparent;
    font: inherit;
}

.scroll-indicator:hover,
.scroll-indicator:focus {
    color: var(--accent);
    animation: none;
}

.scroll-indicator i {
    display: block;
    margin-top: 0.5rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Car drive-in effect */
@keyframes driveIn {
    0% { 
        transform: translateX(-100vw) scale(1.2);
        opacity: 0;
    }
    80% {
        transform: translateX(50px) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes driveInBounce {
    0% { 
        transform: translateX(-100vw);
        opacity: 0;
    }
    70% {
        transform: translateX(30px);
        opacity: 1;
    }
    85% {
        transform: translateX(-10px);
    }
    100% { 
        transform: translateX(0);
        opacity: 1;
    }
}


/* Pulse animation for attention */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(254, 186, 83, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(254, 186, 83, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(254, 186, 83, 0);
    }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 5px rgba(254, 186, 83, 0.5);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(254, 186, 83, 0.8);
        transform: scale(1.02);
    }
}

/* Services Flip Card Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: transparent;
    border-radius: 12px;
    perspective: 1000px;
    height: 350px;
    cursor: pointer;
}

/* Reduced motion support for flip cards */
@media (prefers-reduced-motion: reduce) {
    .service-card-inner {
        transition: none;
    }
    
    .service-card:hover .service-card-inner {
        transform: none;
    }
}

.service-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s ease;
    transform-style: preserve-3d;
    box-shadow: var(--shadow);
    border-radius: 12px;
}

.service-card:hover .service-card-inner,
.service-card:focus-within .service-card-inner {
    transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
}

/* Front Side Styles */
.service-card-front {
    background-color: var(--light);
    color: var(--dark);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card-front h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

.service-card-front p {
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Back Side Styles - Full Picture */
.service-card-back {
    background-color: var(--dark);
    transform: rotateY(180deg);
    position: relative;
}

.service-card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-card:hover .service-card-back img,
.service-card:focus-within .service-card-back img {
    transform: scale(1.05);
}

/* Spare Parts Notice Styles - Gradient/Transparent */
.spare-parts-notice {
    margin-top: 4rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, 
        rgba(21, 96, 139, 0.1) 0%, 
        rgba(5, 53, 93, 0.15) 50%, 
        rgba(254, 186, 83, 0.08) 100%);
    border-radius: 16px;
    border: 1px solid rgba(21, 96, 139, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.spare-parts-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent), 
        transparent);
}

.spare-parts-notice:hover {
    transform: translateY(-5px);
    border-color: rgba(21, 96, 139, 0.4);
    box-shadow: 0 10px 30px rgba(21, 96, 139, 0.15);
}

.spare-parts-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}



.spare-parts-notice:hover .spare-parts-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(21, 96, 139, 0.4);
}

.spare-parts-text h3 {
    color: var(--dark);
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.spare-parts-text p {
    color: var(--gray);
    margin: 0;
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Add some decorative elements */
.spare-parts-notice::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(254, 186, 83, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* About section styles */
.about {
    background-color: #f8fafc;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-img {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-img:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.about-text h2 {
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--gray);
    line-height: 1.7;
}

.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    transition: var(--transition);
}

.feature-item:hover {
    background-color: rgba(21, 96, 139, 0.05);
}

.feature-icon {
    color: var(--primary);
    font-size: 1.5rem;
    margin-right: 1rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.feature-item h4 {
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.feature-item p {
    color: var(--gray);
    margin-bottom: 0;
}

/* Testimonials section styles */
.testimonials {
    background-color: var(--light);
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.testimonial-slide {
    background-color: var(--light);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    display: none;
    border: 1px solid #e2e8f0;
    position: relative;
}

.testimonial-slide::before {
    content: '"';
    font-size: 6rem;
    color: var(--primary);
    opacity: 0.1;
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-family: serif;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.testimonial-content {
    margin-bottom: 2rem;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--dark);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.author-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: var(--light);
}

.author-name {
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.author-rating {
    color: var(--accent);
    margin-bottom: 0.5rem;
    position: relative;
}

.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    gap: 1rem;
}

.slider-btn {
    background: var(--primary);
    border: none;
    color: var(--light);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 0.8rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover,
.slider-btn:focus {
    background: var(--accent);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 0.5rem;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #cbd5e1;
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot.active {
    background-color: var(--primary);
    transform: scale(1.2);
}

.slider-dot:hover,
.slider-dot:focus {
    background-color: var(--accent);
}

/* Contact section styles */
.contact {
    background-color: #f8fafc;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    color: var(--primary);
    font-size: 1.8rem;
    margin-top: 0.3rem;
    flex-shrink: 0;
}

.contact-details h3 {
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.contact-details p,
.contact-details address {
    color: var(--gray);
    line-height: 1.6;
    font-style: normal;
}

.contact-details a {
    color: var(--primary);
    transition: var(--transition);
}

.contact-details a:hover,
.contact-details a:focus {
    color: var(--accent);
}

.map-container {
    height: 100%;
    min-height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Call Now Button styles */
.call-now-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(21, 96, 139, 0.3);
    z-index: 999;
    transition: var(--transition);
    display: none;
    animation: pulse 2s infinite;
}

.call-now-btn:hover,
.call-now-btn:focus {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(21, 96, 139, 0.4);
    animation: none;
}

/* Back to Top Button styles */
.back-to-top-btn {
    position: fixed;
    bottom: 8rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    z-index: 998;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
}

.back-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover,
.back-to-top-btn:focus {
    background: var(--accent);
    transform: translateY(-3px);
}

/* Footer styles */
footer {
    background: linear-gradient(135deg, var(--dark), var(--secondary));
    padding: 4rem 0 1.5rem;
    color: #cbd5e1;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-col h3 {
    color: var(--light);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e1;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-links a:focus {
    color: var(--accent);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.footer-contact-icon {
    color: var(--accent);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(84, 154, 190, 0.3);
    color: #94a3b8;
}

/* Loading animation styles */
.loader {
    display: inline-block;
    width: 80px;
    height: 80px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    display: none;
    justify-content: center;
    align-items: center;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 4px solid var(--primary);
    border-color: var(--primary) transparent var(--primary) transparent;
    animation: loader 1.2s linear infinite;
}

/* Location Tabs Styles */
.locations-container {
    margin-top: 2rem;
}

.location-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    border-bottom: 2px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 1rem;
}

.location-tab {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 8px 8px 0 0;
}

.location-tab:hover,
.location-tab:focus {
    color: var(--primary);
    background-color: rgba(21, 96, 139, 0.05);
}

.location-tab.active {
    color: var(--primary);
    border-bottom-color: var(--accent);
    background-color: rgba(21, 96, 139, 0.1);
}

.location-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.location-content.active {
    display: block;
}

.location-actions {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.location-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}





/* Branch Info Cards */


.branch-info h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}


/* Responsive Location Tabs */
@media (max-width: 768px) {
    .location-tabs {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .location-tab {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        border-radius: 8px;
        border-bottom: 3px solid transparent;
    }
    
    .location-tab.active {
        border-bottom-color: var(--accent);
        border-radius: 8px 8px 0 0;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .location-tab {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    
    .branch-info {
        padding: 1.5rem;
    }
}


@keyframes loader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive styles */
@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .about-img {
        order: -1;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
        margin-bottom: 1rem;
    }
    
    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--light);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 1000;
    }
    
    nav ul.active {
        left: 0;
    }
    
    nav {
        order: 3;
    }
    
    nav ul li {
        margin: 1rem 0;
    }
    
    .mobile-menu-btn {
        display: flex !important;
        margin-left: 0; 
        margin-right: 1rem; 
        order: 2;
    }
    
    .call-now-btn {
        display: flex;
    }
    
    .back-to-top-btn {
        bottom: 7rem;
        right: 2rem;
    }
    
    .logo-img {
        height: 50px;
    }
    
    .logo-text {
        font-size: 1.3rem;
    }
    
    .logo {
        order: 1;
        flex-grow: 1;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .mobile-menu-btn {
        margin-right: 0.25rem;
        font-size: 1.4rem;
        padding: 0.7rem; 
        min-width: 40px;
        min-height: 40px;
    }
    
    .section {
        padding: 3rem 0;
    }
    
    .service-card {
        height: 300px;
    }
    
    .logo {
        order: 1;
        flex-grow: 1;
        gap: 0.5rem;
    }
    
    .logo-img {
        height: 45px;
    }
    
    .logo-text {
        font-size: 1.1rem;
    }
    
    .header-container {
        padding: 0.7rem 0;
    }
    
    .back-to-top-btn {
        bottom: 6.5rem;
    }
    
    .testimonial-slide {
        padding: 2rem 1.5rem;
    }
    
    .spare-parts-notice {
        padding: 1.5rem;
        margin-top: 2rem;
    }
    
    .spare-parts-content {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Print styles */
@media print {
    .call-now-btn,
    .back-to-top-btn,
    .mobile-menu-btn,
    .scroll-indicator {
        display: none !important;
    }
    
    .hero {
        background: none !important;
        color: var(--dark) !important;
        height: auto;
        min-height: auto;
    }
    
    .hero h1,
    .hero p {
        color: var(--dark) !important;
        text-shadow: none !important;
    }
    
    .service-card-inner {
        transform: none !important;
    }
    
    .service-card-back {
        display: none;
    }
}