/* =========================================
   BASE STYLES & VARIABLES
   ========================================= */
:root {
    --primary: #172548;
    --secondary: #2ac2f0;
    --accent: #31363a;
    --light: #f5f5f5;
    --dark: #31363a;
}

body.loading * {
    animation: none !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Microgramma D OT 2', sans-serif;
    color: var(--dark);
    background-color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6, .btn {
    font-family: 'Microgramma D OT 2', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(28px, 5vw, 52px);
}

h2 {
    font-size: clamp(24px, 4vw, 36px);
}

p, input, textarea, label {
    font-size: 16px;
}

span {
    font-size: inherit;
}

h1 span, h2 span {
    font-size: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-center {
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   PRELOADER (LOADING SCREEN)
   ========================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease-out, visibility 0.6s ease-out;
}

#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

#preloader img {
    width: 250px;
    max-width: 80%;
    height: auto;
    animation: pulseLogo 2s infinite ease-in-out;
}

@keyframes pulseLogo {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =========================================
   TOP BAR & NAVIGATION
   ========================================= */
.top-bar {
    background-color: var(--primary);
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    text-align: center;
}

.top-bar p {
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.top-bar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.social-icons-row {
    display: inline-flex;
    gap: 20px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-icons-row a {
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.social-icons-row a:hover {
    background-color: var(--secondary);
    color: white;
    transform: translateY(-3px);
}

.nav-bar {
    background-color: white;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
    position: relative;
    z-index: 1000;
}

.nav-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-bar img {
    height: 60px;
    width: auto;
}

/* Menu Icon */
.menu-icon {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
    z-index: 1001;
}

.menu-icon span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--primary);
    transition: all 0.3s ease;
}

.menu-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 6px);
    background-color: var(--secondary);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
    background-color: var(--secondary);
}

/* Dropdown Menu */
.nav-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: 100%;
    max-width: 300px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-top: 3px solid var(--secondary);
    z-index: 1002;
}

.nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.nav-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    border-bottom: 1px solid #eee;
}

