/* wordpress-override.css - Pasteurize Malakos WordPress (Labaid + Elementor) into a Premium Light SaaS Theme */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Global Variables & Colors Override */
:root {
    --theme-primary-color: #0055FB !important;
    --theme-secondary-color: #6366f1 !important;
    --theme-accent-color: #0055FB !important;
    --e-global-color-primary: #0055FB !important;
    --e-global-color-accent: #0055FB !important;
    --wp--preset--color--black: #0f172a !important;
    
    --bg-light: #ffffff;
    --bg-accent: #f8fafc;
    --border-color: #e2e8f0;
    --primary: #0055FB;
    --primary-hover: #0040c7;
    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
}

/* 1. Global Background & Grid Style */
body {
    background-color: #ffffff !important;
    color: #475569 !important;
    font-family: 'Inter', sans-serif !important;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(0, 85, 251, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
    z-index: -2;
    pointer-events: none;
}

/* 2. Global Heading Typography Override */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.entry-title,
.widget-title,
.page-title h1,
.blog-card-title a {
    font-family: 'Poppins', 'Outfit', sans-serif !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
}

/* 3. Header & Dropdown Overrides */
.themesflat-top,
.mobile-call-bar,
.mobile-nav-wrap,
#mainnav-mobi {
    display: none !important;
}

#header.header-default .inner-header,
#header.header-style1 .inner-header,
#header.header-style2 .inner-header,
#header.header-style3 .inner-header,
#header.header-default .inner-header-menu,
#header.header-sticky {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

#mainnav > ul > li > a,
.header-modal-menu-left-btn .text,
header .flat-information li,
header .flat-information li a {
    color: #475569 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
}

#mainnav > ul > li > a:hover,
#mainnav > ul > li.current-menu-item > a,
#mainnav > ul > li.current-menu-ancestor > a {
    color: #0055FB !important;
}

#mainnav > ul > li > a:after {
    background: #0055FB !important;
}

/* Dropdown Menu Box */
#mainnav ul.sub-menu {
    background-color: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 30px -10px rgba(0, 85, 251, 0.08) !important;
    padding: 10px !important;
}

#mainnav ul.sub-menu > li > a {
    color: #475569 !important;
    font-size: 14px !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
}

#mainnav ul.sub-menu > li > a:hover {
    color: #0055FB !important;
    background-color: #f8fafc !important;
    padding-left: 16px !important;
}

/* 4. Button Overrides (Making them Rounded SaaS Pills) */
.btn-header,
.elementor-button,
.tf-button,
.themesflat-button,
input[type="submit"],
button {
    border-radius: 50px !important;
    background: #0055FB !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: none !important;
    padding: 12px 28px !important;
    box-shadow: 0 4px 14px rgba(0, 85, 251, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.btn-header:hover,
.elementor-button:hover,
.tf-button:hover,
.themesflat-button:hover,
input[type="submit"]:hover,
button:hover {
    background: #0040c7 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 85, 251, 0.3) !important;
    color: #ffffff !important;
}

/* 5. Custom Elementor Card Style Wrapper (Boxes & Columns) */
.elementor-widget-icon-box,
.elementor-widget-image-box,
.themesflat-icon-box,
.themesflat-image-box,
.elementor-widget-text-editor.glass-box {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 20px !important;
    padding: 30px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.elementor-widget-icon-box:hover,
.elementor-widget-image-box:hover,
.themesflat-icon-box:hover,
.themesflat-image-box:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 30px -10px rgba(0, 85, 251, 0.08), 0 1px 3px rgba(0, 0, 0, 0.01) !important;
    border-color: rgba(0, 85, 251, 0.25) !important;
}

/* Style the Icons inside the boxes */
.elementor-icon,
.themesflat-icon-box .icon,
.elementor-icon i,
.themesflat-icon-box .icon i {
    color: #0055FB !important;
    fill: #0055FB !important;
}

/* 6. Form Field Overrides (SaaS Input look) */
.form-input,
.wpcf7-form-control-wrap input,
.wpcf7-form-control-wrap select,
.wpcf7-form-control-wrap textarea,
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    color: #0f172a !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14.5px !important;
    width: 100% !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.form-input:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: #0055FB !important;
    box-shadow: 0 0 0 3px rgba(0, 85, 251, 0.1) !important;
}

/* 7. Footer & Bottom Bar (Anchor Style) */
.footer,
.footer_background,
.bottom,
#footer {
    background: #090d16 !important;
    color: #94a3b8 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.footer h2, .footer h3, .footer h4, .footer h5, .footer h6,
.footer .widget-title, .footer-links-col h4 {
    color: #ffffff !important;
}

.footer a,
.bottom a,
.footer-links a,
.footer_background a {
    color: #94a3b8 !important;
    transition: all 0.25s ease !important;
}

.footer a:hover,
.bottom a:hover,
.footer-links a:hover,
.footer_background a:hover {
    color: #0055FB !important;
    padding-left: 4px !important;
}

.footer-copyright,
.bottom .copyright {
    color: #64748b !important;
}

/* 8. Blog Grid and Post Lists */
.post,
.blog-card,
.archive-card,
.elementor-post {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    padding: 20px !important;
}

.post:hover,
.blog-card:hover,
.elementor-post:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 85, 251, 0.08) !important;
    border-color: rgba(0, 85, 251, 0.25) !important;
}

.post-title a,
.entry-title a,
.elementor-post__title a {
    color: #0f172a !important;
    transition: var(--transition) !important;
}

.post-title a:hover,
.entry-title a:hover,
.elementor-post__title a:hover {
    color: #0055FB !important;
}

/* ==========================================
   Malakos Corporate Redesigned Header Overrides
   ========================================== */

/* Specifically override the global button rules for our header menu button */
.corporate-header button.menu-btn {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    width: 48px !important;
    height: 48px !important;
    min-width: unset !important;
    border-radius: 8px !important;
    display: none !important; /* Hidden on desktop by default */
}

/* Force header navigation styles on WordPress subpages */
.corporate-header .nav-link {
    font-family: 'Inter', sans-serif !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    text-decoration: none !important;
}

.corporate-header .nav-link:hover {
    color: #0055FB !important;
}

.corporate-header .dropdown-link {
    font-family: 'Inter', sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: #475569 !important;
    text-decoration: none !important;
}

.corporate-header .dropdown-link:hover {
    color: #0055FB !important;
    background-color: #f8fafc !important;
}

.corporate-header .btn-primary {
    background: #0055FB !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    padding: 8px 18px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 14px rgba(0, 85, 251, 0.25) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.corporate-header .btn-primary:hover {
    background: #0040c7 !important;
    box-shadow: 0 6px 20px rgba(0, 85, 251, 0.35) !important;
    transform: translateY(-2px) !important;
}

/* BREAKPOINTS: Ensure consistent desktop vs mobile behavior on subpages */
@media (min-width: 1101px) {
    .corporate-header button.menu-btn {
        display: none !important;
    }
    .corporate-header nav {
        display: block !important;
    }
}

@media (max-width: 1100px) {
    .corporate-header button.menu-btn {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #0055FB !important;
        color: #ffffff !important;
        box-shadow: 0 4px 10px rgba(0, 85, 251, 0.2) !important;
        width: 48px !important;
        height: 48px !important;
        min-width: unset !important;
        border-radius: 8px !important;
    }
    .corporate-header nav {
        display: none !important;
    }
}

