
/* ==================================================
   TNLX UNIFORM - NAVIGATION REDESIGN
   Round 1 | 2026-10-30
   Desktop / Tablet / Mobile
   ================================================== */

:root {
    --tnlx-green: #003f35;
    --tnlx-orange: #d54527;
    --tnlx-text: #333333;
    --tnlx-border: #e5ebe8;
    --tnlx-header-height: 84px;
    --tnlx-nav-breakpoint: 1200px;
}

/* ----------------------------------
   GLOBAL HEADER
---------------------------------- */

.tnlx-header {
    position: relative;
    z-index: 1000;
    width: 100%;
    height: var(--tnlx-header-height);
    background: #ffffff;
    border-bottom: 1px solid var(--tnlx-border);
    box-sizing: border-box;
}

.tnlx-header *,
.tnlx-header *::before,
.tnlx-header *::after,
.tnlx-drawer *,
.tnlx-drawer *::before,
.tnlx-drawer *::after {
    box-sizing: border-box;
}

.tnlx-header__inner {
    width: min(100% - 48px, 1440px);
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.tnlx-header__logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    text-decoration: none;
}

.tnlx-header__logo img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
}

/* ----------------------------------
   DESKTOP NAVIGATION
---------------------------------- */

.tnlx-header__desktop-nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
}

.tnlx-nav__list,
.tnlx-nav__dropdown,
.tnlx-drawer__list,
.tnlx-drawer__submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tnlx-nav__list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(10px, 1.3vw, 24px);
}

.tnlx-nav__item {
    position: relative;
    padding: 0;
    margin: 0;
    flex: 0 0 auto;
}

.tnlx-nav__details {
    position: relative;
}

.tnlx-nav__trigger,
.tnlx-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 15px 0;
    margin: 0;
    color: var(--tnlx-text);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    border: 0;
    transition: color 0.2s ease;
}

.tnlx-nav__trigger {
    list-style: none;
}

.tnlx-nav__trigger::-webkit-details-marker {
    display: none;
}

.tnlx-nav__trigger::marker {
    content: "";
}

.tnlx-nav__trigger:hover,
.tnlx-nav__link:hover,
.tnlx-nav__details[open] > .tnlx-nav__trigger {
    color: var(--tnlx-green);
}

.tnlx-nav__trigger::after,
.tnlx-nav__link::after {
    content: "";
    position: absolute;
    bottom: 9px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--tnlx-orange);
    transition: width 0.2s ease;
}

.tnlx-nav__trigger:hover::after,
.tnlx-nav__link:hover::after,
.tnlx-nav__details[open] > .tnlx-nav__trigger::after {
    width: 100%;
}

.tnlx-nav__chevron,
.tnlx-drawer__chevron {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.tnlx-nav__details[open] .tnlx-nav__chevron {
    transform: rotate(225deg);
}

/* Desktop Dropdown */

.tnlx-nav__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: max-content;
    min-width: 240px;
    max-width: 340px;
    padding: 10px 0;
    background: #ffffff;
    border: 1px solid var(--tnlx-border);
    border-radius: 10px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.12);
    z-index: 1100;
}

.tnlx-nav__dropdown li {
    margin: 0;
    padding: 0;
}

.tnlx-nav__dropdown a {
    display: block;
    padding: 11px 18px;
    color: var(--tnlx-text);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-decoration: none;
    white-space: normal;
    transition: background 0.2s ease, color 0.2s ease;
}

.tnlx-nav__dropdown a:hover,
.tnlx-nav__dropdown a:focus-visible {
    background: #f2f7f5;
    color: var(--tnlx-green);
}

/* ----------------------------------
   HEADER ACTIONS
---------------------------------- */

.tnlx-header__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.tnlx-header__phone {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    color: var(--tnlx-green);
    background: #f2f7f5;
    border-radius: 50%;
    text-decoration: none;
    transition: background 0.2s ease;
}

.tnlx-header__phone:hover {
    background: #e2eee9;
}

.tnlx-header__toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 11px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.tnlx-header__toggle-line {
    display: block;
    width: 23px;
    height: 2px;
    background: var(--tnlx-green);
    border-radius: 2px;
}

/* ----------------------------------
   DRAWER BACKDROP
---------------------------------- */

.tnlx-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1998;
    background: rgba(0, 0, 0, 0.48);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.tnlx-menu-open .tnlx-drawer-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ----------------------------------
   MOBILE DRAWER
---------------------------------- */

.tnlx-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1999;
    display: flex;
    flex-direction: column;
    width: min(390px, 90vw);
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
}

body.tnlx-menu-open .tnlx-drawer {
    transform: translateX(0);
    visibility: visible;
}

body.tnlx-menu-open {
    overflow: hidden;
}

.tnlx-drawer__header {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--tnlx-border);
}

.tnlx-drawer__title {
    color: var(--tnlx-green);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.tnlx-drawer__close {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--tnlx-green);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.tnlx-drawer__nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 12px 20px 24px;
}

.tnlx-drawer__item {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid var(--tnlx-border);
}

.tnlx-drawer__trigger,
.tnlx-drawer__link {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 8px;
    color: var(--tnlx-green);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    cursor: pointer;
}

.tnlx-drawer__trigger {
    list-style: none;
}

.tnlx-drawer__trigger::-webkit-details-marker {
    display: none;
}

.tnlx-drawer__trigger::marker {
    content: "";
}

.tnlx-drawer__details[open] .tnlx-drawer__chevron {
    transform: rotate(225deg);
}

