/*
Theme Name:   DataDSS BDLWC Custom Theme
Description:  A theme designed and developed for Bangladesh Labware Corporation
Author:       DataDSS LTD
Author URL:   https://datadss.com/
Template:     labaid
Version:      1.0.0
Tested up to: 5.8.0
Requires PHP: 5.6
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  bdlwc-theme
*/

/* =========================================================
   BDLWC HEADER CONTROL PANEL
   Keep the theme header as-is, only control styling here
========================================================= */

:root {
    /* LOGO */
    --bdlwc-logo-width-desktop: 420px;
    --bdlwc-logo-width-tablet: 300px;
    --bdlwc-logo-width-mobile: 220px;

    /* BOTTOM BAR */
    --bdlwc-bottom-bar-bg: #37BEEB;

    /* MENU TYPOGRAPHY */
    --bdlwc-menu-font-family: "Montserrat", sans-serif;
    --bdlwc-menu-font-size: 16px;
    --bdlwc-submenu-font-size: 15px;
    --bdlwc-menu-font-weight: 600;

    /* MENU COLORS */
    --bdlwc-menu-color: #142441;
    --bdlwc-menu-hover-color: #fee100;
    --bdlwc-submenu-color: #142441;
    --bdlwc-submenu-hover-color: #fee100;

    /* MENU SPACING */
    --bdlwc-menu-item-padding-x: 18px;
    --bdlwc-menu-item-padding-y: 14px;

    /* SOCIAL ICONS */
    --bdlwc-social-gap: 12px;
    --bdlwc-social-icon-size: 18px;
    --bdlwc-facebook-icon-size: 20px;
    --bdlwc-social-hitbox: 28px;
}

/* =========================================================
   LOGO SIZE CONTROL
========================================================= */
#header #logo a img,
#header .logo a img,
#header .site-logo {
    max-width: var(--bdlwc-logo-width-desktop) !important;
    width: 100%;
    height: auto;
    display: block;
}

/* =========================================================
   BOTTOM BAR BACKGROUND
========================================================= */
#header .inner-header-menu {
    background: var(--bdlwc-bottom-bar-bg) !important;
}

/* =========================================================
   MAIN MENU TYPOGRAPHY + COLOR
========================================================= */
#header .inner-header-menu #mainnav > ul {
    display: flex;
    align-items: center;
}

#header .inner-header-menu #mainnav > ul > li {
    display: flex;
    align-items: center;
    margin: 0;
}

#header .inner-header-menu #mainnav > ul > li > a {
    font-family: var(--bdlwc-menu-font-family) !important;
    font-size: var(--bdlwc-menu-font-size) !important;
    font-weight: var(--bdlwc-menu-font-weight) !important;
    color: var(--bdlwc-menu-color) !important;
    padding-left: var(--bdlwc-menu-item-padding-x) !important;
    padding-right: var(--bdlwc-menu-item-padding-x) !important;
    padding-top: var(--bdlwc-menu-item-padding-y) !important;
    padding-bottom: var(--bdlwc-menu-item-padding-y) !important;
    line-height: 1.2 !important;
}

/* Hover / active menu item */
#header .inner-header-menu #mainnav > ul > li:hover > a,
#header .inner-header-menu #mainnav > ul > li.current-menu-item > a,
#header .inner-header-menu #mainnav > ul > li.current-menu-ancestor > a,
#header .inner-header-menu #mainnav > ul > li.current-page-item > a,
#header .inner-header-menu #mainnav > ul > li.current-page-ancestor > a {
    color: var(--bdlwc-menu-hover-color) !important;
}

/* =========================================================
   SUBMENU TYPOGRAPHY + COLOR
   Keeps dropdown style, only changes text appearance
========================================================= */
#header .inner-header-menu #mainnav ul.sub-menu > li > a {
    font-family: var(--bdlwc-menu-font-family) !important;
    font-size: var(--bdlwc-submenu-font-size) !important;
    font-weight: var(--bdlwc-menu-font-weight) !important;
    color: var(--bdlwc-submenu-color) !important;
}

#header .inner-header-menu #mainnav ul.sub-menu > li:hover > a,
#header .inner-header-menu #mainnav ul.sub-menu > li.current-menu-item > a {
    color: var(--bdlwc-submenu-hover-color) !important;
}

/* =========================================================
   BOTTOM BAR SOCIAL ICONS
========================================================= */
#header .inner-header-menu .themesflat-socials,
#header .inner-header-menu .socials {
    display: flex;
    align-items: center;
    gap: var(--bdlwc-social-gap);
    height: 100%;
}

#header .inner-header-menu .themesflat-socials li,
#header .inner-header-menu .socials li {
    display: flex;
    align-items: center;
    margin: 0;
}

#header .inner-header-menu .themesflat-socials li a,
#header .inner-header-menu .socials li a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: var(--bdlwc-social-hitbox);
    min-height: var(--bdlwc-social-hitbox);
    padding: 0 !important;
    line-height: 1 !important;
    text-decoration: none;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

