/***
=============================================
    Header / mainmenu responsive fixes
    Loaded after responsive.css so these win.
=============================================
***/

/* The rev-slider and a few wide sections are wider than small viewports;
   keep that from adding a horizontal scrollbar to the whole page. */
body {
    overflow-x: hidden;
}

/* Logo was stretched by .w-100 and then cropped by object-fit: cover */
.logo img {
    width: auto;
    max-width: 100%;
    height: 70px;
    object-fit: contain;
}


/*** Tablet and below: the menu bar is one 80px row -
     hamburger on the left, "Talk to Us" on the right. ***/
@media only screen and (max-width: 991px) {

.mainmenu-area.style-two .container {
    padding-left: 0;
    padding-right: 0;
}
.mainmenu-area.style-two .inner-content {
    position: relative;
    min-height: 80px;
}
.mainmenu-area.style-two .main-menu {
    padding-top: 0;
    padding-bottom: 0;
}
.mainmenu-area.style-two .main-menu .navbar-header {
    display: flex;
    align-items: center;
    height: 80px;
    padding: 0 15px;
    text-align: left;
}

/* The toggle: static (no longer stacked under the green block),
   sized as a real tap target and outlined so it reads as a button. */
.mainmenu-area.style-two .main-menu .navbar-header .navbar-toggle {
    position: static;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 4px;
    transition: all 300ms ease;
}
.mainmenu-area.style-two .main-menu .navbar-header .navbar-toggle:hover,
.mainmenu-area.style-two .main-menu .navbar-header .navbar-toggle[aria-expanded="true"] {
    background: #69ad07;
    border-color: #69ad07;
}
.mainmenu-area.style-two .main-menu .navbar-header .navbar-toggle:focus-visible {
    outline: 2px solid #69ad07;
    outline-offset: 2px;
}
.mainmenu-area.style-two .main-menu .navbar-header .navbar-toggle .icon-bar {
    display: block;
    width: 26px;
    height: 2px;
    margin: 0;
    background: #ffffff;
    border-radius: 1px;
}
.mainmenu-area.style-two .main-menu .navbar-header .navbar-toggle .icon-bar + .icon-bar {
    margin-top: 6px;
}

/* "Talk to Us" sits beside the toggle instead of on top of it */
.mainmenu-area.style-two .mainmenu-middle {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    display: flex;
    align-items: center;
    width: auto;
    max-width: calc(100% - 85px);
    height: 80px;
    margin: 0;
    padding: 0 20px 0 40px;
}
.mainmenu-area.style-two .mainmenu-middle:before {
    height: 100%;
    background-size: 100% 100%;
}
.mainmenu-area.style-two .mainmenu-middle .inner-content {
    padding-left: 42px;
}
.mainmenu-area.style-two .mainmenu-middle .inner-content .icon-holder {
    top: 50%;
    transform: translateY(-50%);
}

/* Dropdown panel opens below the bar, full width */
.mainmenu-area.style-two .main-menu .navbar-collapse {
    width: 100%;
    padding: 0;
}
.mainmenu-area.style-two .main-menu .navbar-collapse > .navigation > li > a {
    display: block;
    padding: 12px 15px !important;
}

}


/*** Phones: the phone number keeps its own line under the bar
     so the number is never truncated. ***/
@media only screen and (max-width: 575px) {

.mainmenu-area.style-two .main-menu .navbar-header {
    height: 64px;
}
.mainmenu-area.style-two .inner-content {
    min-height: 64px;
}
.mainmenu-area.style-two .mainmenu-middle {
    position: relative;
    top: auto;
    right: auto;
    float: none !important;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    padding: 12px 15px;
    text-align: center;
}
.mainmenu-area.style-two .mainmenu-middle:before {
    display: none;
}
.mainmenu-area.style-two .mainmenu-middle .inner-content {
    padding-left: 42px;
    text-align: left;
}
.mainmenu-area.style-two .mainmenu-middle .inner-content .title-holder span {
    font-size: 15px;
}
.mainmenu-area.style-two .mainmenu-middle .inner-content .title-holder h3 {
    font-size: 18px;
}

/* Header top: keep the info blocks from overflowing 320-360px screens */
.header-area .header-middle .info-box {
    width: auto;
    max-width: 280px;
}

}