.tnlx-drawer__submenu {
    padding: 0 0 12px 12px;
}

.tnlx-drawer__submenu a {
    display: block;
    padding: 11px 12px;
    color: #555555;
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
    border-radius: 6px;
}

.tnlx-drawer__submenu a:hover,
.tnlx-drawer__submenu a:focus-visible {
    background: #f2f7f5;
    color: var(--tnlx-green);
}

.tnlx-drawer__footer {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
    border-top: 1px solid var(--tnlx-border);
    background: #f7faf8;
}

.tnlx-drawer__footer span {
    color: #777777;
    font-size: 11px;
    letter-spacing: 0.06em;
}

.tnlx-drawer__footer a {
    color: var(--tnlx-green);
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
}

/* ----------------------------------
   ACCESSIBILITY
---------------------------------- */

.tnlx-header a:focus-visible,
.tnlx-header button:focus-visible,
.tnlx-header summary:focus-visible,
.tnlx-drawer a:focus-visible,
.tnlx-drawer button:focus-visible,
.tnlx-drawer summary:focus-visible {
    outline: 2px solid var(--tnlx-orange);
    outline-offset: 4px;
}

/* ----------------------------------
   TABLET / MOBILE
---------------------------------- */

@media (max-width: 1199px) {

    :root {
        --tnlx-header-height: 76px;
    }

    .tnlx-header__inner {
        width: calc(100% - 40px);
    }

    .tnlx-header__desktop-nav {
        display: none;
    }

    .tnlx-header__toggle {
        display: flex;
    }

    .tnlx-header__logo img {
        width: 165px;
    }
}

@media (max-width: 480px) {

    :root {
        --tnlx-header-height: 70px;
    }

    .tnlx-header__inner {
        width: calc(100% - 28px);
        gap: 12px;
    }

    .tnlx-header__logo img {
        width: 145px;
    }

    .tnlx-header__actions {
        gap: 4px;
    }

    .tnlx-header__phone {
        width: 36px;
        height: 36px;
    }

    .tnlx-drawer {
        width: min(360px, 92vw);
    }

    .tnlx-drawer__header {
        padding: 14px 18px;
    }

    .tnlx-drawer__nav {
        padding: 10px 16px 20px;
    }
}

/* ----------------------------------
   REDUCED MOTION
---------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .tnlx-header *,
    .tnlx-drawer *,
    .tnlx-drawer,
    .tnlx-drawer-backdrop {
        transition: none !important;
    }
}






/* ==========================================
   TNLX Navigation - Legacy CSS Compatibility
   ========================================== */

/* Override old global header layout */
header.tnlx-header {
    float: none;
    clear: both;
    min-height: 0;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* Ensure navigation is not affected by old menu styles */
.tnlx-header .tnlx-nav__list,
.tnlx-header .tnlx-nav__item {
    float: none;
}

.tnlx-header .tnlx-nav__list {
    width: auto;
    height: auto;
}

/* Prevent old mobile menu from appearing */
.menu-expand {
    display: none !important;
}

/* Prevent horizontal overflow from navigation */
.tnlx-header__inner {
    max-width: 100%;
}

@media (max-width: 1199px) {
    header.tnlx-header {
        width: 100%;
    }
}




/* ==========================================
   Navigation Visual Refinement - Step 7
   ========================================== */

/* Logo alignment */
.tnlx-header__inner {
    align-items: center;
}

.tnlx-header__logo {
    height: 100%;
    align-items: center;
}


/* Logo - refined sizing */
.tnlx-header__logo img {
    width: 135px;
    max-height: 58px;
    height: auto;
    object-fit: contain;
}


/* Desktop menu typography */
.tnlx-nav__trigger,
.tnlx-nav__link {
    font-size: 13px;
    font-weight: 600;
}

/* ==========================================
   Hero spacing compatibility
   Navigation Redesign - Round 1
   ========================================== */
/*
content.tnlx-hero-content {
    margin-top: 0;
}
*/




/* ==========================================
   Global First Content Spacing Fix
   Navigation Redesign - Round 1
   ========================================== */

/*
 * Remove legacy header spacing only
 * for the first content block containing a hero.
 */

/* Step 3.2.1F - Global Hero Spacing Cleanup

body:has(> header.tnlx-header)
.bigwhitebox > content:has(> .mainslideshow) {
    margin-top: 0;
}

*/



/* Tablet */
@media (max-width: 1199px) {
    .tnlx-header__logo img {
        width: 130px;
        max-height: 56px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .tnlx-header__logo img {
        width: 120px;
        max-height: 52px;
    }
}






/* ==========================================
   Shared Responsive Hero Fix
   Uniform TNLX - Tablet / Mobile
   ========================================== */

@media (max-width: 768px) {

    /* Hero image container */
    .bigwhitebox > content .mainslideshow .fimgondevice {
        display: block;
        float: none;
        width: 100%;
        max-width: 100%;
    }

    /* Hero image */
    .bigwhitebox > content .mainslideshow .fimgondevice img {
        display: block;
        float: none;
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    /* Hero wrapper */
    .bigwhitebox > content .mainslideshow .mainslidewrap {
      /* width: 100%; */ /* Step 3.2.2K */
        max-width: 100%;
    }

    /* Remove legacy mobile top spacing */
    .bigwhitebox > content .mainslideshow {
        padding-top: 0;
    }
	
	/* Step 3.2.2N - Duplicate Hero Padding
.tnlx-hero-content .mainslideshow {
    padding-top: 0;
}
*/
	
	
}




