/* ============================================================
   TLAMB INC — Nav Overrides
   compiled.css already contains SmartMenus base styles.
   This file only adds color/theme overrides on top.
   ============================================================ */

/* ── Header layout ── */
#CP_Header {
    background: rgba(255,255,255,.95) !important;
    border-bottom: 3px solid #A57C00;
}
#CP_Header.absolute {
    position: absolute;
    background: rgba(8,17,52,.88) !important;
    border-bottom: 3px solid #A57C00;
}
#logo img { height: 60px; width: auto; }

/* Buttons area */
#CP_Buttons { gap: 8px; }
#CP_Buttons a:not(.btn) { color: #fff !important; }
#CP_Buttons a:not(.btn) .fa { color: #A57C00; }

/* ── Desktop menu (1440px+) link colors ── */
@media (min-width: 1440px) {
    /* Top-level links */
    #CP_SmartMenu > li > a,
    #CP_SmartMenu > li > a:hover,
    #CP_SmartMenu > li > a:focus,
    #CP_SmartMenu > li > a:active {
        color: #081134 !important;
        font-weight: 500;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        border-right: 1px solid rgba(0,0,0,0.07);
        padding: 10px 15px !important;
        transition: background 0.2s, color 0.2s;
    }
    #CP_SmartMenu > li > a:hover,
    #CP_SmartMenu > li.active > a {
        background: #A57C00 !important;
        color: #fff !important;
    }
    /* Sub-menu styling */
    #CP_SmartMenu ul {
        background: #081134 !important;
        border-top: 3px solid #A57C00;
        min-width: 210px !important;
    }
    #CP_SmartMenu ul a,
    #CP_SmartMenu ul a:hover,
    #CP_SmartMenu ul a:focus,
    #CP_SmartMenu ul a:active {
        color: #fff !important;
        border-bottom: 1px solid rgba(255,255,255,0.08) !important;
        padding: 10px 16px !important;
        font-size: 13px;
    }
    #CP_SmartMenu ul a:hover,
    #CP_SmartMenu ul a.highlighted {
        background: #A57C00 !important;
        color: #fff !important;
    }
    /* Sub-sub-menu arrow */
    #CP_SmartMenu ul a .sub-arrow {
        border-top: 4px solid transparent !important;
        border-left: 4px solid #A57C00 !important;
        border-bottom: 4px solid transparent !important;
    }
    /* Top-level sub-arrow (down chevron) */
    #CP_SmartMenu > li > a .sub-arrow {
        border-top: 6px solid #A57C00 !important;
        border-left: 5px solid transparent !important;
        border-right: 5px solid transparent !important;
        border-bottom: none !important;
    }
}

/* ── Popup/mobile menu panel ── */
@media (max-width: 1439px) {
    /* The centered popup nav panel */
    #Nav {
        background: #fff !important;
        border-radius: 4px;
        overflow: hidden;
    }
    #MenuToggle {
        background: #A57C00;
        color: #fff;
        font-weight: 600;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    /* Mobile nav links */
    #CP_SmartMenu a,
    #CP_SmartMenu a:hover,
    #CP_SmartMenu a:focus,
    #CP_SmartMenu a:active {
        color: #081134 !important;
        font-size: 14px;
        padding: 13px 16px !important;
    }
    #CP_SmartMenu a:hover,
    #CP_SmartMenu a.highlighted {
        background: #A57C00 !important;
        color: #fff !important;
    }
    #CP_SmartMenu li {
        border-top: 1px solid rgba(8,17,52,0.08) !important;
    }
    /* Sub-menu in popup */
    #CP_SmartMenu ul {
        background: #f0f2f3 !important;
    }
    #CP_SmartMenu ul a {
        color: #081134 !important;
        padding: 11px 16px !important;
        border-left: 4px solid #A57C00 !important;
    }
    /* sub-arrow +/- */
    #CP_SmartMenu a .sub-arrow {
        border: 1px solid rgba(8,17,52,0.15) !important;
        background: rgba(255,255,255,.9) !important;
        border-radius: 20px !important;
        width: 28px !important;
        height: 28px !important;
    }
    #CP_SmartMenu a .sub-arrow::before,
    #CP_SmartMenu a .sub-arrow::after {
        background: #A57C00 !important;
    }
    /* #Toggle button in header */
    #Toggle { color: #fff !important; }
}

