/*
Theme Name: Meximco by Brittolabs.com
Author: BrittoLabs
Version: 1.4.0
Description: Custom Theme for HK Meximco Group.
*/

:root {
    --primary-dark: #0f172a;
    --accent-green: #10b981;
    --text-main: #334155;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

body, html {
    margin: 0;
    padding: 0;
    font-family: 'Inter', 'Noto Sans TC', sans-serif;
    scroll-behavior: smooth;
    background-color: #f8fafc;
    color: var(--text-main);
}

header {
    position: sticky;
    top: 0;
    z-index: 2000;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.header-top {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.brand-container {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.brand-container img {
    height: 50px;
    width: auto;
}

.brand-text h1 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--primary-dark);
    letter-spacing: 1px;
    font-weight: 900;
}

.brand-text h2 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 400;
    color: #64748b;
}

nav ul {
    display: flex;
    gap: 5px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav li {
    position: relative;
    list-style: none;
}

nav a {
    text-decoration: none;
    color: var(--text-main);
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 6px;
    transition: var(--transition);
    display: block;
}

nav a:hover, nav li.current-menu-item > a, nav li.current_page_item > a {
    background: var(--primary-dark);
    color: #fff !important;
}

nav ul ul {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background: #ffffff;
    min-width: 280px;
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
    padding: 15px 0;
    border: 1px solid rgba(0,0,0,0.06);
    z-index: 2001;
}

nav ul li:hover > ul {
    display: block;
}

nav ul ul li a {
    color: #475569;
    padding: 10px 20px;
    font-size: 12px;
    font-weight: 500;
}

nav ul ul li a:hover {
    background: #f8fafc;
    color: var(--accent-green) !important;
}

.gt_switcher .gt_selected {
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 50px !important;
    padding: 8px 18px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: var(--primary-dark) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
    transition: all 0.3s var(--ease-smooth) !important;
    cursor: pointer !important;
}

.gt_switcher .gt_selected:hover {
    border-color: var(--accent-green) !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.15) !important;
}

.gt_switcher .gt_option {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12) !important;
    padding: 10px 0 !important;
    margin-top: 10px !important;
    overflow: hidden !important;
}

.gt_switcher .gt_option a {
    padding: 10px 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    text-transform: uppercase !important;
    transition: all 0.2s var(--ease-smooth) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
}

.gt_switcher .gt_option a:hover {
    background: #f8fafc !important;
    color: var(--accent-green) !important;
}

.gt_switcher img {
    border-radius: 3px !important;
}

.profile-wrap,
.portfolio-elite-wrap,
.team-section-wrap,
.srv-wrap,
.sh-wrap,
.tech-wrap,
.sc-wrap,
.pm-wrap,
.rm-wrap,
.bc-wrap,
.ls-wrap,
.ss-wrap,
.ith-wrap,
.ck-wrap,
.gt-wrap,
.train-wrap,
.single-post-wrap,
.archive-wrap {
    padding-top: 30px !important;
    padding-bottom: 80px !important;
}

.sub-hero,
.portfolio-hero-section,
.team-header,
.archive-header,
.ck-editorial-intro {
    padding: 10px 20px 20px !important;
    margin-bottom: 20px !important;
}

.sub-hero h1,
.portfolio-hero-section h1,
.team-header h1,
.archive-header h1,
.ck-editorial-intro h1,
.sc-center-intro h2,
.sh-banner-content h1,
.tech-banner h1,
.pm-banner h1,
.rm-banner h1,
.bc-banner h1,
.ls-banner h1,
.ss-banner h1,
.ith-banner h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem) !important;
    margin-bottom: 8px !important;
    letter-spacing: -0.5px !important;
}

.sub-hero .separator {
    margin: 8px auto 20px !important;
    height: 3px !important;
    width: 45px !important;
}

.story-block,
.portfolio-block,
.pm-split-row,
.rm-split-row,
.bc-split-row,
.ls-split-row,
.ss-split-row {
    margin-top: 30px !important;
    margin-bottom: 40px !important;
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s var(--ease-smooth), transform 1.2s var(--ease-smooth);
    will-change: transform, opacity;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--primary-dark);
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: bold;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.2);
    z-index: 3000;
    transition: var(--transition);
    text-decoration: none;
    display: block;
}

.chat-widget:hover {
    transform: translateY(-5px);
    background: var(--accent-green);
}

@media (max-width: 950px) {
    header {
        padding: 10px 0 !important;
    }

    .header-top {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: center !important;
        padding: 0 15px !important;
    }

    .brand-container {
        justify-content: center !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    .brand-text h1 {
        font-size: 1rem !important;
        white-space: nowrap !important;
    }

    .brand-text h2 {
        font-size: 0.75rem !important;
    }

    .header-top > div {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
    }

    nav ul {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 4px !important;
    }

    nav a {
        padding: 6px 10px !important;
        font-size: 11px !important;
        white-space: nowrap !important;
    }

    .chat-widget {
        padding: 12px 22px !important;
        font-size: 12px !important;
        bottom: 15px !important;
        right: 15px !important;
        white-space: nowrap !important;
    }
}