/* ============================================================
   HEADER.CSS — UmraPackage Navigation & Top Bar Styles
   ============================================================ */

/* ── Top Bar ─────────────────────────────────────────────── */
.up-topbar {
    background: linear-gradient(135deg, #b8922e 0%, #d4a843 50%, #b8922e 100%);
    background-size: 200% 100%;
    animation: topbarShimmer 4s ease infinite;
    color: #fff;
    padding: 0.65rem 0;
    font-size: 0.82rem;
    font-weight: 500;
    position: relative;
    z-index: 1100;
    letter-spacing: 0.01em;
}
.up-container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

@keyframes topbarShimmer {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.up-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.up-topbar-offer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.up-topbar-offer i {
    animation: pulse 2s infinite;
    font-size: 0.85rem;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.2); }
}

.up-topbar-contact {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.up-topbar-contact a {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    transition: opacity 0.2s;
}

.up-topbar-contact a:hover { opacity: 0.8; text-decoration: underline; }

/* ── Sticky Header Shell ─────────────────────────────────── */
.up-header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.up-header.scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
}

.up-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
    gap: 1rem;
}

/* ── Logo ────────────────────────────────────────────────── */
.up-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.up-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #1a5d3a, #2d8a5e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(26,93,58,0.3);
    transition: transform 0.3s ease;
}

.up-logo:hover .up-logo-icon { transform: rotate(-5deg) scale(1.05); }

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

.up-logo-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
    color: #1a5d3a;
    letter-spacing: -0.01em;
}

.up-logo-tagline {
    font-size: 0.68rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
}

/* ── Navigation Wrapper ──────────────────────────────────── */
.up-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ── Nav Items & Dropdowns ───────────────────────────────── */
.up-nav-list {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.up-nav-item {
    position: relative;
}

/* Top-level link */
.up-nav-link {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.55rem 0.9rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #374151;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    text-decoration: none;
    border: none;
    background: none;
    font-family: inherit;
    letter-spacing: 0.01em;
}

.up-nav-link .up-arrow {
    font-size: 0.65rem;
    transition: transform 0.25s ease;
    color: #9ca3af;
}

.up-nav-item:hover > .up-nav-link,
.up-nav-item:focus-within > .up-nav-link {
    color: #1a5d3a;
    background: #f0faf4;
}

.up-nav-item:hover > .up-nav-link .up-arrow,
.up-nav-item:focus-within > .up-nav-link .up-arrow {
    transform: rotate(180deg);
    color: #1a5d3a;
}

/* ── Dropdown Panel ──────────────────────────────────────── */
.up-dropdown {
    position: absolute;
    top: calc(100% + 0px);
    left: 50%;
    transform: translateX(-50%) translateY(0px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.06);
    min-width: 230px;
    padding: 0.6rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 2000;
}

/* Wide dropdown for packages */
.up-dropdown-wide {
    min-width: 580px;
    left: 0;
    transform: translateX(0) translateY(8px);
    padding: 1rem;
}

.up-nav-item:hover > .up-dropdown,
.up-nav-item:focus-within > .up-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.up-nav-item:hover > .up-dropdown-wide,
.up-nav-item:focus-within > .up-dropdown-wide {
    transform: translateX(0) translateY(0);
}

/* Dropdown arrow tip */
.up-dropdown::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid rgba(0,0,0,0.06);
    border-top: 1px solid rgba(0,0,0,0.06);
    transform: translateX(-50%) rotate(45deg);
}

.up-dropdown-wide::before { left: 30px; transform: rotate(45deg); }

/* Simple dropdown link */
.up-dropdown-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border-radius: 10px;
    color: #374151;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.18s, color 0.18s;
    white-space: nowrap;
}

.up-dropdown-link:hover {
    background: #f0faf4;
    color: #1a5d3a;
}

.up-dropdown-link-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e8f5ee, #d0ebdb);
    color: #1a5d3a;
    transition: background 0.18s;
}

