/*===================================================
    Dexter Cerrajería — Custom Enhancements
    Adds on top of: master.css, color-style.css, slider.css
====================================================*/

:root {
    --bg-dark: #242528 !important;
    --secondary-color: #242528 !important;
    --bg-grey: #f4f5f7 !important;
}

/* =============================================
   TESTIMONIALS — Quote watermark (Global)
   ============================================= */
.testimonial-item {
    overflow: hidden !important; 
}
.testimonial-item .quote-icon {
    right: 10px !important;
    bottom: -20px !important;
    font-size: 140px !important;
    opacity: 0.15 !important;
    z-index: 0 !important;
    transform: scaleX(-1) !important; /* preserve the flip */
}
.testimonial-item p, .testimonial-item .client-info {
    position: relative !important;
    z-index: 2 !important; /* text stays on top of the watermark */
}

.desktop-header {
    display: block;
}
.mobile-header {
    display: none;
}

.menu-right-item .mobile-call-btn {
    background-color: var(--primary-color) !important;
    font-size: 14px;
    font-weight: 700;
    height: 40px;
    padding: 0 20px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    cursor: pointer;
    margin-right: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s, background-color 0.2s;
    text-decoration: none;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.menu-right-item .mobile-call-btn i {
    color: #1a1b1c !important; /* dark phone icon */
    margin-right: 8px;
    font-size: 14px;
}
.menu-right-item .mobile-call-btn span {
    color: #1a1b1c !important;
}
.menu-right-item .mobile-call-btn:hover {
    background-color: #ffa000 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4) !important;
}

/* ===================== LANGUAGE SWITCHER ===================== */
.menu-right-item .lang-switch-btn {
    background-color: transparent !important;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    height: 40px;
    padding: 0 16px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    cursor: pointer;
    margin-right: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
    text-decoration: none;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}
.menu-right-item .lang-switch-btn i {
    margin-right: 6px;
}
.menu-right-item .lang-switch-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

/* ===================== STICKY HEADER ===================== */
.main-header {
    background-color: var(--bg-dark) !important;
    z-index: 999;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

/* Override the yellow accent bar with dark theme */
.main-header-info:before {
    display: none !important;
}

/* Logo text fallback */
.site-logo a {
    font-family: var(--primary-font);
    font-weight: 800;
    font-size: 22px;
    color: #fff !important;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.site-logo a span {
    color: var(--primary-color);
}

/* Nav links */
.nav-menu>li>a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600;
    transition: color 0.2s ease;
}

.nav-menu>li>a:hover,
.nav-menu>li.active>a {
    color: var(--primary-color) !important;
}

/* Call button in header */
.menu-right-item .default-btn {
    background-color: var(--primary-color) !important;
    color: #000 !important;
    font-weight: 700;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-right-item .default-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* ===================== HERO BUTTONS ===================== */
.hero-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent !important;
    color: #25d366 !important;
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    margin-left: 16px;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
    border: 2px solid #25d366 !important;
}

.hero-whatsapp-btn:hover {
    background-color: #25d366 !important;
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3) !important;
}

.slider-btn {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ===================== HOW IT WORKS ===================== */
.step-card {
    background: #fff;
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    border: 2px solid #f0f0f0;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.step-card--accent {
    background: var(--bg-dark);
    border-color: var(--primary-color);
    color: #fff;
}

.step-card--accent h3,
.step-card--accent p {
    color: #fff;
}

.step-number {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #000;
    font-family: var(--primary-font);
    font-weight: 900;
    font-size: 13px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.step-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
    margin-top: 16px;
}

.step-card h3 {
    font-family: var(--primary-font);
    font-weight: 800;
    font-size: 20px;
    color: var(--heading-color);
    margin-bottom: 14px;
}

.step-card p {
    color: var(--body-color);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.step-cta {
    display: inline-block;
    background: var(--primary-color);
    color: #000 !important;
    font-family: var(--primary-font);
    font-weight: 800;
    font-size: 18px;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-top: auto;
}

.step-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.step-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 215, 0, 0.15);
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    margin-top: auto;
}

.step-badge--success {
    background: rgba(37, 211, 102, 0.15);
    color: #1ebe57;
}

/* ===================== MAP SECTION ===================== */
.map-wrapper {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.map-wrapper iframe {
    display: block;
}

/* ===================== PRELOADER ===================== */
#preloader .preloader-inner i {
    animation: pulse-icon 1.2s ease-in-out infinite;
}

@keyframes pulse-icon {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* ===================== WHATSAPP FLOATING BUTTON ===================== */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 30px;
    background-color: #25d366;
    color: #FFF !important;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 2px 2px 12px rgba(37, 211, 102, 0.5);
    z-index: 1000;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
    padding: 0 !important;
}

.whatsapp-float i {
    position: relative !important;
    top: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.whatsapp-float:hover {
    transform: scale(1.12) translateY(-4px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
    color: #fff !important;
}

/* ===================== HERO HEIGHT FIX ===================== */
/* Ensure all slides are full viewport height */
.main-slider .swiper-slide,
.slider-content-wrap {
    min-height: 100vh;
}

@media (max-width: 992px) {

    .main-slider .swiper-slide,
    .slider-content-wrap,
    .video-wrap-main {
        min-height: 70vh;
        height: 70vh;
    }
}

@media (max-width: 767px) {

    .main-slider .swiper-slide,
    .slider-content-wrap,
    .video-wrap-main {
        min-height: 85vh;
        height: 85vh;
    }

    .hero-whatsapp-btn {
        margin-left: 0;
    }
}

/* ===================== SECTION SPACING ===================== */
.mb-50 {
    margin-bottom: 50px !important;
}

/* ===================== SERVICE CARDS ICON ENHANCEMENT ===================== */
.service-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1) !important;
}

