/* Casey Crane Hire header, footer and mobile menu */

:root {
  --cch-bg: #191919;
  --cch-bg-deep: #111111;
  --cch-accent: #F5C400;
  --cch-accent-hover: #FDCE06;
  --cch-text: #FFFFFF;
  --cch-muted: #D6D6D6;
  --cch-font: "Montserrat", "Open Sans", Arial, Helvetica, sans-serif;
}

body.cch-theme .nav-placeholder {
  display: none !important;
}

.cch-header-wrap .container,
.cch-footer .container {
  max-width: 1320px;
}

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

.cch-header-wrap,
.cch-footer,
.offcanvas-menu {
  font-family: var(--cch-font);
}

.cch-header-wrap {
  position: relative;
  z-index: 1040;
  background: var(--cch-bg);
  color: var(--cch-text);
}

.cch-header-spacer {
  display: block;
  width: 100%;
  min-height: 100px;
}

.cch-header.is-sticky {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
}

body.sticky-header .cch-header-wrap + .nav-placeholder {
  display: none !important;
}

/* -------------------------------------------------------------------------
   Top bar
   ------------------------------------------------------------------------- */

.cch-topbar,
#sp-top-bar.cch-topbar {
  background: var(--cch-bg) !important;
  color: var(--cch-text);
  padding: 0;
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cch-topbar a {
  color: var(--cch-text);
}

.cch-topbar-inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 42px;
  gap: 16px;
}

.cch-topbar-left,
.cch-topbar-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.cch-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--cch-text);
  line-height: 1;
}

.cch-topbar-item i {
  color: var(--cch-accent);
  font-size: 13px;
}

.cch-topbar-phone:hover,
.cch-topbar-phone:focus {
  color: var(--cch-accent);
}

.cch-quote-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cch-accent);
  color: var(--cch-bg) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 13px 28px 13px 34px;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 0 100%);
  margin-right: -15px;
  transition: background-color 0.25s ease, color 0.25s ease;
  line-height: 1;
  white-space: nowrap;
}

.cch-quote-btn i {
  font-size: 11px;
}

.cch-quote-btn:hover,
.cch-quote-btn:focus {
  background: var(--cch-accent-hover);
  color: var(--cch-bg) !important;
}

/* -------------------------------------------------------------------------
   Main header
   ------------------------------------------------------------------------- */

#sp-header.cch-header {
  position: fixed !important;
  top: 42px;
  left: 0;
  right: 0;
  width: 100%;
  height: auto !important;
  min-height: 0;
  background: var(--cch-bg) !important;
  border-bottom: 0;
  backdrop-filter: none;
  z-index: 1040;
}

#sp-header.cch-header.is-fixed,
#sp-header.cch-header.header-sticky {
  position: fixed !important;
}

.cch-header-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 100px;
  padding: 10px 0;
}

.cch-logo {
  flex: 0 0 auto;
  min-width: 0;
}

.cch-header-actions {
  display: none;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

#sp-header.cch-header .logo {
  height: auto;
  display: flex;
  align-items: center;
}

#sp-header.cch-header .logo a {
  display: inline-flex;
  align-items: center;
}

#sp-header.cch-header .logo-image,
#sp-header.cch-header .logo-image-phone {
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.cch-menu {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
}

#sp-menu.cch-menu > .sp-column {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

#sp-menu.cch-menu > .sp-column .sp-megamenu-wrapper {
  order: 0;
  width: 100%;
  justify-content: center;
}

.cch-header .sp-megamenu-parent {
  float: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  gap: 2px;
}

