/* =========================================
   TECH EASY REPAIR - PREMIUM HEADER
========================================= */

.site-header {
    --header-bg: #0d0e11;
    --header-panel: #17191e;
    --header-text: #f5f5f6;
    --header-muted: #a6a8af;
    --header-border: rgba(255,255,255,.11);
    --header-hover: rgba(255,255,255,.06);
    --header-shadow: 0 12px 38px rgba(0,0,0,.2);

    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    color: var(--header-text);
    background:
        radial-gradient(ellipse at 50% -100%, rgba(217,35,50,.17), transparent 65%),
        var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    box-shadow: var(--header-shadow);
    isolation: isolate;
    transition: background .3s ease, color .3s ease;
}

/* LIGHT THEME */

.site-header[data-theme="light"] {
    --header-bg: #ffffff;
    --header-panel: #f7f7f9;
    --header-text: #191a1e;
    --header-muted: #686b73;
    --header-border: rgba(20,20,25,.10);
    --header-hover: rgba(20,20,25,.055);
    --header-shadow: 0 10px 35px rgba(20,20,25,.07);

    background:
        radial-gradient(ellipse at 50% -100%, rgba(217,35,50,.07), transparent 65%),
        var(--header-bg);
}


/* =========================================
   MAIN HEADER CONTAINER
========================================= */

.header-container {
    width: 100%;
    max-width: 1900px;
    min-height: 100px;
    margin: auto;
    padding: 12px clamp(20px, 3.5vw, 65px);

    display: grid;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    align-items: center;
    column-gap: clamp(15px, 2vw, 35px);
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-left {
    justify-content: flex-start;
    gap: 25px;
}

.header-right {
    justify-content: flex-end;
    gap: 13px;
}


/* =========================================
   MENU BUTTON
========================================= */

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    place-items: center;
    border: 1px solid var(--header-border);
    border-radius: 12px;
    background: var(--header-hover);
    color: var(--header-text);
    font-size: 18px;
    cursor: pointer;
    transition: .3s ease;
}

.menu-toggle:hover {
    color: #e52d40;
    border-color: #e52d40;
    transform: translateY(-2px);
}


/* =========================================
   DESKTOP NAVIGATION
========================================= */

.desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2vw, 32px);
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 0;

    color: var(--header-text);
    text-decoration: none;
    white-space: nowrap;

    font-size: clamp(15px, 1vw, 17px);
    font-weight: 650;
    letter-spacing: .1px;

    transition: color .3s ease, transform .3s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 0;
    height: 3px;
    border-radius: 5px;

    background: linear-gradient(90deg, #d92332, #ff6672);
    box-shadow: 0 0 12px rgba(217,35,50,.35);

    transition: width .3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #e52d40;
    transform: translateY(-2px);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link > i {
    font-size: 11px;
    transition: transform .3s ease;
}


/* =========================================
   SERVICES DROPDOWN
========================================= */

.nav-dropdown {
    position: relative;
}

.nav-dropdown:hover > a > i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: -18px;
    z-index: 10;

    width: 265px;
    padding: 12px;

    display: flex;
    flex-direction: column;

    background: var(--header-panel);
    border: 1px solid var(--header-border);
    border-radius: 15px;
    box-shadow: 0 20px 45px rgba(0,0,0,.22);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: .25s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;

    color: var(--header-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 550;

    border-radius: 9px;
    transition: .25s ease;
}

.dropdown-menu a i {
    width: 19px;
    color: #e52d40;
    text-align: center;
}

.dropdown-menu a:hover {
    padding-left: 18px;
    background: rgba(217,35,50,.10);
    color: #e52d40;
}

.dropdown-menu .dropdown-all {
    justify-content: space-between;
    margin-top: 7px;
    padding-top: 15px;
    border-top: 1px solid var(--header-border);
    color: #e52d40;
}


/* =========================================
   CENTERED LOGO
========================================= */

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.header-logo img {
    display: block;
    width: auto;
    height: auto;

    max-width: 210px;
    max-height: 78px;

    object-fit: contain;

    filter: drop-shadow(0 0 10px rgba(255,255,255,.07));
    transition: transform .3s ease, filter .3s ease;
}

.header-logo:hover img {
    transform: scale(1.045);
    filter: drop-shadow(0 0 13px rgba(217,35,50,.25));
}


/* =========================================
   SEARCH BAR
========================================= */

.header-search {
    width: 47px;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: flex-end;

    overflow: hidden;
    border: 1px solid var(--header-border);
    border-radius: 30px;
    background: var(--header-hover);

    transition: width .35s ease, border-color .3s ease,
                background .3s ease;
}

.header-search.active {
    width: clamp(190px, 19vw, 275px);
    padding-left: 14px;
    border-color: rgba(217,35,50,.55);
    background: var(--header-panel);
    box-shadow: 0 0 18px rgba(217,35,50,.08);
}

.header-search input {
    width: 0;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: none;

    background: transparent;
    color: var(--header-text);

    font-family: inherit;
    font-size: 13px;

    opacity: 0;
    transition: opacity .25s ease, width .3s ease;
}

.header-search.active input {
    width: 100%;
    opacity: 1;
}

.header-search input::placeholder {
    color: var(--header-muted);
}

.search-toggle {
    width: 45px;
    height: 45px;
    flex-shrink: 0;

    display: grid;
    place-items: center;

    border: 0;
    background: transparent;
    color: var(--header-text);

    font-size: 16px;
    cursor: pointer;
    transition: .3s ease;
}

.search-toggle:hover {
    color: #e52d40;
}


/* =========================================
   THEME TOGGLE
========================================= */

.theme-toggle {
    width: 45px;
    height: 45px;
    flex: 0 0 45px;

    display: grid;
    place-items: center;

    border: 1px solid var(--header-border);
    border-radius: 50%;
    background: var(--header-hover);
    color: var(--header-text);

    font-size: 16px;
    cursor: pointer;

    transition: .3s ease;
}

.theme-toggle:hover {
    color: #e52d40;
    border-color: #e52d40;
    transform: rotate(18deg);
}


/* =========================================
   BOOKING CTA
========================================= */

.header-cta {
    min-height: 49px;
    padding: 0 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    position: relative;
    overflow: hidden;

    color: #fff;
    background: linear-gradient(135deg, #f03b4c, #bd1025);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;

    text-decoration: none;
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;

    box-shadow: 0 7px 22px rgba(217,35,50,.23),
                inset 0 1px 0 rgba(255,255,255,.25);

    transition: transform .3s ease, box-shadow .3s ease;
}

.header-cta::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -60%;
    width: 45%;
    height: 300%;

    background: rgba(255,255,255,.2);
    transform: rotate(25deg);
    transition: left .55s ease;
}

.header-cta:hover::before {
    left: 130%;
}

.header-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(217,35,50,.35);
}