/* ===================== SCROLLUP BUTTON ===================== */
#scrollup {
    bottom: 115px !important;
    right: 37px !important;
}

@media (max-width: 991px) {
    #scrollup {
        bottom: 150px !important;
    }
}

.scroll-to-top {
    background-color: var(--primary-color) !important;
    color: #000 !important;
}

/* ===================== ACCESSIBILITY ===================== */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* ===================== HEADER LOGO TEXT STYLE ===================== */
.dexter-logo-text {
    font-family: var(--primary-font);
    font-weight: 900;
    font-size: 24px;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.dexter-logo-text .logo-icon-img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

.dexter-logo-text .logo-title-svg {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
    margin-top: 2px;
}

/* ===================== CONTRAST & BACKGROUND FALLBACKS ===================== */
.quote-section {
    background-color: var(--bg-dark) !important;
}

.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark p,
.bg-dark .counter-content h3,
.bg-dark .counter-content h3 span,
.bg-dark .counter-content h4,
.bg-dark .promo-content h3,
.bg-dark .promo-content p {
    color: #ffffff !important;
}

.bg-dark .sub-heading {
    color: var(--primary-color) !important;
}

/* ===================== HERO BUTTONS ENHANCEMENTS ===================== */
.slider-btn .default-btn,
.slider-btn .hero-whatsapp-btn,
.static-slider-btn-wrap .default-btn,
.static-slider-btn-wrap .hero-whatsapp-btn {
    font-size: 20px !important;
    padding: 16px 36px !important;
    border-radius: 8px !important;
    min-width: 220px;
    height: 60px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 800 !important;
    letter-spacing: 0.5px !important;
}

.slider-btn .default-btn,
.static-slider-btn-wrap .default-btn {
    color: #000000 !important;
}

/* Yellow buttons hover overrides: dark orange background and white text */
.default-btn {
    box-shadow: none !important;
    transition: box-shadow 0.25s ease, transform 0.25s ease, background-color 0.25s ease, color 0.25s ease !important;
}

.default-btn:hover {
    background-color: #ffcc00 !important;
    color: #000000 !important;
    box-shadow: 0 12px 30px rgba(255, 204, 0, 0.6) !important;
    transform: translateY(-2px);
}

.default-btn::before,
.default-btn::after {
    display: none !important;
}

/* Stabilize slider content to prevent horizontal/vertical button shifts */
.slider-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    width: 100% !important;
}

.slider-btn {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 25px !important;
}

.slider-caption.big {
    min-height: 140px;
}

@media (max-width: 767px) {
    .slider-caption.big {
        min-height: auto;
    }
}

/* ===================== CONTRAST & BACKGROUND FALLBACKS ===================== */
/* Clean full-width layout resets for contact and footer sections */
.footer-section,
.footer-wrapper,
.copyright-area,
.quote-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    float: none !important;
    clear: both !important;
    box-sizing: border-box !important;
}

.quote-section {
    background-color: #f8f9fa !important;
    background-image: none !important;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    padding: 100px 0 !important;
}

.quote-section .section-heading h3 {
    color: var(--bg-dark) !important;
}

.quote-section .section-heading h2 {
    color: var(--bg-dark) !important;
}

.quote-section .section-heading p {
    color: #444444 !important;
}

.quote-section .call-info h3 {
    color: var(--bg-dark) !important;
}

.quote-section .call-info h3 span {
    color: var(--primary-color) !important;
}

.quote-section .call-info i {
    color: #ffffff !important;
    background-color: var(--primary-color) !important;
}

.footer-section {
    width: 100% !important;
    max-width: 100% !important;
}

.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark p,
.bg-dark .counter-content h3,
.bg-dark .counter-content h3 span,
.bg-dark .counter-content h4,
.bg-dark .promo-content h3,
.bg-dark .promo-content p {
    color: #ffffff !important;
}

.bg-dark .sub-heading {
    color: var(--primary-color) !important;
}

/* Header Navigation Menu link colors for white backgrounds */
.nav-menu li a {
    color: #1a1b1c !important;
}

.nav-menu li a:hover {
    color: #ffa000 !important;
}

/* Custom circular bump divider at the top of services section */
#services {
    top: 0 !important;
    margin-top: 0 !important;
    padding-top: 60px !important;
    background: radial-gradient(circle at 50% 90%, #2f3138 0%, #242528 70%) !important;
    position: relative !important;
    overflow: hidden !important;
}

#services::after {
    content: "" !important;
    position: absolute !important;
    bottom: -10% !important;
    right: 5% !important;
    width: 500px !important;
    height: 500px !important;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0) 70%) !important;
    border-radius: 50% !important;
    pointer-events: none !important;
    z-index: 1 !important;
    filter: blur(65px) !important;
}

.counter-wrap {
    transform: translateY(0) !important;
    margin-top: 30px !important;
    background-color: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Custom circular bump divider overlay at the bottom of the slider */
.main-slider {
    position: relative !important;
}

.custom-section-divider {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 100;
}

.custom-section-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 2px);
    height: 130px;
    transform: scale(1.02) translateY(2px);
    transform-origin: bottom center;
}

