/* Shared styles for every marketing page. Served at /marketing/_shared/site.css.
   Brand colours and font match upguys.com. Mobile-first: base styles are for phones,
   the @media (min-width) blocks add to them for bigger screens. */

:root {
  --primary: #cf4600;
  --button: #d84b00;
  --teal: #5fbcb6;
  --text: #212529;
  --text-muted: #55534d;
  --heading: #000;
  --dark: #111110;
  --page: #faf9f7;
  --light: #ededed;
  --border: #ededed;
  --white: #fff;
  --radius: 12px;
  --max-width: 1080px;
  --font: acumin-pro, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); }

h1, h2, h3 { margin: 0 0 .5em; color: var(--heading); font-weight: 500; line-height: 1.15; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Navbar and menu drawer */
html { scrollbar-gutter: stable; }
body.drawer-open { position: fixed; width: 100%; overflow: hidden; }
#navWrapper { font-size: 18px; line-height: 1.83; }
#navWrapper a { text-decoration: none; }
#navWrapper button { font-family: inherit; font-size: inherit; line-height: inherit; }
.navbar-fixed-top a:hover { color: #832c00; text-decoration: underline; }
.navbar-fixed-top {
  position: fixed;
  top: 0; left: 0;
  z-index: 1030;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 66px;
  padding: 0;
  border-bottom: 2px solid #e0e0de;
  background-color: var(--white);
  font-family: var(--font);
  transition: background-color .2s linear, border .2s ease-in;
}
.navbar-fixed-top > .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1240px;
  padding: .5rem 1rem;
}
.nav-fixed-offset { padding-top: 66px; }
.nav-left, .nav-right { flex: 0 0 auto; }
.nav-left { display: flex; align-items: center; }
.nav-toggle {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: #000;
  transform-origin: center;
  transition: transform .3s ease, opacity .2s ease, background .25s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; visibility: hidden; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
#navWrapper .nav-menu-label {
  display: none;
  margin-left: .5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  cursor: pointer;
}
.navbar-fixed-top .navbar-brand {
  position: absolute;
  left: 50%;
  display: block;
  width: 118px; height: 20px;
  padding-top: .3125rem;
  padding-bottom: .3125rem;
  background-image: url("img/logo.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: auto 20px;
  color: rgba(0, 0, 0, .9);
  font-size: 1.25rem;
  line-height: inherit;
  text-align: center;
  white-space: nowrap;
  transform: translateX(-50%);
}
.nav-right {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
  gap: 3px;
  margin: 0 0 0 auto;
  padding-left: 0;
  color: #000;
  list-style: none;
}
.nav-lang-item--with-account-icon { display: list-item; }
.nav-cc-item { display: none; }
.nav-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
#navWrapper .nav-lang { text-decoration: underline; }
.nav-lang__leaf {
  display: inline-flex;
  flex: 0 0 auto;
  width: 14px; height: 14px;
  background-color: #893512;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}
.nav-cc-pill {
  display: none;
  width: 133px; height: 28px;
  background: url("img/ico-canadian-company-desktop2x.png") center / contain no-repeat;
}
.nav-login-trigger {
  display: none;
  align-items: center;
  height: 44px;
  color: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.83;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-account-trigger { display: inline-flex; color: inherit; line-height: 0; cursor: pointer; }
.nav-account-trigger svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; vertical-align: middle; }
.nav-account-trigger__person { display: inline-flex; line-height: 0; }
.nav-profile-trigger { align-items: center; justify-content: center; width: 44px; height: 44px; line-height: 44px; }
.nav-profile-trigger .nav-account-trigger__person { align-items: center; justify-content: center; line-height: 1; }
.nav-profile-trigger svg { display: block; }

.drawer {
  position: fixed;
  top: 66px; bottom: 0;
  z-index: 1025;
  display: flex;
  flex-direction: column;
  width: 78%;
  max-width: 360px;
  overflow-y: auto;
  scrollbar-width: none;
  visibility: hidden;
  pointer-events: none;
  background: rgba(251, 247, 244, .92);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, .25);
  font-family: var(--font);
  transition: transform .35s cubic-bezier(.25, .8, .35, 1), visibility 0s linear .35s;
}
.drawer::-webkit-scrollbar { display: none; }
.drawer--menu { left: 0; transform: translateX(-100%); }
.drawer--menu.is-open { visibility: visible; pointer-events: auto; transform: translateX(0); transition-delay: 0s; }
.drawer__scroll { flex: 1 1 auto; padding: 26px 24px 24px; }
.drawer__footer { flex: 0 0 auto; padding: 18px 24px 26px; border-top: 1px solid rgba(0, 0, 0, .12); }
.drawer__footer .btn-secondary {
  display: block;
  width: 100%;
  min-width: 0;
  background: #000;
  color: var(--white);
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
  -webkit-user-select: none;
  user-select: none;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.drawer__footer .btn-secondary:hover { background: var(--white); color: #000; }
.drawer__group + .drawer__group { margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(0, 0, 0, .12); }
.drawer__label { margin: 0 0 6px; color: #8a8880; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.drawer__nav { margin: 0; padding: 0; list-style: none; }
.drawer__nav a { display: block; padding: 9px 0; color: #000; font-size: 20px; font-weight: 600; line-height: 1.3; transition: color .15s ease; }
.drawer__nav a:hover { color: #d84b00; }
.drawer__nav li { opacity: 0; transform: translateX(-8px); }
.drawer.is-open .drawer__nav li { animation: drawerLinkIn .3s ease-out both; }
.drawer.is-open .drawer__nav li:nth-child(1) { animation-delay: .05s; }
.drawer.is-open .drawer__nav li:nth-child(2) { animation-delay: .09s; }
.drawer.is-open .drawer__nav li:nth-child(3) { animation-delay: .13s; }
.drawer.is-open .drawer__nav li:nth-child(4) { animation-delay: .17s; }
.drawer.is-open .drawer__nav li:nth-child(5) { animation-delay: .21s; }
.drawer.is-open .drawer__nav li:nth-child(6) { animation-delay: .25s; }
@keyframes drawerLinkIn { to { opacity: 1; transform: translateX(0); } }
.drawer__lang-row { display: flex; align-items: center; gap: 18px; padding-top: 2px; }
.drawer__lang-row a, .drawer__lang-row span { display: inline-block; padding: 4px 0; color: #8a8880; font-size: 16px; font-weight: 600; transition: color .15s ease; }
.drawer__lang-row a:hover { color: #d84b00; }
.drawer__lang-row .is-active { border-bottom: 2px solid #000; color: #000; }
.drawer-backdrop {
  position: fixed;
  top: 66px; right: 0; bottom: 0; left: 0;
  z-index: 1020;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }
.scroll-thumb-track { position: fixed; z-index: 2000; pointer-events: none; opacity: 0; transition: opacity .15s ease; }
.scroll-thumb-track.is-open { opacity: 1; transition: none; }
.scroll-thumb-track--right .scroll-thumb-track__thumb { right: 0; }
.scroll-thumb-track__thumb { position: absolute; top: 0; width: 6px; background: rgba(0, 0, 0, .5); }

/* Dark navbar (data-nav-style="dark" or "overlay", see src/worker.js): white logo, icons and text
   while the visitor is at the top of the page. site.js removes the class on scroll or menu open. */
.navbar-fixed-top.navbar-dark, .navbar-fixed-top.navbar-dark-mobile { border-bottom-color: #fff; background-color: transparent; }
.navbar-fixed-top.navbar-dark { border-bottom-color: #d56a34; }
.navbar-dark .navbar-brand, .navbar-dark-mobile .navbar-brand { background-image: url("img/logo-white.png"); }
.navbar-dark .nav-toggle span, .navbar-dark-mobile .nav-toggle span { background: var(--white); }
#navWrapper .navbar-dark .nav-menu-label, #navWrapper .navbar-dark-mobile .nav-menu-label,
.navbar-dark .nav-right, .navbar-dark-mobile .nav-right { color: var(--white); }
.navbar-dark .nav-cc-pill, .navbar-dark-mobile .nav-cc-pill { background-image: url("img/ico-canadian-company-desktop-white2x.png"); }
.nav-fixed-offset--orange { background-color: #d84b00; }
.nav-fixed-offset--overlay { padding-top: 0; }

@media (max-width: 992px) {
  .nav-right { justify-content: flex-end; }
}

@media (min-width: 992px) {
  .navbar-fixed-top { flex-wrap: nowrap; height: 66px; }
  .navbar-fixed-top > .container { flex-wrap: nowrap; }
  #navWrapper .nav-menu-label { display: inline-block; }
  .navbar-fixed-top .navbar-brand { width: 190px; height: 32px; background-size: auto 32px; }
  .nav-right { gap: 16px; }
  .nav-cc-item { display: list-item; }
  .nav-lang { font-size: 14px; letter-spacing: .04em; }
  .nav-lang__leaf { display: none; }
  .nav-cc-pill { display: block; }
  .nav-login-trigger { display: inline-flex; }
  .nav-account-trigger { display: none; }
  .drawer { width: 420px; max-width: 420px; }
  .drawer--menu { border-right: 2px solid #e0e0de; }
  .drawer__scroll { padding: 32px 40px 24px; }
  .drawer__footer { padding: 20px 40px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .drawer, .drawer-backdrop, .nav-toggle span, .scroll-thumb-track { transition: none; }
  .drawer.is-open .drawer__nav li { animation: none; opacity: 1; transform: none; }
}

/* Sections */
.section { padding: 48px 0; }
.section--light { background: var(--light); }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark h1, .section--dark h2, .section--dark h3 { color: var(--white); }

.hero { padding: 56px 0 48px; }
.hero__lead { font-size: 1.15rem; color: var(--text-muted); max-width: 36em; }

.eyebrow { display: inline-block; margin-bottom: 12px; color: var(--primary); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Buttons: square, like upguys.com. .btn is orange, .btn--black and .btn--white are the other two
   the main site uses. Each turns to the opposite colour on hover. */
.btn {
  display: inline-block;
  min-width: 200px;
  min-height: 50px;
  padding: 15px 20px;
  border: 0;
  border-radius: 0;
  background: var(--button);
  color: var(--white);
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .01rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.btn:hover, .btn:focus-visible { background: #000; color: var(--white); }
.btn--black { background: #000; }
.btn--black:hover, .btn--black:focus-visible { background: var(--white); color: #000; }
.btn--white { background: var(--white); color: #000; }
.btn--white:hover, .btn--white:focus-visible { background: #000; color: var(--white); }
.btn--outline { background: transparent; color: var(--button); box-shadow: inset 0 0 0 2px var(--button); }
.btn--outline:hover, .btn--outline:focus-visible { background: var(--button); color: var(--white); box-shadow: none; }
.btn--block { display: block; width: 100%; }

/* Cards */
.cards { display: grid; gap: 16px; }
.card { display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); }
.card p { color: var(--text-muted); }
.card .btn { margin-top: auto; }

/* Numbered steps */
.steps { display: grid; gap: 20px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding-left: 52px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  font-weight: 700; line-height: 36px; text-align: center;
}

.fine-print { color: var(--text-muted); font-size: .85rem; }

/* Font Awesome Free 7.1.0 icons. Licence: fonts/fontawesome-LICENSE.txt
   Both fonts are cut down to just the icons below (about 3 KB instead of 200 KB). To add an icon,
   re-cut the font from the full Font Awesome file with every icon's code point, e.g.
   pyftsubset fa-brands-400.woff2 --unicodes=U+F39E,U+E61B,... --flavor=woff2 */
@font-face {
  font-family: "Font Awesome 7 Brands";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/fa-brands-400.woff2") format("woff2");
}
@font-face {
  font-family: "Font Awesome 7 Free";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("fonts/fa-solid-900.woff2") format("woff2");
}
.fab { font-family: "Font Awesome 7 Brands"; font-weight: 400; }
.fas { font-family: "Font Awesome 7 Free"; font-weight: 900; }
.fab, .fas {
  display: inline-block;
  width: 1.25em;
  font-style: normal;
  line-height: 1;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.fa-facebook-f::before { content: "\f39e"; }
.fa-x-twitter::before { content: "\e61b"; }
.fa-instagram::before { content: "\f16d"; }
.fa-medium-m::before { content: "\f23a"; }
.fa-cc-mastercard::before { content: "\f1f1"; }
.fa-cc-visa::before { content: "\f1f0"; }
.fa-cc-amex::before { content: "\f1f3"; }
.fa-arrow-up::before { content: "\f062"; }
.fa-arrow-right::before { content: "\f061"; }

/* Back-to-top button, shown once the visitor scrolls a full screen down (site.js) */
.scroll-top {
  position: fixed;
  bottom: 12px; left: 12px;
  z-index: 100;
  margin: 12px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 1s, visibility 0s linear 1s;
}
.scroll-top.is-visible { visibility: visible; opacity: 1; transition: opacity 1s; }
.scroll-top__button {
  display: inline-block;
  min-height: 50px;
  padding: 15px 20px;
  border: 1px solid #cf4600;
  border-radius: 15px;
  background: transparent;
  color: #cf4600;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .01rem;
  line-height: 1.3;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.scroll-top__button:hover, .scroll-top__button:active { background: #cf4600; color: var(--white); }
.scroll-top__button:focus { outline: 0; box-shadow: 0 0 0 .2rem rgba(207, 70, 0, .5); }
@media (prefers-reduced-motion: reduce) {
  .scroll-top, .scroll-top.is-visible, .scroll-top__button { transition: none; }
}

/* Footer */
.footer { padding: 40px 0 20px; background: #000; color: #fff; font-size: 18px; line-height: 1.83; }
.footer img { display: inline-block; vertical-align: middle; }
.footer p { margin-bottom: 1rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer .container { max-width: none; padding: 0 15px; }
.footer .row { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.footer [class*="col-"], .footer .col { position: relative; width: 100%; padding: 0 15px; }
.footer .col { flex: 1 0 0; min-width: 0; max-width: 100%; }
.footer .col-12 { flex: 0 0 100%; max-width: 100%; }
.footer .col-6 { flex: 0 0 50%; max-width: 50%; }
.footer .my-1 { margin-top: .25rem; margin-bottom: .25rem; }
.footer .py-4 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.footer .pt-4 { padding-top: 1.5rem; }
.footer .text-right { text-align: right; }
.footer .text-white { color: #fff; }
.footer .text-white-50 { color: rgba(255, 255, 255, .5); }
.footer .type-p3 { font-size: 13px; }
.footer .w-25 { width: 25%; }
.footer .list-unstyled, .footer .list-inline { padding-left: 0; margin: 0 0 1rem; list-style: none; }
.footer .list-inline-item { display: inline-block; }
.footer .list-inline-item:not(:last-child) { margin-right: .5rem; }
.footer .h5 { margin-bottom: .5rem; font-size: 14px; font-weight: 500; line-height: 1.2; letter-spacing: 1.25px; text-transform: uppercase; }
.footer-logo-im { display: inline-block; padding: 20px 0 40px; }
.footer li a { color: #858585; font-size: 14px; letter-spacing: .25px; line-height: 28px; text-transform: uppercase; }
.footer li a.social {
  position: relative;
  display: inline-block;
  width: 45px; height: 45px;
  margin: 0 5px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
  transition: border .5s ease;
}
.footer li a.social:hover { border-color: #f6993f; }
.footer li a.social i { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.footer li span.cc-list {
  position: relative;
  display: inline-block;
  width: 30px; height: 30px;
  border-radius: 50%;
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: .25px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}
.footer li span.cc-list .debit { position: absolute; left: 0; bottom: 0; width: 100%; font-size: .35rem; text-align: center; }
.footer li span.cc-list--large { width: 45px; height: 45px; font-size: 2rem; }
.footer li span.cc-list--large .debit { font-size: .5rem; }
.bottom-hr { box-sizing: content-box; height: 0; margin: 1rem 0; overflow: visible; border: 0; border-top: 1px solid #585858; }
.footer .footer-bottom { padding-top: 35px; padding-bottom: 25px; }
/* Newsletter sign-up (site.js). The arrow sits over the input's right end; the empty line below
   the input (the button's line box) matches Laravel's spacing. */
.footer-bottom .input-icon { position: relative; }
.footer-bottom form input {
  display: block;
  width: 100%;
  height: 38px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #585858;
  border-radius: 0;
  background: transparent;
  color: #eee;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
.footer-bottom form input::placeholder { color: silver; opacity: 1; }
.footer-bottom form input:focus { outline: 0; border-color: #ff8b50; background: var(--white); color: #495057; box-shadow: 0 0 0 .2rem rgba(207, 70, 0, .25); }
.footer-bottom form button { display: inline-block; padding: 0; border: 0; background: none; cursor: pointer; }
.footer-bottom form .fa-arrow-right { position: absolute; top: 10px; right: 0; display: block; color: var(--white); font-size: 18px; }
.footer-bottom form p { margin-bottom: 1rem; }
.footer-brand-copy .footer-brand-copy__logo { max-width: 220px; margin-bottom: 22px; }
.footer-brand-copy .footer-brand-copy__headline { max-width: 650px; margin-bottom: 14px; font-size: 1rem; font-weight: 600; line-height: 1.2; }
.footer-brand-copy .footer-brand-copy__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; color: #c0c0c0; font-size: 1rem; }
.footer-brand-copy .footer-brand-copy__meta a { color: #c0c0c0; text-decoration: none; }
.footer-brand-copy .footer-brand-copy__meta a:hover { color: #f6993f; text-decoration: none; }



@media (min-width: 576px) {
  .footer .container { max-width: 540px; }
}

@media (min-width: 768px) {
  .footer .container { max-width: 720px; }
  .footer .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .footer .col-md-12 { flex: 0 0 100%; max-width: 100%; }
  .footer .pt-md-0 { padding-top: 0; }
}

@media (min-width: 992px) {
  .footer .container { max-width: 960px; }
  .footer .col-lg-2 { flex: 0 0 16.66666667%; max-width: 16.66666667%; }
  .footer .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
  .footer .col-lg-4 { flex: 0 0 33.33333333%; max-width: 33.33333333%; }
  .footer .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
  .footer .offset-lg-2 { margin-left: 16.66666667%; }
}

@media (min-width: 1200px) {
  .footer .container { max-width: 1240px; }
}

@media (max-width: 992px) {
  .footer .col-lg-2 { flex: 0 0 48%; max-width: 48%; }
  .bottom-hr { display: none; }
  .footer .footer-bottom { flex: 0 0 100%; max-width: 100%; padding-bottom: 50px; border-bottom: 1px solid #fff; }
  .footer .footer-social-news .footer-bottom.text-right { display: inline-table; padding: 50px 0 0; border: none; text-align: center; }
  .footer .footer-brand-copy .footer-brand-copy__headline { font-size: 1.5rem; }
  .footer .footer-brand-copy .footer-brand-copy__meta { gap: 14px; font-size: .95rem; }
}
/* Bigger screens */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2rem; }
  .section { padding: 72px 0; }
  .hero { padding: 96px 0 80px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
}
