﻿/**
 * The Halleys Business
 * Header component adapted for halleys_theme.
 */

/* Header surface */
.header {
    width: 100%;
    padding: 0;
    text-align: left;
    background: #F7F5F2;
    border-bottom: 1px solid #E5E2DC;
    box-shadow: none;
}

/* Preserve the existing theme layout while restoring brand alignment. */
.header > .container- {
    width: min(calc(100% - 40px), 1200px);
    margin-inline: auto;
    padding: 0;
}

.header > .container- > .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 80px;
    width: 100%;
    margin: 0;
}

.header .navbar-header {
    display: flex;
    align-items: center;
    float: none;
    min-height: 80px;
    padding: 0;
}

.header .region-header {
    padding: 12px 0;
}

.header .region-header .brand a {
    display: inline-flex;
    align-items: center;
    color: #3B3F40;
    font-weight: 700;
    line-height: 1.2;
}

.header .region-header .brand a:hover,
.header .region-header .brand a:focus {
    color: #F47D2D;
}

.header .region-header .brand img,
.header .region-header .brand svg {
    width: auto;
    max-height: 100px/*52px*/;
}

/* Keep navigation and search aligned with the brand. */
.header > .container- > .row > .col-md-9 {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    float: none;
    min-height: 80px;
    padding: 0;
}

.header .navbar-toggle {
    margin: 0 0 0 12px;
}

/* Responsive header sizing. */
@media (max-width: 767px) {
    .header > .container- {
        width: calc(100% - 32px);
    }

    .header > .container- > .row {
        min-height: 72px;
        flex-wrap: wrap;
    }

    .header .navbar-header {
        min-height: 72px;
    }

    .header .region-header .brand img,
    .header .region-header .brand svg {
        max-height: 44px;
    }

    .header > .container- > .row > .col-md-9 {
        min-height: 0;
        width: 100%;
        padding-bottom: 12px;
    }
}