.custom-section-divider svg path {
    fill: var(--bg-dark) !important;
}

#slider-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5 !important;
}

.slider-content-wrap {
    z-index: 150 !important;
}

.slider-section {
    background: linear-gradient(135deg, #ffffff 0%, #f4f6fa 100%) !important;
}

.main-slider,
.main-slider .swiper-slide {
    background-color: transparent !important;
    background: transparent !important;
    position: relative;
}

.main-slider {
    z-index: 10 !important;
}

.main-slider .swiper-slide:not(.swiper-slide-active) {
    opacity: 0 !important;
    pointer-events: none !important;
}

.main-slider .swiper-slide-active {
    opacity: 1 !important;
    z-index: 10 !important;
}

/* Light theme slider text overrides */
.main-slider .slider-caption.big,
.main-slider .slider-caption.big div,
.main-slider .slider-caption.big h1 {
    color: #1a1b1c !important;
}

.main-slider .slider-caption.small,
.main-slider .slider-caption.small div {
    color: #2a2b2d !important;
}

.main-slider .slider-caption.medium,
.main-slider .slider-caption.medium div {
    color: #ffa000 !important;
}

/* Frosted glass panel behind hero text — separates it from images/background elegantly */
.main-slider .slider-content {
    position: relative;
    z-index: 2;
}

.main-slider .slider-text-group {
    position: relative;
    display: inline-block;
    padding: 28px 36px 28px 0 !important;
}

/* Apply drop-shadow directly to the actual text-holding divs. 
   Since these divs are faded in by Swiper animations, the glow will naturally fade in with the text,
   bypassing any CSS transition bugs or clipping issues. */
.main-slider .slider-caption.big div,
.main-slider .slider-caption.big h1 {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.65)) 
            drop-shadow(0 0 35px rgba(255, 255, 255, 0.55)) !important;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.main-slider .slider-caption.medium div {
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 1)) 
            drop-shadow(0 0 35px rgba(255, 255, 255, 0.95)) !important;
}

.main-slider .slider-caption.small div {
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 1)) 
            drop-shadow(0 0 15px rgba(255, 255, 255, 0.95)) !important;
}

/* Light theme pagination dot overrides */
.main-slider .slider-pagination .swiper-pagination-bullet {
    background: #1a1b1c !important;
    opacity: 0.25 !important;
}

.main-slider .slider-pagination .swiper-pagination-bullet-active {
    opacity: 1 !important;
    background: #ffa000 !important;
}

.sticky-header {
    background-color: var(--bg-dark) !important;
    z-index: 9999 !important;
    width: 100%;
    position: fixed;
    left: 0;
    top: 0;
    display: block;
    transform: translateY(-100%);
    transition: transform 0.4s ease-in-out;
}

.sticky-header.sticky-fixed-top {
    transform: translateY(0);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Force counter-item elements to be styled as white cards with centered dark text */
.counter-wrap .counter-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    background-color: #ffffff !important;
    border-radius: 12px !important;
    padding: 35px 25px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    min-width: 270px !important;
    margin: 15px !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}

.counter-wrap .counter-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
}

.counter-wrap .counter-item .counter-icon {
    width: auto !important;
    height: auto !important;
    margin-bottom: 15px !important;
}

.counter-wrap .counter-item .counter-icon i {
    color: var(--bg-dark) !important;
    font-size: 64px !important;
}

.counter-wrap .counter-item .counter-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.counter-wrap .counter-item .counter-content h3,
.counter-wrap .counter-item .counter-content h3 span {
    color: var(--bg-dark) !important;
    font-size: 60px !important;
    font-weight: 800 !important;
    margin-bottom: 8px !important;
}

.counter-wrap .counter-item .counter-content h4 {
    color: var(--bg-dark) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-transform: capitalize !important;
    margin: 0 !important;
}

/* Custom services list styling */
.custom-services-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.custom-services-list li {
    display: flex !important;
    align-items: flex-start !important;
    gap: 15px !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.custom-services-list li:last-child {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.custom-services-list .service-check-icon {
    width: 32px !important;
    height: 32px !important;
    background-color: var(--primary-color) !important;
    color: #000000 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    flex-shrink: 0 !important;
    margin-top: 4px !important;
}

.custom-services-list .service-details h3 {
    font-family: var(--primary-font) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin-bottom: 5px !important;
    line-height: 1.4 !important;
}

.custom-services-list .service-details p {
    font-size: 14px !important;
    color: #a0a5b0 !important;
    margin: 0 !important;
    line-height: 1.6 !important;
}

/* Add responsive spacing class */
@media (min-width: 992px) {
    .pl-30 {
        padding-left: 30px !important;
    }
}

/* About Carousel Styles */
.about-carousel {
    width: 100% !important;
    height: 480px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.about-carousel .swiper-slide {
    width: 100% !important;
    height: 100% !important;
}

.about-carousel img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.about-carousel-pagination {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    display: flex !important;
    gap: 6px !important;
    justify-content: center !important;
    width: auto !important;
}

.about-carousel-pagination .swiper-pagination-bullet {
    background: #ffffff !important;
    opacity: 0.5 !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    margin: 0 !important;
    transition: opacity 0.3s ease, background-color 0.3s ease !important;
}

.about-carousel-pagination .swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    opacity: 1 !important;
}

@media (max-width: 767px) {
    .about-carousel {
        height: 350px !important;
    }
}

/* Brand Marquee Styles */
.brand-scroller-container {
    overflow: hidden !important;
    width: 100% !important;
    padding: 30px 0 !important;
    position: relative !important;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%) !important;
    mask-image: linear-gradient(to right, transparent 0%, #000 15%, #000 85%, transparent 100%) !important;
}

.brand-marquee-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 80px !important;
    /* Spacious gap between larger brand logos */
}

.brand-marquee-list li {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.brand-marquee-item {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.3s ease !important;
    opacity: 0.86 !important;
}

.brand-marquee-item svg {
    transform: scale(1.2) !important;
    /* Make brand logos 20% larger */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.02)) !important;
    transition: transform 0.3s ease, filter 0.3s ease !important;
}

