/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 0.25em 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

:root {
  --header-height: 72px;
  --footer-height: 75px;
  --blue-color: #0053a2;
  --darkblue-color: #001a66;
  --red-color: #85050e;
  --font-color: var(--blue-color);
  --link-color: var(--red-color);
}

@font-face {
  font-family: 'Adieu';
  src: url('../font/Adieu-Regular.woff2') format('woff2'),
       url('../font/Adieu-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

html {
  color: var(--font-color); /*rgb(00, 38, 114);*/
  font-family: Adieu, sans-serif;
  font-size: 12px;
}

body, html {
  height: 100%;
}

body {
  font-size: 1em;
}

* {
  box-sizing: border-box;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

h3 {
  font-size: 2.5rem;
  text-transform: uppercase;
  font-weight: normal;
  line-height: 1.2em;
}

.h4,
h4 {
  font-size: 1.5rem;
  font-weight: normal;
  line-height: 1.2em;
  color: white;
}
figure {
  margin: 0;
}

a:not(.no-hover):hover,
a:not(.no-hover):focus,
a:not(.no-hover):active {
  border-bottom: 2px solid;
}

.white {
  color: white;
}

.red {
  color: var(--red-color);
}

.blue {
  color: var(--blue-color);
}

.darkblue {
  color: var(--darkblue-color);
}
.taf-logo {
  /*width: 107%;*/
}

.font-hollow {
  color: white;
  -webkit-text-fill-color: transparent; /* Will override color (regardless of order) */
  -webkit-text-stroke-width: 0.5px;
  -webkit-text-stroke-color: white;
}

.trapezoid {
  --width: 568px;
  --height: 23vh;
  --inclination: 116px;

  position: absolute;
  height: 0;
  width: var(--width);
  box-sizing: content-box;
  border-bottom: var(--height) solid var(--red-color);
  border-left: var(--inclination) solid transparent;
  border-right: var(--inclination) solid transparent;
  color: var(--red-color);
  mix-blend-mode: hue;
}

.trapezoid1 {
  top: calc(49% - var(--footer-height));
  left: calc(100% - 40em);
}
.trapezoid2 {
  --width: 856px;
  top: calc(77% - var(--footer-height));
  left: calc(100% - 52em);
}

.image-hover {
  position: relative;
  cursor: pointer;
}
.image-hover img {
  display: none;
  max-width: 215px;
  border: 1px solid var(--blue-color);
  position: absolute;
  z-index: 10;
}
.image-hover:hover img,
.image-hover:focus img,
.image-hover:active img {
  display: block;
}

.wrapper {
  padding-top: var(--header-height);
  isolation: isolate;
}

main > .bg {
  position: absolute;
  width: 143%;
  height: 100%;
  top: 0;
  left: 0;
  background: transparent url(../img/home-bg.jpg) no-repeat top right;
  background-size: cover;
}

section {
  position: relative;
  z-index: 10;
  height: 100%;
  flex: 1 0 100vw;
  padding: 2em 1em 1em;
}

.grid {
  display: grid;
  grid-gap: 1rem;
}
.grid.two {
  grid-template-columns: repeat(2, 1fr);
}
.grid.eight {
  grid-template-columns: repeat(8, 1fr);
}
.grid.twelve {
  grid-template-columns: repeat(12, 1fr);
}
.grid .span1 { grid-column: span 1; }
.grid .span2 { grid-column: span 2; }


.nav {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header {
  position: fixed;
  z-index: 100;
  width: 100vw;
  height: var(--header-height);
  padding: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--blue-color);
  /*font-size: 1.25em;*/
  text-transform: uppercase;
}
.header > a {
  display: block;
  height: 100%;
}
.header nav {
  grid-column: 3 / span 4;
}

.header .menu {
  display: flex;
  justify-content: space-between;
  counter-reset: menu-counter;
}

.header .menu > li {
  counter-increment: menu-counter;
}
.header .menu > li::before {
  content: counter(menu-counter);
  display: inline-block;
  font-size: 0.6em;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  border: 1px solid;
  text-align: center;
  margin-right: 0.5em;
  line-height: 1em;
  padding: 0.1em;
  position: relative;
  top: -0.2em;
}
.header .menu > li.active a {
  border-bottom: 2px solid;
}

.header .lang {
  grid-column: 8 / span 1;
  justify-self: end;
  line-height: 1.25em;
  margin: -0.3em 0 -0.2em;
}

.header .lang .active a {
  color: var(--blue-color);
}

#home {
  position: static;
  -webkit-clip-path: polygon(0 -100px, calc(100% - 10em) -100px, calc(100% + 32em) 100%, 0% 100%);
  clip-path: polygon(0 -100px, calc(100% - 10em) -100px, calc(100% + 32em) 100%, 0% 100%);
  z-index: unset;
}

#home .bg {
  position: absolute;
  width: 143%;
  height: calc(100% - var(--footer-height));
  top: 0;
  left: 0;
  background: transparent url(../img/home-bg.jpg) no-repeat top right;
  background-size: cover;
}

#home .lead {
  position: relative;
  width: 110%;
  margin: -2rem -1rem 0;
  padding: 0.05em 1rem 0.1em;
  font-size: 4.53125vw; /*4.83333333em;*/
  font-weight: normal;
  color: white;
  text-transform: uppercase;
}

