/* HeadFoot Plugin Styles - EXACT COPY FROM ORIGINAL HTML */

/* Fix horizontal scroll issues */
html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
}

/* WordPress CSS Reset and Conflicts Prevention - Fixed */
.hf-footer-container {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(-50vw + 50%) !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
    clear: both !important;
    overflow-x: hidden !important;
}

.hf-footer {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
}

/* Restore proper spacing and layout */
.hf-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 1.5rem !important;
    overflow-x: hidden !important;
}

/* Color Variables - Primary: #006aff, Secondary: #fea33a */
:root {
    --hf-primary: #006aff;
    --hf-secondary: #fea33a;
    --hf-primary-hover: #0056cc;
    --hf-secondary-hover: #e8941f;
}

/* ========================================
   SIMPLE IMPRESSIVE PRELOADER
   ======================================== */

/* Preloader Container */
/* Preloader Container */
.hf-preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    transition: opacity 0.6s ease-out;

    /* same background as body */
    background: radial-gradient(1200px 800px at 85% 5%, #fff 0, #f3f7ff 45%, var(--bg) 80%) fixed no-repeat;
    position: relative;
}

.hf-preloader:before,
.hf-preloader:after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hf-preloader:before {
    background: radial-gradient(600px 600px at 10% 20%, rgba(12,126,254,.12), transparent 60%),
                radial-gradient(500px 500px at 85% 60%, rgba(254,163,59,.12), transparent 60%);
}