.brand-marquee-item:hover svg {
    transform: scale(1.3) !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08)) !important;
}

/* Skill/Brands Section — Premium Dark Layout */
.skill-section.bg-dark {
    position: relative !important;
    overflow: hidden !important;
}

/* Suppress the template's decorative skewed shapes entirely */
.skill-section::before,
.skill-section::after {
    display: none !important;
}

.skill-section .container {
    position: relative !important;
    z-index: 2 !important;
}

/* Eyebrow label above the heading */
.brand-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 16px;
    opacity: 0.9;
}

/* Marquee container with edge fade-out */
.brand-scroller-container {
    position: relative;
}

.brand-scroller-fade-left,
.brand-scroller-fade-right {
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.brand-scroller-fade-left {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark, #242528) 20%, transparent 100%);
}

.brand-scroller-fade-right {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark, #242528) 20%, transparent 100%);
}

/* Separator between heading and marquee */
.skill-section .brand-scroller-container {
    margin-top: 12px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Custom Brand Marquee Keyframe and Animation */
.scroller[data-animated="true"] .brand-marquee-list {
    width: max-content !important;
    flex-wrap: nowrap !important;
    animation: brandMarqueeScroll 35s linear infinite !important;
}

@keyframes brandMarqueeScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(calc(-50% - 40px), 0, 0);
    }
}

/* Why Choose Us Cards styling */
.why-card {
    background: #ffffff !important;
    border: 1px solid #eaeaea !important;
    border-radius: 12px !important;
    padding: 35px 25px !important;
    text-align: center !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    height: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02) !important;
}

.why-card::before {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: var(--primary-color) !important;
    transform: scaleX(0) !important;
    transition: transform 0.4s ease !important;
    transform-origin: left !important;
}

.why-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(255, 160, 0, 0.2) !important;
}

.why-card:hover::before {
    transform: scaleX(1) !important;
}

.why-icon-wrap {
    width: 70px !important;
    height: 70px !important;
    margin: 0 auto 20px !important;
    background: rgba(255, 160, 0, 0.1) !important;
    /* Soft transparent gold */
    color: var(--primary-color) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 28px !important;
    transition: all 0.4s ease !important;
}

.why-card:hover .why-icon-wrap {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    transform: rotateY(180deg) !important;
}

.why-card h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: var(--bg-dark) !important;
    margin-bottom: 12px !important;
}

.why-card p {
    font-size: 15px !important;
    line-height: 24px !important;
    color: #666666 !important;
    margin: 0 !important;
}

/* Testimonial Section Adjustments */
.testimonial-section.bg-grey {
    background-color: #f7f7f7 !important;
}