#home .lead > span {
  position: relative;
}

#home .lead::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: var(--blue-color);
  mix-blend-mode: multiply;
}
#home .logos {
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--footer-height);
  padding: 1em;
  background: white;
}
#home .logos .grid.eight {
  grid-template-columns: auto auto auto 1fr 1fr 1fr auto auto;
}
#home .logos small {
  display: block;
  width: 100%;
  font-size: 0.6rem;
}
#home .logos img {
  height: 100%;
}
#home .logos img:nth-last-child(2),
#home .logos img:last-child {
  height: calc(100% + 1em);
  justify-self: end;
  margin-top: -1em;
}
#home .logos img:nth-last-child(2) {
  grid-column-start: 7;
}
#home .logos img:last-child {
  grid-column-start: 8;
}


#about-us {

}

#about-us.grid {

}

#about-us.grid .intro {
  grid-column: 4 / span 4;
}

#about-us .intro {
  font-size: 2em;
  line-height: 1.2em;
}

#about-us .intro p {
  margin: 0 0 0.5em;
}
#about-us .intro a {
  color: var(--red-color);
}



#team {

}
#team .grid.twelve {
  position: absolute;
  top: 0;
  left: 1rem;
  width: 100vw;
  height: 100%;
}
#team .grid .lead {
  grid-column: 1 / span 3;
}
#team .lead {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  margin: 0;
}
#team .lead::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 100%;
  top: 0;
  left: -5rem;
  background: var(--red-color) no-repeat top center;
  background-image: url('../img/home-bg.jpg');
  background-size: cover;
  background-blend-mode: multiply;
  -webkit-clip-path: polygon(0 0, 34% 0, 100% 100%, 0% 100%);
  clip-path: polygon(0 0, 34% 0, 100% 100%, 0% 100%);
  z-index: -1;
}
#team .lead .space {
  width: 66%;
  height: 100%;
  shape-outside: polygon(100% 0, 100% 100%, 50% 100%, 0 0);
  float: right;
}
#team .lead p {
  margin-bottom: 0.5em;
  letter-spacing: 0.5px;
  white-space: pre-line;
}
#team .lead hr + p {
  margin-top: 0;
  line-height: 1.4em;
}
#team .members {
  list-style: none;
  margin: 0;
  padding: 0;
}
#team .member {
  position: relative;
}
#team .member .photo {
  position: relative;
  width: calc((100vw - 5rem) / 6);
  margin: 0 1rem 0 0;
  float: left;
  -webkit-clip-path: polygon(0 0, 100% 0, 100% 50%, 55% 100%, 0% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 50%, 55% 100%, 0% 100%);
}
#team .member .photo img {
  max-width: 100%;
}
#team .member .photo .quote {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 83, 162, 0.2);
  color: white;
  padding: 1rem;
}
#team .member .name {
  display: block;
}
#team .member .photo:hover .quote {
  display: block;
}
#team .member .photo:hover img {
  filter: sepia(1) hue-rotate(168deg) saturate(0.5)
}

