/* =========================================================================
   HEADER02 — Design moderno (glassmorphism + sticky shrink + mega menu)
   Isolado 100%: todas as classes com prefixo h02- ou site-header02
   NÃO interfere com style.css original.
   ========================================================================= */

.site-header02 {
    /* Variáveis CSS isoladas (prefixo h02) */
    --h02-primary: #0432A9;
    --h02-primary-dark: #021a5e;
    --h02-accent: #00D4FF;
    --h02-accent-2: #7B5CFF;
    --h02-cta: #FF6B35;
    --h02-cta-hover: #ff8255;
    --h02-text: #0f1b3d;
    --h02-text-soft: #4a5578;
    --h02-surface: rgba(255, 255, 255, 0.85);
    --h02-surface-solid: #ffffff;
    --h02-border: rgba(4, 50, 169, 0.08);
    --h02-shadow: 0 8px 32px rgba(4, 50, 169, 0.08);
    --h02-shadow-strong: 0 12px 40px rgba(4, 50, 169, 0.18);
    --h02-radius: 14px;
    --h02-radius-sm: 10px;
    --h02-transition: 320ms cubic-bezier(0.4, 0, 0.2, 1);

    position: sticky;
    top: 0;
    z-index: 1050;
    width: 100%;
    font-family: inherit;
    color: var(--h02-text);
}

/* Topbar — gradient escuro (estático; animação removida para evitar tremor) */
.h02-topbar {
    background: linear-gradient(110deg, #021a5e 0%, #0432A9 45%, #2a1a6e 100%);
    color: #ffffff;
    font-size: 0.8125rem;
    padding: 0.45rem 0;
    position: relative;
    z-index: 3; /* acima da .h02-main para dropdowns do topbar aparecerem sobre ela */
}

.h02-topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--h02-accent), transparent);
    opacity: 0.55;
}

.h02-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.h02-topbar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.h02-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--h02-transition), transform var(--h02-transition);
}

.h02-topbar-link i {
    font-size: 0.875rem;
    color: var(--h02-accent);
    transition: transform var(--h02-transition);
}

.h02-topbar-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.h02-topbar-link:hover i {
    transform: scale(1.15) rotate(-5deg);
}

.h02-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.h02-topbar-social {
    display: flex;
    gap: 0.35rem;
}

.h02-topbar-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all var(--h02-transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.h02-topbar-social a:hover {
    background: var(--h02-accent);
    color: var(--h02-primary-dark);
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 6px 18px rgba(0, 212, 255, 0.35);
}

.h02-topbar-social a i { font-size: 0.8rem; }

/* Language switcher customização (reaproveita o component) */
.site-header02 .language-switcher-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border-radius: 999px !important;
    padding: 0.3rem 0.75rem !important;
    font-size: 0.8125rem !important;
    transition: all var(--h02-transition) !important;
}

.site-header02 .language-switcher-btn:hover,
.site-header02 .language-switcher-btn:focus {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: var(--h02-accent) !important;
}

/* Garante que o dropdown de idioma apareça ACIMA da h02-main, do CTA e de qualquer mega-menu */
.site-header02 .language-switcher .dropdown-menu,
.site-header02 .language-switcher-menu {
    z-index: 1080 !important;
    position: absolute !important;
}

/* =========================================================================
   HEADER MAIN — fundo branco sólido + sticky shrink
   ========================================================================= */
.h02-main {
    background: #ffffff;
    border-bottom: 1px solid var(--h02-border);
    box-shadow: var(--h02-shadow);
    transition: box-shadow var(--h02-transition);
    position: relative;
    z-index: 1; /* abaixo do topbar (z-index:3) para não cobrir dropdown do idioma */
}

.h02-main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.1rem 0;
    position: relative;
    z-index: 1;
    transition: padding var(--h02-transition);
}

/* Estado shrink (ativado via JS ao rolar) */
.site-header02.is-scrolled .h02-main {
    background: #ffffff;
    box-shadow: 0 6px 24px rgba(4, 50, 169, 0.1);
}

