/* ============================================================
   Custom Header — generatepress-child
   ============================================================ */

/* ---------- Variables ---------- */
:root {
    --hdr-green:      #202020;
    --hdr-green-dark: #171717;
    --hdr-bar-h:      44px;
    --hdr-nav-h:      58px;
    --hdr-shield-w:   110px;
    --hdr-shield-h:   118px;
    --hdr-transition: 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   KILL GENERATEPRESS DEFAULT HEADER COMPLETELY
   ============================================================ */
.site-header {
    display: none !important;
}

.site-main,
.content-area,
#page,
.site {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ============================================================
   OUR HEADER SITS AT THE VERY TOP
   ============================================================ */
#tinderlei-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    transform: translateY(0);
    transition: transform var(--hdr-transition);
    will-change: transform;
}
#tinderlei-header.header-hidden {
    transform: translateY(-122px);
}

/* Push page content below our fixed header */
body::before {
    content: '';
    display: block;
    height: calc(var(--hdr-bar-h) + var(--hdr-nav-h));
    pointer-events: none;
}

/* ============================================================
   UTILITY BAR
   ============================================================ */
#hdr-utility {
    background: var(--hdr-green-dark);
    height: var(--hdr-bar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 42px 0 182px;
    font-size: 0.77rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.8);
}

#hdr-utility .util-links {
    display: flex;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
}
#hdr-utility .util-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}
#hdr-utility .util-links a:hover { color: #fff; }

/* ============================================================
   NAV BAR
   ============================================================ */
#hdr-nav {
    background: var(--hdr-green);
    height: var(--hdr-nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 42px 0 182px;
    position: relative;
}

/* ---- Shield / Logo ---- */
#hdr-shield {
    position: absolute;
    left: 42px;
    top: calc(-1 * var(--hdr-bar-h));
    width: var(--hdr-shield-w);
    height: var(--hdr-shield-h);
    background: #ffffff;
    clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: rgba(0,0,0,0.25) 0px 14px 28px, rgba(0,0,0,0.22) 0px 10px 10px;
    z-index: 10001;
    text-decoration: none;
}

#hdr-shield img {
    width: 78px;
    height: auto;
    display: block;
    margin-top: -8px;
}
#hdr-shield .shield-text {
    text-align: center;
    color: var(--hdr-green);
    font-weight: 800;
    font-size: 0.75rem;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0 8px;
    margin-top: -12px;
}

/* ---- Center nav ---- */
#hdr-menu-wrap {
    flex: 1;
    display: flex;
    justify-content: center;
    overflow: hidden;
}
#hdr-menu-wrap ul {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}
#hdr-menu-wrap ul li a {
    color: white;
    text-decoration: none;
    font-size: 0.93rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    padding: 8px 15px;
    border-radius: 4px;
    display: block;
    white-space: nowrap;
    transition: background 0.16s;
}
#hdr-menu-wrap ul li a:hover,
#hdr-menu-wrap ul li.current-menu-item > a {
    background: rgba(255,255,255,0.831);
    color: #1D5C38;
}

/* ---- Right icons ---- */
#hdr-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.hdr-icon-btn {
    background: none;
    border: none;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: background 0.16s;
}
.hdr-icon-btn:hover { background: rgba(255,255,255,0.15); }

/* Base SVG reset */
.hdr-icon-btn svg {
    width: 22px;
    height: 22px;
    display: block;
}

/* Stroke-based icons: search, basket, hamburger */
.hdr-icon-btn svg.icon-stroke {
    fill: none !important;
    stroke: #ffffff !important;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.hdr-icon-btn svg.icon-stroke circle,
.hdr-icon-btn svg.icon-stroke line,
.hdr-icon-btn svg.icon-stroke path,
.hdr-icon-btn svg.icon-stroke polyline,
.hdr-icon-btn svg.icon-stroke rect {
    stroke: #ffffff !important;
    fill: none !important;
}

/* Badge */
.hdr-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #fff;
    color: var(--hdr-green);
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 800;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.hdr-badge.show { display: flex; }

/* Hamburger — desktop hidden */
#hdr-hamburger { display: none !important; }


/* ============================================================
   GOOGLE TRANSLATE
   ============================================================ */
#hdr-translate-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 6px;
    cursor: pointer;
    flex-shrink: 0;
}