.testimonial-item {
    background-color: #1a1b1c !important;
    /* Rich charcoal card */
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 40px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.testimonial-item p {
    color: #b0b3b8 !important;
    /* Readable light grey paragraph */
    font-size: 15px !important;
    line-height: 26px !important;
}

.testimonial-item .client-info h3 {
    color: #ffffff !important;
}

.testimonial-item .testi-thumb {
    display: none !important;
}

.testimonial-item .testi-content .client-info {
    padding-left: 0 !important;
    padding-bottom: 25px !important;
}

/* Nav arrows on testimonial carousel */
.swiper-outside.testi-nav .swiper-nav {
    background-color: #ffffff !important;
    color: var(--bg-dark) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid #eaeaea !important;
}

.swiper-outside.testi-nav .swiper-nav:hover {
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border-color: var(--primary-color) !important;
}

/* Extra top spacing on desktop to clear absolute-positioned quote form overflow */
@media (min-width: 992px) {
    .map-section.bg-white {
        padding-top: 220px !important;
    }
}

/* quote-section: dark base with premium white topology/contour lines */
.quote-section.bg-dark {
    background-color: #242528 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 900 550'%3E%3Cg fill='none' stroke='rgba(255,255,255,0.055)' stroke-width='1.2'%3E%3Cellipse cx='720' cy='480' rx='100' ry='60'/%3E%3Cellipse cx='720' cy='480' rx='200' ry='120'/%3E%3Cellipse cx='720' cy='480' rx='300' ry='185'/%3E%3Cellipse cx='720' cy='480' rx='410' ry='255'/%3E%3Cellipse cx='720' cy='480' rx='520' ry='325'/%3E%3Cellipse cx='720' cy='480' rx='640' ry='400'/%3E%3Cellipse cx='720' cy='480' rx='760' ry='475'/%3E%3C/g%3E%3Cg fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'%3E%3Cellipse cx='120' cy='60' rx='80' ry='50'/%3E%3Cellipse cx='120' cy='60' rx='170' ry='110'/%3E%3Cellipse cx='120' cy='60' rx='270' ry='175'/%3E%3Cellipse cx='120' cy='60' rx='380' ry='245'/%3E%3C/g%3E%3C/svg%3E") !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Explicitly enforce section backgrounds */


.map-section.bg-white {
    background-color: #ffffff !important;
}

/* Quote Form — flat, sharp-cornered, white card */
.quote-form {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 5px 15px rgba(0, 0, 0, 0.1) !important;
    border-radius: 0 !important;
    border: none !important;
    background: #ffffff !important;
}

.quote-form h2 {
    color: var(--bg-dark, #242528) !important;
}

.quote-form #submit.default-btn {
    color: #000000 !important;
}

/* Text colors inside the dark quote-section */
.quote-section.bg-dark .section-heading h2,
.quote-section.bg-dark .section-heading p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Sub-heading brand yellow on dark contact section */
.quote-section.bg-dark .sub-heading {
    color: var(--primary-color) !important;
}

.quote-section.bg-dark .sub-heading::before {
    background-color: var(--primary-color) !important;
}

.quote-section.bg-dark .call-info h3 {
    color: #ffffff !important;
}

.quote-section.bg-dark .call-info h3 span {
    color: var(--primary-color) !important;
}

/* Accessibility: Make all subheadings solid black by default for high contrast on light backgrounds */
.sub-heading {
    color: var(--bg-dark) !important;
}

.sub-heading::before {
    background-color: var(--bg-dark) !important;
}

/* Exception: Keep white/gold subheadings on dark background sections */
.bg-dark .sub-heading {
    color: var(--primary-color) !important;
}

.bg-dark .sub-heading::before {
    background-color: var(--primary-color) !important;
}

/* Elegant transition pattern at the bottom of the service section */
.service-section.bg-white {
    position: relative;
}

.service-section.bg-white>.container {
    position: relative;
    z-index: 1;
}

.service-section.bg-white::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to bottom, transparent 0%, rgba(240, 240, 243, 0.55) 100%);
    z-index: 0;
    pointer-events: none;
}

/* Footer text overrides */
.footer-section,
.footer-section p,
.footer-section span,
.footer-section a,
.footer-section .footer-contact-info li p {
    color: #ffffff !important;
}

.footer-section a:hover {
    color: var(--primary-color) !important;
}

/* ===================== HERO FLOATING IMAGES ===================== */
.hero-floating-images {
    position: absolute;
    right: 18%;
    top: 50%;
    transform: translateY(-55%);
    width: 680px;
    height: 480px;
    z-index: 10 !important;
    pointer-events: none;
}

.hero-img {
    position: absolute;
    max-width: 380px;
    max-height: 380px;
    object-fit: contain;
    opacity: 0;
}

/* Curve positions + infinite gentle floating animations (concave curve, sizing scales up to the right) */
.hero-img-1 {
    left: -40px;
    top: 230px;
    animation: fanOutLeft 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards, floatLeft 7s ease-in-out 1.9s infinite alternate;
}

.hero-img-2 {
    left: 170px;
    top: 170px;
    /* dipped position for curved layout */
    animation: fanOutCenter 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards, floatCenter 9s ease-in-out 1.7s infinite alternate;
}

.hero-img-3 {
    left: 380px;
    top: 10px;
    animation: fanOutRight 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards, floatRight 8s ease-in-out 2.1s infinite alternate;
}

/* Fan Out Animations (Starting from center collapsed point) */
@keyframes fanOutLeft {
    0% {
        opacity: 0;
        transform: scale(0.3) translate(100px, -100px) rotate(-45deg);
    }

    100% {
        opacity: 0.85;
        transform: scale(0.9) translate(-10px, 10px) rotate(-20deg);
    }
}

@keyframes fanOutCenter {
    0% {
        opacity: 0;
        transform: scale(0.3) translate(0, 0) rotate(0deg);
    }

    100% {
        opacity: 0.95;
        transform: scale(1.15) translate(0, 0) rotate(-6deg);
    }
}

@keyframes fanOutRight {
    0% {
        opacity: 0;
        transform: scale(0.3) translate(-100px, 100px) rotate(45deg);
    }

    100% {
        opacity: 0.9;
        transform: scale(1.45) translate(15px, -10px) rotate(15deg);
    }
}

/* Elegant Floating/Hovering (Very gentle loop) */
@keyframes floatLeft {
    0% {
        transform: scale(0.9) translate(-10px, 10px) rotate(-20deg);
    }

    100% {
        transform: scale(0.92) translate(-5px, 2px) rotate(-17deg);
    }
}

@keyframes floatCenter {
    0% {
        transform: scale(1.15) translate(0, 0) rotate(-6deg);
    }

    100% {
        transform: scale(1.13) translate(5px, -8px) rotate(-9deg);
    }
}

@keyframes floatRight {
    0% {
        transform: scale(1.45) translate(15px, -10px) rotate(15deg);
    }

    100% {
        transform: scale(1.47) translate(8px, -2px) rotate(18deg);
    }
}

/* ==========================================================================
   Responsive Refactor (Mobile & Tablet Optimization)
   ========================================================================== */

