/* =========================================================
   FITHQ RESPONSIVE HEADER
   Logo | Request a Quote | Phone Numbers
   ========================================================= */
.col-md-12 {
    width: 100%;
}

.fithq-header-content,
.fithq-header-content * {
    box-sizing: border-box;
}

.fithq-header-content {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;

    width: 100%;
    max-width: 1800px;
    min-height: 190px;
    margin: 0 auto;
    padding: 24px 42px;

    background: #ffffff;
    color: #10253d;
    font-family: Arial, Helvetica, sans-serif;
}

/*
 * Equal-width columns ensure that the button remains centered
 * in the complete header—not merely between the logo and phones.
 */
.fithq-header-logo,
.fithq-header-quote,
.fithq-header-phones {
    flex: 1 1 0;
    width: 33.333%;
    min-width: 0;
}

/* =========================================================
   LOGO
   ========================================================= */

.fithq-header-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.fithq-header-logo a {
    display: inline-block;
    line-height: 0;
    text-decoration: none;
}

.fithq-header-logo img {
    display: block;
    width: auto;
    max-width: 315px;
    height: auto;
    border: 0;
}

/* =========================================================
   REQUEST A QUOTE BUTTON
   ========================================================= */

.fithq-header-quote {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.fithq-quote-button,
.fithq-quote-button:link,
.fithq-quote-button:visited {
    display: inline-block;
    min-width: 260px;

    border: 2px solid #070707;
    border-bottom-width: 5px;
    border-radius: 4px;
    background: #f4bd19;
    color: #063f9b;

    padding: 15px 28px 12px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.fithq-quote-button:hover {
    background: #ffd34d;
    color: #070707;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.18);
    transform: translateY(-2px);
}

.fithq-quote-button:focus {
    background: #ffd34d;
    color: #070707;
    outline: 3px solid #263fbd;
    outline-offset: 4px;
}

.fithq-quote-button:active {
    border-bottom-width: 2px;
    box-shadow: none;
    transform: translateY(2px);
}

/* =========================================================
   PHONE NUMBERS
   ========================================================= */

.fithq-header-phones {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
}

.fithq-header-phones a,
.fithq-header-phones a:link,
.fithq-header-phones a:visited {
    display: block;
    color: #10253d;

    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(18px, 1.45vw, 27px);
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}

.fithq-header-phones a:hover,
.fithq-header-phones a:focus {
    color: #263fbd;
    text-decoration: underline;
}

.fithq-header-phones a:focus {
    outline: 2px solid #f4bd19;
    outline-offset: 3px;
}

.fithq-header-phones span {
    display: inline;
    margin-right: 10px;
}

/* =========================================================
   SMALL DESKTOP / LARGE TABLET
   Keep all three items on the same row while space permits.
   ========================================================= */

@media screen and (max-width: 1100px) {
    .fithq-header-content {
        gap: 20px;
        min-height: 165px;
        padding: 22px 28px;
    }

    .fithq-header-logo img {
        max-width: 250px;
    }

    .fithq-quote-button,
    .fithq-quote-button:link,
    .fithq-quote-button:visited {
        min-width: 220px;
        padding-right: 20px;
        padding-left: 20px;
        font-size: 17px;
    }

    .fithq-header-phones a,
    .fithq-header-phones a:link,
    .fithq-header-phones a:visited {
        font-size: 18px;
    }

    .fithq-header-phones span {
        display: block;
        margin-right: 0;
    }
}

/* =========================================================
   TABLET
   Keep all three sections on one compact row until the
   phone breakpoint stacks them vertically.
   ========================================================= */

@media screen and (max-width: 800px) {
    .fithq-header-content {
        flex-flow: row nowrap;
        justify-content: space-between;
        gap: 10px;
        min-height: 0;
        padding: 20px 16px;
    }

    .fithq-header-logo,
    .fithq-header-quote,
    .fithq-header-phones {
        flex: 1 1 0;
        width: 33.333%;
        min-width: 0;
    }

    .fithq-header-logo {
        justify-content: flex-start;
    }

    .fithq-header-logo img {
        max-width: 200px;
    }

    .fithq-header-quote {
        justify-content: center;
    }

    .fithq-quote-button,
    .fithq-quote-button:link,
    .fithq-quote-button:visited {
        min-width: 170px;
        padding: 12px 12px 9px;
        font-size: 15px;
    }

    .fithq-header-phones {
        align-items: flex-end;
        text-align: right;
    }

    .fithq-header-phones a,
    .fithq-header-phones a:link,
    .fithq-header-phones a:visited {
        font-size: 15px;
        white-space: nowrap;
    }

    .fithq-header-phones span {
        display: block;
        margin-right: 0;
    }
}

/* =========================================================
   PHONE
   Stack logo, button, and phone numbers.
   ========================================================= */

@media screen and (max-width: 620px) {
    .fithq-header-content {
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 20px;
        padding: 22px 16px 26px;
    }

    .fithq-header-logo,
    .fithq-header-quote,
    .fithq-header-phones {
        flex: 0 1 auto;
        width: 100%;
    }

    .fithq-header-logo,
    .fithq-header-quote {
        justify-content: center;
    }

    .fithq-header-phones {
        align-items: center;
        text-align: center;
    }

    .fithq-header-logo img {
        width: auto;
        max-width: min(285px, 88vw);
    }

    .fithq-quote-button,
    .fithq-quote-button:link,
    .fithq-quote-button:visited {
        width: min(100%, 340px);
        min-width: 0;
        font-size: 18px;
    }

    .fithq-header-phones a,
    .fithq-header-phones a:link,
    .fithq-header-phones a:visited {
        font-size: 18px;
        white-space: normal;
    }
}

/* Very narrow phones */
@media screen and (max-width: 390px) {
    .fithq-header-phones span {
        display: block;
        margin-right: 0;
    }
}
