/* Premium World-Class Aesthetics */

:root {
    --brand-blue: #00ADEF;
    --brand-dark: #0f172a;
    /* Deep slate */
    --brand-darker: #020617;
    --text-main: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.4);
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
}

/* Header Navbar matching footer deep blue */
.hx-header-style-1 {
    background: var(--brand-darker) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo h3 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--brand-dark);
}

/* Global button styling override */
.btn-style a {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-radius: 30px !important;
}

.btn-style a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 173, 239, 0.3);
}

/* Hero Section */
.hx-hero-style-1 .hero-slider .slide {
    position: relative;
    z-index: 1;
}

.hx-hero-style-1 .slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

/* Sleek gradient overlay */
.hx-hero-style-1 .slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.55) 0%, rgba(15, 23, 42, 0.4) 100%);
    z-index: -1;
}

.hx-hero-style-1 h1 {
    color: #ffffff;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
    margin-bottom: 25px;
}

.hx-hero-style-1 p {
    color: #e2e8f0;
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 800px;
    margin: 0 auto;
}

.offer-badge {
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 10px 25px rgba(0, 173, 239, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: var(--brand-blue);
    color: #fff;
    padding: 10px 25px;
    border-radius: 30px;
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    margin-bottom: 30px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Floating Glassmorphism Trust Bar */
.trust-bar-wrapper {
    position: relative;
    margin-top: -80px;
    /* Pull it up over the hero */
    z-index: 10;
    padding: 0 15px;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: 30px;
    transition: transform 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
}

.glass-card h2 {
    font-size: 36px;
    margin-bottom: 5px;
    line-height: 1.2;
}

/* Service Cards Soft UI */
.premium-service-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.02);
    height: 100%;
    cursor: pointer;
    text-align: left;
}

.premium-service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(0, 173, 239, 0.12);
    border-color: rgba(0, 173, 239, 0.3);
}

.premium-service-card .hx-service-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 173, 239, 0.08);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

/* Mobile optimizations for Offer Section */
@media (max-width: 991px) {
    .offer-section-premium {
        background-position: center center !important;
        background-size: cover !important;
        background-attachment: scroll !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Fix button alignment and wrapping on mobile globally */
    .btns {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .btn-style {
        margin-right: 0 !important;
        margin-left: 0 !important;
        margin-bottom: 15px !important;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    .btn-style a, .btn-style button {
        width: 100% !important;
        max-width: 100% !important;
    }
    .offer-section-premium .btn-style a {
        font-size: 14px !important;
        padding: 15px 30px !important;
        white-space: nowrap;
        text-align: center;
    }
    .submit-btn-wrapper .btn-style button {
        font-size: 14px !important;
        padding: 15px 10px !important;
        white-space: nowrap !important;
    }

    /* Global fix to prevent text and backgrounds from touching screen edges on mobile */
    .container, .hx-section-padding, .premium-testimonial {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Fix long unbroken strings (like emails) and buttons overflowing on mobile */
    .contact-info-premium span, 
    .contact-info-premium li,
    .faq-accordion .btn-link {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
    }

    /* Fix hero section height to prevent badge cutoff */
    .hero, .hero .slide {
        height: 750px !important;
    }
    .hx-slide-caption {
        margin-top: 130px !important;
    }
}

.premium-service-card .hx-service-icon i {
    position: static !important;
    transform: none !important;
    color: var(--brand-blue);
    font-size: 35px;
    transition: transform 0.3s ease;
}

.premium-service-card:hover .hx-service-icon {
    background: var(--brand-blue);
}

.premium-service-card:hover .hx-service-icon i {
    color: #fff;
    transform: scale(1.1) !important;
}

.premium-service-card h2 {
    font-size: 22px;
    margin-bottom: 15px;
}

.premium-service-card p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
}

/* Why Choose Us Premium Imagery */
.premium-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.premium-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.premium-image-wrapper img {
    transition: transform 0.7s ease;
    width: 100%;
}

.premium-image-wrapper:hover img {
    transform: scale(1.05);
}

/* Testimonial Cards */
.premium-testimonial {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
    border: 1px solid #f1f5f9;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.premium-testimonial:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

/* The Offer Section */
.offer-section-premium {
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.85) 0%, rgba(15, 23, 42, 0.85) 100%), url('../images/mercedes-benz-major-service-offer.jpg') no-repeat center center / cover;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
    text-align: center;
    color: #fff;
}

.offer-section-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(0, 173, 239, 0.15) 0%, transparent 100%);
    pointer-events: none;
}

.offer-section-premium h2 {
    color: #fff;
    font-size: 42px;
    margin-bottom: 25px;
}

.offer-section-premium p {
    color: #cbd5e1;
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 30px;
    line-height: 1.8;
}

.offer-section-premium .urgency {
    color: var(--brand-blue);
    font-weight: 600;
    margin-top: 30px;
    font-size: 16px;
    letter-spacing: 0.5px;
}

/* Glowing Button */
.btn-glow {
    position: relative;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 173, 239, 0.5);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 173, 239, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 173, 239, 0);
    }
}

/* Customizing existing hx-site-title */
.hx-site-title-1 {
    margin-bottom: 60px;
}

.hx-site-title-1 h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.hx-site-title-1 h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--brand-blue);
    border-radius: 2px;
}

.hx-site-title-1 h2::before {
    display: none !important;
}

.hx-site-title-1 p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Accordion refinement */
.faq-accordion .card {
    border-radius: 12px !important;
    border: 1px solid #e2e8f0;
    margin-bottom: 15px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

.faq-accordion .card-header {
    background: #fff;
    padding: 0;
}

.faq-accordion .card-header button {
    padding: 20px 25px;
    font-family: 'Outfit', sans-serif;
    color: var(--brand-dark);
}

.faq-accordion .card-header button:hover,
.faq-accordion .card-header button:focus {
    color: var(--brand-blue);
    background: #f8fafc;
}

.faq-accordion .card-body {
    padding: 0 25px 25px;
    color: var(--text-light);
}

/* Contact Details Info Box */
.contact-info-premium {
    background: #ffffff;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    height: 100%;
}

/* Header Quote Button Contrast Fix */
.header-quote-btn {
    background-color: #fff !important;
    color: #020617 !important;
    padding: 10px 25px !important;
    white-space: nowrap !important;
    border: 2px solid #fff !important;
}

.header-quote-btn:hover {
    background-color: #00ADEF !important;
    color: #fff !important;
    border-color: #00ADEF !important;
    box-shadow: 0 5px 15px rgba(0, 173, 239, 0.4) !important;
}