/* Header CSS */
/* ═══════════════════════════════════════════════════════════════════════════
   PIXELHAFEN DIGITAL — HEADER CSS
   Navbar, navigation links, CTA, mobile hamburger, sticky enhancements.
   ═══════════════════════════════════════════════════════════════════════════ */


/* ══════════════════════════════════════════════════════════════════════════
   NAVBAR
   ══════════════════════════════════════════════════════════════════════════ */

.ph-nav {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 9000;
    background: transparent;
    backdrop-filter: blur(0px);
    border-bottom: 1px solid transparent;
    transition: all 0.5s ease;
    padding: 10px 0 0;
}
.ph-nav.ph-scrolled {
    background: rgba(13,13,13,0.94);
    backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
    border-bottom-color: rgba(255,255,255,0.06);
}
.ph-nav-inner {
    max-width: 1140px; margin: 0 auto;
    padding: 0 clamp(18px, 4vw, 40px);
    display: flex; align-items: center; justify-content: space-between;
    height: 74px;
}
.ph-nav-logo img {
    height: 60px;
    width: auto;
    opacity: 0.95;
    transition: opacity 0.3s ease;
}
.ph-nav-logo:hover img { opacity: 1; }
.ph-nav-links {
    display: flex; gap: 32px;
}
.ph-nav-links a {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
    position: relative;
    background: transparent;
}
.ph-nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 1px;
    background: #BF953F;
    transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}
.ph-nav-links a:hover { color: #BF953F; }
.ph-nav-links a:hover::after { width: 100%; }
.ph-nav-cta {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 1.6rem;
    border: 1.5px solid #BF953F;
    border-radius: 9999px;
    transition: all 0.35s cubic-bezier(0.19, 1, 0.22, 1);
    background: transparent;
    background-image: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    letter-spacing: 0.06em;
}
.ph-nav-cta:hover {
    background: linear-gradient(110deg, #BF953F 0%, #FCF6BA 20%, #B38728 40%, #FBF5B7 60%, #AA771C 80%, #BF953F 100%);
    background-size: 200% 100%;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: #0d0d0d;
    border-color: transparent;
    box-shadow: 0 6px 25px rgba(191,149,63,0.3);
    transform: translateY(-1px);
    animation: ph-gold-flow 4s ease-in-out infinite;
}
@media (max-width: 768px) {
    .ph-nav-links, .ph-nav-cta { display: none; }
    .ph-nav-inner { height: 58px; }
    .ph-nav-logo img { height: 48px; }
}


/* ══════════════════════════════════════════════════════════════════════════
   ENHANCED NAVBAR
   ══════════════════════════════════════════════════════════════════════════ */

.ph-nav {
    animation: ph-nav-slide-down 0.8s cubic-bezier(0.19, 1, 0.22, 1) both;
}

.ph-nav.ph-scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.3), 0 0 60px rgba(191,149,63,0.03);
}

.ph-nav-logo img {
    transition: opacity 0.3s ease, filter 0.3s ease;
}
.ph-nav-logo:hover img {
    filter: drop-shadow(0 0 8px rgba(191,149,63,0.3));
}

/* ── ANIMATED CIRCULAR MOBILE MENU BUTTON ─────────────────────────────── */
.ph-nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    background: rgba(10, 10, 12, 0.4);
    border: 1.5px solid rgba(191, 149, 63, 0.35);
    border-radius: 50%;
    padding: 0;
    cursor: pointer;
    position: relative;
    z-index: 9100;
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.ph-nav-toggle::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 1.5px solid transparent;
    border-top-color: rgba(252, 246, 186, 0.5);
    animation: ph-menu-ring-spin 3s linear infinite;
    pointer-events: none;
}
.ph-nav-toggle:hover,
.ph-nav-toggle:focus-visible {
    outline: none;
    border-color: rgba(191, 149, 63, 0.6);
    background: rgba(191, 149, 63, 0.08);
    box-shadow: 0 0 16px rgba(191, 149, 63, 0.2), 0 0 32px rgba(191, 149, 63, 0.08);
}
.ph-nav-toggle:hover .ph-nav-toggle-dot,
.ph-nav-toggle:focus-visible .ph-nav-toggle-dot {
    background: #FCF6BA;
    box-shadow: 0 0 6px rgba(252, 246, 186, 0.5);
}
.ph-nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: linear-gradient(90deg, #BF953F, rgba(252, 246, 186, 0.9));
    border-radius: 1px;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.ph-nav-toggle .ph-nav-toggle-ring {
    display: none;
}

@keyframes ph-menu-ring-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .ph-nav-toggle { display: flex; }
}
@media (max-width: 480px) {
    .ph-nav-inner {
        padding: 0 20px;
    }
}

