﻿/* ===== Site Header (compartilhado) ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: box-shadow 0.35s ease;
}

.site-header.scrolled {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.header-top {
    background: var(--black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    max-height: 40px;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.35s ease;
}

.site-header.scrolled .header-top {
    max-height: 0;
    opacity: 0;
    border-bottom: none;
}

.header-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    font-size: 0.8rem;
}

.header-top-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.75);
}

.header-top-contact a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.25s ease;
}

.header-top-contact a:hover {
    color: var(--primary-yellow);
}

.header-top-contact i {
    color: var(--accent-orange);
    margin-right: 6px;
    font-size: 0.75rem;
}

.header-top-divider {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.15);
}

.header-top-social {
    display: flex;
    gap: 0.5rem;
}

.header-top-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    font-size: 0.75rem;
    transition: all 0.25s ease;
}

.header-top-social a:hover {
    background: var(--accent-orange);
    color: #fff;
    transform: translateY(-2px);
}

.navbar-main {
    background: rgba(13, 13, 13, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.65rem 0;
    transition: padding 0.35s ease, background 0.35s ease;
}

.site-header.scrolled .navbar-main {
    background: rgba(13, 13, 13, 0.96);
    padding: 0.45rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    color: var(--primary-yellow) !important;
    padding: 0;
}

.navbar-brand img {
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.brand-tagline {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--primary-yellow);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.header-phone-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(242, 135, 5, 0.15);
    color: var(--primary-yellow);
    text-decoration: none;
    margin-right: 0.5rem;
    transition: all 0.25s ease;
}

.header-phone-mobile:hover {
    background: var(--accent-orange);
    color: #fff;
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.88) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.55rem 1rem !important;
    margin: 0 0.1rem;
    border-radius: 10px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link .nav-icon {
    font-size: 0.8em;
    margin-right: 7px;
    opacity: 0.75;
    transition: opacity 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-yellow) !important;
    background: rgba(242, 226, 5, 0.08);
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
    opacity: 1;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--accent-orange));
    border-radius: 2px;
}

.navbar-main .nav-link:not(.active)::after {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-left: 1.25rem;
    padding-left: 1.25rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-header-catalog {
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-header-catalog:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.btn-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 1.25rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: #25D366;
    text-decoration: none;
    border: none;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-header-cta:hover {
    background: #1da851;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

.scroll-progress {
    height: 3px;
    background: linear-gradient(90deg, var(--primary-yellow), var(--accent-orange), var(--secondary-orange));
    width: 0%;
    transform-origin: left;
}

.custom-toggler {
    border: none;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: background 0.25s ease;
}

.custom-toggler:focus {
    box-shadow: 0 0 0 3px rgba(242, 226, 5, 0.35);
}

.custom-toggler:not(.collapsed) {
    background: rgba(242, 135, 5, 0.2);
}

.toggler-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.custom-toggler:not(.collapsed) .toggler-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.custom-toggler:not(.collapsed) .toggler-bar:nth-child(2) {
    opacity: 0;
}

.custom-toggler:not(.collapsed) .toggler-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(13, 13, 13, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-radius: 16px;
        margin-top: 0.75rem;
        padding: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
    }

    .navbar-nav {
        gap: 0.25rem;
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
    }

    .nav-link.active::after {
        display: none;
    }

    .nav-link.active {
        background: rgba(242, 226, 5, 0.12);
        border-left: 3px solid var(--primary-yellow);
        border-radius: 0 10px 10px 0;
    }

    .header-actions {
        flex-direction: column;
        margin: 1rem 0 0;
        padding: 1rem 0 0;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        width: 100%;
    }

    .btn-header-catalog,
    .btn-header-cta {
        width: 100%;
        justify-content: center;
    }

    .btn-header-catalog {
        display: inline-flex !important;
    }
}

@media (max-width: 575.98px) {
    .brand-tagline {
        display: none;
    }

    .brand-name {
        font-size: 1.05rem;
    }
}

body.has-site-header .hero-section,
body.has-site-header .hero-institucional {
    padding-top: 140px;
}

@media (max-width: 991.98px) {
    body.has-site-header .hero-section,
    body.has-site-header .hero-institucional {
        padding-top: 110px;
    }
}
