/*
Theme Name: Astra Child
Theme URI: https://wpastra.com/
Description: Custom child theme for DM Group
Author: DM Group
Template: astra
Version: 1.0.0
*/


/* =========================================================
   DM GROUP VARIABLES
   ========================================================= */

:root {
    --dm-blue: #103ba9;
    --dm-text: #111111;
    --dm-white: #ffffff;
    --dm-border: #eeeeee;
}


/* =========================================================
   GLOBAL HEADER FONT
   ========================================================= */

.dm-header,
.dm-header a,
.dm-header button,
.dm-header input,
.dm-header ul,
.dm-header li {
    font-family: 'Poppins', sans-serif;
}


/* =========================================================
   HEADER BASE
   ========================================================= */

.dm-header {
    width: 100%;
    position: relative;
    z-index: 99999;
    background: #ffffff;
}

.dm-header *,
.dm-header *::before,
.dm-header *::after {
    box-sizing: border-box;
}


/* =========================================================
   HEADER CONTAINER
   ========================================================= */

.dm-header-container {
    width: 100%;
    max-width: 1440px;

    margin-left: auto;
    margin-right: auto;

    padding-left: 28px;
    padding-right: 28px;

    display: flex;
    align-items: center;
}


/* =========================================================
   TOP CONTACT BAR
   ========================================================= */

.dm-topbar {
    width: 100%;
    height: 65px;

    background: #103ba9;
    color: #ffffff;
}