/* ── MOBILE MENU CLOSE BUTTON ─────────────────────────────────────────── */
.ph-mobile-close {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(191,149,63,0.18);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9100;
    opacity: 0;
    transform: scale(0.7) rotate(-45deg);
    transition: opacity 0.4s cubic-bezier(0.19,1,0.22,1) 0.25s,
                transform 0.45s cubic-bezier(0.19,1,0.22,1) 0.25s,
                border-color 0.3s ease,
                background 0.3s ease;
}
.ph-mobile-menu.ph-open .ph-mobile-close {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}
.ph-mobile-close:hover {
    border-color: rgba(191,149,63,0.5);
    background: rgba(191,149,63,0.07);
}
.ph-mobile-close span {
    display: block;
    width: 15px;
    height: 1.5px;
    background: linear-gradient(90deg, #BF953F, rgba(252,246,186,0.9));
    border-radius: 1px;
    position: absolute;
    left: 50%;
}
.ph-mobile-close span:nth-child(1) { transform: translateX(-50%) rotate(45deg); }
.ph-mobile-close span:nth-child(2) { transform: translateX(-50%) rotate(-45deg); }

/* ── FULL-SCREEN MOBILE MENU OVERLAY ─────────────────────────────────── */
.ph-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 9050;
    background:
        radial-gradient(circle at 50% 15%, rgba(191,149,63,0.06) 0%, transparent 50%),
        linear-gradient(180deg, rgba(5,5,5,0.98) 0%, rgba(10,10,14,0.99) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s cubic-bezier(0.19, 1, 0.22, 1), visibility 0.45s;
    overflow-y: auto;
    padding: 100px 24px 40px;
}
.ph-mobile-menu.ph-open {
    opacity: 1;
    visibility: visible;
}

/* Gold line accent at top */
.ph-mobile-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(300px, 60vw);
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(191,149,63,0.4), transparent);
    opacity: 0;
    transition: opacity 0.6s ease 0.2s;
}
.ph-mobile-menu.ph-open::before {
    opacity: 1;
}

/* Menu links */
.ph-mobile-menu-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
    max-width: 320px;
}
.ph-mobile-menu-links a {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.04em;
    padding: 18px 0;
    width: 100%;
    text-align: center;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), color 0.3s ease;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.ph-mobile-menu.ph-open .ph-mobile-menu-links a {
    opacity: 1;
    transform: translateY(0);
}
.ph-mobile-menu.ph-open .ph-mobile-menu-links a:nth-child(1) { transition-delay: 0.08s; }
.ph-mobile-menu.ph-open .ph-mobile-menu-links a:nth-child(2) { transition-delay: 0.14s; }
.ph-mobile-menu.ph-open .ph-mobile-menu-links a:nth-child(3) { transition-delay: 0.20s; }
.ph-mobile-menu.ph-open .ph-mobile-menu-links a:nth-child(4) { transition-delay: 0.26s; }
.ph-mobile-menu.ph-open .ph-mobile-menu-links a:nth-child(5) { transition-delay: 0.32s; }

.ph-mobile-menu-links a:hover,
.ph-mobile-menu-links a:active {
    color: #BF953F;
}

/* Mobile CTA button */
.ph-mobile-menu-cta {
    margin-top: 32px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease 0.4s, transform 0.4s cubic-bezier(0.19, 1, 0.22, 1) 0.4s;
}
.ph-mobile-menu.ph-open .ph-mobile-menu-cta {
    opacity: 1;
    transform: translateY(0);
}
.ph-mobile-menu-cta a {
    display: inline-block;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 9999px;
    background: linear-gradient(110deg, #BF953F 0%, #FCF6BA 20%, #B38728 40%, #FBF5B7 60%, #AA771C 80%, #BF953F 100%);
    background-size: 200% 100%;
    color: #0d0d0d;
    letter-spacing: 0.06em;
    box-shadow: 0 8px 30px rgba(191,149,63,0.3);
    animation: ph-gold-flow 4s ease-in-out infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ph-mobile-menu-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(191,149,63,0.4);
    color: #0d0d0d;
}

/* Lock body scroll when menu open */
body.ph-menu-open {
    overflow: hidden;
}