.hf-preloader:after {
    background-image: linear-gradient(transparent 0 98%, rgba(2,23,53,.06) 99%),
                      linear-gradient(90deg, transparent 0 98%, rgba(2,23,53,.06) 99%);
    background-size: 22px 22px, 22px 22px;
    -webkit-mask: radial-gradient(1200px 800px at 60% 20%, #000 40%, transparent 80%);
    mask: radial-gradient(1200px 800px at 60% 20%, #000 40%, transparent 80%);
}

.hf-preloader .decor-wave {
    position: absolute;
    inset: -120px -120px auto -120px;
    opacity: .5;
    filter: contrast(120%) saturate(110%);
    z-index: 0;
}

.hf-preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Cityscape SVG Container */
.hf-preloader-cityscape {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Cityscape SVG */
.hf-preloader-cityscape svg {
    width: 350px;
    height: 120px;
    display: block;
}

/* Bottom-to-top clipping animation - single speed */
.hf-preloader-cityscape svg {
    clip-path: inset(100% 0 0 0);
    animation: hf-cityscape-reveal 2.5s linear forwards;
}

@keyframes hf-cityscape-reveal {
    0% {
        clip-path: inset(100% 0 0 0);
    }
    100% {
        clip-path: inset(0% 0 0 0);
    }
}

/* Preloader Text */
.hf-preloader-text {
    margin-top: 10px;
    font-size: 1.6rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--hf-primary) 0%, var(--hf-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    letter-spacing: 0.5em;
    animation: hf-text-spacing 2.5s ease-out forwards;
}

@keyframes hf-text-spacing {
    0% {
        letter-spacing: 0.2em;
        opacity: 0.7;
    }
    100% {
        letter-spacing: -0.05em;
        opacity: 1;
    }
}

/* Mobile Responsive Text */
@media (max-width: 768px) {
    .hf-preloader-text {
        font-size: 1.2rem;
        margin-top: 10px;
        letter-spacing: 0.4em;
    }

    @keyframes hf-text-spacing {
        0% {
            letter-spacing: 0.2em;
            opacity: 0.7;
        }
        100% {
            letter-spacing: 0.05em;
            opacity: 1;
        }
    }
}

@media (max-width: 480px) {
    .hf-preloader-text {
        font-size: 0.9rem;
        margin-top: 10px;
        letter-spacing: 0.3em;
    }

    @keyframes hf-text-spacing {
        0% {
            letter-spacing: 0.3em;
            opacity: 0.7;
        }
        100% {
            letter-spacing: 0.05em;
            opacity: 1;
        }
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hf-preloader-cityscape svg {
        width: 280px;
        height: 96px;
    }
}

@media (max-width: 480px) {
    .hf-preloader-cityscape svg {
        width: 250px;
        height: 86px;
    }
}

/* Prevent body scroll during preloading */
body.hf-preloader-active {
    overflow: hidden !important;
    height: 100vh !important;
}

/* Hide content during preloading */
body.hf-preloader-active .hf-header,
body.hf-preloader-active .hf-footer,
body.hf-preloader-active main,
body.hf-preloader-active .site-content,
body.hf-preloader-active #content {
    visibility: hidden;
}

/* Show content after preloading */
body.hf-preloader-loaded .hf-header,
body.hf-preloader-loaded .hf-footer,
body.hf-preloader-loaded main,
body.hf-preloader-loaded .site-content,
body.hf-preloader-loaded #content {
    visibility: visible;
    animation: hf-content-reveal 0.6s ease-out;
}

@keyframes hf-content-reveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header Animations - Fixed Shine Effect */
@keyframes hf-shine {
    0% {
        left: -120%;
    }
    100% {
        left: 120%;
    }
}

/* Sticky Header with Height Transitions */
.hf-header {
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hf-header.hf-compact {
    height: auto;
}

.hf-header-content {
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hf-header.hf-compact .hf-header-content {
    height: 3.5rem; /* 56px - reduced ~15-20% from 64px/80px */
}

.hf-logo {
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hf-header.hf-compact .hf-logo {
    height: 2.5rem; /* 40px - reduced ~15-20% from 48px/56px */
}

.hf-menu-logo {
    transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hf-header.hf-compact .hf-menu-logo {
    height: 2.5rem; /* 40px - reduced ~15-20% from 48px */
}

/* Left-to-right shine effect using filters for transparent PNG */
.hf-logo, .hf-menu-logo, .hf-footer-logo {
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    position: relative;
}

.hf-logo-container, .hf-menu-brand, .hf-company-header {
    position: relative;
    overflow: hidden;
}

.hf-logo-container::before, .hf-menu-brand::before, .hf-company-header::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -100%;
    width: 100%;
    height: calc(100% + 20px);
    background: linear-gradient(90deg,
        transparent,
        rgba(255,255,255,0.8),
        rgba(255,255,255,1),
        rgba(255,255,255,0.8),
        transparent
    );
    animation: hf-shine 2.5s ease-in-out infinite;
    z-index: 10;
    pointer-events: none;
    transform: skewX(-20deg);
    mix-blend-mode: overlay;
}

@keyframes hf-shine {
    0% {
        left: -120%;
    }
    100% {
        left: 120%;
    }
}

@keyframes hf-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hf-animate-fade-in-up {
    animation: hf-fadeInUp 0.6s ease-out forwards;
}

/* Slide-in menu animation */
@keyframes hf-slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.hf-slide-in-right {
    animation: hf-slideInRight 0.3s ease-out forwards;
}

/* WordPress override styles - Selective */
.hf-footer p {
    margin: 0 0 25px 0 !important;
    line-height: 1.6 !important;
}

.hf-footer a {
    text-decoration: none !important;
}

.hf-footer button {
    cursor: pointer !important;
}

.hf-footer input {
    outline: none !important;
}

/* Restore proper margins and padding for layout elements */
.hf-company-section, .hf-newsletter, .hf-stats {
    margin-bottom: 4rem !important;
}

.hf-company-info, .hf-nav-column, .hf-stat-card {
    padding: 2rem !important;
}

.hf-contact-info {
    margin-bottom: 1.5rem !important;
}

.hf-contact-item {
    margin-bottom: 1rem !important;
}

/* Custom hover effects for primary colors */
.hf-social-primary:hover {
    background-color: var(--hf-primary) !important;
}

.hf-nav-primary:hover {
    color: var(--hf-primary) !important;
}

.hf-dot-primary {
    background-color: var(--hf-primary);
    opacity: 0.7;
}

.hf-nav-primary:hover .hf-dot-primary {
    background-color: var(--hf-primary) !important;
    opacity: 1;
}

.hf-btn-primary:hover {
    background-color: #f8fafc !important;
}

/* Slide menu animations - OPTIMIZED FOR PERFORMANCE */
.hf-slide-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 9999 !important;
    pointer-events: none;
}

.hf-slide-menu.active {
    pointer-events: all;
}

.hf-menu-backdrop {
    will-change: opacity;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hf-slide-menu.active .hf-menu-backdrop {
    opacity: 1;
}

.hf-menu-panel {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    height: 100vh !important;
    width: 400px !important;
    max-width: 90vw !important;
    background: white !important;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.3) !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: transform;
    overflow: hidden !important;
}

/* Custom scrollbar for menu content only */
.hf-menu-content::-webkit-scrollbar {
    width: 6px;
}

.hf-menu-content::-webkit-scrollbar-track {
    background: transparent;
}

.hf-menu-content::-webkit-scrollbar-thumb {
    background: rgba(0, 106, 255, 0.3);
    border-radius: 3px;
    transition: background 0.3s ease;
}

.hf-menu-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 106, 255, 0.5);
}

/* Firefox scrollbar for menu content */
.hf-menu-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 106, 255, 0.3) transparent;
}

.hf-slide-menu.active .hf-menu-panel {
    transform: translateX(0) !important;
}