#hdr-translate-wrap > span {
   color: white !important;
}
/* Fill-based globe icon */
#hdr-translate-wrap > svg {
    width: 20px;
    height: 20px;
    fill: #ffffff !important;
    stroke: none !important;
    flex-shrink: 0;
    display: block;
}

/* Hide Google branding, banner, logo */
.goog-te-banner-frame,
.goog-te-balloon-frame          { display: none !important; }
.skiptranslate iframe           { display: none !important; }
.goog-te-gadget-icon            { display: none !important; }
.goog-logo-link                 { display: none !important; }
.goog-te-gadget > span          { display: none !important; }
body                            { top: 0 !important; } /* stop GT pushing page down */

/* The translate widget container */
#google_translate_element {
    display: flex;
    align-items: center;
}
#google_translate_element .goog-te-gadget {
    font-size: 0 !important;
    display: flex;
    align-items: center;
}

/* Style the select dropdown */
#google_translate_element select {
    background: white !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 4px !important;
    color: #ffffff !important;
    font-family: 'Jost', 'Helvetica Neue', sans-serif !important;
    font-size: 0.68rem !important;
    font-weight: 500 !important;
    letter-spacing: 0.06em !important;
    padding: 4px 8px !important;
    cursor: pointer !important;
    outline: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    box-shadow: none !important;
    transition: border-color 0.15s !important;
    max-width: 100px;
}
#google_translate_element select:hover {
    border-color: rgba(255,255,255,0.7) !important;
}
#google_translate_element select option {
    background: #202020 !important;
    color: #ffffff !important;
}

/* goog-te-gadget-simple variant (used when InlineLayout.SIMPLE renders differently) */
#google_translate_element .goog-te-gadget-simple {
    background: white !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 4px !important;
    padding: 3px 8px !important;
    cursor: pointer !important;
}
#google_translate_element .goog-te-gadget-simple .goog-te-menu-value span {
    color: #ffffff !important;
    font-family: 'Jost', 'Helvetica Neue', sans-serif !important;
    font-size: 0.68rem !important;
}
#google_translate_element .goog-te-gadget-simple .goog-te-menu-value span:last-child {
    color: rgba(255,255,255,0.45) !important;
}

/* Hide on mobile */
@media (max-width: 900px) {
    #hdr-translate-wrap { display: none !important; }
}


/* ============================================================
   MOBILE DRAWER
   ============================================================ */
#hdr-drawer {
    position: fixed;
    inset: 0;
    z-index: 19999;
    pointer-events: none;
}
#hdr-drawer.open { pointer-events: all; }

#hdr-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.25s;
}
#hdr-drawer.open #hdr-drawer-overlay { opacity: 1; }

#hdr-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(290px, 85vw);
    height: 100%;
    background: var(--hdr-green);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
#hdr-drawer.open #hdr-drawer-panel { transform: translateX(0); }

#hdr-drawer-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    font-size: 1.8rem;
    line-height: 1;
    padding: 16px 20px 12px;
    cursor: pointer;
    align-self: flex-end;
    transition: color 0.15s;
}
#hdr-drawer-close:hover { color: #ffffff; }

#hdr-drawer-panel nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
#hdr-drawer-panel nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    padding: 15px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: background 0.15s;
}
#hdr-drawer-panel nav ul li a:hover { background: rgba(0,0,0,0.06); }


/* ============================================================
   SEARCH OVERLAY
   ============================================================ */
#hdr-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: rgba(15,45,25,0.93);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
#hdr-search-overlay.open {
    opacity: 1;
    pointer-events: all;
}
#hdr-search-form {
    width: min(540px, 88vw);
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 2px solid rgba(255,255,255,0.6);
    padding-bottom: 4px;
}
#hdr-search-form input[type="search"] {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    padding: 10px 0;
    outline: none;
    font-family: inherit;
}
#hdr-search-form input::placeholder { color: rgba(255,255,255,0.35); }
#hdr-search-form button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
#hdr-search-form button svg {
    width: 26px;
    height: 26px;
    display: block;
}
#hdr-search-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.15s;
}
#hdr-search-close:hover { color: #fff; }