/* Tablet (max-width: 991px) */
@media (max-width: 991px) {
    .main-header-wapper {
        grid-template-columns: auto 1fr !important;
    }

    /* Hide hero slider pagination dots on tablet and mobile */
    .main-slider .slider-pagination {
        display: none !important;
    }

    /* Header Logo Scaling */
    .logo-icon-img {
        height: 38px !important;
    }
    .logo-title-svg {
        height: 42px !important;
    }


    /* Global Padding Reduction for Tablet */
    .padding {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }
    .padding-bottom {
        padding-bottom: 80px !important;
    }

    /* About Section — reorder: text first, carousel second on tablet */
    .about-section .row {
        flex-direction: column-reverse !important;
    }
    .about-section .col-lg-5 {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 30px;
    }
    .about-section .col-lg-7 {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
    /* Header Logo Scaling */
    .logo-icon-img {
        height: 32px !important;
    }
    .logo-title-svg {
        height: 34px !important;
        margin-top: 1px !important;
    }
    .dexter-logo-text {
        gap: 6px !important;
    }

    /* Main Navigation toggle spacing */
    .mobile-menu-icon {
        margin-top: 5px;
    }

    /* =============================================
       HERO / SLIDER — Centered Elegance
       ============================================= */
    .slider-content-wrap {
        text-align: center !important;
    }
    .main-slider .slider-text-group {
        padding: 0 15px !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin-top: -20px; /* Less wasted space at top */
    }
    .main-slider .slider-caption h1,
    .main-slider .slider-caption.big div {
        font-size: 32px !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }
    .main-slider .slider-caption.medium div {
        font-size: 16px !important;
        text-align: center !important;
        margin-bottom: 5px;
    }
    .main-slider .slider-caption.small div {
        font-size: 16px !important;
        font-weight: 500 !important;
        line-height: 1.5 !important;
        text-align: center !important;
        margin-top: 12px;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    /* Hero Buttons — stacked, uniform width, centered */
    .slider-btn {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 12px !important;
        margin-top: 22px !important;
        width: 100% !important;
    }
    .slider-btn a {
        width: 260px !important;
        max-width: 90% !important;
        text-align: center !important;
        justify-content: center !important;
        margin: 0 !important;
        display: inline-flex !important;
    }

    /* Reduce drop-shadow blur on small screens so text stays crisp */
    .main-slider .slider-caption.big div {
        filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.7)) !important;
    }
    .main-slider .slider-caption.medium div {
        filter: drop-shadow(0 0 4px rgba(255, 255, 255, 1)) drop-shadow(0 0 15px rgba(255, 255, 255, 0.9)) !important;
    }


    /* =============================================
       GLOBAL SPACING — Mobile
       ============================================= */
    .padding {
        padding-top: 55px !important;
        padding-bottom: 55px !important;
    }
    .padding-bottom {
        padding-bottom: 55px !important;
    }
    .pt-120 {
        padding-top: 55px !important;
    }

    /* Section Headings */
    .section-heading h2 {
        font-size: 28px !important;
        line-height: 1.25 !important;
    }
    .section-heading h3.sub-heading {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }

    /* =============================================
       SERVICES — Fix ugly gap between 2 col lists
       ============================================= */
    #services {
        position: relative !important;
        z-index: 10 !important;
    }
    #services .row {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }
    #services .col-lg-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    /* Remove the left padding on the second column so items align flush */
    .services-list-wrap.pl-30 {
        padding-left: 0 !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    /* Ensure the first list connects seamlessly with the second list */
    ul.custom-services-list.mb-30 {
        margin-bottom: 18px !important;
    }
    /* Add the border back to the last item of the first list on mobile! */
    #services .col-lg-6:first-child .custom-services-list li:last-child {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
        margin-bottom: 18px !important;
        padding-bottom: 12px !important;
    }
    /* Tighten list item spacing on mobile */
    .custom-services-list li {
        margin-bottom: 18px !important;
        padding-bottom: 12px !important;
        gap: 12px !important;
    }
    .custom-services-list .service-details h3 {
        font-size: 17px !important;
    }

    /* Counter / Stats grid to stack nicely */
    .counter-wrap {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }
    .counter-wrap .counter-item {
        min-width: 100% !important;
        margin: 0 !important;
        padding: 22px 18px !important;
    }
    .counter-wrap .counter-item .counter-content h3 {
        font-size: 40px !important;
    }

    /* =============================================
       ABOUT SECTION — Carousel below text on mobile
       ============================================= */
    .about-section .row {
        display: flex !important;
        flex-direction: column-reverse !important;
    }
    .about-section .col-lg-5 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-top: 30px;
    }
    .about-section .col-lg-7 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    .about-carousel {
        margin-bottom: 0 !important;
        border-radius: 12px;
        overflow: hidden;
    }
    .about-carousel img {
        border-radius: 12px;
    }

    /* About section — centered "Contactar Ahora" + phone info */
    .about-section .btn-group {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 15px !important;
        text-align: center !important;
    }
    .about-section .btn-group .default-btn {
        width: 260px !important;
        max-width: 90% !important;
        text-align: center !important;
        justify-content: center !important;
    }
    .about-section .btn-group .call-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-left: 0 !important;
    }
    .about-section .btn-group .call-info i {
        margin-bottom: 5px;
    }

    /* Promo list items tighter */
    .promo-list li {
        padding: 15px !important;
    }
    .promo-list .promo-content h3 {
        font-size: 18px !important;
    }
    .promo-list .promo-content p {
        font-size: 15px !important;
    }

    /* Check list items */
    .check-list li {
        font-size: 15px !important;
    }

    /* =============================================
       WHY CHOOSE US CARDS
       ============================================= */
    .service-section .row {
        gap: 15px !important;
    }
    .why-card {
        padding: 25px 20px !important;
    }
    .why-card h3 {
        font-size: 19px !important;
    }
    .why-card p {
        font-size: 15px !important;
    }

    /* =============================================
       TESTIMONIALS
       ============================================= */
    .testimonial-carousel .testimonial-item {
        padding: 22px 18px !important;
    }
    .testi-content p {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }
    /* Hide the large left/right nav arrows on mobile — dots suffice */
    .testi-nav .swiper-nav {
        display: none !important;
    }

    /* =============================================
       CONTACT / QUOTE SECTION
       ============================================= */
    .quote-section .col-lg-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    .quote-section .section-heading {
        text-align: center !important;
    }
    .quote-section .section-heading h2,
    .quote-section .section-heading p {
        text-align: center !important;
    }
    .quote-section .desktop-header {
        display: none !important;
    }
    .quote-section .mobile-header {
        display: block !important;
    }
    .quote-section .section-heading h3.sub-heading {
        margin-left: auto !important;
        margin-right: auto !important;
        padding-right: 0 !important;
    }
    .quote-section .section-heading h2 br {
        display: block !important;
    }
    .quote-section .call-info {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: left !important;
        margin-bottom: 25px;
    }
    .quote-form {
        padding: 25px 18px !important;
    }

    /* =============================================
       MAP / COVERAGE
       ============================================= */
    .map-section {
        margin-top: 60px !important;
    }
    .map-wrapper iframe {
        height: 300px !important;
    }

    /* =============================================
       BRAND SCROLLER
       ============================================= */
    .brand-marquee-item svg {
        max-height: 40px !important;
        width: 120px !important;
    }
    .skill-section .section-heading h2 {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }

    /* =============================================
       FOOTER
       ============================================= */
    .footer-widget {
        margin-bottom: 35px !important;
        text-align: center;
    }
    .footer-links {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .footer-contact-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .copyright-area {
        font-size: 13px !important;
        padding: 15px 0 !important;
        text-align: center;
    }

    /* WhatsApp floating button — slightly smaller on mobile */
    .whatsapp-float {
        width: 52px !important;
        height: 52px !important;
        font-size: 26px !important;
        bottom: 20px !important;
        right: 18px !important;
    }
    
    /* Reposition scrollup to perfectly stack above WhatsApp on mobile */
    #scrollup {
        bottom: 82px !important; /* 20px bottom + 52px height + 10px gap */
        right: 21.5px !important; /* Horizontally center it (width 45) with the 52px WA button */
    }
}

