/* ====================================
   HEADER E NAVEGAÇÃO
   ==================================== */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 215, 0, 0.25);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 215, 0, 0.12) 50%,
        transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header:hover::before {
    opacity: 1;
}

/* Nav Container */
.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--gold), var(--gold-light), var(--silver));
    border-radius: 10px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(15px);
}

.logo:hover::before {
    opacity: 0.3;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold);
    box-shadow:
        0 4px 15px rgba(255, 215, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.1) rotate(5deg);
    box-shadow:
        0 6px 20px rgba(255, 215, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.logo-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    position: relative;
    margin: 0;
}

.logo-text span {
    font-size: 0.9rem;
    color: var(--silver-light);
    display: block;
    margin-top: -5px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo.no-logo .logo-text {
    margin-left: 0;
}

.logo.no-logo .logo-img {
    display: none;
}

/* Navegação Sidebar */
.nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: linear-gradient(145deg, rgba(0, 0, 0, 0.98), rgba(17, 17, 17, 0.95), rgba(10, 10, 10, 0.98));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255, 215, 0, 0.4);
    box-shadow:
        -15px 0 40px rgba(0, 0, 0, 0.6),
        inset 1px 0 0 rgba(255, 215, 0, 0.1);
    transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1001;
    overflow: hidden;
}

.nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(192, 192, 192, 0.06) 0%, transparent 40%),
        linear-gradient(135deg, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.nav::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--gold) 20%,
        var(--gold-light) 50%,
        var(--gold) 80%,
        transparent 100%);
    animation: sidebarGlow 4s ease-in-out infinite;
    opacity: 0.8;
}

.nav.active {
    right: 0;
}

/* Sidebar Logo */
.sidebar-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px 15px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.15);
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
    background: rgba(255, 215, 0, 0.05);
}

.sidebar-logo .logo {
    gap: 12px;
    transform: scale(0.9);
}

.sidebar-logo .logo-img {
    width: 45px;
    height: 45px;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.sidebar-logo .logo-text h2 {
    font-size: 1.4rem;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.sidebar-logo .logo-text span {
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* Nav List */
.nav-list {
    display: flex;
    flex-direction: column;
    list-style: none;
    padding: 15px 0 80px 0;
    gap: 2px;
    position: relative;
    z-index: 2;
    height: calc(100vh - 200px);
    overflow-y: auto;
    scroll-behavior: smooth;
}

.nav-list::-webkit-scrollbar {
    width: 3px;
}

.nav-list::-webkit-scrollbar-track {
    background: rgba(255, 215, 0, 0.1);
}

.nav-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--gold), var(--gold-light));
    border-radius: 10px;
}

/* Nav Links */
.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--silver-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 12px 20px;
    margin: 1px 10px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    transition: left 0.3s ease;
    z-index: -1;
    border-radius: 12px;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: var(--gold);
    transition: height 0.3s ease;
    border-radius: 0 2px 2px 0;
}

.nav-link[href*="home"] .nav-icon::before { content: '🏠'; }
.nav-link[href*="sobre"] .nav-icon::before { content: '👤'; }
.nav-link[href*="protese"] .nav-icon::before { content: '✨'; }
.nav-link[href*="servicos"] .nav-icon::before { content: '⚙️'; }
.nav-link[href*="galeria"] .nav-icon::before { content: '📸'; }
.nav-link[href*="avaliacoes"] .nav-icon::before { content: '⭐'; }
.nav-link[href*="localizacao"] .nav-icon::before { content: '📍'; }
.nav-link[href*="contato"] .nav-icon::before { content: '📞'; }

.nav-link:hover::before,
.nav-link.active::before {
    left: 0;
}

.nav-link:hover::after,
.nav-link.active::after {
    height: 60%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--black);
    font-weight: 600;
    transform: translateX(8px);
    box-shadow:
        0 4px 15px rgba(255, 215, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    opacity: 1;
    background: rgba(255, 215, 0, 0.1);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--black);
    font-weight: 600;
}

.nav-link.active::after {
    height: 80%;
    background: var(--black);
}

.nav-icon {
    margin-right: 8px;
    font-size: 1.1em;
}

.nav-text {
    flex: 1;
}

/* Close Button */
.nav-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 215, 0, 0.15);
    border: 1px solid rgba(255, 215, 0, 0.3);
    color: var(--gold);
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    z-index: 3;
    backdrop-filter: blur(10px);
}

.nav-close:hover {
    background: var(--gold);
    color: var(--black);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Sidebar Contact */
.sidebar-contact {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 215, 0, 0.15);
    background: linear-gradient(180deg, transparent, rgba(255, 215, 0, 0.05));
    z-index: 2;
}

.sidebar-contact p {
    color: var(--silver);
    font-size: 0.8rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.sidebar-contact a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.2);
    transition: all 0.3s ease;
    display: inline-block;
}

.sidebar-contact a:hover {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* Sidebar Overlay */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 100%);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
    pointer-events: none;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* Hamburger Menu */
.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: relative;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.hamburger:hover {
    background: rgba(255, 215, 0, 0.15);
    transform: scale(1.05);
}

.hamburger span {
    width: 24px;
    height: 2.5px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(15px);
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Animações */
@keyframes slideInRightSmooth {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.nav.active .nav-link {
    animation: slideInRightSmooth 0.4s ease forwards;
}

.nav.active .nav-link:nth-child(1) { animation-delay: 0.05s; }
.nav.active .nav-link:nth-child(2) { animation-delay: 0.1s; }
.nav.active .nav-link:nth-child(3) { animation-delay: 0.15s; }
.nav.active .nav-link:nth-child(4) { animation-delay: 0.2s; }
.nav.active .nav-link:nth-child(5) { animation-delay: 0.25s; }
.nav.active .nav-link:nth-child(6) { animation-delay: 0.3s; }
.nav.active .nav-link:nth-child(7) { animation-delay: 0.35s; }
.nav.active .nav-link:nth-child(8) { animation-delay: 0.4s; }

@keyframes sidebarGlow {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
