/* Amigo's own look on top of the template (Phase 3). Loaded after main.css, before each page's own
   amigo-<page>.css (added per page through $css_includes).
   This file is owned by the shared-look slice (colours, fonts, header, footer, general type). Page slices do not
   edit it: each styles its own page in public/assets/css/amigo-<page>.css, loaded only on that page.

   Fonts: the old site's own, self-hosted (public/assets/fonts/amigo/), same family names and weights as its
   css/main.css. Images from the old site: public/assets/img/amigo/ (amigo.jpg, logo.png, wood-grain.jpg). */
@font-face { font-family: annual; src: url("../fonts/amigo/AnnualBold.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: helveticaNeue; src: url("../fonts/amigo/HelveticaNeueLT-BoldCond.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: helveticaNeue; src: url("../fonts/amigo/HelveticaNeueLTCom-Bd.woff") format("woff"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face { font-family: helveticaNeue; src: url("../fonts/amigo/HelveticaMedCd.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: helveticaNeue; src: url("../fonts/amigo/HelveticaNeueLTStd-Bd.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: helveticaNeue; src: url("../fonts/amigo/HelveticaNeueLTStd-Roman.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: icomoon; src: url("../fonts/amigo/icomoon.woff") format("woff"); font-weight: 400; font-style: normal; font-display: block; }

/* ---- Site-wide look, matched to the old site (css/main.css, bootstrap.css, style-dev.css) ----
   Palette: green #013832 (old .bg-secondary), grey #333, black body text. Template variables are overridden here so
   every template component (buttons, links, cards) picks up Amigo's colours and fonts. */
:root {
  --default-font: "helveticaNeue", Arial, Helvetica, sans-serif;
  --heading-font: "helveticaNeue", Arial, Helvetica, sans-serif;
  --nav-font: "helveticaNeue", Arial, Helvetica, sans-serif;
  --background-color: #ffffff;
  --default-color: #000000;
  --heading-color: #013832;
  --accent-color: #013832;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --nav-color: #ffffff;
  --nav-hover-color: #f3da75;
  --amigo-green: #013832;
  --amigo-grey: #333333;
}
html { scroll-behavior: auto; }
body { font-family: "helveticaNeue", Arial, Helvetica, sans-serif; font-size: 1rem; font-weight: 400; line-height: 1.5; color: #000; background-color: #fff; min-width: 320px; }
a { color: #333; text-decoration: none; }
a:hover { color: #0d0d0d; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-family: "helveticaNeue", Arial, Helvetica, sans-serif; }
h1 { font-weight: 900; }
h2 { font-weight: 900; }
h3 { font-weight: 800; }

/* The template pins the whole page to sticky + scroll offsets; the old header scrolls away like any other block. */
#header.header { position: relative; padding: 0; background: #fff; color: #000; }

/* Top row: place left, logo centre, phone right (old .header-holder) */
#header .amigo-top { font-family: "annual", Arial, Helvetica, sans-serif; padding: 1.5rem 0; }
#header .amigo-top .logo { display: block; width: 200px; max-width: 100%; }
#header .amigo-top .logo img { display: block; width: 100%; height: auto; max-height: none; max-width: 100%; margin: 0; }
#header .amigo-loc { font-size: 1.125rem; line-height: 1.375rem; color: #013832; padding: 0 0 .625rem; letter-spacing: 1px; text-align: center; }
#header .amigo-phone { font-size: 1.375rem; line-height: 1.5625rem; color: #013832; padding: 0 0 .25rem; letter-spacing: 2px; text-align: center; }
#header .amigo-phone:hover { color: #333; }
@media (max-width: 767.98px) {
  #header .amigo-loc { padding: .625rem 0; }
  #header .amigo-top > div { flex: 0 0 100%; max-width: 100%; }
}
@media (min-width: 768px) {
  #header .amigo-loc { text-align: left; }
  #header .amigo-phone { text-align: right; }
}
/* Tablet: keep the phone number on one line (it broke after "533-") */
@media (min-width: 768px) and (max-width: 991.98px) {
  #header .amigo-phone { white-space: nowrap; letter-spacing: 1px; font-size: 1.25rem; }
}
@media (min-width: 992px) {
  #header .amigo-top .logo { width: 300px; }
  #header .amigo-loc { font-size: 1.5rem; line-height: 1.75rem; }
  #header .amigo-phone { font-size: 2.25rem; line-height: 2.5rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  #header .amigo-phone { white-space: nowrap; font-size: 1.75rem; letter-spacing: 1px; }
}
@media (min-width: 1414px) {
  #header .amigo-top { padding: 1.75rem 0 1.25rem; }
  #header .amigo-top .logo { width: 531px; }
}

/* Green nav bar (old .menu / .navbar) */
#header .amigo-bar { background: #013832; position: relative; }
#header .amigo-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 12px 0; min-height: 44px; }
#header .amigo-nav ul { list-style: none; margin: 0; padding: 0; display: none; }
#header .amigo-nav a { display: block; color: #fff; font-family: "helveticaNeue", Arial, Helvetica, sans-serif; font-weight: 800; font-size: 1.125rem; line-height: 1.375rem; text-transform: uppercase; letter-spacing: 1px; padding: 0; }
#header .amigo-nav a:hover, #header .amigo-nav a:focus { color: #f3da75; }
#header .amigo-nav a.active { text-decoration: underline; text-underline-offset: 6px; }
#header .amigo-fb { color: #fff; font-family: "helveticaNeue", Arial, Helvetica, sans-serif; font-size: .875rem; line-height: 1.25rem; font-weight: 800; text-transform: uppercase; }
#header .amigo-fb:hover { color: #f3da75; }
#header .amigo-fb .icon-facebook { font-family: "icomoon"; font-style: normal; font-size: .625rem; line-height: .625rem; display: inline-block; vertical-align: middle; margin: 0 .25rem .125rem 0; }
#header .amigo-fb .icon-facebook:before { content: "\e900"; }
/* hamburger (phone/tablet): toggle left, Facebook right, the list opens underneath */
#header .mobile-nav-toggle { order: 1; color: #fff; font-size: 2.25rem; line-height: 1; margin: 0 0 0 .75rem; position: static; cursor: pointer; }
#header .amigo-fb { order: 2; }
#header .amigo-nav { order: 3; flex: 0 0 100%; }
body.mobile-nav-active { overflow: visible; }
body.mobile-nav-active #header .amigo-nav ul { display: block; padding: 1.25rem 0 .5rem; }
#header .amigo-nav li { margin: .5rem 0; }
@media (min-width: 992px) {
  #header .amigo-bar-inner { justify-content: center; flex-wrap: nowrap; }
  #header .amigo-nav { order: 1; flex: 0 1 auto; }
  #header .amigo-fb { order: 2; margin-left: .9375rem; }
  #header .amigo-nav ul, body.mobile-nav-active #header .amigo-nav ul { display: flex; flex-wrap: wrap; justify-content: center; padding: 0; }
  #header .amigo-nav li { margin: 0 1rem; }
  #header .amigo-nav a { font-size: .875rem; line-height: 1.25rem; }
}

/* Footer (old #footer: grey rule, green logo band, black credits) */
#footer.footer { background: #000; color: #fff; padding: 0; border-top: 12px solid #333; position: relative; }
#footer .amigo-foot-band { background: #013832; display: flex; justify-content: center; padding: 3.75rem 0 3.75rem; }
#footer .amigo-foot-band .logo { display: block; width: 200px; max-width: 100%; }
#footer .amigo-foot-band img { display: block; width: 100%; height: auto; }
@media (min-width: 576px) { #footer .amigo-foot-band .logo { width: 430px; } }
#footer .amigo-foot-bottom { background: #000; color: #fff; text-align: center; padding: 1.5rem 0; font-size: .8125rem; line-height: 1.25rem; font-weight: 500; }
#footer .amigo-foot-bottom p { margin: 0 0 1.25rem; }
#footer .amigo-foot-bottom a { color: #fff !important; } /* main.css sets .footer a with !important */
#footer .amigo-foot-bottom a:hover { color: #ccc !important; }
#footer .amigo-foot-links a { margin: 0 .5rem; }
#footer .amigo-foot-links .bi { font-size: 1rem; }
@media (min-width: 1414px) { #footer .amigo-foot-bottom { font-size: 1.125rem; line-height: 1.6875rem; } }

/* Page-title banner: the old inner pages have none (the body starts straight under the nav, with each page's own panel).
   The template's .page-title stays in the DOM, so its h1 is still there for search engines and screen readers, but it
   takes no room: visually hidden (clip pattern), not display:none. Breadcrumbs inside it go with it. */
.page-title { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; background: none !important; }