#services {
  background: var(--blue-color);
}
#services .lead {
  grid-column: 1 / span 2;
  margin: 0;
  position: relative;
  color: var(--blue-color);
}
#services .lead::before {
  content: '';
  position: absolute;
  width: 155%;
  height: 100%;
  top: 0;
  left: -1rem; /*-1.1rem;*/
  background: white;
  -webkit-clip-path: polygon(0 0, 100% 0, 0% 100%);
  clip-path: polygon(0 0, 100% 0, 0% 100%);
  z-index: -1;
}

#services .lead p {
  --polygon: polygon(0 0, 100% 0, 100% 74%, 84% 100%, 0 100%);
  background: var(--blue-color);
  position: relative;
  top: -1px;
  margin: 0;
  padding: 0.5em 0.3em 0.2em;
  -webkit-clip-path: var(--polygon);
  clip-path: var(--polygon);
}
#services .lead p::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  height: calc(100% - 2px);
  width: calc(100% - 2px);
  background: white;
  -webkit-clip-path: var(--polygon);
  clip-path: var(--polygon);
  z-index: -1;
}

#services .info .info-item {
  position: relative;
  max-height: 100%;
}
#services .info .inner {
  color: white;
}
#services .info .inner .title {
  margin: 1rem 0 0.5rem;
}
#services .info .inner .text {
  margin: 0.5rem 0;
}
#services .truck {
  position: relative;
  height: 72vh;
  width: 220vh;
  align-self: flex-end;
  background: transparent url('../img/truck.svg') no-repeat bottom left;
  margin-right: calc(100vw / 3);
}
#services .truck .hotspots {
  list-style: none;
}
#services .truck .hotspot {
  --size: 4rem;
  position: absolute;
  top: 0;
  left: 0;
}
#services .truck .hotspot:hover .inner,
#services .truck .hotspot:focus .inner,
#services .truck .hotspot:active .inner {
  display: block;
}

#services .truck .hotspot::before {
  content: '\0002B';
  position: relative;
  display: block;
  top: 0;
  left: 0;
  width: var(--size);
  height: var(--size);
  border: 1px solid white;
  color: white;
  font-size: calc(var(--size) - 1rem);
  text-align: center;
  line-height: var(--size);
}
#services .truck .hotspot .inner {
  display: none;
  position: relative;
  z-index: 5;
  background: #f8f2f3;
  padding: 0.5rem;
  border: 1px solid var(--blue-color);
}
#services .truck .hotspot .title {
  display: inline-block;
  padding: 0.5em 1em;
  background: var(--blue-color);
  color: white;
  line-height: 1.1em;
}
#services .truck .hotspot1 {
  top: -4%;
  left: 4%;
}
#services .truck .hotspot1 .inner {
  width: 210px;
}
#services .truck .hotspot1 .kms {
  margin: -1rem 0 0;
  font-size: 5.56em;
  font-weight: normal;
  color: var(--red-color);
  word-break: break-all;
  line-height: 1.05em;
}
#services .truck .hotspot1 .plus {
  float: right;
  font-size: 4.6em;
  border-bottom: 0.5rem solid;
  line-height: 1.09em;
  font-weight: bold;
  margin: -0.3em 0.05em 0 0;
  width: 0.75em;
  text-align: center;
}
#services .truck .hotspot1 .kms-info {
  margin: 0;
  padding-bottom: 1em;
  border-bottom: 1px solid;
}
#services .truck .hotspot1 .metrics {
  display: flex;
  height: 14em;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: space-between;
}
#services .truck .hotspot1 .gauge {
  background: transparent url('../img/truck-gauge.svg') no-repeat bottom left;
  background-size: contain;
  width: 10%;
}
#services .truck .hotspot1 .ton {
  background: transparent url('../img/truck-ton.svg') no-repeat bottom center;
  background-size: contain;
  width: 40%;

  font-size: 1.7em;
  color: white;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1em;
}
#services .truck .hotspot1 .length {
  background: transparent url('../img/truck-length.svg') no-repeat bottom right;
  background-size: contain;
  width: 47%;
  font-size: 1.7em;
  line-height: 1.4em;
  color: white;
  padding: 8% 21% 21% 12%;
}
#services .truck .hotspot1 .length .rotated {
  writing-mode: vertical-lr;
  transform: rotate(-180deg);
  width: 100%;
  height: 100%;
  text-align: center;
}
#services .truck .hotspot2 {
  top: 25%;
  left: 18%;
}
#services .truck .hotspot2 .inner {
  padding-top: 0;
}
#services .truck .hotspot2 .title {
  padding: 0.5rem 4rem 0.5rem 0.5rem;
}
#services .truck .hotspot2 .typologies {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  flex-flow: wrap;
  position: relative;
}