.site-header02.is-scrolled .h02-main-inner {
    padding: 0.55rem 0;
}

.site-header02.is-scrolled .h02-logo {
    height: 44px;
}

/* Logo */
.h02-brand {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
    flex-shrink: 0;
}

.h02-logo {
    height: 62px;
    width: auto;
    transition: height var(--h02-transition);
}

/* Navegação principal */
.h02-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0 auto;
    list-style: none;
    padding: 0;
}

.h02-nav-item {
    position: relative;
}

.h02-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.7rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--h02-text);
    text-decoration: none;
    border-radius: var(--h02-radius-sm);
    transition: all var(--h02-transition);
    position: relative;
    letter-spacing: 0.01em;
}

.h02-nav-link::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 4px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--h02-accent), var(--h02-accent-2));
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width var(--h02-transition);
}

.h02-nav-link:hover,
.h02-nav-link:focus,
.h02-nav-item.is-active > .h02-nav-link {
    color: var(--h02-primary);
    background: rgba(4, 50, 169, 0.04);
}

.h02-nav-link:hover::before,
.h02-nav-link:focus::before,
.h02-nav-item.is-active > .h02-nav-link::before {
    width: calc(100% - 2rem);
}

.h02-nav-caret {
    display: inline-block;
    font-size: 0.7rem;
    transition: transform var(--h02-transition);
    color: var(--h02-text-soft);
}

.h02-nav-item.is-open .h02-nav-caret,
.h02-nav-item:hover .h02-nav-caret {
    transform: rotate(-180deg);
    color: var(--h02-primary);
}

/* Dropdown simples (Empresa / Contato) */
.h02-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 240px;
    background: var(--h02-surface-solid);
    border: 1px solid var(--h02-border);
    border-radius: var(--h02-radius);
    box-shadow: var(--h02-shadow-strong);
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--h02-transition);
    list-style: none;
    margin: 0;
    z-index: 100;
}

.h02-nav-item:hover > .h02-dropdown,
.h02-nav-item:focus-within > .h02-dropdown,
.h02-nav-item.is-open > .h02-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.h02-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.9rem;
    color: var(--h02-text);
    text-decoration: none;
    border-radius: var(--h02-radius-sm);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--h02-transition);
}

.h02-dropdown-item i {
    width: 18px;
    color: var(--h02-primary);
    font-size: 0.875rem;
}

.h02-dropdown-item:hover {
    background: linear-gradient(90deg, rgba(4, 50, 169, 0.06), transparent);
    color: var(--h02-primary);
    transform: translateX(4px);
}

.h02-dropdown-divider {
    height: 1px;
    background: var(--h02-border);
    margin: 0.35rem 0.5rem;
}

.h02-dropdown-header {
    padding: 0.5rem 0.9rem 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--h02-text-soft);
}

/* =========================================================================
   MEGA MENU (Produtos)
   ========================================================================= */
.h02-mega {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    transform: translateY(-8px);
    width: min(760px, calc(100vw - 2rem));
    background: var(--h02-surface-solid);
    border: 1px solid var(--h02-border);
    border-radius: var(--h02-radius);
    box-shadow: var(--h02-shadow-strong);
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--h02-transition);
    z-index: 100;
}

.h02-nav-item:hover > .h02-mega,
.h02-nav-item:focus-within > .h02-mega,
.h02-nav-item.is-open > .h02-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.h02-mega-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 1.25rem;
}

.h02-mega-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--h02-text-soft);
    margin: 0 0 0.85rem;
}

.h02-mega-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.h02-mega-cat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: var(--h02-radius-sm);
    text-decoration: none;
    color: var(--h02-text);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all var(--h02-transition);
}

.h02-mega-cat-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(4, 50, 169, 0.08));
    color: var(--h02-primary);
    flex-shrink: 0;
    transition: all var(--h02-transition);
}

