/* ========================================
   Woodall Custom Styles
   ======================================== */

/* CRITICAL: Header must ALWAYS stay visible and fixed at top */
.header {
    background-color: rgb(244, 244, 244) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
}

/* Ensure header container aligns EXACTLY with page content */
.header .container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

/* Bootstrap standard breakpoints for container alignment */
@media (min-width: 576px) {
    .header .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .header .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .header .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .header .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .header .container {
        max-width: 1320px;
    }
}

/* Remove any internal padding from header wrapper that creates gaps */
.header {
    padding: 0 !important;
    border: none !important;
}

/* Prevent ANY class from hiding the header */
.header.sticky,
.header.sticky-autohide,
.header.hide,
.header.transparent-light,
.header.transparent-dark {
    position: fixed !important;
    top: 0 !important;
    transform: translateY(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Header background when scrolled */
.header.scrolled {
    background-color: #ffffff !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

/* Logo hover effect */
.header .header-logo a {
    display: inline-block;
    transition: transform 0.3s ease;
}

.header .header-logo a:hover {
    transform: scale(1.05);
}

/* Force header to always be at top */
body {
    padding-top: 0 !important;
}

/* Add margin to the first section (Hero) to account for fixed header */
.hero.section-2xl {
    margin-top: 80px !important;
    /* Default desktop height */
}

/* Hide any header placeholders */
.header-placeholder,
.header-placeholder-lg,
.header-placeholder-xl {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hero Section Styles */
.hero.section-2xl {
    padding: 0 !important;
    position: relative;
    overflow: hidden !important;
    /* Prevent horizontal scroll */
    z-index: 1 !important;
    /* Lower than header */
    width: 100% !important;
    max-width: 100vw !important;
    /* Ensure it fits viewport */
    box-sizing: border-box;
    left: 0;
    right: 0;
}

.hero .hero-carousel-wrapper {
    overflow: hidden;
    position: relative;
    z-index: 1;
    height: 700px;
}

.hero .hero-carousel {
    height: 100%;
    padding: 0 !important;
    width: 100%;
}

.hero .hero-carousel .owl-stage-outer {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero .hero-carousel .owl-stage {
    height: 100%;
    display: flex;
}

.hero .hero-carousel .owl-item {
    height: 100%;
    min-height: 700px;
}

.hero.section-2xl.section-divider-curve-bottom:before {
    z-index: 2;
    /* Lower than header */
    pointer-events: none;
}

.hero .hero-slide {
    width: 100%;
    min-height: 700px;
    height: 700px;
    display: flex !important;
    align-items: center;
    position: relative;
}

.hero .hero-slide .container {
    background: transparent !important;
    position: relative;
    z-index: 1;
}

.hero .owl-item {
    background-color: transparent !important;
}

.hero .hero-slide[style*="background-image"] {
    background-image: inherit !important;
}

/* Hero Effects */
.hero-slide {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1);
    transition: transform 20s ease;
}

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

.owl-item.active .hero-bg {
    animation: zoomBg 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: -1;
}

.hero-title {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.owl-item.active .hero-title {
    animation: fadeInUp 0.8s forwards 0.5s;
}

@keyframes zoomBg {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Box Custom Styles */
.about-box {
    background-color: #fff !important;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.about-box img {
    display: none !important;
}

/* Reset content positioning since image is gone */
.hoverbox-4.about-box .content {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    padding: 40px 30px !important;
    width: 100% !important;
    height: auto !important;
}

.about-box:hover {
    border-color: #ccc;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* Remove overlay */
.hoverbox-4.about-box:after,
.hoverbox-4.about-box:hover:after,
.hoverbox-4.about-box:focus:after {
    display: none !important;
}

/* Ensure text remains visible/dark */
.hoverbox-4.about-box .content h5 {
    color: #121518 !important;
    margin-bottom: 15px;
}

.hoverbox-4.about-box .content p {
    color: #555 !important;
}

/* Star Rating */
.star-rating {
    display: flex;
    gap: 4px;
    margin-bottom: 15px;
    justify-content: flex-start;
}

.star-rating i {
    color: #FFD700;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.star-rating i.bi-star {
    color: #ddd;
}

/* Social Buttons Custom Styles */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff;
    color: #333;
    font-size: 2rem;
    margin: 0 5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none !important;
}

.social-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.social-btn.facebook:hover {
    background-color: #3b5998;
}

.social-btn.twitter:hover {
    background-color: #1da1f2;
}

.social-btn.pinterest:hover {
    background-color: #bd081c;
}

.social-btn.instagram:hover {
    background-color: #c13584;
}

/* Newsletter Section Custom Styles */
.newsletter-section {
    background-color: #121518;
    color: #fff;
}

.newsletter-section h3 {
    color: #fff;
}

.newsletter-section p {
    color: #a0a0a0;
}

.newsletter-section .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    height: 50px;
}

.newsletter-section .form-control:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #F6862B;
    box-shadow: none;
}

.newsletter-section .form-control::placeholder {
    color: #888;
}

.newsletter-section .button {
    background-color: #F6862B;
    border-color: #F6862B;
    color: #fff;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.newsletter-section .button:hover {
    background-color: #d56a15;
    border-color: #d56a15;
}

/* Clients Section Custom Styles */
.clients-section {
    background-color: #121518;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.clients-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(246, 134, 43, 0.05), transparent 70%);
    pointer-events: none;
}

.clients-section .section-title {
    color: #fff;
    margin-bottom: 50px;
    text-align: center;
}

.clients-section .client-box {
    background: rgb(255, 255, 255);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    margin: 0;
}

.clients-section .client-box:hover {
    background: #fff;
    border-color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.clients-section .client-box img {
    max-height: 90px;
    width: auto !important;
    filter: grayscale(100%) brightness(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.clients-section .client-box:hover img {
    filter: none;
    opacity: 1;
}

/* Owl Carousel Navigation Arrows - White */
.clients-section .owl-nav {
    z-index: 10;
}

.clients-section .owl-nav button.owl-prev,
.clients-section .owl-nav button.owl-next {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px !important;
    transition: all 0.3s ease;
}

.clients-section .owl-nav button.owl-prev:hover,
.clients-section .owl-nav button.owl-next:hover {
    background: #F6862B !important;
    color: #fff !important;
}

/* Card Hover Effect */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
}

/* Floating Language Button */
.lang-floater {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 9999;
    font-family: 'Outfit', sans-serif;
}

.lang-floater .lang-toggle {
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    min-width: 70px;
    height: 44px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 0.85rem;
}

.lang-floater .lang-toggle:hover {
    background: #F6862B;
    transform: scale(1.05);
}

.lang-floater .lang-toggle i {
    font-size: 1rem;
}

.lang-floater .lang-toggle .lang-code {
    letter-spacing: 0.5px;
}

.lang-floater .lang-toggle .flag-icon {
    font-size: 1.2rem;
    line-height: 1;
}

.lang-floater .lang-menu {
    position: absolute;
    top: 50px;
    left: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    padding: 8px 0;
    min-width: 180px;
    display: none;
    overflow: hidden;
    border: 1px solid #eee;
    text-align: left;
}

.lang-floater:hover .lang-menu,
.lang-floater .lang-menu:hover {
    display: block;
    animation: fadeIn 0.2s ease;
}

.lang-floater .lang-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-bottom: 1px solid #f9f9f9;
}

.lang-floater .lang-item .flag-icon {
    font-size: 1.3rem;
    min-width: 24px;
}

.lang-floater .lang-item:last-child {
    border-bottom: none;
}

.lang-floater .lang-item:hover {
    background: #f8f8f8;
    color: #F6862B;
    transform: translateX(3px);
}

.lang-floater .lang-item.active {
    background: rgba(246, 134, 43, 0.1);
    color: #F6862B;
    font-weight: 600;
}

/* Mobile Language Menu Styles */
.mobile-lang-menu {
    display: none !important;
}

/* Header Menu Extra Fix - ensure proper positioning */
.header .header-menu-extra {
    display: flex;
    align-items: center;
}

/* Menu Font Size for screens 1400px and below */
@media (max-width: 1400px) {
    .header .nav .nav-link {
        font-size: 0.9rem;
    }

    .header .nav .nav-dropdown-link {
        font-size: 0.85rem;
    }
}



/* Blog Post Headers - Restore orange line accent */
.col-lg-8 h3,
.col-lg-8 h4,
.col-lg-8 h5,
.col-md-10 h3,
.col-md-10 h4,
.col-md-10 h5 {
    border-right: 3px solid #F6862B;
    padding-right: 15px;
    margin-bottom: 20px;
}

/* Exclude masonry items in archive pages if they use these columns */
.masonry-item h3,
.masonry-item h4,
.masonry-item h5 {
    border-right: none;
    padding-right: 0;
}

/* Restoring "Big Orange Modal" and Button */
.contact-info-cta {
    background: #F6862B;
    background: linear-gradient(135deg, #F6862B 0%, #e06d10 100%);
    border-radius: 16px;
    padding: 60px 40px;
    color: white;
    text-align: center;
    box-shadow: 0 10px 40px rgba(246, 134, 43, 0.2);
    margin-bottom: 60px;
}

.contact-info-cta p.lead {
    color: rgba(255, 255, 255, 0.9);
}

.contact-info-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
    border-radius: 12px;
    height: 100%;
    transition: transform 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.contact-info-item i {
    font-size: 2rem;
    display: block;
    margin-bottom: 15px;
    color: white !important;
}

.contact-info-item a,
.contact-info-item p,
.contact-info-item h6 {
    color: white !important;
    opacity: 0.9;
}

.btn-contact-cta {
    display: inline-block;
    background: white;
    color: #F6862B;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-contact-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: #F6862B;
    text-decoration: none;
}

/* Contact Page Specific Fixes for Form Section (Bottom) */
.contact-info {
    /* Kept for form sidebar if needed */
    background: #F6862B !important;
    color: white !important;
}

.contact-info h3,
.contact-info p,
.contact-info i,
.contact-info a,
.contact-info span {
    color: white !important;
}

.contact-form {
    border-radius: 16px;
}

/* ========================================
   Custom Header Layout for Index Page
   ======================================== */

/* Desktop Header Layout - Logo Right, Menu Center, CTA Left */
@media (min-width: 992px) {
    .header .container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
        padding: 0 15px;
    }

    /* Logo on the Right */
    .header .header-logo {
        order: 3;
        margin: 0;
        padding: 15px 0;
    }

    .header .header-logo img {
        height: 60px;
        width: auto;
        max-width: 200px;
        object-fit: contain;
    }

    /* Menu in the Center */
    .header .header-menu {
        order: 2;
        flex: 1;
        display: flex;
        justify-content: center;
        margin: 0 20px;
    }

    .header .header-menu .nav {
        display: flex;
        align-items: center;
        gap: 25px;
        margin: 0;
    }

    .header .nav-item {
        margin: 0;
    }

    .header .nav-link {
        font-size: 1.1rem;
        font-weight: 500;
        padding: 10px 15px;
        transition: color 0.3s ease;
    }

    .header .nav-link:hover {
        color: #F6862B;
    }

    /* CTA Button on the Left */
    .header .header-menu-extra {
        order: 1;
        margin: 0;
        padding: 0;
    }

    .header .header-menu-extra .button {
        background: #F6862B;
        color: #fff;
        border: none;
        padding: 12px 25px;
        font-size: 0.95rem;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 2px 8px rgba(246, 134, 43, 0.3);
    }

    .header .header-menu-extra .button:hover {
        background: #d56a15;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(246, 134, 43, 0.4);
    }

    /* Hide mobile toggle on desktop */
    .header .header-toggle {
        display: none;
    }
}

/* Tablet adjustments */
@media (min-width: 992px) and (max-width: 1200px) {
    .header .nav-link {
        font-size: 1rem;
        padding: 10px 12px;
    }

    .header .header-menu .nav {
        gap: 15px;
    }

    .header .header-logo img {
        height: 50px;
    }
}

/* Additional Header Improvements */
@media (min-width: 992px) {

    /* Dropdown Menu Styling */
    .header .nav-dropdown {
        background: #ffffff;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border: 1px solid #f0f0f0;
        padding: 10px 0;
        min-width: 250px;
    }

    .header .nav-dropdown-link {
        padding: 12px 20px;
        font-size: 0.95rem;
        transition: all 0.2s ease;
        color: #333;
    }

    .header .nav-dropdown-link:hover {
        background: rgba(246, 134, 43, 0.1);
        color: #F6862B;
        padding-right: 25px;
    }

    /* Active menu item */
    .header .nav-item.active .nav-link,
    .header .nav-link.active {
        color: #F6862B;
        font-weight: 600;
    }

    /* Smooth height transition for header */
    .header {
        transition: all 0.3s ease;
    }

    .header .container {
        min-height: 80px;
    }

    /* When scrolled, make header slightly smaller */
    .header.scrolled .container {
        min-height: 70px;
    }

    .header.scrolled .header-logo img {
        height: 50px;
    }
}

/* ========================================
   Mobile Mode Fixes (Consolidated)
   ======================================== */
@media (max-width: 991.98px) {
    body.header-menu-open {
        overflow: hidden !important;
    }

    .lang-floater {
        display: none !important;
    }

    .header {
        height: 90px !important;
        /* Increased height */
        transform: none !important;
        overflow: visible !important;
        z-index: 10000 !important;
        background: #fff !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }

    .header .container {
        height: 90px !important;
        /* Increased height */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: relative !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }

    .header .header-logo {
        position: absolute !important;
        left: 20px !important;
        /* Move to left side */
        right: auto !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: 10005 !important;
        /* Higher than menu (10001) */
        width: auto !important;
        text-align: left !important;
    }

    .header .header-logo img {
        height: 84px !important;
        width: auto !important;
        max-width: 220px !important;
        object-fit: contain !important;
    }

    .header .header-toggle {
        position: absolute !important;
        right: 15px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 10002 !important;
        margin: 0 !important;
    }

    /* Hide the Get Quote button on mobile */
    .header .header-menu-extra {
        display: none !important;
    }

    /* Full height mobile menu */
    .header .header-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        /* Start off-screen */
        width: 85% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: #fff !important;
        z-index: 10001 !important;
        padding: 90px 20px 30px !important;
        display: block !important;
        visibility: visible !important;
        transition: right 0.3s ease-in-out !important;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1) !important;
        overflow-y: auto !important;
        text-align: right !important;
    }

    .header .header-menu.show {
        right: 0 !important;
    }

    .header .header-menu .nav {
        display: block !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .header .header-menu .nav .nav-item {
        display: block !important;
        width: 100% !important;
        border-bottom: 1px solid #eee !important;
        padding: 12px 0 !important;
    }

    .header .header-menu .nav .nav-item .nav-link {
        font-size: 1.1rem !important;
        font-weight: 500 !important;
        color: #333 !important;
    }

    .hero.section-2xl {
        margin-top: 80px !important;
    }

    .hero-title {
        font-size: 4.2rem !important;
    }

    /* Clients Section Mobile Improvements */
    .clients-section .client-box img {
        max-height: 110px !important;
        transform: scale(1.6);
    }

    /* Move arrows to the sides on mobile */
    .clients-section .owl-carousel .owl-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        height: 0;
        left: 0;
        margin-top: 0 !important;
        z-index: 20;
        pointer-events: none;
    }

    .clients-section .owl-carousel .owl-nav button.owl-prev,
    .clients-section .owl-carousel .owl-nav button.owl-next {
        position: absolute !important;
        pointer-events: auto;
        margin: 0 !important;
        background: #F6862B !important;
        /* Orange for contrast */
        color: #fff !important;
        transform: translateY(-50%) rotate(180deg) !important;
        z-index: 25;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    /* Explicitly position buttons to edges */
    .clients-section .owl-carousel .owl-nav button.owl-next {
        left: -20px !important;
        right: auto !important;
    }

    .clients-section .owl-carousel .owl-nav button.owl-prev {
        right: -20px !important;
        left: auto !important;
    }

    /* Footer Center Fix for Mobile */
    .bg-dark-footer .col-12.col-lg-3:first-child {
        text-align: center !important;
    }
}

/* Video Loader Styles */
.video-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: -1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.video-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}