/* ============================================
   Global — Prevent horizontal overflow from
   off-canvas mobile menu
   ============================================ */

html,
body {
    overflow-x: hidden;
}

/* ============================================
   Header — Clean Modern
   ============================================ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* Admin bar support */
body.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .site-header {
        top: 46px;
    }
}

/* Scroll effect */
.site-header.header-scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.07);
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

/* Linha de acento vermelha no topo */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--inoxmilk-color-semantic-action-primary-default);
}

/* Inner */
.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    height: 76px;
    transition: height 0.3s ease;
}

.site-header.header-scrolled .header-inner {
    height: 64px;
}

/* ============================================
   Logo
   ============================================ */

.site-branding {
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img,
.site-branding .custom-logo {
    height: 42px;
    width: auto;
    transition: height 0.3s ease;
}

.site-header.header-scrolled .logo-img,
.site-header.header-scrolled .custom-logo {
    height: 34px;
}

/* ============================================
   Navegação Desktop
   ============================================ */

.main-navigation {
    display: flex;
    align-items: center;
}

.nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
}

.nav-list li {
    position: relative;
}

.nav-list > li > a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-family: var(--inoxmilk-typography-family-heading);
    font-weight: var(--inoxmilk-typography-weight-medium);
    font-size: 13.5px;
    color: var(--inoxmilk-color-primitive-steel-900);
    padding: 8px 18px;
    border-radius: 100px;
    letter-spacing: 0.01em;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
}

.nav-list > li > a:hover {
    color: var(--inoxmilk-color-semantic-action-primary-default);
    background: rgba(205, 0, 6, 0.05);
}

.nav-list li.current-menu-item > a,
.nav-list li.current_page_item > a {
    color: var(--inoxmilk-color-semantic-action-primary-default);
    font-weight: var(--inoxmilk-typography-weight-bold);
    background: rgba(205, 0, 6, 0.07);
}

/* Submenu / Dropdown */
.nav-list .sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: #FFFFFF;
    min-width: 220px;
    padding: 8px;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.10), 0 0 0 1px rgba(0, 0, 0, 0.05);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    list-style: none;
}

.nav-list li:hover > .sub-menu,
.nav-list li.hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-list .sub-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 13px;
    border-radius: 8px;
    color: var(--inoxmilk-color-primitive-steel-900);
    text-decoration: none;
    font-family: var(--inoxmilk-typography-family-heading);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-list .sub-menu a:hover {
    background: rgba(205, 0, 6, 0.05);
    color: var(--inoxmilk-color-semantic-action-primary-default);
}

/* ============================================
   CTA Header Button
   ============================================ */

.header-cta {
    flex-shrink: 0;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 13px;
    border-radius: 100px;
}

/* ============================================
   Hamburger Toggle (Mobile Only)
   ============================================ */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 12px;
    transition: background 0.2s ease;
    flex-shrink: 0;
    z-index: 1001;
    position: relative;
}

.menu-toggle:hover {
    background: rgba(0, 0, 0, 0.04);
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--inoxmilk-color-primitive-steel-900);
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.35s cubic-bezier(0.77, 0, 0.18, 1);
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 28px; }

.menu-toggle.active span:nth-child(1) {
    top: 21px;
    transform: translateX(-50%) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    top: 21px;
    transform: translateX(-50%) rotate(-45deg);
}

/* ============================================
   Mobile Drawer — Off-canvas Panel
   ============================================ */

.mobile-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1099;
    pointer-events: none;
    transition: background 0.4s ease;
    -webkit-backdrop-filter: blur(0);
    backdrop-filter: blur(0);
}

.mobile-drawer-overlay.active {
    background: rgba(0, 0, 0, 0.4);
    pointer-events: auto;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 88vw;
    height: 100vh;
    height: 100dvh;
    z-index: 1100;
    background: #FFFFFF;
    display: flex;
    flex-direction: column;
    transform: translateX(105%);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    visibility: hidden;
}

.mobile-drawer.active {
    transform: translateX(0);
    visibility: visible;
}

/* ── Drawer Header ── */
.mobile-drawer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.mobile-drawer__logo {
    display: flex;
    align-items: center;
}

.mobile-drawer__logo .logo-img,
.mobile-drawer__logo .custom-logo {
    height: 32px;
    width: auto;
}

.mobile-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
    color: var(--inoxmilk-color-primitive-steel-900);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.25s ease, border-color 0.2s ease;
}

.mobile-drawer__close:hover {
    background: rgba(205, 0, 6, 0.06);
    border-color: rgba(205, 0, 6, 0.15);
    color: var(--inoxmilk-color-semantic-action-primary-default);
    transform: rotate(90deg);
}

