/* Amigo round 7: slice S1 (header, menu, footer). Loaded after amigo.css on every page, before the page's own stylesheet. */

/* ---- Header and menu: the old site's layout (container 1180 with 15px gutters, nested row, full-bleed green bar). ---- */
#header, #footer { overflow-x: hidden; overflow-x: clip; }
#header .container, #header .row, #footer .container, #footer .row { --bs-gutter-x: 30px; }
@media (min-width: 992px) { #header .container, #footer .container { max-width: 1180px; } }
@media (min-width: 1414px) { #header .container, #footer .container { max-width: 1414px; } }

/* Phone number: the span carries the box and spacing, the link carries the colour (old .tell) */
#header .amigo-phone a { color: #013832; }
#header .amigo-phone a:hover { color: #333; }

/* Green bar: full width through a pseudo-element wider than the page, like the old .menu:after */
#header .amigo-bar { position: relative; background: #013832; }
#header .amigo-bar::after { content: ""; position: absolute; left: -9999px; right: -9999px; top: 0; bottom: 0; background: #013832; }
#header .amigo-bar-inner { display: flex; flex-wrap: wrap; align-items: stretch; justify-content: space-between; padding: 0; min-height: 0; }
#header .amigo-nav { order: 0; flex: 0 1 auto; display: flex; flex-wrap: wrap; align-items: center; position: relative; z-index: 2; padding: 12px 0; font-size: 1.125rem; line-height: 1.375rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
#header .amigo-collapse { display: none; flex-basis: 100%; flex-grow: 1; }
body.mobile-nav-active #header .amigo-collapse { display: block; }
#header .amigo-nav ul, body.mobile-nav-active #header .amigo-nav ul { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 20px 0 0; }
#header .amigo-nav li { margin: 8px 0; }
#header .amigo-nav a { display: block; padding: 0; color: #fff; font-size: 1.125rem; line-height: 1.375rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; text-decoration: none; }
#header .amigo-nav a:hover, #header .amigo-nav a:focus { color: #f3da75; }

/* Hamburger: the old Bootstrap navbar-toggler, 35 x 35, three thin lines, never turns into an X */
#header .mobile-nav-toggle { order: 0; position: static; top: auto; right: auto; z-index: auto; display: block; width: 35px; height: 35px; margin: 0; padding: 0; border: 1px solid transparent; border-radius: 0; background: transparent; color: #fff; font-size: 1.375rem; line-height: 1; cursor: pointer; }
#header .mobile-nav-toggle:focus { outline: none; }
#header .mobile-nav-toggle::before { content: none !important; display: none !important; }
#header .amigo-toggler-icon { display: inline-block; width: 1.5em; height: 1.5em; vertical-align: middle; background: no-repeat center center; background-size: 100% 100%; background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); }

/* Facebook: pinned to the bar's right edge on the phone, inline after the menu on desktop (old .menu .facebook) */
#header .amigo-fb { order: 0; position: absolute; right: 0; top: 20px; margin: 0; font-size: .875rem; line-height: 1.25rem; font-weight: 800; text-transform: uppercase; }
#header .amigo-fb a { position: relative; z-index: 2; color: #fff; }
#header .amigo-fb a:hover { color: #333; }
#header .amigo-fb .icon-facebook { font-family: "icomoon"; font-style: normal; font-weight: normal; text-transform: none; font-size: .625rem; line-height: 1; display: inline-block; vertical-align: middle; margin: 0 .25rem .125rem 0; }

@media (min-width: 768px) { #header .amigo-bar-inner { align-items: center; } }
@media (min-width: 992px) {
  #header .amigo-bar-inner { justify-content: center; flex-wrap: wrap; }
  #header .amigo-nav { flex-wrap: nowrap; justify-content: flex-start; font-size: .875rem; line-height: 1.25rem; }
  #header .amigo-collapse, body.mobile-nav-active #header .amigo-collapse { display: flex; flex-basis: auto; flex-grow: 1; }
  #header .amigo-nav ul, body.mobile-nav-active #header .amigo-nav ul { flex-direction: row; flex-wrap: nowrap; justify-content: flex-start; padding: 0; }
  #header .amigo-nav li { margin: 0 1rem; }
  #header .amigo-nav a { font-size: .875rem; line-height: 1.25rem; }
  #header .amigo-fb { position: static; margin: 0 0 0 .9375rem; }
}
.icon-facebook::before { content: "\e900"; }

/* ---- Footer: the old band padding 72 / 48, full-bleed green through a wide pseudo-element, copyright and credits split by a <br> ---- */
#footer .amigo-foot-band { position: relative; padding: 72px 0 48px; background: #013832; color: #000; font-size: 1rem; }
#footer .amigo-foot-band::after { content: ""; position: absolute; left: -9999px; right: -9999px; top: 0; bottom: 0; background: #013832; }
#footer .amigo-foot-band .logo { position: relative; z-index: 2; }
#footer .amigo-foot-band img { max-width: 100%; }
#footer .amigo-foot-bottom { position: relative; background: none; padding: 24px 0; }
#footer .amigo-foot-bottom p { margin: 0; }
#footer .amigo-foot-bottom .amigo-foot-links { margin: 0 0 1.25rem; }
#footer .amigo-foot-credits { color: #fff; }

/* Wide screens: the old site's containers grow to 1414 px from 1414 px (its bootstrap.css), header, body and footer alike. */
@media (min-width: 1414px) {
  .container, #header .container, #footer .container, .container.amigo-contact-card { max-width: 1414px; }
}
