/* ─── ArchAdhyan Custom Header ───────────────────────────── */
.archadhyan-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.archadhyan-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    height: 68px;
    position: relative;
}

/* ── Logo ── */
.header-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo img {
    height: 42px;
    width: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-text .brand-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f0f0f;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.logo-text .brand-sub {
    font-size: 0.6rem;
    font-weight: 500;
    color: #718096;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Nav ── */
.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Center nav absolutely in header */
.header-inner > nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header-nav a {
    display: block;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #2d3748;
    text-decoration: none;
    border-radius: 8px;
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
    position: relative;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #f52008;
    border-radius: 2px;
    transition: width 0.25s ease;
}

.header-nav a:hover {
    color: #f52008;
    background: rgba(245, 32, 8, 0.04);
}

.header-nav a:hover::after,
.header-nav a.active::after {
    width: 60%;
}

.header-nav a.active {
    color: #f52008;
}

/* ── Right group ── */
.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* ── Icon Group (call + avatar) ── */

.header-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.22s ease;
    text-decoration: none;
    flex-shrink: 0;
}

.header-icon-btn.call {
    background: rgba(245, 32, 8, 0.08);
    color: #f52008;
    box-shadow: none;
}

.header-icon-btn.call:hover {
    background: rgba(245, 32, 8, 0.15);
    transform: scale(1.08);
    box-shadow: none;
}

.header-icon-btn.avatar {
    background: #3a3a3a;
    color: #ffffff;
    overflow: hidden;
    padding: 0;
}

.header-icon-btn.avatar.has-photo {
    background: transparent;
}

.header-icon-btn.avatar img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
    pointer-events: none;
}

.header-icon-btn.avatar:hover {
    background: #222222;
    color: #ffffff;
    transform: scale(1.08);
}

/* ── Avatar Dropdown ── */
.avatar-wrapper {
    position: relative;
}

.avatar-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    min-width: 150px;
    padding: 6px;
    z-index: 999;
    animation: dropdownFade 0.18s ease;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.avatar-dropdown.open {
    display: block;
}

.avatar-dropdown a {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    font-size: 0.83rem;
    font-weight: 600;
    color: #2d3748;
    text-decoration: none;
    border-radius: 7px;
    transition: all 0.18s ease;
}

.avatar-dropdown a:hover {
    background: rgba(245, 32, 8, 0.05);
    color: #f52008;
}

.avatar-dropdown a i {
    width: 14px;
    text-align: center;
    color: #888;
    font-size: 0.78rem;
}

.avatar-dropdown a:hover i {
    color: #f52008;
}

.avatar-dropdown-divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 4px 0;
}


/* ── CTA Button ── */
.header-cta {

    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #f52008;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: 0.03em;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(245, 32, 8, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
}

.header-cta:hover {
    background: #c0392b;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(245, 32, 8, 0.35);
}

/* ── Hamburger (mobile) ── */
.header-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    border: none;
    background: none;
    border-radius: 6px;
    transition: background 0.2s;
}

.header-hamburger:hover {
    background: rgba(0, 0, 0, 0.05);
}

.header-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #0f0f0f;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.header-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.header-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.header-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Drawer ── */
.header-mobile-menu {
    display: none;
    flex-direction: column;
    background: #fff;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 12px 20px 20px;
    gap: 4px;
    animation: slideDown 0.25s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.header-mobile-menu.open {
    display: flex;
}

.header-mobile-menu a {
    padding: 12px 14px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #2d3748;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.header-mobile-menu a:hover,
.header-mobile-menu a.active {
    color: #f52008;
    background: rgba(245, 32, 8, 0.05);
}

.header-mobile-cta {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #f52008;
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700 !important;
    font-family: inherit;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    text-align: center;
    width: 100%;
}

.header-mobile-cta:hover {
    background: #c0392b;
    color: #fff !important;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .header-nav,
    .header-cta {
        display: none;
    }

    .header-hamburger {
        display: flex;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 16px;
        height: 60px;
    }

    .logo-text .brand-name {
        font-size: 0.82rem;
    }
}