.mobile-drawer__close:active {
    transform: rotate(90deg) scale(0.9);
}

/* ── Drawer Body ── */
.mobile-drawer__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 16px;
}

/* Hide scrollbar inside drawer */
.mobile-drawer__body::-webkit-scrollbar {
    width: 0;
}

/* ── Nav List inside Drawer ── */
.mobile-drawer__nav {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-drawer__nav > li > a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--inoxmilk-typography-family-heading);
    font-weight: var(--inoxmilk-typography-weight-medium);
    font-size: 15px;
    color: var(--inoxmilk-color-primitive-steel-900);
    padding: 14px 16px;
    border-radius: 12px;
    letter-spacing: 0.01em;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.mobile-drawer__nav > li > a:hover,
.mobile-drawer__nav > li > a:active {
    color: var(--inoxmilk-color-semantic-action-primary-default);
    background: rgba(205, 0, 6, 0.04);
    transform: translateX(4px);
}

.mobile-drawer__nav li.current-menu-item > a,
.mobile-drawer__nav li.current_page_item > a {
    color: var(--inoxmilk-color-semantic-action-primary-default);
    font-weight: var(--inoxmilk-typography-weight-bold);
    background: rgba(205, 0, 6, 0.06);
    position: relative;
}

.mobile-drawer__nav li.current-menu-item > a::before,
.mobile-drawer__nav li.current_page_item > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    border-radius: 0 3px 3px 0;
    background: var(--inoxmilk-color-semantic-action-primary-default);
}

/* Submenu inside drawer */
.mobile-drawer__nav .sub-menu {
    list-style: none;
    padding: 4px 0 8px 20px;
    margin: 0;
    border-left: 2px solid rgba(0, 0, 0, 0.06);
    margin-left: 16px;
}

.mobile-drawer__nav .sub-menu a {
    display: block;
    text-decoration: none;
    font-family: var(--inoxmilk-typography-family-heading);
    font-size: 13.5px;
    color: var(--inoxmilk-color-primitive-steel-600, #64748b);
    padding: 10px 14px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.mobile-drawer__nav .sub-menu a:hover {
    background: rgba(205, 0, 6, 0.04);
    color: var(--inoxmilk-color-semantic-action-primary-default);
}

/* ── Drawer Footer ── */
.mobile-drawer__footer {
    flex-shrink: 0;
    padding: 20px 24px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
}

.mobile-drawer__cta {
    display: block;
    width: 100%;
    padding: 14px 24px;
    font-size: 14px;
    border-radius: 12px;
    text-align: center;
    box-sizing: border-box;
    justify-content: center;
}

.mobile-drawer__copy {
    margin-top: 12px;
    margin-bottom: 0;
    font-size: 11px;
    color: var(--inoxmilk-color-primitive-steel-400, #94a3b8);
    letter-spacing: 0.02em;
}

/* ── Staggered entry animation for links ── */
.mobile-drawer__nav > li {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-drawer.active .mobile-drawer__nav > li {
    opacity: 1;
    transform: translateX(0);
}

.mobile-drawer.active .mobile-drawer__nav > li:nth-child(1) { transition-delay: 0.08s; }
.mobile-drawer.active .mobile-drawer__nav > li:nth-child(2) { transition-delay: 0.12s; }
.mobile-drawer.active .mobile-drawer__nav > li:nth-child(3) { transition-delay: 0.16s; }
.mobile-drawer.active .mobile-drawer__nav > li:nth-child(4) { transition-delay: 0.20s; }
.mobile-drawer.active .mobile-drawer__nav > li:nth-child(5) { transition-delay: 0.24s; }
.mobile-drawer.active .mobile-drawer__nav > li:nth-child(6) { transition-delay: 0.28s; }
.mobile-drawer.active .mobile-drawer__nav > li:nth-child(7) { transition-delay: 0.32s; }
.mobile-drawer.active .mobile-drawer__nav > li:nth-child(8) { transition-delay: 0.36s; }

/* ── Footer fade-in ── */
.mobile-drawer__footer {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease 0.25s, transform 0.35s ease 0.25s;
}

.mobile-drawer.active .mobile-drawer__footer {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsivo — Mobile Breakpoint
   ============================================ */

@media (max-width: 960px) {
    .header-inner {
        padding: 0 20px;
        height: 64px;
    }

    .menu-toggle {
        display: block;
    }

    .header-cta {
        display: none;
    }

    /* Hide desktop nav on mobile */
    .main-navigation {
        display: none;
    }

    .logo-img,
    .site-branding .custom-logo {
        height: 34px;
    }
}

