/* =========================================================
   EGYPTIAN PHARAOH CAFÉ — HEADER / ROYAL MASTHEAD
   ========================================================= */

.ph-masthead {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(23, 20, 17, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(201, 162, 74, 0.28);
    transition: background var(--ph-transition-smooth), border-color var(--ph-transition-smooth);
}

.ph-masthead__edge {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(201, 162, 74, 0.2) 20%,
        var(--ph-gold) 50%,
        rgba(201, 162, 74, 0.2) 80%,
        transparent 100%
    );
    box-shadow: 0 0 10px rgba(201, 162, 74, 0.35);
}

.ph-masthead__inner {
    max-width: 1200px;
    margin-inline: auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--ph-header-h);
}

@media (min-width: 768px) {
    .ph-masthead__inner {
        padding: 14px 24px;
    }
}

/* Royal Brand Inscription */
.ph-masthead__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ph-papyrus);
    transition: transform var(--ph-transition-fast);
}

.ph-masthead__brand:hover {
    transform: scale(1.02);
}

.ph-masthead__crest {
    width: 44px;
    height: 44px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--ph-gold);
    border: 1.5px solid var(--ph-gold);
    background: radial-gradient(circle at 35% 35%, #352C23 0%, #171411 90%);
    box-shadow: 0 0 12px rgba(201, 162, 74, 0.18), inset 0 0 6px rgba(0, 0, 0, 0.8);
    box-shadow: 0 0 14px rgba(201, 162, 74, 0.25), inset 0 0 6px rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.ph-masthead__crest::before {
    content: '';
    position: absolute;
    inset: 3px;
    border: 1px dashed rgba(225, 197, 106, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.ph-masthead__crest img {
    width: 24px;
    height: 24px;
    width: 26px;
    height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 0 3px rgba(201, 162, 74, 0.4));
}

.ph-masthead__crest .ph-masthead__logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    filter: none;
}

.ph-masthead__copy {
    display: flex;
    flex-direction: column;
}

.ph-masthead__name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ph-papyrus-bright);
    letter-spacing: 0.04em;
    line-height: 1.25;
}

.ph-masthead__slogan {
    font-size: 0.76rem;
    color: var(--ph-gold);
    letter-spacing: 0.08em;
    opacity: 0.9;
}

/* Desktop Links Navigation */
.ph-masthead__nav {
    display: none;
    align-items: center;
    gap: 8px;
}

@media (min-width: 860px) {
    .ph-masthead__nav {
        display: flex;
    }
}

.ph-masthead__link {
    padding: 8px 16px;
    color: var(--ph-text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--ph-radius-sm);
    border: 1px solid transparent;
    transition: all var(--ph-transition-fast);
    position: relative;
}

.ph-masthead__link:hover {
    color: var(--ph-gold-bright);
    background: rgba(201, 162, 74, 0.06);
    border-color: rgba(201, 162, 74, 0.2);
}

.ph-masthead__link.is-active {
    color: var(--ph-gold-bright);
    border: 1px solid rgba(201, 162, 74, 0.45);
    background: rgba(39, 32, 25, 0.8);
    box-shadow: 0 0 10px rgba(201, 162, 74, 0.12);
}

.ph-masthead__tel {
    font-family: var(--ph-font-display);
    font-size: 0.88rem;
    color: var(--ph-gold);
    text-decoration: none;
    border: 1px solid rgba(201, 162, 74, 0.35);
    padding: 6px 14px;
    border-radius: var(--ph-radius-sm);
    background: rgba(39, 32, 25, 0.6);
    transition: all var(--ph-transition-fast);
}

.ph-masthead__tel:hover {
    border-color: var(--ph-gold-bright);
    color: var(--ph-papyrus-bright);
    box-shadow: 0 0 12px var(--ph-gold-glow);
}

.ph-masthead__logout button {
    background: none;
    border: none;
    color: var(--ph-text-secondary);
    font-size: 0.9rem;
    font-family: var(--ph-font-body);
    padding: 8px 14px;
    cursor: pointer;
    transition: color var(--ph-transition-fast);
}

.ph-masthead__logout button:hover {
    color: var(--ph-status-danger);
}
