/**
 * Header and footer template parts (parts/header.html, parts/footer.html).
 * Loaded on the site and in the editor, so the Site Editor shows the parts
 * as they look on the site.
 *
 * Colors and sizes come from theme.json, settings.custom.header and
 * settings.custom.footer. Change those first.
 *
 * Breakpoint: 992px. Below it the two split menus are hidden and the
 * combined menu (with the menu button) takes over, as on the live site.
 *
 * Contents
 *   1. Top bar
 *   2. Header row and logo
 *   3. Header menus
 *   4. Mobile header
 *   5. Footer
 */


/* ------------------------------------------------------------------
 * 1. Top bar
 * ------------------------------------------------------------------ */

.hc-header {
    position: relative;
    color: var(--wp--custom--header--text);
    background-color: var(--wp--custom--header--background);
}

.hc-header a {
    color: inherit;
}

.hc-topbar {
    font-size: 13px;
    line-height: 1.3;
    color: var(--wp--custom--header--topbar-text);
    background-color: var(--wp--custom--header--topbar-background);
    border-top: 5px solid var(--wp--preset--color--nav-blue);
}

.hc-topbar__inner {
    gap: var(--wp--preset--spacing--20) var(--wp--preset--spacing--40);
    width: 100%;
    max-width: calc(1160px + var(--wp--style--root--padding-left) + var(--wp--style--root--padding-right));
    min-height: 46px;
    padding-right: var(--wp--style--root--padding-right);
    padding-left: var(--wp--style--root--padding-left);
    margin-right: auto;
    margin-left: auto;
}

.hc-topbar__tagline {
    margin: 0;
}

.hc-topbar__links {
    gap: var(--wp--preset--spacing--30) 40px;
}

.hc-topbar .hc-business-info {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.hc-topbar .hc-business-info a,
.hc-topbar .hc-button.hc-button--link {
    gap: 5px;
    font-size: inherit;
    font-weight: inherit;
    color: var(--wp--custom--header--topbar-text);
    text-decoration: none;
}

.hc-topbar .hc-button--link .hc-button__label {
    text-decoration: none;
}

.hc-topbar a:hover,
.hc-topbar .hc-button--link:hover .hc-button__label {
    text-decoration: underline;
}

.hc-topbar .hc-info {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}

.hc-topbar .hc-icon,
.hc-topbar .hc-button__icon {
    width: 12px;
    height: 12px;
}

.hc-topbar .hc-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}


/* ------------------------------------------------------------------
 * 2. Header row and logo
 * Two menus with the logo between them. The logo hangs over the top bar
 * and the first section, as on the live site.
 * ------------------------------------------------------------------ */

.hc-header__inner {
    display: grid;
    grid-template-columns: 1fr 328px 1fr;
    align-items: center;
    width: 100%;
    max-width: calc(1092px + var(--wp--style--root--padding-left) + var(--wp--style--root--padding-right));
    min-height: var(--wp--custom--header--height);
    padding-right: var(--wp--style--root--padding-right);
    padding-left: var(--wp--style--root--padding-left);
    margin-right: auto;
    margin-left: auto;
}

.hc-header__inner > * {
    margin: 0;
}

.hc-header .hc-header__logo {
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 20;
    width: 226px;
    line-height: 0;
    transform: translateX(-50%);
}

.hc-header .hc-header__logo img {
    width: 100%;
    height: auto;
}

.hc-header__nav--left {
    grid-column: 1;
}

.hc-header__nav--right {
    grid-column: 3;
}

.hc-header .hc-header__nav--mobile {
    display: none;
}


/* ------------------------------------------------------------------
 * 3. Header menus (core Navigation block)
 * ------------------------------------------------------------------ */

.hc-header__nav--left,
.hc-header__nav--right {
    width: 100%;
}

.hc-header__nav--left .wp-block-navigation__container,
.hc-header__nav--right .wp-block-navigation__container {
    flex: 1 1 auto;
    justify-content: space-between;
    gap: var(--wp--preset--spacing--30);
}

.hc-header__nav .wp-block-navigation-item__content {
    padding-block: 4px;
    font-family: var(--wp--preset--font-family--heading);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.4;
    color: var(--wp--custom--header--text);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition:
        color var(--wp--custom--transition--fast),
        border-color var(--wp--custom--transition--fast);
}

.hc-header__nav .wp-block-navigation-item__content:hover,
.hc-header__nav .wp-block-navigation-item__content:focus-visible,
.hc-header__nav .current-menu-item > .wp-block-navigation-item__content {
    color: var(--wp--custom--header--link-hover);
}

.hc-header__nav .current-menu-item > .wp-block-navigation-item__content {
    border-bottom-color: var(--wp--custom--header--link-hover);
}

/* Mobile menu overlay */
.hc-header .hc-header__nav.wp-block-navigation .wp-block-navigation__responsive-container.is-menu-open {
    padding: var(--wp--preset--spacing--40) var(--wp--style--root--padding-right);
    color: var(--wp--custom--header--text);
    background-color: var(--wp--custom--header--background);
}