/* Extra small mobile devices (≤ 480px) */
@media (max-width: 480px) {
    .main-slider .slider-caption h1,
    .main-slider .slider-caption.big div {
        font-size: 27px !important;
    }
    .main-slider .slider-caption.medium div {
        font-size: 14px !important;
    }
    .section-heading h2 {
        font-size: 24px !important;
    }
    .slider-btn a {
        width: 240px !important;
    }
    .about-section .btn-group .default-btn {
        width: 240px !important;
    }
    .counter-wrap .counter-item .counter-content h3 {
        font-size: 36px !important;
    }
}

/* ==========================================================================
   Laptop, Tablet, and Mobile Hero Centering (<= 1400px)
   ========================================================================== */
@media (max-width: 1400px) {
    .slider-btn {
        justify-content: center !important;
    }
    .slider-btn .hero-whatsapp-btn {
        background-color: #25d366 !important;
        color: #fff !important;
        border-color: #25d366 !important;
        margin-left: 0 !important;
    }
}

/* ==========================================================================
   Scaled desktop-style layout for medium screens (651px to 1200px)
   ========================================================================== */
@media (min-width: 651px) and (max-width: 1200px) {
    .hero-floating-images {
        position: absolute !important;
        right: 0px !important;
        top: 10% !important;
        left: auto !important;
        bottom: auto !important;
        width: 750px !important;
        height: 480px !important;
        transform-origin: right center !important;
        transform: scale(0.65) !important;
        display: block !important;
        z-index: 1 !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hero-floating-images {
        transform: scale(0.48) !important;
        top: 2% !important;
        right: 30px !important;
    }
}

@media (min-width: 651px) and (max-width: 767px) {
    /* Define active wiggle animations for this range */
    @keyframes floatLeftWiggle {
        0% { transform: scale(0.9) translate(-22px, 18px) rotate(-22deg); }
        100% { transform: scale(0.92) translate(12px, -12px) rotate(-15deg); }
    }
    @keyframes floatCenterWiggle {
        0% { transform: scale(1.15) translate(-12px, 18px) rotate(-9deg); }
        100% { transform: scale(1.13) translate(18px, -18px) rotate(-3deg); }
    }
    @keyframes floatRightWiggle {
        0% { transform: scale(1.45) translate(-18px, 18px) rotate(12deg); }
        100% { transform: scale(1.47) translate(18px, -18px) rotate(20deg); }
    }

    .hero-floating-images {
        left: 50% !important;
        right: auto !important;
        top: auto !important;
        bottom: 25px !important;
        transform-origin: center center !important;
        transform: translate(-50%, 0) scale(0.55) !important; /* Made bigger */
        z-index: 0 !important;
        opacity: 0.8 !important;
    }
    
    /* Apply active wiggle animations and override default desktop opacity: 0 */
    .hero-img-1 { animation: floatLeftWiggle 6s ease-in-out infinite alternate !important; opacity: 0.85 !important; }
    .hero-img-2 { animation: floatCenterWiggle 8s ease-in-out infinite alternate !important; opacity: 0.6 !important; }
    .hero-img-3 { animation: floatRightWiggle 7s ease-in-out infinite alternate !important; opacity: 0.7 !important; }
}

/* ==========================================================================
   Hero Floating Images — peek UP from bottom (<= 650px)
   ========================================================================== */
@media (max-width: 650px) {
    /* Mobile-specific floating keyframes to preserve scaling without freezing */
    @keyframes floatLeftMobile {
        0% { transform: scale(1.2) translate(-10px, 20px) rotate(-15deg); }
        100% { transform: scale(1.22) translate(5px, -5px) rotate(-10deg); }
    }
    /* Centered middle image keyframes */
    @keyframes floatCenterMobile {
        0% { transform: translate(-50%, 0) scale(1.3) translate(0px, -5px) rotate(-5deg); }
        100% { transform: translate(-50%, 0) scale(1.32) translate(10px, -20px) rotate(-8deg); }
    }
    @keyframes floatRightMobile {
        0% { transform: scale(1.2) translate(15px, -15px) rotate(12deg); }
        100% { transform: scale(1.22) translate(5px, 5px) rotate(15deg); }
    }

    .hero-floating-images {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        transform: none !important;
        display: block !important;
        z-index: 0 !important; /* Ensure they stay behind buttons */
        pointer-events: none;
    }
    .hero-img {
        /* Fluid scaling: larger at 650px (approx 247px), scaling down to 200px at 492px width and below */
        max-height: clamp(200px, 38vw, 260px) !important;
    }
    .hero-img-1 {
        top: auto !important;
        bottom: -45px !important;
        left: -15px !important;
        right: auto !important;
        transform: scale(1.2) rotate(-15deg);
        animation: floatLeftMobile 7s ease-in-out infinite alternate !important;
        opacity: 0.8 !important;
    }
    .hero-img-2 {
        top: auto !important;
        bottom: -68px !important; /* Centered, lower in y-axis than others */
        left: 50% !important;
        right: auto !important;
        transform: translate(-50%, 0) scale(1.3) rotate(-5deg);
        animation: floatCenterMobile 9s ease-in-out infinite alternate !important;
        opacity: 0.6 !important;
    }
    .hero-img-3 {
        top: auto !important;
        bottom: -40px !important;
        left: auto !important;
        right: -15px !important;
        transform: scale(1.2) rotate(12deg);
        animation: floatRightMobile 8s ease-in-out infinite alternate !important;
        opacity: 0.7 !important;
    }
}

/* Header Padding & Logo spacing for all viewports <= 1200px */
@media (max-width: 1200px) {
    .main-header-wapper {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }
    .site-logo {
        padding-right: 30px !important;
    }
}

/* Laptop Menu Formatting (992px to 1200px) */
@media (min-width: 992px) and (max-width: 1200px) {
    .main-header-wapper {
        grid-template-columns: auto 1fr !important;
    }
    .header-menu-wrap {
        padding-left: 20px !important;
    }
    .header-menu-wrap ul li {
        margin-right: 12px !important;
    }
    .logo-icon-img {
        height: 36px !important;
    }
    .logo-title-svg {
        height: 40px !important;
    }
}

/* ===================== COOKIE BANNER ===================== */
#cookie-consent-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background-color: var(--bg-dark);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: opacity 0.3s ease;
}