.up-dropdown-link:hover .up-dropdown-link-icon {
    background: linear-gradient(135deg, #1a5d3a, #2d8a5e);
    color: #fff;
}

.up-dropdown-link-text { display: flex; flex-direction: column; }

.up-dropdown-link-label {
    font-weight: 600;
    font-size: 0.85rem;
    color: inherit;
}

.up-dropdown-link-sub {
    font-size: 0.72rem;
    color: #9ca3af;
    margin-top: 1px;
}

.up-dropdown-link:hover .up-dropdown-link-sub { color: #6b7280; }

/* Wide dropdown grid */
.up-dropdown-wide-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.3rem;
}

.up-dropdown-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
    padding: 0.5rem 0.85rem 0.25rem;
    grid-column: 1 / -1;
}

.up-dropdown-divider {
    height: 1px;
    background: #f3f4f6;
    margin: 0.4rem 0;
    grid-column: 1 / -1;
}

/* Featured mega card inside dropdown */
.up-dropdown-featured {
    background: linear-gradient(135deg, #1a5d3a, #2d8a5e);
    border-radius: 12px;
    padding: 1rem;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: opacity 0.2s;
    margin-top: 0.3rem;
}

.up-dropdown-featured:hover { opacity: 0.9; }

.up-dropdown-featured-text {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.up-dropdown-featured-sub {
    color: rgba(255,255,255,0.75);
    font-size: 0.72rem;
    margin-top: 2px;
}

.up-dropdown-featured-cta {
    background: rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Separator between nav and CTA */
.up-nav-sep {
    width: 1px;
    height: 24px;
    background: #e5e7eb;
    margin: 0 0.5rem;
    flex-shrink: 0;
}

/* ── Header CTA Button ───────────────────────────────────── */
.up-nav-cta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #1a5d3a, #2d8a5e);
    color: #fff;
    padding: 0.65rem 1.35rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(26,93,58,0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.01em;
}

.up-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26,93,58,0.4);
}

/* ── Mobile Hamburger ────────────────────────────────────── */
.up-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
    background: none;
    border: none;
    border-radius: 8px;
    transition: background 0.2s;
}

.up-mobile-toggle:hover { background: #f3f4f6; }

.up-mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1a5d3a;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.up-mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.up-mobile-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.up-mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Mobile Drawer ───────────────────────────────────────── */
@media (max-width: 1024px) {
    .up-mobile-toggle { display: flex; }
    .up-topbar-contact { display: none; }

    .up-nav {
        position: fixed;
        inset: 78px 0 0 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.5rem 2rem;
        overflow-y: auto;
        gap: 0.25rem;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: -4px 0 24px rgba(0,0,0,0.08);
        height: fit-content;
    }

    .up-nav.open { transform: translateX(0); }

    .up-nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }

    .up-nav-item { width: 100%; }

    .up-nav-link {
        width: 100%;
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
        border-radius: 10px;
        justify-content: space-between;
    }

    .up-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none !important;
        box-shadow: none;
        border: none;
        background: #f9fafb;
        border-radius: 10px;
        margin: 0.25rem 0 0.25rem 0.5rem;
        padding: 0.5rem;
        display: none;
        min-width: unset;
    }

    .up-dropdown::before { display: none; }
    .up-dropdown-wide { min-width: unset; }
    .up-dropdown-wide-grid { grid-template-columns: 1fr; }

    .up-nav-item.mob-open > .up-dropdown { display: block; }

    .up-nav-sep { display: none; }

    .up-nav-cta {
        width: 100%;
        justify-content: center;
        padding: 0.9rem;
        font-size: 0.95rem;
        border-radius: 12px;
        margin-top: 0.5rem;
    }

    .up-dropdown-section-title { grid-column: 1; }
    .up-dropdown-divider { grid-column: 1; }
    .up-dropdown-featured { flex-direction: column; gap: 0.75rem; }
}

@media (max-width: 640px) {
    .up-topbar-inner { justify-content: center; }
    .up-header-inner { height: 68px; }
    .up-nav { inset: 68px 0 0 0; }
    .up-logo-brand { font-size: 1.2rem; }
    .up-logo-icon { width: 40px; height: 40px; font-size: 1.1rem; }
    
    .up-topbar {
    display: none;
}
}