.cta-arrow {
    font-size: 12px;
    transition: transform .3s ease;
}

.header-cta:hover .cta-arrow {
    transform: translateX(4px);
}


/* =========================================
   ALL DEVICE SHORTCUTS
========================================= */

.service-shortcuts {
    width: 100%;
    min-height: 65px;
    padding: 8px clamp(15px, 3vw, 40px);

    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 1.5vw, 22px);

    background: var(--header-panel);
    border-top: 1px solid var(--header-border);

    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.service-shortcuts::-webkit-scrollbar {
    display: none;
}

.service-shortcuts > a {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    padding: 7px 12px;

    color: var(--header-text);
    text-decoration: none;
    white-space: nowrap;

    font-size: 13px;
    font-weight: 650;

    border: 1px solid transparent;
    border-radius: 30px;

    transition: .3s ease;
}

.shortcut-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;

    display: grid;
    place-items: center;

    color: var(--header-text);
    background: var(--header-hover);
    border: 1px solid var(--header-border);
    border-radius: 50%;

    font-size: 15px;
    transition: .3s ease;
}

.service-shortcuts > a:hover {
    color: #e52d40;
    background: rgba(217,35,50,.08);
    border-color: rgba(217,35,50,.25);
    transform: translateY(-2px);
}

.service-shortcuts > a:hover .shortcut-icon {
    color: #fff;
    background: #d92332;
    border-color: #d92332;
    box-shadow: 0 0 15px rgba(217,35,50,.3);
    transform: scale(1.06);
}


/* =========================================
   MOBILE DRAWER
========================================= */

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1001;

    background: rgba(0,0,0,.65);
    backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1002;

    width: min(360px, 88vw);
    height: 100vh;
    height: 100dvh;

    padding: 24px;

    display: flex;
    flex-direction: column;

    overflow-y: auto;

    color: var(--header-text);
    background: var(--header-bg);
    border-right: 1px solid var(--header-border);

    box-shadow: 15px 0 45px rgba(0,0,0,.3);

    transform: translateX(-105%);
    transition: transform .35s ease;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 20px;
    margin-bottom: 15px;

    border-bottom: 1px solid var(--header-border);
}

.mobile-menu-header img {
    display: block;
    width: auto;
    max-width: 155px;
    max-height: 55px;
    object-fit: contain;
}