#cookie-consent-banner .cookie-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #cbd5e1;
    text-align: center;
}

#cookie-consent-banner .cookie-content a {
    color: var(--primary-color, #ffa000);
    text-decoration: underline;
    font-weight: 600;
}

#cookie-consent-banner .cookie-buttons {
    display: flex;
    justify-content: center;
    width: 100%;
}

#cookie-consent-banner .cookie-buttons button {
    padding: 10px 25px;
    font-size: 14px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    background-color: var(--primary-color, #ffa000);
    color: var(--bg-dark);
    font-weight: 700;
    transition: all 0.3s ease;
}

#cookie-consent-banner .cookie-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 160, 0, 0.4);
}

@media (min-width: 768px) {
    #cookie-consent-banner {
        flex-direction: row;
        justify-content: space-between;
        padding: 20px 30px;
    }
    #cookie-consent-banner .cookie-content p {
        text-align: left;
    }
    #cookie-consent-banner .cookie-buttons {
        width: auto;
    }
}

/* =============================================
   HEADING HIGHLIGHT UNDERLINE (.hl) RESPONSIVE FIX
   ============================================= */
.section-heading h2 span.hl {
    display: inline-block;
    position: relative;
    z-index: 1;
    line-height: inherit;
}

.section-heading h2 span.hl:before {
    bottom: 3px !important;
    height: 6px !important;
    border-radius: 3px;
}

@media (max-width: 770px) {
    .section-heading h2 span.hl:before {
        bottom: 1px !important;
        height: 4px !important;
    }
    .section-heading h2 br {
        display: inline !important;
        content: ' ' !important;
    }
    .section-heading h2 span.hl {
        margin-right: 0.12em;
    }
}

@media (max-width: 480px) {
    .section-heading h2 span.hl:before {
        bottom: 0px !important;
        height: 3px !important;
    }
    .section-heading h2 span.hl {
        margin-right: 0.1em;
    }
}