.dm-topbar .dm-header-container {
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   CONTACT INFORMATION
   ========================================================= */

.dm-contact-info {
    display: flex;
    align-items: center;

    gap: 22px;

    margin: 0;
    padding: 0;
}

.dm-contact-info a {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    color: #ffffff;

    text-decoration: none;

    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;

    line-height: 1;

    transition: opacity 0.2s ease;
}

.dm-contact-info a:hover {
    color: #ffffff;
    opacity: 0.8;
}


/* Contact SVG icons */

.dm-contact-info .dm-icon {
    width: 14px;
    height: 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.dm-contact-info .dm-icon svg {
    width: 13px;
    height: 13px;

    display: block;
}


/* =========================================================
   SOCIAL MEDIA
   ========================================================= */

.dm-social-links {
    display: flex;
    align-items: center;

    gap: 14px;

    margin: 0;
    padding: 0;
}

.dm-social-links a {
    width: 18px;
    height: 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    color: #ffffff;

    text-decoration: none;

    line-height: 1;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.dm-social-links a:hover {
    color: #ffffff;
    opacity: 0.75;

    transform: translateY(-1px);
}

.dm-social-links svg {
    width: 15px;
    height: 15px;

    display: block;

    fill: currentColor;
}


/* =========================================================
   MAIN NAVIGATION
   ========================================================= */

.dm-main-nav {
    width: 100%;
    height: 108px;

    background: #ffffff;

    border-bottom: 1px solid var(--dm-border);
}

.dm-main-nav .dm-header-container {
    height: 108px;

    position: relative;
}


/* =========================================================
   LOGO
   Original logo: 350px × 100px
   Aspect ratio: 3.5 : 1
   ========================================================= */

.dm-logo {
    width: 350px;
    height: 100px;

    display: flex;
    align-items: center;

    flex-shrink: 0;

    overflow: visible;
}

.dm-logo a {
    width: 350px;
    height: 100px;

    display: flex;
    align-items: center;

    text-decoration: none;
}

.dm-logo .custom-logo-link {
    width: 350px;
    height: 100px;

    display: flex;
    align-items: center;
}

.dm-logo img,
.dm-logo .custom-logo {
    width: 350px !important;
    height: 100px !important;

    max-width: 350px !important;
    max-height: 100px !important;

    min-width: 0;

    display: block;

    object-fit: contain !important;
    object-position: left center;
}


/* Fallback text */

.dm-logo-text {
    color: var(--dm-blue);

    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 600;

    white-space: nowrap;
}


/* =========================================================
   NAVIGATION
   ========================================================= */

.dm-navigation {
    margin-left: auto;
    margin-right: 55px;

    display: flex;
    align-items: center;
}


/* Main menu */

.dm-menu {
    list-style: none !important;

    margin: 0 !important;
    padding: 0 !important;

    display: flex;
    align-items: center;

    gap: 28px;
}


/* Main menu items */

.dm-menu > li {
    list-style: none !important;

    position: relative;

    margin: 0 !important;
    padding: 0 !important;
}

.dm-menu > li::before,
.dm-menu > li::after {
    display: none !important;
}


/* Main menu links */

.dm-menu > li > a {
    display: inline-flex;
    align-items: center;

    margin: 0;
    padding: 0;

    color: #111111;

    text-decoration: none;

    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;

    line-height: 1.5;

    text-transform: uppercase;

    white-space: nowrap;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.dm-menu > li > a:hover {
    color: var(--dm-blue);
}


/* Active item */

.dm-menu > li.current-menu-item > a,
.dm-menu > li.current-menu-ancestor > a,
.dm-menu > li.current_page_item > a {
    color: var(--dm-blue);
}


/* =========================================================
   PRODUCTS DROPDOWN
   ========================================================= */


/* Parent must be positioned */

.dm-menu > li.menu-item-has-children {
    position: relative;
}


/* Hide dropdown by default */

.dm-menu .sub-menu {
    display: none !important;

    position: absolute;

    top: calc(100% + 18px);
    left: 50%;

    transform: translateX(-50%);

    width: auto;
    min-width: 245px;

    margin: 0 !important;
    padding: 10px 0 !important;

    background: #ffffff;

    border-top: 3px solid var(--dm-blue);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12);

    list-style: none !important;

    z-index: 999999;
}


/* Invisible bridge between Products and dropdown */

.dm-menu > li.menu-item-has-children::before {
    content: '';

    position: absolute;

    left: 0;
    right: 0;

    top: 100%;

    height: 18px;

    display: block !important;
}


/* Show dropdown on hover */

.dm-menu > li.menu-item-has-children:hover > .sub-menu {
    display: block !important;
}


/* Dropdown items */

.dm-menu .sub-menu li {
    position: relative;

    display: block;

    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}

.dm-menu .sub-menu li::before,
.dm-menu .sub-menu li::after {
    display: none !important;
}


/* Dropdown links */

.dm-menu .sub-menu li a {
    display: block;

    width: 100%;

    margin: 0 !important;

    padding: 10px 20px;

    color: #111111;

    background: transparent;

    text-decoration: none;

    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;

    line-height: 1.5;

    text-transform: none;

    white-space: nowrap;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}


/* Dropdown hover */

.dm-menu .sub-menu li a:hover {
    color: var(--dm-blue);

    background: #f5f7fc;
}


/* =========================================================
   PRODUCTS ARROW
   ========================================================= */

.dm-menu > li.menu-item-has-children > a::after {
    content: '';

    width: 7px;
    height: 7px;

    margin-left: 9px;

    display: inline-block;

    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;

    transform: rotate(45deg);

    position: relative;
    top: -2px;
}


/* =========================================================
   SEARCH BUTTON
   ========================================================= */

.dm-search-button {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 3px;
    margin: 0;

    border: 0;
    outline: none;

    background: transparent;

    color: var(--dm-blue);

    cursor: pointer;

    flex-shrink: 0;

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

.dm-search-button:hover {
    color: var(--dm-blue);

    transform: scale(1.08);
    opacity: 0.85;
}

.dm-search-button svg {
    display: block;

    width: 23px;
    height: 23px;
}


/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.dm-mobile-toggle {
    display: none;

    width: 38px;
    height: 38px;

    padding: 7px;
    margin: 0;

    border: 0;

    background: transparent;

    cursor: pointer;
}

.dm-mobile-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background: var(--dm-blue);

    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .dm-header-container {
        padding-left: 24px;
        padding-right: 24px;
    }

    .dm-logo {
        width: 270px;
        height: 77px;
    }

    .dm-logo a,
    .dm-logo .custom-logo-link {
        width: 270px;
        height: 77px;
    }

    .dm-logo img,
    .dm-logo .custom-logo {
        width: 270px !important;
        height: 77px !important;

        max-width: 270px !important;
        max-height: 77px !important;
    }

    .dm-navigation {
        margin-right: 35px;
    }

    .dm-menu {
        gap: 20px;
    }

    .dm-menu > li > a {
        font-size: 11px;
    }
}


/* =========================================================
   TABLET / SMALL DESKTOP
   ========================================================= */

@media (max-width: 1024px) {

    .dm-logo {
        width: 230px;
        height: 66px;
    }

    .dm-logo a,
    .dm-logo .custom-logo-link {
        width: 230px;
        height: 66px;
    }

    .dm-logo img,
    .dm-logo .custom-logo {
        width: 230px !important;
        height: 66px !important;

        max-width: 230px !important;
        max-height: 66px !important;
    }

    .dm-navigation {
        margin-right: 20px;
    }

    .dm-menu {
        gap: 15px;
    }

    .dm-menu > li > a {
        font-size: 10px;
    }

    .dm-search-button {
        width: 28px;
        height: 28px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    /* ---------- TOP BAR ---------- */

    .dm-topbar {
        height: auto;
        min-height: 50px;
    }

    .dm-topbar .dm-header-container {
        min-height: 50px;

        height: auto;

        padding-top: 10px;
        padding-bottom: 10px;

        justify-content: center;
    }

    .dm-contact-info {
        width: 100%;

        justify-content: center;

        gap: 15px;
    }

    .dm-contact-info a {
        font-size: 10px;
    }

    .dm-social-links {
        display: none;
    }


    /* ---------- MAIN NAV ---------- */

    .dm-main-nav {
        height: 82px;
    }

    .dm-main-nav .dm-header-container {
        height: 82px;

        padding-left: 18px;
        padding-right: 18px;
    }


    /* ---------- LOGO ---------- */

    .dm-logo {
        width: 220px;
        height: auto;
    }

    .dm-logo a,
    .dm-logo .custom-logo-link {
        width: 220px;
        height: auto;
    }

    .dm-logo img,
    .dm-logo .custom-logo {
        width: 220px !important;
        height: auto !important;

        max-width: 220px !important;
        max-height: none !important;
    }


    /* ---------- DESKTOP MENU ---------- */

    .dm-navigation {
        display: none;
    }


    /* ---------- SEARCH ---------- */

    .dm-search-button {
        margin-left: auto;
        margin-right: 8px;
    }


    /* ---------- MOBILE TOGGLE ---------- */

    .dm-mobile-toggle {
        display: block;
    }


    /* Disable desktop dropdown on mobile */

    .dm-menu .sub-menu {
        display: none !important;
    }
}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .dm-topbar .dm-header-container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .dm-contact-info {
        gap: 10px;
    }

    .dm-contact-info a {
        font-size: 9px;
    }


    .dm-main-nav,
    .dm-main-nav .dm-header-container {
        height: 75px;
    }


    .dm-header-container {
        padding-left: 15px;
        padding-right: 15px;
    }


    .dm-logo {
        width: 175px;
        height: auto;
    }

    .dm-logo a,
    .dm-logo .custom-logo-link {
        width: 175px;
        height: auto;
    }

    .dm-logo img,
    .dm-logo .custom-logo {
        width: 175px !important;
        height: auto !important;

        max-width: 175px !important;
    }


    .dm-search-button {
        width: 28px;
        height: 28px;
    }

    .dm-mobile-toggle {
        width: 34px;
        height: 34px;
    }
}


/* =========================================================
   ASTRA OVERRIDE
   Prevent Astra's default header/list styling from
   interfering with the custom DM Group header.
   ========================================================= */

.dm-header ul,
.dm-header ol {
    list-style: none !important;
}

.dm-header li {
    list-style: none !important;
}

.dm-header li::before,
.dm-header li::after {
    display: none !important;
}


/* =========================================================
   PREVENT ASTRA HEADER SPACING
   ========================================================= */

.dm-header .main-header-menu,
.dm-header .ast-header-navigation {
    margin: 0;
    padding: 0;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.dm-header a:focus-visible,
.dm-header button:focus-visible {
    outline: 2px solid var(--dm-blue);
    outline-offset: 3px;
}
/* =========================================================
   REMOVE EMPTY SPACE BELOW CUSTOM HEADER
   ========================================================= */

.site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#primary.site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.site-content,
.ast-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.elementor {
    margin-top: 0 !important;
}

.elementor-section:first-child,
.elementor-container:first-child {
    margin-top: 0 !important;
}

/* =========================================================
   END DM GROUP HEADER
   ========================================================= */
   /* =========================================================
   DM GROUP FOOTER
   ========================================================= */

.dm-footer {
    width: 100%;
    background: #ffffff;
    color: #222222;

    font-family: 'Poppins', sans-serif;
}


/* =========================================================
   FOOTER MAIN
   ========================================================= */

.dm-footer-main {
    width: 100%;

    background: #ffffff;

    border-top: 1px solid #eeeeee;
}


.dm-footer-container {
    width: 100%;
    max-width: 1440px;

    margin: 0 auto;

    padding: 60px 28px 55px;

    display: grid;

    grid-template-columns:
        1.5fr
        1fr
        1.6fr
        1fr;

    gap: 55px;
}


/* =========================================================
   FOOTER COLUMNS
   ========================================================= */

.dm-footer-column {
    min-width: 0;
}


.dm-footer-column h3 {
    margin: 0 0 22px;

    color: #103ba9;

    font-family: 'Poppins', sans-serif;

    font-size: 16px;
    font-weight: 600;

    line-height: 1.4;
}


/* =========================================================
   FOOTER LOGO
   ========================================================= */

.dm-footer-logo {
    display: inline-flex;

    align-items: center;

    margin-bottom: 22px;

    text-decoration: none;
}


.dm-footer-logo img,
.dm-footer-logo .custom-logo {
    width: 250px !important;
    height: auto !important;

    max-width: 250px !important;

    display: block;

    object-fit: contain;
}


.dm-footer-logo-text {
    color: #103ba9;

    font-size: 18px;
    font-weight: 600;
}


/* =========================================================
   FOOTER DESCRIPTION
   ========================================================= */

.dm-footer-description {
    max-width: 330px;

    margin: 0;

    color: #666666;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.8;
}


/* =========================================================
   FOOTER SOCIAL
   ========================================================= */

.dm-footer-social {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 25px;
}


.dm-footer-social a {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #103ba9;

    border: 1px solid #dfe5f2;

    border-radius: 50%;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}


.dm-footer-social a:hover {
    color: #ffffff;

    background: #103ba9;

    border-color: #103ba9;

    transform: translateY(-2px);
}


.dm-footer-social svg {
    width: 14px;
    height: 14px;

    display: block;

    fill: currentColor;
}


/* =========================================================
   FOOTER LINKS
   ========================================================= */

.dm-footer-column ul {
    margin: 0;
    padding: 0;

    list-style: none !important;
}


.dm-footer-column li {
    margin: 0 0 10px;
    padding: 0;

    list-style: none !important;
}


.dm-footer-column li::before,
.dm-footer-column li::after {
    display: none !important;
}


.dm-footer-column li a {
    color: #555555;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.6;

    text-decoration: none;

    transition:
        color 0.2s ease,
        padding-left 0.2s ease;
}


.dm-footer-column li a:hover {
    color: #103ba9;

    padding-left: 4px;
}


/* =========================================================
   FOOTER CONTACT
   ========================================================= */

.dm-footer-contact {
    display: flex;

    flex-direction: column;

    gap: 12px;
}


.dm-footer-contact a {
    color: #555555;

    font-size: 13px;
    font-weight: 400;

    text-decoration: none;

    transition: color 0.2s ease;
}


.dm-footer-contact a:hover {
    color: #103ba9;
}


.dm-footer-contact p {
    margin: 5px 0 0;

    color: #666666;

    font-size: 13px;
    font-weight: 400;

    line-height: 1.8;
}


/* =========================================================
   COPYRIGHT BAR
   ========================================================= */

.dm-footer-bottom {
    width: 100%;

    background: #103ba9;

    color: #ffffff;
}


.dm-footer-bottom-container {
    width: 100%;
    max-width: 1440px;

    margin: 0 auto;

    min-height: 52px;

    padding: 0 28px;

    display: flex;

    align-items: center;
    justify-content: center;
}


.dm-footer-bottom p {
    margin: 0;

    color: #ffffff;

    font-family: 'Poppins', sans-serif;

    font-size: 11px;
    font-weight: 400;

    text-align: center;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1024px) {

    .dm-footer-container {
        grid-template-columns: 1.3fr 1fr 1.4fr 1fr;

        gap: 30px;

        padding: 50px 24px;
    }

    .dm-footer-logo img,
    .dm-footer-logo .custom-logo {
        width: 210px !important;
        max-width: 210px !important;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .dm-footer-container {
        grid-template-columns: 1fr 1fr;

        gap: 40px 30px;

        padding: 45px 20px;
    }

    .dm-footer-company {
        grid-column: 1 / -1;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .dm-footer-container {
        grid-template-columns: 1fr;

        gap: 32px;

        padding: 40px 18px;
    }

    .dm-footer-company {
        grid-column: auto;
    }

    .dm-footer-logo img,
    .dm-footer-logo .custom-logo {
        width: 210px !important;
        max-width: 210px !important;
    }

    .dm-footer-bottom-container {
        padding: 0 15px;
    }

    .dm-footer-bottom p {
        font-size: 10px;
    }

}