.nav-menu a {
    display: block;
    padding: 15px 25px;
    text-decoration: none;
    color: var(--primary);
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.nav-menu a:hover {
    background-color: var(--light);
    color: var(--secondary);
    padding-left: 35px;
}

.nav-menu .portal-link {
    background-color: var(--primary);
    color: white !important;
    font-weight: bold;
    border-radius: 4px;
    margin: 5px 20px;
    text-align: center;
    padding: 10px 15px !important;
}

.nav-menu .portal-link:hover {
    background-color: var(--secondary);
    padding-left: 15px !important;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    position: relative;
    background-color: var(--primary);
    background-image: url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?q=80&w=2000&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    padding: 80px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(23, 37, 72, 0.85);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.hero-text {
    max-width: 600px;
    text-align: center;
    color: white;
}

.hero h1 {
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero h1 span {
    color: var(--secondary);
    display: block;
}

.hero p {
    font-size: 18px;
    color: #e0e0e0;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Call to Action Box */
.cta-box {
    width: 100%;
    max-width: 400px;
    background-color: var(--accent);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-box h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 5px;
}

.cta-box p {
    color: #b0b0b0;
    font-size: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 15px 30px;
    background-color: var(--secondary);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
}

.btn:hover {
    background-color: #1aa0c9;
    transform: translateY(-2px);
}

/* Hero Divider */
.hero-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #777;
    font-size: 12px;
    font-weight: bold;
    margin: 15px 0;
    width: 100%;
}

.hero-divider::before,
.hero-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #555;
}

.hero-divider:not(:empty)::before {
    margin-right: 10px;
}

.hero-divider:not(:empty)::after {
    margin-left: 10px;
}

/* Hero Buttons */
.btn-hero-call {
    width: 100%;
    background-color: #00bf6f;
    color: white;
    font-size: 20px;
    padding: 14px;
    border-radius: 6px;
    display: flex;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: background 0.3s, transform 0.2s;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-hero-call:hover {
    filter: brightness(90%);
    transform: translateY(-2px);
}

.btn-hero-book.hcp-widget-btn {
    width: 100% !important;
    background-color: var(--secondary) !important;
    border-radius: 6px !important;
    padding: 16px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin-top: 5px;
    text-transform: uppercase;
    border: none !important;
}

.btn-hero-book.hcp-widget-btn:hover {
    background-color: #1aa0c9 !important;
    transform: translateY(-2px);
}

/* Hero Media Queries */
@media (min-width: 1024px) {
    .hero-content {
        flex-direction: row;
        justify-content: space-between;
    }

    .hero-text {
        text-align: left;
    }
}

@media (max-width: 899px) {
    .hero {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .hero-content {
        gap: 15px !important;
    }

    .hero-text h1 {
        margin-bottom: 10px;
    }

    .hero-text p {
        margin-bottom: 10px;
    }

    .cta-box {
        padding: 25px 20px;
        width: 85%;
    }
}

@media (max-width: 480px) {
    .top-bar-container {
        flex-direction: column;
        gap: 10px;
        padding: 5px 0;
    }
}

/* =========================================
   TRUSTED SLIDER SECTION
   ========================================= */
.trusted-section {
    background-color: var(--light);
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
    overflow: hidden;
}

.trusted-section p {
    color: var(--dark);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 14px;
    margin-bottom: 25px;
    text-align: center;
}

.trusted-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.trusted-track {
    display: flex;
    align-items: center;
    gap: 60px;
}

.trusted-track:hover {
    animation-play-state: paused;
}

.trusted-track a {
    text-decoration: none;
    border: none;
    display: inline-block;
    line-height: 0;
    flex-shrink: 0;
}

.trusted-track img {
    height: 40px;
    width: auto;
    filter: grayscale(0%);
    transition: filter 0.3s, transform 0.3s;
    cursor: pointer;
}

.trusted-track img:hover {
    transform: scale(1.1);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* =========================================
   MODERN SERVICES SECTION
   ========================================= */
.modern-services-section {
    padding: 100px 0;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.modern-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 50px;
}

.ms-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s ease;
    will-change: transform, box-shadow;
    display: flex;
    flex-direction: column;
    border: 1px solid transparent;
    height: 100%;
}

.ms-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(23, 37, 72, 0.15);
    border-color: var(--secondary);
}

.ms-image-box {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.ms-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.ms-card:hover .ms-image-box img {
    transform: scale(1.1);
}

.ms-icon-overlay {
    position: absolute;
    bottom: 15px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 2;
    transition: transform 0.3s ease;
}

.ms-card:hover .ms-icon-overlay {
    transform: scale(1.1);
}

.ms-content {
    padding: 35px 25px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.ms-content h3 {
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.ms-content p {
    font-size: 15px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.ms-link {
    margin-top: auto;
    color: var(--secondary);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease;
}

.ms-link:hover {
    gap: 12px;
    color: var(--primary);
}

/* Special Warranty Card */
.ms-card.warranty-card {
    background: linear-gradient(135deg, var(--primary) 0%, #101935 100%);
    color: white;
    border: 2px solid #D4AF37;
}

.ms-card.warranty-card .ms-content h3,
.ms-card.warranty-card .ms-content p {
    color: white;
}

.ms-card.warranty-card .ms-icon-overlay {
    background: #D4AF37;
    color: var(--primary);
}

.ms-card.warranty-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .modern-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .modern-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* =========================================
   SERVICES PAGE (DETAIL)
   ========================================= */
.sp-header {
    background-color: var(--primary);
    padding: 120px 0 60px;
    text-align: center;
    color: white;
}

.sp-header h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.sp-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 0;
}

.sp-sidebar {
    position: sticky;
    top: 100px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    height: fit-content;
    display: none;
}

.sp-nav-link {
    display: block;
    padding: 12px 15px;
    color: var(--dark);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: all 0.3s;
    font-size: 15px;
    font-weight: 600;
}

.sp-nav-link:hover, .sp-nav-link.active {
    background-color: #f0f7ff;
    color: var(--secondary);
    border-left-color: var(--secondary);
    padding-left: 20px;
}

.sp-category-block {
    margin-bottom: 60px;
    scroll-margin-top: 100px;
}

.sp-category-title {
    font-size: 28px;
    color: var(--primary);
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sp-category-title i {
    color: var(--secondary);
}

.sp-service-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.sp-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 8px;
    transition: all 0.3s;
}

.sp-item:hover {
    border-color: var(--secondary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.sp-item h4 {
    color: var(--primary);
    font-size: 18px;
    margin-bottom: 10px;
}

.sp-item p {
    font-size: 14px;
    color: #555;
    margin-bottom: 0;
}

@media (min-width: 992px) {
    .sp-layout {
        grid-template-columns: 300px 1fr;
    }

    .sp-sidebar {
        display: block;
    }
}

@media (min-width: 768px) {
    .sp-service-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   WHAT WE DO - BRAND CONNECTED
   ========================================= */
.what-we-do {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--primary) 0%, #0f1c3a 100%);
    color: white;
    overflow: hidden;
}

.what-we-do .section-header {
    max-width: 650px;
    margin: 0 auto 50px;
    text-align: center;
}

.what-we-do h2 {
    color: white;
}

.what-we-do h2 span {
    color: var(--secondary);
}

.what-we-do p {
    color: #d0d6e4;
}

.scroller-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 70px;
}

.video-track {
    display: flex;
    gap: 28px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.video-track::-webkit-scrollbar {
    display: none;
}

.what-we-do-item {
    flex: 0 0 auto;
    width: 340px;
    height: 480px;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.35s ease;
}

.what-we-do-item:hover {
    transform: translateY(-10px);
}

.what-we-do-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.what-we-do-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(23, 37, 72, 0.85), rgba(23, 37, 72, 0.2));
}

.what-we-do-item .overlay {
    position: absolute;
    bottom: 28px;
    left: 24px;
    z-index: 2;
}

.what-we-do-item h3 {
    font-size: 20px;
    margin-bottom: 6px;
    color: white;
}

.what-we-do-item span {
    font-size: 14px;
    color: var(--secondary);
    letter-spacing: 1px;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--secondary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.nav-btn.prev {
    left: 10px;
}

.nav-btn.next {
    right: 10px;
}

.sound-toggle {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sound-toggle:hover {
    background: var(--secondary);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .scroller-wrapper {
        padding: 0 0 0 20px;
    }

    .what-we-do-item {
        width: 280px;
        height: 400px;
    }

    .nav-btn {
        display: none;
    }

    .video-track {
        padding-right: 40px;
    }
}

/* =========================================
   HOW WE WORK SECTION
   ========================================= */
.how-we-work-section {
    padding: 80px 0;
    background-color: white;
}

.how-we-work-container {
    display: flex;
    flex-direction: row; 
    flex-wrap: wrap;     
    gap: 40px;           
    justify-content: center;
}

.work-step {
    display: flex;
    flex: 1;        
    min-width: 320px; 
    justify-content: center; 
}


.work-step.reverse {
    justify-content: center; 
}

.work-step-content-box {
    width: 100%;
    max-width: 100%; 
    background-color: var(--primary);
    padding: 40px;
    border-radius: 15px;
    color: white;
    box-shadow: 0 10px 25px rgba(23, 37, 72, 0.2);
    position: relative;
    overflow: hidden;
    height: 100%; 
}

.work-step-content-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background-color: var(--secondary);
}

.step-number {
    color: var(--secondary);
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    letter-spacing: 2px;
}

.work-step-content-box h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.work-step-content-box p {
    color: #dbe4eb;
    line-height: 1.6;
}

.how-work-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 50px;
}

.video-wrapper {
    width: 100%;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    border-radius: 15px;
    overflow: hidden;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-step-media-container {
    width: 100%;
}

@media (min-width: 768px) {
    .work-step-media-container {
        width: 50%;
    }
}

@media (max-width: 768px) {
    .work-step,
    .work-step.reverse {
        justify-content: center;
    }

    .work-step-content-box {
        max-width: 100%;
        text-align: center;
    }

    .how-work-cta {
        flex-direction: column;
    }

    .how-work-cta .btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }
}

/* =========================================
   OUR IMAGES (GALLERY) SECTION
   ========================================= */
.our-images-section {
    padding: 80px 0;
    background-color: var(--light);
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.image-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.image-item:hover img {
    transform: scale(1.05);
}

.view-more-container {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.view-all-btn {
    width: 100%;
    max-width: 200px;
    padding: 15px 0;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
    font-weight: bold;
}

.view-all-btn:hover {
    background-color: var(--secondary);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .images-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* =========================================
   BEFORE/AFTER SLIDER SECTION
   ========================================= */
.before-after-section {
    padding: 80px 0;
    background-color: white;
}

.comparison-slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border: 4px solid var(--primary);
    cursor: col-resize;
    touch-action: pan-y;
}

.comparison-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
    border-right: 3px solid white;
}

.img-overlay img {
    height: 100%;
    width: auto;
    max-width: none;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
    border: 3px solid white;
    border-radius: 50%;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.slider-handle::before,
.slider-handle::after {
    content: '';
    display: inline-block;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    margin: 0 2px;
}

.slider-handle::before {
    border-right: 8px solid white;
}

.slider-handle::after {
    border-left: 8px solid white;
}

@media (max-width: 768px) {
    .comparison-slider-container {
        aspect-ratio: 4 / 3;
    }
}

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-item {
    background: white;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary);
    text-align: left;
    transition: color .25s, background .25s;
    width: 100%;
    border: none;
    background: none;
    font-family: inherit;
    font-size: 16px;
}

.faq-question:hover {
    color: var(--secondary);
    background: #f7faff;
}

.faq-question.active {
    background: #f0f7ff;
    color: var(--secondary);
}

.faq-arrow {
    width: 13px;
    height: 13px;
    border-right: 2px solid var(--primary);
    border-bottom: 2px solid var(--primary);
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform .35s ease, border-color .2s ease;
    flex-shrink: 0;
}

.faq-question.active .faq-arrow {
    transform: rotate(-135deg);
    border-color: var(--secondary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: white;
    padding: 0 26px;
    transition: max-height 0.4s ease;
}

.faq-answer.open {
    padding: 18px 26px 26px 26px;
}

.view-all-container {
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid #eee;
}

.btn-view-all {
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    padding: 15px 45px;
    font-weight: bold;
    font-family: inherit;
    border-radius: 6px;
    transition: 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-view-all:hover {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 768px) {
    .faq-question {
        font-size: 14px;
        padding: 18px;
    }

    .faq-answer.open {
        padding: 15px 18px 18px 18px;
    }

    .faq-answer p {
        font-size: 15px;
    }
}

/* =========================================
   FINANCING SECTION
   ========================================= */
.financing-section {
    padding: 80px 0;
    background-color: white;
    border-top: 1px solid #eee;
}

.financing-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.financing-text h3 {
    color: var(--primary);
    margin-bottom: 20px;
    font-size: 24px;
}

.financing-list {
    list-style: none;
    margin: 20px 0 30px 0;
}

.financing-list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 12px;
    color: #555;
}

.financing-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.finance-card {
    background: linear-gradient(135deg, var(--primary) 0%, #1a3c5e 100%);
    color: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: center;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.finance-card h4 {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--secondary);
}

.finance-check {
    font-size: 18px;
    margin: 5px 0;
}

.finance-btn-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.finance-btn-row .btn {
    flex: 1;
    min-width: 200px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
}

.wisetack-btn {
    background-color: #00bf6f !important;
    color: white !important;
    border: none;
}

.wisetack-btn:hover {
    background-color: #00a05d !important;
    transform: translateY(-2px);
    opacity: 1;
}

.btn-finance-details {
    background-color: var(--primary) !important;
    color: white !important;
}

.btn-finance-details:hover {
    background-color: var(--secondary) !important;
    transform: translateY(-2px);
}

.disclaimer {
    font-size: 12px !important;
    color: #999;
    margin-top: 15px;
    line-height: 1.4;
}

@media (min-width: 900px) {
    .financing-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }

    .financing-text {
        width: 55%;
    }

    .financing-image {
        width: 40%;
    }
}

@media (max-width: 600px) {
    .finance-btn-row {
        flex-direction: column;
    }

    .finance-btn-row .btn {
        width: 100%;
    }
}

/* =========================================
   VIDEO SECTION
   ========================================= */
.video-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

/* =========================================
   FOOTER SECTION
   ========================================= */
footer {
    background-color: var(--primary);
    padding: 60px 0 30px;
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 60px;
    width: auto;
    padding: 6px;
    margin-bottom: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.footer-info p {
    margin-bottom: 15px;
    color: #ccc;
}

.footer-form h3 {
    margin-bottom: 20px;
    color: var(--secondary);
}

.form-group {
    margin-bottom: 15px;
}

input, textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid #444;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    font-family: Arial, sans-serif;
}

input::placeholder, textarea::placeholder {
    color: #aaa;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 14px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .footer-logo img {
        margin: 0 auto 20px auto;
        display: block;
    }
}

/* =========================================
   HOUSECALL PRO OVERRIDES
   ========================================= */
.hcp-widget-btn {
    background-color: #0f77cc !important;
    border-radius: 100px !important;
    font-size: 14px !important;
    padding: 12px 20px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* =========================================
   GLOBAL MOBILE FIXES
   ========================================= */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    h1 {
        font-size: 28px !important;
    }

    h2 {
        font-size: 24px !important;
        margin-bottom: 30px !important;
    }

    .hero {
        padding: 50px 0;
    }

    .hero-text {
        text-align: center;
    }

    .top-bar p {
        font-size: 11px;
        line-height: 1.4;
    }

    .services-section,
    .what-we-do-section,
    .how-we-work-section,
    .our-images-section,
    .video-section,
    .before-after-section,
    .faq-section {
        padding: 40px 0;
    }

    .service-image {
        height: 180px;
    }

    .comparison-slider-container {
        aspect-ratio: 1 / 1;
    }

    .cta-box {
        padding: 20px;
        margin-top: 30px;
    }

    .footer-info,
    .footer-form {
        text-align: center;
    }
}

/* =========================================
   FIX: GLOBAL HEADINGS (CENTERED & ROOT VARS)
   ========================================= */
#services h2,
#what-we-do h2,
#how-we-work h2,
#projects-gallery h2,
.video-section h2,
#financing h2,
.before-after-section h2,
#faq-preview h2,
#booking-section h2,
.sp-header h1 {
    text-align: center !important;
    color: var(--primary);
    font-family: 'Microgramma D OT 2', sans-serif;
    font-size: clamp(28px, 5vw, 42px);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 40px;
    position: relative;
    width: 100%;
}

#services h2::after,
#what-we-do h2::after,
#how-we-work h2::after,
#projects-gallery h2::after,
.video-section h2::after,
#financing h2::after,
.before-after-section h2::after,
#faq-preview h2::after,
#booking-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

h1 span, h2 span, .section-header h2 span {
    color: var(--secondary) !important;
}

/* Dark Background Exceptions */
#what-we-do h2,
#booking-section h2,
.sp-header h1 {
    color: #ffffff !important;
}

/* Booking Section Alignment */
.booking-content {
    text-align: center !important;
    align-items: center !important;
    width: 100%;
}

.booking-subtitle {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-content, .hero-text {
    text-align: center !important;
    align-items: center !important;
}