/* Premium slide-in effects for menu items */
.hf-menu-item {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hf-slide-menu.active .hf-menu-item:nth-child(1) {
    animation: hf-slideInItem 0.4s ease-out 0.1s forwards;
}
.hf-slide-menu.active .hf-menu-item:nth-child(2) {
    animation: hf-slideInItem 0.4s ease-out 0.15s forwards;
}
.hf-slide-menu.active .hf-menu-item:nth-child(3) {
    animation: hf-slideInItem 0.4s ease-out 0.2s forwards;
}
.hf-slide-menu.active .hf-menu-item:nth-child(4) {
    animation: hf-slideInItem 0.4s ease-out 0.25s forwards;
}
.hf-slide-menu.active .hf-menu-item:nth-child(5) {
    animation: hf-slideInItem 0.4s ease-out 0.3s forwards;
}
.hf-slide-menu.active .hf-menu-item:nth-child(6) {
    animation: hf-slideInItem 0.4s ease-out 0.35s forwards;
}
.hf-slide-menu.active .hf-menu-item:nth-child(7) {
    animation: hf-slideInItem 0.4s ease-out 0.4s forwards;
}
.hf-slide-menu.active .hf-menu-item:nth-child(8) {
    animation: hf-slideInItem 0.4s ease-out 0.45s forwards;
}
.hf-slide-menu.active .hf-menu-item:nth-child(9) {
    animation: hf-slideInItem 0.4s ease-out 0.5s forwards;
}
.hf-slide-menu.active .hf-menu-item:nth-child(10) {
    animation: hf-slideInItem 0.4s ease-out 0.55s forwards;
}
.hf-slide-menu.active .hf-menu-item:nth-child(11) {
    animation: hf-slideInItem 0.4s ease-out 0.6s forwards;
}
.hf-slide-menu.active .hf-menu-item:nth-child(12) {
    animation: hf-slideInItem 0.4s ease-out 0.65s forwards;
}

@keyframes hf-slideInItem {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Optimized menu button animations */
.hf-menu-line {
    will-change: transform, opacity;
    transition: all 0.2s ease;
}

.hf-menu-btn.active .hf-menu-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hf-menu-btn.active .hf-menu-line:nth-child(2) {
    opacity: 0;
}

.hf-menu-btn.active .hf-menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Smooth optimized hover effects */
.hf-menu-item {
    will-change: transform, background-color, box-shadow;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(0) scale(1);
    pointer-events: auto !important;
    cursor: pointer !important;
}

.hf-menu-item:hover {
    transform: translateX(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Ensure menu content allows scrolling */
.hf-menu-content {
    pointer-events: auto !important;
    touch-action: pan-y !important;
    user-select: none;
}

.hf-menu-icon-wrapper {
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1) rotate(0deg);
}

.hf-menu-item:hover .hf-menu-icon-wrapper {
    transform: scale(1.15) rotate(10deg);
}

.hf-menu-title, .hf-menu-subtitle {
    transition: color 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hf-menu-number {
    will-change: transform;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1);
}

.hf-menu-item:hover .hf-menu-number {
    transform: scale(1.1);
}

/* Animated Offers Icon with Contrast Background */
.hf-offers-link {
    position: relative;
    overflow: hidden;
}

.hf-offers-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: hf-offersShine 2s ease-in-out infinite;
}

.hf-offers-icon {
    animation: hf-offersPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@keyframes hf-offersPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.15) rotate(10deg);
    }
    50% {
        transform: scale(1.3) rotate(0deg);
    }
    75% {
        transform: scale(1.15) rotate(-10deg);
    }
}

@keyframes hf-offersShine {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.hf-offers-link:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
}

.hf-offers-link:hover .hf-offers-icon {
    animation-duration: 0.8s;
}

/* Fix footer gap from code-block-2 - AGGRESSIVE */
.hf-footer .code-block,
.hf-footer .code-block-2,
.hf-footer-container .code-block,
.hf-footer-container .code-block-2,
footer .code-block,
footer .code-block-2,
.code-block.code-block-2 {
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Remove any gap after footer */
.hf-footer::after,
.hf-footer-container::after,
footer::after {
    margin: 0 !important;
    padding: 0 !important;
}

/* Responsive breakpoints */
@media (max-width: 320px) {
    .hf-mobile-sm { display: block; }
    .hf-header-container { padding: 0 1rem; }
    .hf-container { padding: 0 1rem !important; }
    .hf-nav-desktop { display: none !important; }
}
@media (min-width: 321px) and (max-width: 375px) {
    .hf-mobile-md { display: block; }
    .hf-header-container { padding: 0 1.5rem; }
    .hf-nav-desktop { display: none !important; }
}
@media (min-width: 376px) and (max-width: 425px) {
    .hf-mobile-lg { display: block; }
    .hf-nav-desktop { display: none !important; }
}
@media (min-width: 426px) and (max-width: 768px) {
    .hf-tablet-sm { display: block; }
    .hf-nav-desktop { display: none !important; }
}
@media (min-width: 769px) and (max-width: 1024px) {
    .hf-tablet-md { display: block; }
    .hf-nav-desktop { display: none !important; }
}
@media (min-width: 1025px) and (max-width: 1440px) {
    .hf-desktop-sm { display: block; }
}
@media (min-width: 1441px) and (max-width: 1920px) {
    .hf-desktop-md { display: block; }
}
@media (min-width: 1921px) {
    .hf-desktop-lg { display: block; }
    .hf-container { max-width: 1600px !important; }
}
