/* =========================================================
   CARANDCAB — UNIVERSAL PREMIUM HEADER
   Single header system for entire website
========================================================= */

:root {
    --cc-teal: #0F766E;
    --cc-teal-dark: #0B5F59;

    --cc-black: #171717;
    --cc-text: #252525;
    --cc-muted: #6b6b6b;

    --cc-border: #e7e7e7;
    --cc-white: #ffffff;
    --cc-soft: #f7f8f8;

}


/* =========================================================
   HEADER
========================================================= */

.cc-universal-header {
    position: relative;
    z-index: 1100;

    width: 100%;
    background: var(--cc-white);

    border-bottom: 1px solid var(--cc-border);

    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.045);
}


.cc-header-inner {
    width: min(1280px, calc(100% - 40px));

    min-height: 76px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   LOGO
========================================================= */

.cc-header-logo {
    display: inline-flex;
    align-items: center;

    text-decoration: none;

    flex-shrink: 0;
}


.cc-header-logo img {
    display: block;

    width: auto;
    height: 60px;

    max-width: 210px;

    object-fit: contain;
}


/* =========================================================
   DESKTOP ACTIONS
========================================================= */

.cc-header-actions {
    display: flex;
    align-items: center;

    gap: 10px;

    margin-left: auto;
}


/* HELP + ACCOUNT */

.cc-header-help,
.cc-header-account,
.cc-header-login {
    height: 42px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 0 15px;

    border-radius: 9px;

    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}


.cc-header-help {
    color: var(--cc-text);

    background: transparent;

    border: 1px solid transparent;
}


.cc-header-account {
    color: var(--cc-text);

    background: transparent;

    border: 1px solid transparent;
}


.cc-header-login {
    color: var(--cc-text);

    background: transparent;

    border: 1px solid var(--cc-orange);

    cursor: pointer;
}


.cc-header-help i,
.cc-header-account i,
.cc-header-login i {
    font-size: 15px;
}


/* =========================================================
   HOVER
========================================================= */

.cc-header-help:hover {
    color: var(--cc-orange);

    background: #fff8ed;
}


.cc-header-account:hover {
    color: var(--cc-orange);

    border-color: #ffd69b;

    background: #fffaf3;
}


.cc-header-login:hover {
    color: var(--cc-orange);

    background: var(--cc-orange-dark);

    border-color: var(--cc-orange-dark);

    transform: translateY(-1px);
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.cc-header-menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    padding: 0;

    border: 1px solid var(--cc-border);
    border-radius: 9px;

    background: #ffffff;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 5px;

    cursor: pointer;
}


.cc-header-menu-toggle span {
    display: block;

    width: 19px;
    height: 2px;

    background: var(--cc-black);

    border-radius: 2px;

    transition: transform .2s ease, opacity .2s ease;
}


/* =========================================================
   MOBILE MENU
========================================================= */

.cc-mobile-menu {
    display: none;

    width: 100%;

    background: #ffffff;

    border-top: 1px solid var(--cc-border);

    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}


.cc-mobile-menu-inner {
    width: min(1280px, calc(100% - 30px));

    margin: 0 auto;

    padding: 10px 0 14px;
}


.cc-mobile-menu-item {
    width: 100%;

    min-height: 50px;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 0 13px;

    margin-top: 5px;

    border: 0;
    border-radius: 9px;

    background: transparent;

    color: var(--cc-text);

    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    text-align: left;
}


.cc-mobile-menu-item > i:first-child {
    width: 22px;

    color: var(--cc-orange);

    text-align: center;
}


.cc-mobile-menu-item > i:last-child {
    margin-left: auto;

    color: #999;

    font-size: 12px;
}


.cc-mobile-menu-item:hover {
    background: #fff8ed;

    color: var(--cc-orange);
}


/* =========================================================
   MOBILE LOGIN BUTTON
========================================================= */

.cc-mobile-login-button {
    font-family: inherit;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .cc-header-inner {
        width: min(100% - 30px, 760px);

        min-height: 68px;
    }

    .cc-header-logo img {
        height: 47px;
        max-width: 190px;
    }

    .cc-header-help,
    .cc-header-account,
    .cc-header-login {
        display: none;
    }

    .cc-header-menu-toggle {
        display: inline-flex;
    }

    .cc-mobile-menu {
        display: none;
    }

    .cc-mobile-menu.cc-mobile-menu-open {
        display: block;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .cc-header-inner {
        width: calc(100% - 24px);

        min-height: 64px;
    }

    .cc-header-logo img {
        height: 43px;
        max-width: 175px;
    }

    .cc-header-menu-toggle {
        width: 40px;
        height: 40px;
    }
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.cc-header-help:focus-visible,
.cc-header-account:focus-visible,
.cc-header-login:focus-visible,
.cc-header-menu-toggle:focus-visible,
.cc-mobile-menu-item:focus-visible {
    outline: 3px solid rgba(254, 147, 7, .25);
    outline-offset: 2px;
}

