/* ========================================
   Easy Digify - Elegant Header
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(221, 221, 221, 0.9);
    box-shadow: 0 8px 30px rgba(8, 20, 60, 0.08);
    z-index: var(--z-fixed);
    transition: box-shadow var(--transition-base);
}

.header-topbar {
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
    color: var(--color-white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.topbar-content {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-xl);
    padding: 0 var(--space-lg);
}

.topbar-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--color-white);
    opacity: 0.92;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: opacity var(--transition-base);
}

.topbar-link:hover {
    opacity: 1;
}

.topbar-icon {
    font-weight: var(--font-weight-semibold);
}

.header-content {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
}

.logo-image {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.logo-link:hover .logo-image {
    transform: scale(1.03);
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text h2 {
    font-size: var(--font-size-h5);
    margin: 0;
    color: var(--color-navy);
}

.logo-text .tagline {
    font-size: var(--font-size-xs);
    color: var(--color-gray-medium);
    margin: 2px 0 0 0;
}

/* Navigation */
.navbar {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-primary);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    padding: 0.45rem 0;
    text-decoration: none;
    position: relative;
    transition: color var(--transition-base);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-primary));
    transition: width var(--transition-base);
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-navy);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    gap: 5px;
    z-index: 1000;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-navy);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

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

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* Main offset for fixed header */
main {
    margin-top: 116px;
    min-height: calc(100vh - 116px);
}

/* Tablet + Mobile */
@media (max-width: 992px) {
    .topbar-content {
        justify-content: center;
        gap: var(--space-lg);
        padding: 0 var(--space-md);
    }

    .logo-text .tagline {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .navbar {
        position: fixed;
        top: 116px;
        left: 0;
        right: 0;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 10px 26px rgba(15, 27, 70, 0.12);
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-base);
    }

    .navbar.active {
        max-height: 420px;
    }

    .nav-menu {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: var(--space-md) 0;
    }

    .nav-item,
    .nav-link {
        width: 100%;
    }

    .nav-link {
        padding: var(--space-md) var(--space-lg);
    }

    .nav-link::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .topbar-content {
        min-height: 38px;
        flex-wrap: wrap;
        row-gap: 2px;
        column-gap: var(--space-md);
    }

    .topbar-link {
        font-size: 11px;
    }

    .header-content {
        min-height: 66px;
        padding: 0 var(--space-md);
    }

    .logo-image {
        height: 44px;
    }

    .logo-text h2 {
        font-size: 18px;
    }

    .navbar {
        top: 104px;
    }

    main {
        margin-top: 104px;
        min-height: calc(100vh - 104px);
    }
}

@media (max-width: 480px) {
    .topbar-content {
        justify-content: flex-start;
        padding: 6px var(--space-sm);
    }

    .topbar-link {
        font-size: 10px;
    }

    .header-content {
        min-height: 60px;
        padding: 0 var(--space-sm);
    }

    .logo-image {
        height: 38px;
    }

    .logo-text h2 {
        font-size: 16px;
    }

    .navbar {
        top: 98px;
    }

    main {
        margin-top: 98px;
        min-height: calc(100vh - 98px);
    }
}

/* Floating Action Buttons */
.whatsapp-btn,
.call-btn {
    position: fixed;
    right: 18px;
    z-index: 450;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 14px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    box-shadow: 0 10px 24px rgba(10, 24, 70, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-btn {
    bottom: 78px;
    background: #25d366;
}

.call-btn {
    bottom: 22px;
    background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
}

.whatsapp-btn:hover,
.call-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(10, 24, 70, 0.3);
}

.whatsapp-btn svg,
.call-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .whatsapp-btn,
    .call-btn {
        width: 48px;
        height: 48px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .whatsapp-btn span,
    .call-btn span {
        display: none;
    }

    .whatsapp-btn {
        bottom: 76px;
        right: 12px;
    }

    .call-btn {
        bottom: 16px;
        right: 12px;
    }
}