.mobile-menu-header button {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    color: var(--header-text);
    background: var(--header-hover);
    border: 1px solid var(--header-border);
    border-radius: 50%;

    font-size: 18px;
    cursor: pointer;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-links > a,
.mobile-services-toggle {
    width: 100%;
    padding: 14px 12px;

    display: flex;
    align-items: center;
    gap: 12px;

    color: var(--header-text);
    background: transparent;
    border: 0;
    border-radius: 9px;

    text-align: left;
    text-decoration: none;

    font-family: inherit;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
    transition: .25s ease;
}

.mobile-menu-links > a:hover,
.mobile-services-toggle:hover {
    color: #e52d40;
    background: rgba(217,35,50,.09);
    padding-left: 18px;
}

.mobile-menu-links > a i,
.mobile-services-toggle span i {
    width: 20px;
    color: #e52d40;
    text-align: center;
}

.mobile-services-toggle {
    justify-content: space-between;
}

.mobile-services-toggle span {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-services-toggle > i {
    font-size: 11px;
    transition: transform .3s ease;
}

.mobile-services.open .mobile-services-toggle > i {
    transform: rotate(180deg);
}

.mobile-services-links {
    display: flex;
    flex-direction: column;
    max-height: 0;
    padding-left: 32px;
    overflow: hidden;
    transition: max-height .35s ease;
}

.mobile-services.open .mobile-services-links {
    max-height: 420px;
}

.mobile-services-links a {
    padding: 10px 12px;

    color: var(--header-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 550;

    border-left: 1px solid var(--header-border);
    transition: .25s ease;
}

.mobile-services-links a:hover {
    color: #e52d40;
    border-left: 2px solid #e52d40;
    padding-left: 17px;
}

.mobile-book-btn {
    margin-top: 22px;
    padding: 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #fff;
    background: linear-gradient(135deg, #f03b4c, #bd1025);
    border-radius: 11px;

    text-decoration: none;
    font-size: 15px;
    font-weight: 700;

    box-shadow: 0 8px 22px rgba(217,35,50,.22);
}

.mobile-menu-footer {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: auto;
    padding-top: 25px;
    color: var(--header-muted);
    font-size: 12px;
}


/* =========================================
   RESPONSIVE - LAPTOP
========================================= */

@media (max-width: 1350px) {
    .header-container {
        padding-inline: 22px;
        column-gap: 14px;
    }

    .desktop-nav {
        gap: 15px;
    }

    .nav-link {
        font-size: 14px;
    }

    .header-logo img {
        max-width: 160px;
    }

    .header-cta {
        padding-inline: 12px;
        font-size: 13px;
    }

    .service-shortcuts {
        gap: 7px;
    }

    .service-shortcuts > a {
        padding-inline: 8px;
        font-size: 12px;
    }
}


/* =========================================
   RESPONSIVE - TABLET
========================================= */

@media (max-width: 1050px) {
    .header-container {
        min-height: 85px;
    }

    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: grid;
    }

    .header-logo img {
        max-width: 155px;
        max-height: 62px;
    }

    .service-shortcuts {
        justify-content: flex-start;
        padding-inline: 15px;
    }

    .service-shortcuts > a {
        font-size: 13px;
    }
}


/* =========================================
   RESPONSIVE - MOBILE
========================================= */

@media (max-width: 650px) {

    .header-container {
        min-height: 73px;
        padding: 8px 12px;
        column-gap: 4px;
    }

    .header-left {
        gap: 0;
    }

    .menu-toggle {
        width: 39px;
        height: 39px;
        border-radius: 10px;
        font-size: 16px;
    }

    .header-logo {
        padding: 0 3px;
    }

    .header-logo img {
        max-width: 120px;
        max-height: 50px;
    }

    .header-right {
        gap: 4px;
    }

    .header-search {
        width: 38px;
        height: 38px;
    }

    .search-toggle {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .theme-toggle {
        width: 37px;
        height: 37px;
        flex-basis: 37px;
        font-size: 14px;
    }

    .header-cta {
        display: none;
    }

    .header-search.active {
        position: absolute;
        z-index: 10;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        width: min(270px, 72vw);
        background: var(--header-panel);
    }

    .service-shortcuts {
        min-height: 53px;
        justify-content: flex-start;
        padding: 5px 9px;
        gap: 5px;
    }

    .service-shortcuts > a {
        gap: 7px;
        padding: 5px 9px;
        font-size: 12px;
    }

    .shortcut-icon {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
        font-size: 13px;
    }
}


/* =========================================
   RESPONSIVE - SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .header-container {
        padding-inline: 8px;
    }

    .menu-toggle {
        width: 35px;
        height: 35px;
    }

    .header-logo img {
        max-width: 100px;
        max-height: 45px;
    }

    .header-right {
        gap: 3px;
    }

    .header-search,
    .theme-toggle {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .search-toggle {
        width: 32px;
        height: 32px;
    }
}


/* =========================================
   ACCESSIBILITY
========================================= */

.site-header button:focus-visible,
.site-header a:focus-visible,
.site-header input:focus-visible {
    outline: 2px solid #e52d40;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .site-header *,
    .site-header *::before,
    .site-header *::after {
        animation: none !important;
        transition: none !important;
    }
}