.cch-header .sp-megamenu-parent > li > a,
.cch-header .sp-megamenu-parent > li > span {
  opacity: 1;
  color: var(--cch-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 8px 14px;
  line-height: 1.2;
}

.cch-header .sp-megamenu-parent > li > a:before,
.cch-header .sp-megamenu-parent > li > span:before {
  top: auto;
  bottom: -2px;
  left: 50%;
  height: 2px;
  background-color: var(--cch-accent);
  transform: translateX(-50%);
}

.cch-header .sp-megamenu-parent > li:hover > a,
.cch-header .sp-megamenu-parent > li:focus > a,
.cch-header .sp-megamenu-parent > li.active > a,
.cch-header .sp-megamenu-parent > li > a:hover,
.cch-header .sp-megamenu-parent > li > a:focus {
  color: var(--cch-accent);
  opacity: 1;
}

.cch-header .sp-megamenu-parent > li.active > a:before,
.cch-header .sp-megamenu-parent > li:hover > a:before {
  width: 40%;
}

.cch-header .sp-megamenu-parent > li.sp-has-child > a:after,
.cch-header .sp-megamenu-parent > li.sp-has-child > span:after {
  margin-left: 6px;
  font-size: 10px;
}

.cch-header .sp-dropdown .sp-dropdown-inner {
  background: var(--cch-bg);
  border-top: 2px solid var(--cch-accent);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.cch-header .sp-dropdown li.sp-menu-item > a {
  color: var(--cch-text);
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.cch-header .sp-dropdown li.sp-menu-item > a:hover,
.cch-header .sp-dropdown li.sp-menu-item.active > a {
  color: var(--cch-accent);
}

.cch-callbox {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--cch-accent);
  padding: 10px 16px 10px 14px;
  min-width: 210px;
}

.cch-callbox-icon {
  color: var(--cch-accent);
  font-size: 22px;
  width: 28px;
  text-align: center;
}

.cch-callbox-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.cch-callbox-text small {
  color: var(--cch-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.cch-callbox-text a {
  color: var(--cch-text);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.cch-callbox-text a:hover,
.cch-callbox-text a:focus {
  color: var(--cch-accent);
}

.cch-header-actions {
  display: none;
}

.cch-mobile-phone {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cch-accent);
  border: 1px solid var(--cch-accent);
  font-size: 16px;
  flex-shrink: 0;
}

.cch-mobile-phone:hover,
.cch-mobile-phone:focus {
  background: var(--cch-accent);
  color: var(--cch-bg);
}

/* Burger */
.cch-header #offcanvas-toggler,
.cch-header-wrap #offcanvas-toggler {
  height: 42px !important;
  line-height: 1 !important;
  float: none !important;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  flex-shrink: 0;
  color: var(--cch-accent);
}

.burger-icon {
  width: 22px;
  height: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.burger-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--cch-accent);
  transition: 0.25s ease;
}

.cch-header #offcanvas-toggler:hover .burger-icon span {
  background: var(--cch-text);
}

/* -------------------------------------------------------------------------
   Off-canvas / mobile menu
   ------------------------------------------------------------------------- */

body.cch-theme .offcanvas-overlay {
  background: rgba(0, 0, 0, 0.72);
}

body.cch-theme .offcanvas-menu {
  background: var(--cch-bg);
  color: var(--cch-text);
  width: min(360px, 88vw);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.45);
}

body.cch-theme .offcanvas-menu .offcanvas-inner {
  padding: 70px 24px 32px;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

body.cch-theme .close-offcanvas {
  background: var(--cch-accent);
  color: var(--cch-bg);
  width: 44px;
  height: 44px;
  line-height: 44px;
  border-radius: 0;
  right: auto;
  left: -44px;
  top: 16px;
}

body.cch-theme .close-offcanvas span {
  left: 0;
  font-size: 18px;
}

.cch-offcanvas-brand {
  display: flex;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(245, 196, 0, 0.25);
}

.cch-offcanvas-brand img {
  max-height: 56px;
  width: auto;
}

body.cch-theme .offcanvas-menu .offcanvas-inner .sp-module ul > li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0 !important;
}

body.cch-theme .offcanvas-menu .offcanvas-inner .sp-module ul > li a,
body.cch-theme .offcanvas-menu .offcanvas-inner .sp-module ul > li span {
  color: var(--cch-text);
  font-size: 14px !important;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  line-height: 1.3 !important;
  display: block;
  padding: 14px 0;
}

body.cch-theme .offcanvas-menu .offcanvas-inner .sp-module ul > li a:hover,
body.cch-theme .offcanvas-menu .offcanvas-inner .sp-module ul > li a:focus,
body.cch-theme .offcanvas-menu .offcanvas-inner .sp-module ul > li.active > a {
  color: var(--cch-accent);
}

body.cch-theme .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > a > .menu-toggler,
body.cch-theme .offcanvas-menu .offcanvas-inner .sp-module ul > li.menu-parent > .menu-separator > .menu-toggler {
  color: var(--cch-accent);
  top: 14px;
}

body.cch-theme .offcanvas-menu .offcanvas-inner .sp-module ul > li ul li a {
  font-size: 13px !important;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.2px;
  color: var(--cch-muted);
  padding: 8px 0;
}

.cch-offcanvas-cta {
  margin-top: auto;
  padding-top: 28px;
}

.cch-offcanvas-cta .cch-callbox {
  width: 100%;
  margin-bottom: 14px;
}

.cch-offcanvas-cta .cch-quote-btn {
  width: 100%;
  justify-content: center;
  margin: 0;
  clip-path: none;
  padding: 14px 20px;
}

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

body.cch-custom-footer #sp-bottom,
body.cch-custom-footer #sp-bottom-down,
body.cch-custom-footer #sp-footer {
  display: none !important;
}

.cch-footer {
  background: var(--cch-footer-bg, var(--cch-bg));
  color: var(--cch-text);
  position: relative;
  border-top: 3px solid var(--cch-accent);
  overflow: hidden;
}

.cch-footer-main {
  position: relative;
  padding: 72px 0 56px;
  background-color: var(--cch-footer-bg, var(--cch-bg));
  background-image: var(--cch-footer-image);
  background-repeat: no-repeat;
  background-position: right 5% center;
  background-size: 420px auto;
}

.cch-footer-main:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--cch-bg) 42%, rgba(25, 25, 25, 0.88) 70%, rgba(25, 25, 25, 0.72) 100%);
  pointer-events: none;
}

.cch-footer-main .container {
  position: relative;
  z-index: 1;
}

.cch-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.85fr 1fr 1.05fr;
  gap: 36px 28px;
}