/* ── Hero overlay: header button colors ── */
.home #CP_Header.absolute #CP_Buttons a:not(.btn) { color: #000 !important; }
.internal #CP_Header { position: relative !important; background: #081134 !important; }
.internal #CP_Header #CP_Buttons a:not(.btn) { color: #000 !important; }
.internal #logo img { filter: brightness(0) invert(1); }

/* ── View / image-card hover ── */
.view { position: relative; overflow: hidden; display: block; }
.view img { width: 100%; display: block; transition: transform 0.5s; }
.view:hover img { transform: scale(1.05); }
.view .mask.overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(8,17,52,.65);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    opacity: 0; transition: opacity 0.4s;
    text-decoration: none;
}
.view:hover .mask.overlay { opacity: 1; }
.view .mask.overlay a {
    color: #fff !important;
    text-decoration: none;
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center; flex-direction: column;
}

/* ── Nav inside header (desktop 1440px+) ── */
@media (min-width: 1440px) {
    /* When JS moves #Nav between #logo and #CP_Buttons */
    #CP_Header #Nav {
        display: block !important;
        flex: 1;
        background: transparent !important;
        box-shadow: none !important;
        position: static !important;
        transform: none !important;
        width: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    #CP_Header #CP_SmartMenu {
        display: flex !important;
        flex-wrap: nowrap;
        justify-content: center;
    }
    /* #MenuToggle always hidden on desktop */
    #MenuToggle { display: none !important; }
    /* #Toggle always hidden on desktop */
    #Toggle { display: none !important; }
}

/* ── Home page: white/slightly transparent header (matches screenshot) ── */
.home #CP_Header.absolute {
    background: rgba(255,255,255,0.9) !important;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
/* Logo shows its original gold/dark colors — NO invert filter */
.home #CP_Header.absolute #logo img { filter: none !important; }
/* Internal pages: also white header — logo original colors */
.internal #CP_Header {
    position: relative !important;
    background: rgba(255,255,255,0.95) !important;
    border-bottom: 1px solid rgba(0,0,0,.08);
}
.internal #logo img { filter: none !important; }
/* Buttons text dark on light header */
#CP_Buttons a:not(.btn) { color: #000 !important; }

/* ── Sidebar ── */
#CP_Sidebar {
    border: none;
    padding: 20px;
    background: #fff;
    margin-top: 10px;
}
#CP_Sidebar .h3 {
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 12px;
    color: #081134;
}
#CP_Sidebar .margin-top-30 { margin-top: 30px !important; }
#CP_Sidebar ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 0;
}
#CP_Sidebar ul li { margin-bottom: 6px; }
#CP_Sidebar ul li a {
    color: #A57C00;
    text-decoration: none;
    font-size: 14px;
}
#CP_Sidebar ul li a:hover { text-decoration: underline; }
#CP_Sidebar .form-control {
    border-radius: 0;
    margin-bottom: 10px;
}
#CP_Sidebar .input-group { margin-top: 0; }
#sidebarComments {
    resize: none;
    height: 70px;
    border-radius: 0;
    border-right: none;
}
#sidebarSubmit {
    height: 70px;
    border-radius: 0;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 13px;
}

/* ── Breadcrumbs ── */
#CP_Breadcrumbs {
    padding: 12px 0;
    font-size: 13px;
    position: relative;
}
#CP_Breadcrumbs .container { position: relative; }
#CP_Breadcrumbs a {
    color: #fff !important;
    text-decoration: none;
    display: inline;
}
#CP_Breadcrumbs a:hover { text-decoration: underline; }
#CP_Breadcrumbs strong { color: #fff; }
#CP_Breadcrumbs .sep { color: rgba(255,255,255,.5); margin: 0 4px; }
