/* ==========================================================================
   ROADPROCLOUD shared header + footer
   --------------------------------------------------------------------------
   Ported from the vinprolatest_v3 "default" theme (layout/header.blade.php,
   layout/footer.blade.php and the matching rules in css/style.css), which is
   what www.roadprocloud.com renders. Markup lives in assets/site-chrome/ and
   is stamped into every page by apply_site_chrome.ps1 in the site root.

   Every selector is prefixed (rpc-) or scoped to .rpc-chrome so the pages'
   own stylesheets and resets cannot bleed in, and vice versa.
   ========================================================================== */

:root {
  --rpc-primary: #0379a8;
  --rpc-secondary: #191f23;
  --rpc-text-gray: #848484;
}

/* The pages were built for a 64px fixed CARFAX header; this one is in flow. */
body { padding-top: 0 !important; }

/* Home page anchors the menu points at, kept clear of the sticky header. */
#aboutID, #howItWork { scroll-margin-top: 90px; }

.rpc-chrome, .rpc-chrome * { box-sizing: border-box; }
.rpc-chrome {
  font-family: "Montserrat", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.rpc-chrome ul { list-style: none; margin: 0; padding: 0; }
.rpc-chrome a { text-decoration: none; }
.rpc-chrome svg { display: block; }

/* Bootstrap-equivalent container widths, as the theme uses .container. */
.rpc-container { width: 100%; max-width: 540px; margin: 0 auto; padding: 0 12px; }
@media (min-width: 768px)  { .rpc-container { max-width: 720px; } }
@media (min-width: 992px)  { .rpc-container { max-width: 960px; } }
@media (min-width: 1200px) { .rpc-container { max-width: 1140px; } }
@media (min-width: 1400px) { .rpc-container { max-width: 1320px; } }

/* ---------- Header ---------- */

#site-header { display: block; position: relative; z-index: 9999; }

#HeaderID { padding: 10px 0; width: 100%; background: #fff; }

/* Added by site-chrome.js once the page is scrolled past 50px (theme: .content_fixed). */
#HeaderID.content_fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  transition: 0.5s ease;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.rpc-nav__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.rpc-logo { padding: 10px 0; }
.rpc-logo a { display: inline-flex; align-items: center; text-decoration: none; }
.rpc-logo a img { width: auto; height: 26px; margin-right: 5px; display: block; }
.rpc-logo a span { color: var(--rpc-primary); font-size: 20px; font-weight: 900; white-space: nowrap; line-height: 1; }
.rpc-logo a span i { font-style: normal; color: var(--rpc-secondary); }

.rpc-nav__menu { display: flex; align-items: center; justify-content: flex-end; flex: 1 1 auto; min-width: 0; }

.rpc-menu { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.rpc-menu li { list-style: none; display: inline-block; text-transform: uppercase; }
.rpc-menu li a { display: inline-block; color: #000; padding: 0 10px; font-weight: 700; font-size: 12px; line-height: 24px; }
.rpc-menu li a:hover, .rpc-menu li a:focus { color: var(--rpc-primary); text-decoration: none; }

.rpc-burger { display: none; }
.rpc-burger button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 0 12px;
  margin: 0;
  background: #fff;
  border: 0;
  border-radius: 0;
  color: #000;
  cursor: pointer;
}
.rpc-burger button svg { width: 28px; height: 28px; fill: currentColor; }

.rpc-mobnav { display: none; background: #fff; }
.rpc-mobnav.is-open { display: block; }
.rpc-mobnav ul li { list-style: none; border-top: 1px solid #eee; }
.rpc-mobnav ul li a {
  display: block;
  padding: 14px;
  border: 0;
  color: var(--rpc-secondary);
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
}
.rpc-mobnav ul li a.rpc-login { font-weight: 800; text-transform: none; }
.rpc-mobnav ul li a:hover, .rpc-mobnav ul li a:focus { color: var(--rpc-primary); text-decoration: none; }

@media (max-width: 992px) {
  .rpc-menu { display: none; }
  .rpc-burger { display: block; }
}

/* ---------- Footer ---------- */

#site-footer { display: block; }

.rpc-footer { background: #333; color: #fff; padding-top: 10px; }

.rpc-footer__grid { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 24px 0 8px; }
.rpc-footer__spacer { display: none; }
@media (min-width: 768px) {
  .rpc-footer__grid { grid-template-columns: 1fr 1fr; }
  .rpc-footer__about { grid-column: 1 / -1; }
}
@media (min-width: 992px) {
  /* Theme columns: col-lg-4, col-lg-2 (empty), col-lg-3, col-lg-3 */
  .rpc-footer__grid { grid-template-columns: 4fr 2fr 3fr 3fr; }
  .rpc-footer__about { grid-column: auto; }
  .rpc-footer__spacer { display: block; }
}

.rpc-footer .rpc-logo { padding: 0; margin-bottom: 1rem; }
.rpc-footer .rpc-logo a { display: flex; align-items: center; }
.rpc-footer .rpc-logo a img { height: 32px; margin-right: 7px; }
.rpc-footer .rpc-logo a span { font-size: 18px; font-weight: 600; color: var(--rpc-primary); }
.rpc-footer .rpc-logo a span i { color: #fff; }

.rpc-footer h2 { margin: 0 0 1rem; color: #fff; font-size: 18px; font-weight: 600; line-height: 1.3; text-transform: uppercase; }
.rpc-footer p { font-size: 14px; color: var(--rpc-text-gray); }

.rpc-footer__list li { padding-bottom: .5rem; margin-bottom: .5rem; border-bottom: 1px solid #4a4a4a; color: #fff; font-size: 14px; line-height: 1.5; }
.rpc-footer__list li a { display: flex; align-items: center; color: #fff; }
.rpc-footer__list li a:hover, .rpc-footer__list li a:focus { color: #fff; text-decoration: underline; }
.rpc-footer__list svg { flex: 0 0 auto; width: 14px; height: 14px; margin-right: .5rem; fill: currentColor; }

.rpc-footer__contact li { display: flex; align-items: flex-start; padding-bottom: 1rem; margin-bottom: 1rem; }
.rpc-footer__contact svg { margin-top: 4px; }

.rpc-copyright { border-top: 3px dashed var(--rpc-primary); }
.rpc-copyright p { margin: 0; padding: 1.5rem 0; color: #fff; font-size: 14px; text-align: center; }
@media (min-width: 768px) { .rpc-copyright p { text-align: left; } }

@media print {
  #site-header, #site-footer { display: none; }
}