#header .inner-header-menu .themesflat-socials li a:hover,
#header .inner-header-menu .socials li a:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

/* Make header social icons look more vivid */
#header .inner-header-menu .themesflat-socials li a,
#header .inner-header-menu .socials li a,
#header .inner-header-menu .themesflat-socials li a i,
#header .inner-header-menu .socials li a i,
#header .inner-header-menu .themesflat-socials li a svg,
#header .inner-header-menu .socials li a svg {
    opacity: 1 !important;
}

/* Default size for all icons */
#header .inner-header-menu .themesflat-socials li a i,
#header .inner-header-menu .socials li a i,
#header .inner-header-menu .themesflat-socials li a svg,
#header .inner-header-menu .socials li a svg {
    display: block !important;
    font-size: var(--bdlwc-social-icon-size) !important;
    width: var(--bdlwc-social-icon-size) !important;
    height: var(--bdlwc-social-icon-size) !important;
    line-height: 1 !important;
    vertical-align: middle !important;
}

/* Official brand colors by link */
#header .inner-header-menu .themesflat-socials a[href*="facebook.com"],
#header .inner-header-menu .socials a[href*="facebook.com"] {
    color: #1877f2 !important;
}

#header .inner-header-menu .themesflat-socials a[href*="instagram.com"],
#header .inner-header-menu .socials a[href*="instagram.com"] {
    color: #e4405f !important;
}

#header .inner-header-menu .themesflat-socials a[href*="linkedin.com"],
#header .inner-header-menu .socials a[href*="linkedin.com"] {
    color: #0a66c2 !important;
}

#header .inner-header-menu .themesflat-socials a[href*="twitter.com"],
#header .inner-header-menu .socials a[href*="twitter.com"],
#header .inner-header-menu .themesflat-socials a[href*="x.com"],
#header .inner-header-menu .socials a[href*="x.com"] {
    color: #000000 !important;
}

#header .inner-header-menu .themesflat-socials a[href*="youtube.com"],
#header .inner-header-menu .socials a[href*="youtube.com"] {
    color: #ff0000 !important;
}

#header .inner-header-menu .themesflat-socials a[href*="pinterest.com"],
#header .inner-header-menu .socials a[href*="pinterest.com"] {
    color: #e60023 !important;
}

#header .inner-header-menu .themesflat-socials a[href*="whatsapp.com"],
#header .inner-header-menu .socials a[href*="whatsapp.com"],
#header .inner-header-menu .themesflat-socials a[href*="wa.me"],
#header .inner-header-menu .socials a[href*="wa.me"] {
    color: #25d366 !important;
}

#header .inner-header-menu .themesflat-socials a[href*="tiktok.com"],
#header .inner-header-menu .socials a[href*="tiktok.com"] {
    color: #111111 !important;
}

/* =========================================================
   FACEBOOK ICON
   Supports both approaches:
   1) i.fa-brands.fa-square-facebook
   2) original i.icon-labaid-facebook converted by CSS
========================================================= */

/* If Font Awesome class is already present */
#header .inner-header-menu .themesflat-socials li a i.fa-brands.fa-square-facebook,
#header .inner-header-menu .socials li a i.fa-brands.fa-square-facebook {
    display: block !important;
    font-size: var(--bdlwc-facebook-icon-size) !important;
    width: var(--bdlwc-facebook-icon-size) !important;
    height: var(--bdlwc-facebook-icon-size) !important;
    line-height: 1 !important;
    color: #1877f2 !important;
}

/* If theme still outputs the old icon class, replace it visually with FA square facebook */
#header .inner-header-menu .themesflat-socials li.facebook a i.icon-labaid-facebook,
#header .inner-header-menu .socials li.facebook a i.icon-labaid-facebook {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0 !important;
    width: var(--bdlwc-facebook-icon-size) !important;
    height: var(--bdlwc-facebook-icon-size) !important;
    line-height: 1 !important;
    position: relative;
}

#header .inner-header-menu .themesflat-socials li.facebook a i.icon-labaid-facebook::before,
#header .inner-header-menu .socials li.facebook a i.icon-labaid-facebook::before {
    content: "\f082"; /* fa-square-facebook */
    font-family: "Font Awesome 6 Brands" !important;
    font-weight: 400 !important;
    font-style: normal !important;
    speak: never;
    display: block !important;
    font-size: var(--bdlwc-facebook-icon-size) !important;
    line-height: 1 !important;
    color: #1877f2 !important;
}

/* =========================================================
   RESPONSIVE LOGO CONTROL
========================================================= */
@media only screen and (max-width: 1199px) {
    #header #logo a img,
    #header .logo a img,
    #header .site-logo {
        max-width: var(--bdlwc-logo-width-tablet) !important;
    }
}

@media only screen and (max-width: 767px) {
    #header #logo a img,
    #header .logo a img,
    #header .site-logo {
        max-width: var(--bdlwc-logo-width-mobile) !important;
    }
}