.cch-footer-logo {
  display: inline-block;
  margin-bottom: 18px;
}

.cch-footer-logo img {
  max-height: 72px;
  width: auto;
  max-width: 220px;
}

.cch-footer-about {
  color: var(--cch-muted);
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 22px;
}

.cch-footer-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--cch-accent);
  padding: 12px 14px;
  margin-bottom: 22px;
}

.cch-footer-badge-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cch-accent);
  color: var(--cch-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.cch-footer-badge-icon i {
  font-size: 14px;
}

.cch-footer-badge-icon small {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.cch-footer-badge-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cch-footer-badge-text strong {
  color: var(--cch-accent);
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.cch-footer-badge-text span {
  color: var(--cch-text);
  font-size: 13px;
}

.cch-social {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
}

.cch-social a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cch-text);
  font-size: 14px;
  transition: 0.25s ease;
}

.cch-social a:hover,
.cch-social a:focus {
  background: var(--cch-accent);
  border-color: var(--cch-accent);
  color: var(--cch-bg);
}

.cch-footer-heading {
  color: var(--cch-accent);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 18px;
  padding-bottom: 10px;
  position: relative;
}

.cch-footer-heading:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 3px;
  background: var(--cch-accent);
}

.cch-footer-links,
.cch-footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cch-footer-links li,
.cch-footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--cch-text);
  font-size: 14px;
  line-height: 1.45;
}

.cch-footer-links a,
.cch-footer-contact-list a,
.cch-footer-contact-list span {
  color: var(--cch-text);
}

.cch-footer-links a:hover,
.cch-footer-contact-list a:hover {
  color: var(--cch-accent);
}

.cch-footer-services .cch-footer-links i {
  color: var(--cch-accent);
  font-size: 10px;
  margin-top: 5px;
}

.cch-area-links i,
.cch-footer-contact-list i {
  color: var(--cch-accent);
  width: 14px;
  margin-top: 3px;
  flex-shrink: 0;
}

.cch-footer-map {
  margin-top: 18px;
  max-width: 120px;
}

.cch-footer-map img {
  width: 100%;
  height: auto;
}

.cch-footer-bottom {
  background: var(--cch-bg-deep);
  padding: 16px 0;
  position: relative;
  z-index: 1;
}

.cch-footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cch-copyright {
  margin: 0;
  color: var(--cch-text);
  font-size: 13px;
}

.cch-legal {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  font-size: 13px;
}

.cch-legal a {
  color: var(--cch-text);
}

.cch-legal a:hover {
  color: var(--cch-accent);
}

.cch-legal-sep {
  color: rgba(255, 255, 255, 0.45);
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 1199px) {
  .cch-footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .cch-header .sp-megamenu-parent > li > a,
  .cch-header .sp-megamenu-parent > li > span {
    padding: 8px 10px;
    font-size: 12px;
  }

  .cch-callbox {
    min-width: 0;
    padding: 8px 12px;
  }

  #sp-header.cch-header .logo-image {
    max-width: 150px;
  }
}

@media (max-width: 991px) {
  .cch-header-spacer {
    min-height: 72px;
  }

  .cch-header-inner {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 6px 0;
    gap: 8px;
  }

  .cch-logo {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 100px);
  }

  .cch-menu,
  .cch-callbox {
    display: none !important;
  }

  .cch-header-actions {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
  }

  #sp-header.cch-header .logo-image,
  #sp-header.cch-header .logo-image-phone {
    max-width: 150px;
    max-height: 48px;
    width: auto;
    height: auto;
  }

  .cch-topbar-left .cch-topbar-item:nth-child(2) {
    display: none;
  }

  .cch-topbar-inner {
    min-height: 40px;
  }

  .cch-quote-btn {
    margin-right: -15px;
    padding: 12px 18px 12px 24px;
    font-size: 11px;
  }

  .cch-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cch-footer-brand {
    grid-column: 1 / -1;
  }

  .cch-footer-main {
    background-size: 55% auto;
    padding: 56px 0 40px;
  }
}

@media (max-width: 767px) {
  .cch-topbar-left {
    display: none;
  }

  .cch-topbar-inner {
    justify-content: flex-end;
  }

  .cch-footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .cch-footer-main {
    background-image: none;
    padding: 48px 0 36px;
  }

  .cch-footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }

  .cch-legal {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 575px) {
  .cch-topbar {
    display: none;
  }

  #sp-header.cch-header {
    top: 0;
  }

  .cch-header-spacer {
    min-height: 60px;
  }

  .cch-header-inner {
    min-height: 60px;
    padding: 6px 0;
    gap: 6px;
  }

  #sp-header.cch-header .logo-image,
  #sp-header.cch-header .logo-image-phone {
    max-width: min(52vw, 140px);
    max-height: 42px;
  }

  .cch-mobile-phone,
  .cch-header #offcanvas-toggler,
  .cch-header-wrap #offcanvas-toggler {
    width: 38px;
    height: 38px !important;
  }

  body.cch-theme .close-offcanvas {
    left: auto;
    right: 12px;
    top: 12px;
    border-radius: 50%;
  }
}
