/* =====================================================================
   SHINE MIRAI — TheGem Built-In Header v3
   Target: TheGem 5.12.x / Built-In Header / Child Theme

   PURPOSE OF THIS FILE
   1. Make the desktop header slightly larger than v2 so the logo is clear.
   2. Keep HOME/menu highlight exactly the same height as the header.
   3. Keep REQUEST A QUOTE on the same row, to the far right.
   4. Keep enough reserved space so CTA does not overlap the language switcher.
   5. Leave TheGem mobile header/menu behavior untouched.

   IMPORTANT:
   This file is intended for the Child Theme only.
   Do NOT put it in /wp-content/themes/thegem-elementor/.
   ===================================================================== */

/* ---------------------------------------------------------------------
   [SM-01] DESKTOP HEADER SIZE
   Edited/added lines: 16–34
   Target header height: 72px
   --------------------------------------------------------------------- */
@media (min-width: 980px) {
    #site-header .header-background > .container {
        height: 72px !important;
    }

    #site-header .header-main {
        position: relative !important;
        height: 72px !important;
        min-height: 72px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        box-sizing: border-box !important;
    }

    /* -----------------------------------------------------------------
       [SM-02] LOGO AREA
       Edited/added lines: 38–63
       Logo is intentionally larger than v2.
       ----------------------------------------------------------------- */
    #site-header .header-main > .site-title {
        flex: 0 0 190px !important;
        width: 190px !important;
        max-width: 190px !important;
        height: 72px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    #site-header .header-main > .site-title a {
        display: flex !important;
        align-items: center !important;
        height: 72px !important;
        max-width: 100% !important;
    }

    #site-header .header-main > .site-title img,
    #site-header .header-main > .site-title a img {
        height: 50px !important;
        max-height: 50px !important;
        width: auto !important;
        max-width: 175px !important;
        object-fit: contain !important;
    }

    /* -----------------------------------------------------------------
       [SM-03] MAIN MENU POSITION + RESERVED CTA SPACE
       Edited/added lines: 67–88
       HOME now starts clearly after the logo area.
       175px on the right is reserved for CTA/language space.
       ----------------------------------------------------------------- */
    #site-header #primary-navigation {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        margin-left: 20px !important;
        margin-right: 0 !important;
        padding-right: 175px !important;
        display: block !important;
        overflow: visible !important;
        box-sizing: border-box !important;
    }

    #site-header #primary-navigation > ul {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        white-space: nowrap !important;
        height: 72px !important;
        display: flex !important;
        align-items: stretch !important;
    }

    /* -----------------------------------------------------------------
       [SM-04] MENU ITEM HEIGHT
       Edited/added lines: 92–111
       Every top-level menu item uses the exact header height.
       ----------------------------------------------------------------- */
    #site-header #primary-navigation > ul > li {
        height: 72px !important;
        min-height: 72px !important;
        display: flex !important;
        align-items: stretch !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        box-sizing: border-box !important;
    }

    #site-header #primary-navigation > ul > li > a {
        height: 72px !important;
        min-height: 72px !important;
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box !important;
        line-height: 1 !important;
        font-size: 12px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 9px !important;
        padding-right: 9px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    /* -----------------------------------------------------------------
       [SM-05] HOME / ACTIVE MENU HIGHLIGHT
       Edited/added lines: 115–142
       TheGem can use menu-item-current/menu-item-active classes.
       Force the highlight to be exactly 72px high, not taller.
       ----------------------------------------------------------------- */
    #site-header #primary-menu.no-responsive > li.menu-item-current,
    #site-header #primary-menu.no-responsive > li.menu-item-active,
    #site-header #primary-menu.no-responsive > li.current-menu-item,
    #site-header #primary-menu.no-responsive > li.current_page_item,
    #site-header #primary-menu.no-responsive > li.current-menu-ancestor {
        height: 72px !important;
        min-height: 72px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
    }

    #site-header #primary-menu.no-responsive > li.menu-item-current > a,
    #site-header #primary-menu.no-responsive > li.menu-item-active > a,
    #site-header #primary-menu.no-responsive > li.current-menu-item > a,
    #site-header #primary-menu.no-responsive > li.current_page_item > a,
    #site-header #primary-menu.no-responsive > li.current-menu-ancestor > a {
        height: 72px !important;
        min-height: 72px !important;
        line-height: 1 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    /* -----------------------------------------------------------------
       [SM-06] REQUEST A QUOTE
       Edited/added lines: 146–183
       CTA remains on the same header row and cannot cover the language
       switcher because the navigation has reserved right-side space.
       ----------------------------------------------------------------- */
    #site-header .sm-header-quote-button {
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 50 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 150px !important;
        height: 38px !important;
        min-height: 38px !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        padding: 8px 14px !important;
        border-radius: 4px !important;
        background: #005B4F !important;
        color: #FFFFFF !important;
        font-family: Manrope, Arial, sans-serif !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        letter-spacing: .01em !important;
        text-decoration: none !important;
        white-space: nowrap !important;
    }

    #site-header .sm-header-quote-button:hover,
    #site-header .sm-header-quote-button:focus {
        background: #003F38 !important;
        color: #FFFFFF !important;
        text-decoration: none !important;
    }
}