.h02-mega-cat:hover {
    background: rgba(4, 50, 169, 0.03);
    border-color: var(--h02-border);
    color: var(--h02-primary);
    transform: translateX(2px);
}

.h02-mega-cat:hover .h02-mega-cat-icon {
    background: linear-gradient(135deg, var(--h02-primary), var(--h02-accent-2));
    color: #fff;
    transform: rotate(-6deg) scale(1.08);
}

.h02-mega-feature {
    background: linear-gradient(135deg, var(--h02-primary) 0%, var(--h02-accent-2) 100%);
    border-radius: var(--h02-radius);
    padding: 1.25rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 170px;
    text-decoration: none;
    transition: transform var(--h02-transition), box-shadow var(--h02-transition);
}

.h02-mega-feature::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.35), transparent 70%);
    pointer-events: none;
}

.h02-mega-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(4, 50, 169, 0.35);
    color: #ffffff;
}

.h02-mega-feature-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 1.25rem;
    color: #ffffff;
    position: relative;
    z-index: 1;
}

.h02-mega-feature-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0.75rem 0 0.35rem;
    position: relative;
    z-index: 1;
}

.h02-mega-feature-desc {
    font-size: 0.8125rem;
    opacity: 0.92;
    margin: 0;
    position: relative;
    z-index: 1;
    line-height: 1.5;
}

.h02-mega-feature-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.h02-mega-feature-arrow i {
    transition: transform var(--h02-transition);
}

.h02-mega-feature:hover .h02-mega-feature-arrow i {
    transform: translateX(4px);
}

/* =========================================================================
   ACTIONS (Busca + CTA)
   ========================================================================= */
.h02-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

/* Busca expansível */
.h02-search {
    position: relative;
    display: flex;
    align-items: center;
}

.h02-search-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--h02-border);
    background: #ffffff;
    color: var(--h02-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--h02-transition);
}

.h02-search-toggle:hover {
    background: var(--h02-primary);
    color: #ffffff;
    transform: rotate(-8deg) scale(1.05);
}

.h02-search-form {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--h02-transition);
    pointer-events: none;
    background: #ffffff;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: var(--h02-shadow-strong);
}

.h02-search.is-open .h02-search-form {
    width: 320px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.h02-search.is-open .h02-search-toggle {
    background: var(--h02-cta);
    color: #ffffff;
    border-color: var(--h02-cta);
}

.h02-search-form input {
    flex: 1;
    border: 0;
    padding: 0.75rem 1.2rem;
    font-size: 0.9rem;
    background: transparent;
    outline: none;
    color: var(--h02-text);
    width: 100%;
}

.h02-search-form input::placeholder { color: var(--h02-text-soft); }

.h02-search-submit {
    border: 0;
    background: transparent;
    padding: 0 1rem;
    color: var(--h02-primary);
    cursor: pointer;
    transition: color var(--h02-transition);
    display: flex;
    align-items: center;
}

.h02-search-submit:hover { color: var(--h02-cta); }

/* CTA Button */
.h02-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--h02-cta) 0%, #ff8a4c 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.875rem;
    text-decoration: none;
    border: 0;
    box-shadow: 0 6px 18px rgba(255, 107, 53, 0.35);
    transition: all var(--h02-transition);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.h02-cta::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 700ms;
}

.h02-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(255, 107, 53, 0.5);
    color: #ffffff;
}

.h02-cta:hover::after { left: 100%; }

.h02-cta i { transition: transform var(--h02-transition); }
.h02-cta:hover i { transform: translateX(3px) rotate(-8deg); }

/* Toggler mobile (hamburger) */
.h02-toggler {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--h02-border);
    background: #ffffff;
    color: var(--h02-primary);
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--h02-transition);
}

.h02-toggler:hover {
    background: var(--h02-primary);
    color: #ffffff;
}

.h02-toggler-icon {
    display: inline-block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    position: relative;
    transition: background var(--h02-transition);
}

