/* ========================================
   SISTEMA DE HEADER STICKY PADRONIZADO
   Advocacia Mizuguti - Páginas de Serviços
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* ========================================
   HEADER STICKY
======================================== */
.adv-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.adv-header:hover {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 25px rgba(0, 0, 0, 0.15);
}

/* ========================================
   LOGO RESPONSIVO
======================================== */
.adv-header-logo {
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.adv-header-logo a {
    display: block;
    line-height: 0;
}

.adv-header-logo a:focus {
    outline: 2px solid #0056b3;
    outline-offset: 4px;
    border-radius: 4px;
    padding: 2px;
}

.adv-header-logo img {
    height: 50px;
    width: auto;
    min-width: 140px;
    max-width: 200px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.adv-header-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(0, 86, 179, 0.2));
}

/* ========================================
   NAVEGAÇÃO DESKTOP
======================================== */
.adv-header-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex: 1;
    justify-content: flex-end;
}

.adv-main-nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 2rem;
    align-items: center;
}

.adv-main-nav-links li {
    position: relative;
}

.adv-main-nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.adv-main-nav-links a:hover {
    color: #0056b3;
}

.adv-main-nav-links a[aria-current="page"] {
    color: #0056b3;
    font-weight: 600;
    position: relative;
}

.adv-main-nav-links a[aria-current="page"]::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0056b3;
    border-radius: 1px;
}

/* ========================================
   DROPDOWN MENU
======================================== */
.adv-dropdown {
    position: relative;
}

.adv-dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    min-width: 280px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.adv-dropdown:hover .adv-dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.adv-dropdown-content a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    border-radius: 0;
}

.adv-dropdown-content a:hover {
    background: #f8f9fa;
    color: #0056b3;
    padding-left: 2rem;
}

.adv-dropdown-content a[aria-current="page"] {
    background: #e3f2fd;
    color: #0056b3;
    font-weight: 600;
}

/* ========================================
   BOTÃO CTA
======================================== */
.adv-header-cta-btn {
    background: linear-gradient(135deg, #0056b3 0%, #004494 100%);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    white-space: nowrap;
}

.adv-header-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 86, 179, 0.3);
    background: linear-gradient(135deg, #004494 0%, #003875 100%);
}

.adv-header-cta-btn:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.3);
}

/* ========================================
   MENU MOBILE - BOTÃO TOGGLE
======================================== */
.adv-mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.adv-mobile-menu-toggle:hover {
    background: #f0f0f0;
    color: #0056b3;
}

.adv-mobile-menu-toggle:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

/* ========================================
   OVERLAY MOBILE
======================================== */
.adv-mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.adv-mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

.adv-mobile-nav-overlay > ul {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: white;
    list-style: none;
    margin: 0;
    padding: 2rem 0 0 0;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
}

.adv-mobile-nav-overlay.active > ul {
    transform: translateX(0);
}

.adv-mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.adv-mobile-nav-overlay li {
    border-bottom: 1px solid #eee;
}

.adv-mobile-nav-overlay a {
    display: block;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.adv-mobile-nav-overlay a:hover {
    background: #f8f9fa;
    color: #0056b3;
    padding-left: 2rem;
}

.adv-mobile-nav-overlay a[aria-current="page"] {
    background: #e3f2fd;
    color: #0056b3;
    font-weight: 600;
}

/* ========================================
   ACCORDION MOBILE
======================================== */
.adv-mobile-accordion-toggle {
    width: 100%;
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    text-align: left;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.adv-mobile-accordion-toggle:hover {
    background: #f8f9fa;
    color: #0056b3;
}

.accordion-arrow {
    transition: transform 0.3s ease;
    font-size: 12px;
}

.adv-mobile-accordion-toggle[aria-expanded="true"] .accordion-arrow {
    transform: rotate(180deg);
}

.adv-mobile-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.adv-mobile-submenu.open {
    max-height: 500px;
}

.adv-mobile-submenu a {
    padding: 0.75rem 3rem;
    font-size: 14px;
    color: #666;
    border-bottom: 1px solid #e9ecef;
}

.adv-mobile-submenu a:hover {
    background: #e9ecef;
    color: #0056b3;
    padding-left: 3.5rem;
}

.adv-mobile-submenu a[aria-current="page"] {
    background: #0056b3;
    color: white;
    font-weight: 600;
}

/* ========================================
   IMAGENS DE SERVIÇOS - RESPONSIVAS
======================================== */
.servico-imagem {
    width: 100%;
    height: auto;
    max-width: 350px;
    margin: 0 auto 2rem auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: cover;
    object-position: center;
}

.servico-imagem:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* WebP image optimization */
@supports (image-rendering: -webkit-optimize-contrast) {
    .servico-imagem {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* ========================================
   BREAKPOINTS RESPONSIVOS
======================================== */

/* Tablet (992px) */
@media (max-width: 992px) {
    .adv-header {
        height: 75px;
        padding: 0 1.5rem;
    }
    
    .adv-header-nav {
        display: none;
    }
    
    .adv-mobile-menu-toggle {
        display: block;
    }
    
    .adv-header-logo img {
        height: 42px;
        max-width: 180px;
        min-width: 100px;
    }
    
    .servico-imagem {
        max-width: 300px;
    }
}

/* Mobile (768px) */
@media (max-width: 768px) {
    .adv-header {
        height: 65px;
        padding: 0 1rem;
    }
    
    .adv-header-logo img {
        height: 38px;
        max-width: 160px;
        min-width: 90px;
    }
    
    .adv-mobile-nav-overlay ul {
        width: 280px;
    }
    
    .servico-imagem {
        max-width: 250px;
        margin-bottom: 1.5rem;
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    .adv-header {
        height: 60px;
        padding: 0 0.75rem;
    }
    
    .adv-header-logo img {
        height: 34px;
        max-width: 140px;
        min-width: 80px;
    }
    
    .adv-mobile-nav-overlay ul {
        width: 100%;
    }
    
    .servico-imagem {
        max-width: 200px;
        margin-bottom: 1rem;
    }
}

/* Extra Small (360px) */
@media (max-width: 360px) {
    .adv-header {
        height: 55px;
        padding: 0 0.5rem;
    }
    
    .adv-header-logo img {
        height: 30px;
        max-width: 120px;
        min-width: 70px;
    }
    
    .adv-mobile-menu-toggle {
        font-size: 20px;
        padding: 0.4rem;
    }
    
    .servico-imagem {
        max-width: 180px;
    }
}

/* ========================================
   AJUSTES DE CONTEÚDO
======================================== */
.container {
    margin-top: 2rem;
    padding: 0 1rem;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ========================================
   ACESSIBILIDADE
======================================== */
.adv-header button:focus,
.adv-header a:focus {
    outline: 2px solid #0056b3;
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .adv-header {
        background: white;
        border-bottom: 2px solid black;
    }
    
    .adv-dropdown-content {
        border: 2px solid black;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .adv-header,
    .adv-header-logo img,
    .adv-dropdown-content,
    .adv-mobile-nav-overlay,
    .accordion-arrow,
    .servico-imagem {
        transition: none;
    }
} 