/* ==========================================
   RUNHAMS DECORATING - NAVIGATION
   Top bar, sticky desktop nav, mobile overlay
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Overpass:wght@300;400;600;700&display=swap');

/* ==========================================
   TOP BAR
   ========================================== */

.runhams-topbar {
    background-color: #2b2b2b;
    padding: 0.5rem 2rem;
    font-family: 'Overpass', sans-serif;
}

.runhams-topbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.runhams-topbar-left,
.runhams-topbar-right {
    display: flex;
    align-items: center;
}

.runhams-topbar-item {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s ease;
}

.runhams-topbar-item:hover {
    color: #fff;
}

.runhams-topbar-item i {
    font-size: 0.6875rem;
    color: #d90f0f;
}

.runhams-topbar-phone {
    color: #fff;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.3s ease;
}

.runhams-topbar-phone:hover {
    color: rgba(255, 255, 255, 0.8);
}

.runhams-topbar-phone i {
    font-size: 0.6875rem;
    color: #d90f0f;
}

/* ==========================================
   DESKTOP NAVIGATION (sticky)
   ========================================== */

.runhams-nav {
    background-color: #fff;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    font-family: 'Overpass', sans-serif;
    transition: box-shadow 0.3s ease;
}

.runhams-nav.scrolled {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.runhams-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 82px;
}

/* Logo */
.runhams-nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.runhams-nav-logo img {
    height: 62px;
    width: auto;
    display: block;
}

/* Desktop Menu */
.runhams-nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.runhams-nav-menu ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.runhams-nav-menu ul li a {
    text-decoration: none;
    color: #555;
    font-weight: 400;
    font-size: 0.9375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 4px;
    transition: color 0.3s ease, background-color 0.3s ease;
    display: block;
    position: relative;
}

.runhams-nav-menu ul li a:hover {
    color: #d90f0f;
    background-color: rgba(217, 15, 15, 0.04);
}

/* Active link */
.runhams-nav-menu ul li a.active {
    color: #d90f0f;
    font-weight: 600;
}

/* Nav CTA Button */
.runhams-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.375rem;
    background-color: #d90f0f;
    color: #fff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 4px;
    letter-spacing: 0.2px;
    margin-left: 0.75rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.runhams-nav-cta:hover {
    background-color: #b50d0d;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(217, 15, 15, 0.25);
}

/* Hamburger - hidden on desktop */
.runhams-nav-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    position: relative;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
}

.runhams-nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s ease;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.runhams-nav-hamburger span:nth-child(1) {
    top: 12px;
}

.runhams-nav-hamburger span:nth-child(2) {
    top: 19px;
}

.runhams-nav-hamburger span:nth-child(3) {
    top: 26px;
}

/* Hamburger → X animation */
.runhams-nav-hamburger.active span:nth-child(1) {
    top: 19px;
    transform: translateX(-50%) rotate(45deg);
}

.runhams-nav-hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-50%) scaleX(0);
}

.runhams-nav-hamburger.active span:nth-child(3) {
    top: 19px;
    transform: translateX(-50%) rotate(-45deg);
}

/* Mobile menu - hidden on desktop */
.runhams-mobile-nav {
    display: none;
}

/* ==========================================
   RESPONSIVE - TABLET (1024px)
   Show hamburger, hide desktop menu
   ========================================== */

@media screen and (max-width: 1024px) {

    .runhams-topbar {
        display: none;
    }

    .runhams-nav {
        padding: 0 1.5rem;
    }

    .runhams-nav-inner {
        height: 72px;
    }

    .runhams-nav-logo img {
        height: 54px;
    }

    /* Show hamburger */
    .runhams-nav-hamburger {
        display: flex;
    }

    /* Hide desktop menu */
    .runhams-nav-menu {
        display: none;
    }

    /* ==========================================
       MOBILE OVERLAY MENU
       ========================================== */

    .runhams-mobile-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #2b2b2b;
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .runhams-mobile-nav.active {
        display: flex;
        opacity: 1;
    }

    .runhams-mobile-nav-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        min-height: 100%;
        padding: 5rem 2rem 3rem;
        gap: 2.5rem;
    }

    /* Links */
    .runhams-mobile-nav-links {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center;
    }

    .runhams-mobile-nav-links li {
        margin: 0.375rem 0;
    }

    .runhams-mobile-nav-links li a {
        text-decoration: none;
        color: rgba(255, 255, 255, 0.85);
        font-size: 1.375rem;
        font-weight: 400;
        padding: 0.625rem 1rem;
        display: inline-block;
        border-radius: 4px;
        transition: color 0.3s ease, background-color 0.3s ease;
    }

    .runhams-mobile-nav-links li a:hover {
        color: #fff;
        background-color: rgba(255, 255, 255, 0.06);
    }

    /* Mobile CTA */
    .runhams-mobile-nav-cta {
        background-color: #d90f0f !important;
        color: #fff !important;
        padding: 0.75rem 2rem !important;
        font-weight: 600 !important;
        font-size: 1.125rem !important;
        border-radius: 4px !important;
        margin-top: 0.5rem;
        transition: background-color 0.3s ease, transform 0.2s ease !important;
    }

    .runhams-mobile-nav-cta:hover {
        background-color: #b50d0d !important;
        transform: translateY(-1px);
    }

    /* Footer Contact Info */
    .runhams-mobile-nav-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        max-width: 300px;
    }

    .runhams-mobile-nav-phone {
        color: #fff;
        text-decoration: none;
        font-size: 1rem;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        transition: color 0.3s ease;
    }

    .runhams-mobile-nav-phone:hover {
        color: rgba(255, 255, 255, 0.8);
    }

    .runhams-mobile-nav-phone i {
        color: #d90f0f;
        font-size: 0.875rem;
    }

    .runhams-mobile-nav-email {
        color: rgba(255, 255, 255, 0.5);
        text-decoration: none;
        font-size: 0.8125rem;
        font-weight: 400;
        transition: color 0.3s ease;
    }

    .runhams-mobile-nav-email:hover {
        color: rgba(255, 255, 255, 0.8);
    }
}

/* ==========================================
   RESPONSIVE - SMALL MOBILE (480px)
   ========================================== */

@media screen and (max-width: 480px) {

    .runhams-nav {
        padding: 0 1rem;
    }

    .runhams-nav-inner {
        height: 64px;
    }

    .runhams-nav-logo img {
        height: 46px;
    }

    .runhams-mobile-nav-body {
        padding: 4.5rem 1.5rem 2.5rem;
        gap: 2rem;
    }

    .runhams-mobile-nav-links li a {
        font-size: 1.25rem;
        padding: 0.5rem 0.75rem;
    }

    .runhams-mobile-nav-cta {
        font-size: 1rem !important;
        padding: 0.7rem 1.75rem !important;
    }

    .runhams-mobile-nav-phone {
        font-size: 0.9375rem;
    }

    .runhams-mobile-nav-email {
        font-size: 0.75rem;
    }
}