.hc-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    gap: var(--wp--preset--spacing--30);
}

.hc-header__nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
    font-size: 20px;
}

.hc-header__nav .wp-block-navigation__responsive-container-open svg,
.hc-header__nav .wp-block-navigation__responsive-container-close svg {
    width: 32px;
    height: 32px;
}

.hc-header__nav .wp-block-navigation__responsive-container-open {
    color: var(--wp--preset--color--contrast);
}


/* ------------------------------------------------------------------
 * 4. Mobile header
 * ------------------------------------------------------------------ */

@media (max-width: 991px) {

    .hc-topbar__inner {
        flex-direction: column;
        justify-content: center !important;
        padding-top: 8px;
        padding-bottom: 8px;
        text-align: center;
    }

    .hc-header__inner {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        min-height: var(--wp--custom--header--height-mobile);
    }

    .hc-header .hc-header__logo {
        position: relative;
        top: auto;
        left: auto;
        width: 165px;
        margin-top: 28px;
        margin-bottom: -62px;
        transform: none;
    }

    .hc-header__nav--left,
    .hc-header__nav--right {
        display: none !important;
    }

    .hc-header .hc-header__nav--mobile {
        display: flex;
        align-self: center;
    }
}

/* The Site Editor canvas can be narrow; keep the split menus there. */
.editor-styles-wrapper .hc-header__nav--mobile {
    display: none;
}


/* ------------------------------------------------------------------
 * 5. Footer
 * ------------------------------------------------------------------ */

.hc-footer {
    font-size: 15px;
    line-height: 1.8;
    color: var(--wp--custom--footer--text);
    background-color: var(--wp--custom--footer--background);
    background-image: url(../images/bg-footer-logo.webp);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.hc-footer a {
    color: inherit;
}

.hc-footer__main,
.hc-footer__bottom {
    width: 100%;
    max-width: calc(1200px + var(--wp--style--root--padding-left) + var(--wp--style--root--padding-right));
    padding-right: var(--wp--style--root--padding-right);
    padding-left: var(--wp--style--root--padding-left);
    margin-right: auto;
    margin-left: auto;
}

.hc-footer__main {
    display: grid;
    grid-template-columns: 236px 248px 1fr auto;
    gap: var(--wp--preset--spacing--50) 0;
    padding-top: 72px;
    padding-bottom: 80px;
}

.hc-footer__main > .wp-block-group.hc-footer__column {
    gap: 0;
    margin: 0;
}

.hc-footer__column > * {
    margin: 0;
}

.hc-footer .hc-footer__heading {
    margin-bottom: 30px;
    font-family: var(--wp--preset--font-family--heading);
    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--wp--custom--footer--heading);
}

.hc-footer__heading::after {
    display: block;
    width: 50px;
    height: 3px;
    margin-top: 20px;
    content: "";
    background-color: var(--wp--custom--footer--divider);
}

.hc-footer__menu .wp-block-navigation__container {
    gap: 6px;
}

.hc-footer__menu .wp-block-navigation-item__content {
    color: var(--wp--custom--footer--text);
    text-decoration: none;
}

.hc-footer__menu .wp-block-navigation-item__content:hover {
    text-decoration: underline;
    text-underline-offset: 0.25em;
}

.hc-footer .hc-business-info,
.hc-footer__company {
    margin: 0;
}

.hc-footer .hc-info__address {
    font-style: normal;
}

/* Phone with the blue round icon. */
.hc-footer__phone .hc-info {
    display: inline-flex;
    gap: 15px;
    align-items: center;
    font-size: 17px;
}

.hc-footer__phone a {
    text-decoration: none;
}

.hc-footer__phone .hc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 7px;
    color: var(--wp--preset--color--base);
    background-color: var(--wp--preset--color--blue);
    border-radius: 50%;
}

.hc-footer__phone .hc-icon svg {
    width: 100%;
    height: 100%;
}

.hc-footer .hc-footer__cta {
    margin-top: 30px;
}

.hc-footer .hc-footer__cta .hc-button {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hc-accreditation {
    display: inline-block;
    line-height: 0;
}

.hc-accreditation img {
    width: 128px;
    height: auto;
}

.hc-footer__bottom-wrap,
.hc-footer__bottom {
    background-color: var(--wp--custom--footer--bottom-background);
}

.hc-footer > .hc-footer__bottom {
    margin-top: 0;
}

.hc-footer__bottom {
    max-width: none;
    padding-top: 24px;
    padding-bottom: 24px;
    font-size: 12px;
    color: var(--wp--custom--footer--bottom-text);
}

.hc-footer .hc-footer__bottom > * {
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 991px) {

    .hc-footer__main {
        grid-template-columns: 1fr 1fr;
        gap: var(--wp--preset--spacing--50) var(--wp--preset--spacing--40);
    }
}

@media (max-width: 599px) {

    .hc-footer__main {
        grid-template-columns: 1fr;
    }
}