#hdr-translate-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 6px;
    flex-shrink: 0;
}
 
#hdr-lang-select {
    background: #2a2a2a;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 7px center;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 4px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 4px 24px 4px 8px;
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    max-width: 110px;
    transition: border-color 0.15s;
}
#hdr-lang-select:hover,
#hdr-lang-select:focus {
    border-color: rgba(255,255,255,0.7);
}
#hdr-lang-select option {
    background: #202020;
    color: #ffffff;
}
 
/* Suppress Google's injected toolbar — we don't show their widget */
.goog-te-banner-frame,
.goog-te-balloon-frame { display: none !important; }
.skiptranslate iframe  { display: none !important; }
body                   { top: 0 !important; }

/* ============================================================
   TABLET — 901px – 1100px
   ============================================================ */
@media (min-width: 901px) and (max-width: 1100px) {
    :root {
        --hdr-shield-w: 90px;
        --hdr-shield-h: 96px;
    }
    #hdr-nav     { padding: 0 18px 0 150px; }
    #hdr-utility { padding: 0 18px 0 150px; }
    #hdr-shield  { left: 18px; }
    #hdr-shield img { width: 62px; }

    #hdr-menu-wrap ul li a {
        font-size: 0.82rem;
        padding: 8px 9px;
        letter-spacing: 0;
    }
    #hdr-icons    { gap: 0; }
    .hdr-icon-btn { width: 36px; height: 36px; }
    .hdr-icon-btn svg { width: 19px; height: 19px; }
}


/* ============================================================
   MOBILE — ≤ 900px
   ============================================================ */
@media (max-width: 900px) {
    :root {
        --hdr-bar-h:    32px;
        --hdr-nav-h:    54px;
        --hdr-shield-w: 78px;
        --hdr-shield-h: 84px;
    }

     #hdr-translate-wrap {
        display: flex !important;
        padding: 0 2px;
        gap: 3px;
    }
    #hdr-lang-select {
        max-width: 82px;
        font-size: 0.65rem;
        padding: 3px 20px 3px 6px;
    }

    #hdr-menu-wrap  { display: none; }
    #hdr-hamburger  { display: block !important; }
    #hdr-hamburger svg { position: absolute; right: 10px !important; top: 9px; }

    #hdr-utility {
        height: 32px;
        padding: 0 12px;
        font-size: 0.72rem;
        gap: 10px;
    }

      #hdr-utility {
        padding-left: 112px !important;
      }

    #hdr-utility .util-links { gap: 12px; }

    #hdr-nav { padding: 0; justify-content: flex-end; }

    #hdr-shield {
        left: 12px;
        top: calc(-1 * var(--hdr-bar-h));
        height: var(--hdr-shield-h);
    }
    #hdr-shield img { width: 52px; }

    body::before { height: calc(var(--hdr-bar-h) + var(--hdr-nav-h)); }

    #tinderlei-header.header-hidden {
        transform: translateY(calc(-1 * (var(--hdr-bar-h) + var(--hdr-nav-h))));
    }

    .hdr-icon-btn {
        width: 38px;
        height: 38px;
    }
    .hdr-icon-btn svg { width: 20px; height: 20px; }
}


/* ============================================================
   SMALL MOBILE — ≤ 400px
   ============================================================ */
@media (max-width: 400px) {
    :root {
        --hdr-nav-h:    50px;
        --hdr-shield-w: 64px;
        --hdr-shield-h: 70px;
    }

    #hdr-nav    { padding: 0 6px 0 calc(var(--hdr-shield-w) + 10px); }
    #hdr-shield { left: 8px; }
    #hdr-shield img { width: 44px; }

    .hdr-icon-btn:not(#hdr-hamburger):not(#hdr-basket-btn) { display: none; }
    .hdr-icon-btn { width: 34px; height: 34px; }
}