#services .truck .hotspot2 .typology .name {
  border-bottom: 1px solid;
  padding: 1rem 0 0.5rem;
  position: relative;
  width: 85%;
}
#services .truck .hotspot2 .typology .name::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  height: 126%;
  width: 1px;
  background: var(--blue-color);
  transform: rotate(50deg);
  transform-origin: bottom;
}
#services .truck .hotspot3 {
  top: -5%;
  left: 35%;
}
#services .truck .hotspot3 .title {
  position: absolute;
  top: 0;
}
#services .truck .hotspot3 .inner {
  width: 210px;
  right: calc(210px - var(--size));
}
#services .truck .hotspot3 .inner ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
#services .truck .hotspot3 .inner ul li:last-child p {
  margin-bottom: 0;
}
#services .truck .hotspot3 .inner ul li img {
  width: 100%;
}

#partners {

}
#partners .lead {
  position: relative;
  margin: 0;
}
#partners .lead::before {
  content: '';
  position: absolute;
  width: 325%;
  height: 100%;
  top: 0;
  right: -45%;
  background: var(--red-color) no-repeat 5% 37%;
  background-image: url('../img/partners-bg.jpg'); /* for dumb Safari to find the image */
  background-size: cover;
  background-blend-mode: multiply;
  -webkit-clip-path: polygon(46% 0, 100% 0, 58% 100%, 0% 100%);
  clip-path: polygon(46% 0, 100% 0, 58% 100%, 0% 100%);
  z-index: -1;
}
#partners .lead p {
  margin-bottom: 0.5em;
  letter-spacing: 0.5px;
  /*white-space: pre-line;*/
}
#partners .lead hr + p {
  margin-top: 0;
  line-height: 1.4em;
}
#partners .partners {
  list-style: none;
  margin: 0;
  position: relative;
}
#partners .partner {
  position: relative;
}
#partners .partner .photo {
  width: 100%;
  height: 100%;
  background: var(--blue-color);
}
#partners .partner .photo img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: screen;
}
#partners .partner .name {
  position: absolute;
  bottom: 3rem;
  left: 1rem;
  color: white;
}



#contacts {
  background: var(--blue-color);
  grid-template-rows: min-content min-content min-content auto;
  padding-bottom: 4.5rem;
  row-gap: 1.5rem;
}
#contacts .link {
  font-size: 0.8333333em;
  text-transform: uppercase;
  text-decoration: underline;
  line-height: 2em;
}
#contacts .link:hover,
#contacts .link:focus,
#contacts .link:active {
  color: var(--red-color);
}
#contacts p,
#contacts .address a {
  margin: 0 0 1.5rem;
}
#contacts h4,
#contacts .lead p {
  margin: 0;
}
#contacts .lead p + p {
  margin-top: 0.35em;
}
#contacts .docs {
  margin: 1rem 0;
}
#contacts .address {
  font-size: 1.16666667rem;
}
#contacts .address .name,
#contacts .address .name + br {
  display: none;
}

#contacts a[name=newsletter-form] {
  display: none;
}
#contacts form {
  align-self: end;
}
#contacts form > h4 {
  margin-bottom: 1.5rem;
}
#contacts input {
  width: 100%;
  font-size: 1.5em;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 0;
}
#contacts input + input{
  margin-top: 1rem;
}
#contacts input::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color: var(--blue-color);
}
#contacts input::-moz-placeholder { /* Firefox 19+ */
  color: var(--blue-color);
}
#contacts input:-ms-input-placeholder { /* IE 10+ */
  color: var(--blue-color);
}
#contacts input:-moz-placeholder { /* Firefox 18- */
  color: var(--blue-color);
}
#contacts input[type=submit] {
  background: var(--red-color);
  color: white;
  text-align: left;
}
#contacts .copyright {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 1rem 0;
  margin: 0;
  background: white;
  font-size: 1.16666667rem;
}


/* VISIBLE ONLY ON MOBILE */
.header nav .lang,
.header .nav-toggle,
.header .address,
.trapezoid3 {
  display: none;
}





/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
