body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f6f8fb 0%, #eef2f8 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* ===== Header moderno ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(90deg, #0f2a5c 0%, #1a3c79 100%);
    box-shadow: 0 2px 18px rgba(11, 28, 66, 0.18);
}

.header-inner {
    max-width: 1180px;
    margin: 0 auto;
    height: 64px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

/* Marca (logo + nome + estado) */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.brand:hover .brand-logo {
    transform: scale(1.05);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-logo img.is-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.brand-name {
    color: #fff;
    font-weight: 700;
    font-size: 1.06rem;
    white-space: nowrap;
}

.brand-sub {
    color: #9db6e6;
    font-size: 0.74rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 230px;
}

.brand-sub:empty {
    display: none;
}

/* Navegação desktop */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    color: #d6e2f5;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 8px 13px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.nav-item.nav-sos {
    color: #fff;
    background: rgba(226, 59, 59, 0.92);
    font-weight: 600;
}

.nav-item.nav-sos:hover {
    background: #e23b3b;
}

/* Botão hambúrguer */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    z-index: 1001;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Drawer mobile */
.nav-menu.mobile {
    position: fixed;
    top: 0;
    right: -100%;
    width: 282px;
    height: 100vh;
    background: #112a57;
    flex-direction: column;
    align-items: stretch;
    padding: 76px 14px 20px;
    gap: 2px;
    transition: right 0.3s ease;
    z-index: 1000;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.22);
}

.nav-menu.mobile.active {
    right: 0;
}

.nav-menu.mobile .nav-item {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    font-size: 1rem;
}

.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 45, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsivo */
@media (max-width: 900px) {
    .nav-menu:not(.mobile) {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .header-inner {
        height: 58px;
        padding: 0 16px;
    }
    .brand-name {
        font-size: 0.98rem;
    }
    .brand-sub {
        max-width: 160px;
    }
}