.h02-toggler-icon::before,
.h02-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform var(--h02-transition);
}

.h02-toggler-icon::before { top: -7px; }
.h02-toggler-icon::after  { top:  7px; }

/* =========================================================================
   OFFCANVAS MOBILE — design moderno
   IMPORTANTE: o offcanvas é renderizado FORA do .site-header02, então as
   variáveis CSS precisam ser redeclaradas aqui para o escopo funcionar.
   ========================================================================= */
.h02-offcanvas {
    /* Variáveis duplicadas para escopo do offcanvas */
    --h02-primary: #0432A9;
    --h02-primary-dark: #021a5e;
    --h02-cta: #FF6B35;
    --h02-text: #0f1b3d;
    --h02-text-soft: #4a5578;
    --h02-border: rgba(4, 50, 169, 0.08);
    --h02-transition: 320ms cubic-bezier(0.4, 0, 0.2, 1);

    border: 0 !important;
    width: min(380px, 88vw) !important;
    background: #ffffff !important;
    box-shadow: -20px 0 60px rgba(2, 26, 94, 0.18);
}

/* Header com gradient sutil + brand */
.h02-offcanvas .offcanvas-header {
    padding: 1.25rem 1.25rem;
    border-bottom: 0;
    background: linear-gradient(135deg, #021a5e 0%, #0432A9 60%, #067BC5 100%);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.h02-offcanvas .offcanvas-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 110% -20%, rgba(255,255,255,0.18), transparent 60%);
    pointer-events: none;
}

.h02-offcanvas .offcanvas-header .btn-close {
    filter: invert(1) brightness(2);
    opacity: 0.9;
    background-size: 0.85rem;
    transition: opacity .15s ease, transform .15s ease;
    position: relative;
    z-index: 1;
}
.h02-offcanvas .offcanvas-header .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.h02-offcanvas-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

.h02-offcanvas-brand img {
    height: 38px;
    width: auto;
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    padding: 4px 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.h02-offcanvas .offcanvas-body {
    padding: 1.75rem 0.85rem 1.5rem;
    background:
        radial-gradient(ellipse at top, rgba(4,50,169,0.04), transparent 70%),
        #ffffff;
    display: flex;
    flex-direction: column;
}

/* Busca mobile — botão absoluto dentro do form */
.h02-mobile-search {
    position: relative;
    display: block;
    background: #ffffff;
    border: 1.5px solid #d6dbe8;
    border-radius: 14px;
    margin: 1rem 0.15rem 1.1rem;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.h02-mobile-search:hover { border-color: #b8c0d6; }

.h02-mobile-search:focus-within {
    background: #fff;
    border-color: var(--h02-primary);
    box-shadow: 0 0 0 3px rgba(4,50,169,0.12);
}

.h02-mobile-search input {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0.7rem 3.2rem 0.7rem 1rem;  /* espaço à direita reservado para o botão */
    outline: none;
    font-size: 0.95rem;
    color: var(--h02-text);
    border-radius: 14px;
    -webkit-appearance: none;
    appearance: none;
}

.h02-mobile-search input::placeholder { color: #6b7691; opacity: 1; }

/* Remove o "X" nativo do type="search" em Webkit/Chrome */
.h02-mobile-search input::-webkit-search-cancel-button,
.h02-mobile-search input::-webkit-search-decoration,
.h02-mobile-search input::-webkit-search-results-button,
.h02-mobile-search input::-webkit-search-results-decoration {
    -webkit-appearance: none;
    appearance: none;
    display: none;
}

.h02-mobile-search button {
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
    border: 0;
    background: var(--h02-primary);
    color: #ffffff;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
    z-index: 2;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 2px 8px rgba(4, 50, 169, 0.25);
}

.h02-mobile-search button i { color: #ffffff; }

.h02-mobile-search button:hover {
    background: #021a5e;
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 4px 12px rgba(4, 50, 169, 0.4);
}

.h02-mobile-search button:active {
    transform: translateY(-50%) scale(0.96);
}

.h02-mobile-search-hint {
    display: block;
    text-align: center;
    font-size: 0.72rem;
    color: var(--h02-text-soft);
    margin: -0.6rem 0.4rem 1rem;
    letter-spacing: 0.2px;
}

.h02-mobile-search-hint kbd {
    background: #eef1f8;
    border: 1px solid #d6dbe8;
    border-bottom-width: 2px;
    border-radius: 4px;
    padding: 0.05rem 0.35rem;
    font-size: 0.7rem;
    font-family: inherit;
    font-weight: 600;
    color: var(--h02-text);
    margin: 0 0.15rem;
}

/* Lista de navegação */
.h02-mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.h02-mobile-nav > li {
    border-bottom: 0;
    opacity: 0;
    transform: translateX(12px);
    animation: h02SlideIn .35s cubic-bezier(.2,.8,.25,1) forwards;
}
.h02-mobile-nav > li:nth-child(1) { animation-delay: 0.04s; }
.h02-mobile-nav > li:nth-child(2) { animation-delay: 0.08s; }
.h02-mobile-nav > li:nth-child(3) { animation-delay: 0.12s; }
.h02-mobile-nav > li:nth-child(4) { animation-delay: 0.16s; }
.h02-mobile-nav > li:nth-child(5) { animation-delay: 0.20s; }
.h02-mobile-nav > li:nth-child(6) { animation-delay: 0.24s; }

@keyframes h02SlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Item do menu — com ícone à esquerda + chevron à direita */
.h02-mobile-link {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 0.85rem;
    color: var(--h02-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 12px;
    position: relative;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.h02-mobile-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: rgba(4, 50, 169, 0.08);
    color: var(--h02-primary);
    border-radius: 10px;
    font-size: 0.95rem;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.h02-mobile-link-text {
    flex: 1;
    line-height: 1.2;
}

.h02-mobile-link i.chevron,
.h02-mobile-link i.chevron-go {
    font-size: 0.78rem;
    color: var(--h02-text-soft);
    transition: transform .25s ease, color .18s ease;
    flex-shrink: 0;
}

.h02-mobile-link:hover,
.h02-mobile-link:focus-visible {
    background: linear-gradient(90deg, rgba(4,50,169,0.06), rgba(6,123,197,0.04));
    color: var(--h02-primary);
    transform: translateX(2px);
    outline: none;
}

.h02-mobile-link:hover .h02-mobile-link-icon,
.h02-mobile-link:focus-visible .h02-mobile-link-icon,
.h02-mobile-link[aria-expanded="true"] .h02-mobile-link-icon {
    background: var(--h02-primary);
    color: #fff;
    transform: scale(1.05);
}

.h02-mobile-link:hover i.chevron-go {
    color: var(--h02-primary);
    transform: translateX(3px);
}

.h02-mobile-link[aria-expanded="true"] {
    background: linear-gradient(90deg, rgba(4,50,169,0.08), rgba(6,123,197,0.05));
    color: var(--h02-primary);
}

.h02-mobile-link[aria-expanded="true"] i.chevron {
    transform: rotate(180deg);
    color: var(--h02-primary);
}

/* Submenu */
.h02-mobile-submenu {
    list-style: none;
    padding: 0.35rem 0 0.55rem 3rem;
    margin: 0;
    position: relative;
}

.h02-mobile-submenu::before {
    content: '';
    position: absolute;
    left: 1.45rem;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 2px;
    background: linear-gradient(to bottom, var(--h02-primary), transparent);
    border-radius: 2px;
    opacity: 0.4;
}

.h02-mobile-submenu li { margin: 0; }

.h02-mobile-submenu a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    color: var(--h02-text-soft);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 8px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.h02-mobile-submenu a i {
    font-size: 0.72rem;
    color: var(--h02-primary);
    opacity: 0.6;
    transition: opacity .18s ease, transform .18s ease;
}

.h02-mobile-submenu a:hover,
.h02-mobile-submenu a:focus-visible {
    color: var(--h02-primary);
    background: rgba(4, 50, 169, 0.06);
    transform: translateX(3px);
    outline: none;
}

.h02-mobile-submenu a:hover i {
    opacity: 1;
    transform: translateX(2px);
}

/* CTA de Pedidos — destaque premium */
.h02-mobile-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: 1.4rem 0.15rem 0;
    padding: 0.95rem 1rem;
    width: calc(100% - 0.3rem);
    border-radius: 14px;
    background-color: #FF6B35;  /* fallback sólido caso o gradient não carregue */
    background-image: linear-gradient(135deg, #FF6B35 0%, #ff8a4c 100%);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(255, 107, 53, 0.38), inset 0 1px 0 rgba(255,255,255,0.25);
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
    overflow: hidden;
    min-height: 52px;
}

/* Garante que ícones e texto fiquem brancos e por cima do ::before */
.h02-mobile-cta i,
.h02-mobile-cta span {
    color: #ffffff !important;
    position: relative;
    z-index: 1;
}

.h02-mobile-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform .6s ease;
    z-index: 0;
}

.h02-mobile-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(255, 107, 53, 0.5), inset 0 1px 0 rgba(255,255,255,0.3);
    color: #fff !important;
}

.h02-mobile-cta:hover::before { transform: translateX(100%); }

.h02-mobile-cta-arrow {
    margin-left: auto;
    transition: transform .2s ease;
}

.h02-mobile-cta:hover .h02-mobile-cta-arrow { transform: translateX(4px); }

/* Footer mobile com socials */
.h02-mobile-footer {
    margin-top: auto;
    padding: 1.5rem 0.5rem 0.25rem;
    text-align: center;
}

.h02-mobile-footer-socials {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.h02-mobile-footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(4, 50, 169, 0.06);
    color: var(--h02-primary);
    font-size: 0.95rem;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.h02-mobile-footer-socials a:hover {
    background: var(--h02-primary);
    color: #fff;
    transform: translateY(-2px);
}

.h02-mobile-footer-copy {
    font-size: 0.75rem;
    color: var(--h02-text-soft);
    margin: 0;
    letter-spacing: 0.2px;
}

/* =========================================================================
   RESPONSIVO
   ========================================================================= */
@media (max-width: 1199.98px) {
    .h02-search.is-open .h02-search-form { width: 260px; }
    .h02-nav-link { padding: 0.65rem 0.75rem; font-size: 0.875rem; }
}

@media (max-width: 991.98px) {
    .h02-nav,
    .h02-main .h02-search,
    .h02-main .h02-cta {
        display: none;
    }

    .h02-toggler { display: inline-flex; }

    /* Padding lateral aplicado para evitar logo colando na borda em mobile/tablet
       (o shorthand antes zerava o gutter do .container) */
    .h02-main-inner {
        padding: 0.85rem 0.5rem;
    }

    .site-header02.is-scrolled .h02-main-inner { padding: 0.55rem 0.5rem; }

    .h02-logo { height: 48px; }
    .site-header02.is-scrolled .h02-logo { height: 40px; }

    .h02-topbar-list .h02-topbar-link span:not(.h02-topbar-icon) { display: none; }
}

@media (max-width: 575.98px) {
    .h02-topbar { font-size: 0.75rem; padding: 0.35rem 0; }
    .h02-topbar-list { gap: 0.75rem; }
    .h02-topbar-right { gap: 0.4rem; }
    .h02-topbar-social a { width: 26px; height: 26px; }

    /* Mais respiro lateral em telas pequenas: ~24px da borda até a logo */
    .h02-main-inner,
    .site-header02.is-scrolled .h02-main-inner {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* Reduzir movimento */
@media (prefers-reduced-motion: reduce) {
    .site-header02 * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