/* ---------------------------------------------------------------------
   [SM-07] TABLET
   Edited/added lines: 191–258
   --------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 979px) {
    #site-header .header-background > .container {
        height: 66px !important;
    }

    #site-header .header-main {
        position: relative !important;
        height: 66px !important;
        min-height: 66px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        box-sizing: border-box !important;
    }

    #site-header .header-main > .site-title {
        flex: 0 0 160px !important;
        width: 160px !important;
        max-width: 160px !important;
        height: 66px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #site-header .header-main > .site-title a {
        display: flex !important;
        align-items: center !important;
        height: 66px !important;
    }

    #site-header .header-main > .site-title img,
    #site-header .header-main > .site-title a img {
        height: 43px !important;
        max-height: 43px !important;
        width: auto !important;
        max-width: 150px !important;
        object-fit: contain !important;
    }

    #site-header #primary-navigation {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        margin-left: 14px !important;
        padding-right: 150px !important;
    }

    #site-header #primary-navigation > ul {
        height: 66px !important;
        display: flex !important;
        align-items: stretch !important;
        white-space: nowrap !important;
    }

    #site-header #primary-navigation > ul > li,
    #site-header #primary-navigation > ul > li > a,
    #site-header #primary-menu.no-responsive > li.menu-item-current,
    #site-header #primary-menu.no-responsive > li.menu-item-active,
    #site-header #primary-menu.no-responsive > li.current-menu-item,
    #site-header #primary-menu.no-responsive > li.current_page_item,
    #site-header #primary-menu.no-responsive > li.current-menu-ancestor {
        height: 66px !important;
        min-height: 66px !important;
        box-sizing: border-box !important;
    }

    #site-header #primary-navigation > ul > li > a,
    #site-header #primary-menu.no-responsive > li.menu-item-current > a,
    #site-header #primary-menu.no-responsive > li.menu-item-active > a,
    #site-header #primary-menu.no-responsive > li.current-menu-item > a,
    #site-header #primary-menu.no-responsive > li.current_page_item > a,
    #site-header #primary-menu.no-responsive > li.current-menu-ancestor > a {
        display: flex !important;
        align-items: center !important;
        line-height: 1 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        font-size: 11px !important;
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    #site-header .sm-header-quote-button {
        position: absolute !important;
        right: 0 !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 132px !important;
        height: 34px !important;
        min-height: 34px !important;
        padding: 7px 10px !important;
        font-size: 10px !important;
    }
}

/* ---------------------------------------------------------------------
   [SM-08] MOBILE
   TheGem's mobile menu is deliberately left alone.
   CTA is hidden on mobile because the mobile menu has its own layout.
   --------------------------------------------------------------------- */
@media (max-width: 767px) {
    #site-header .sm-header-quote-button {
        display: none !important;
    }
}
