/*! HTML5 Boilerplate v9.0.0-RC1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * 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;
  min-width: 320px;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * 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: 1em 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;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
:root {
  --lightGrey: #A4ABBD;
  --darkGrey: #475368;
  --lightBlue: #F1F9FF;
  --darkBlue: #1a2639;
  --accent: #c24d2c;
  --accent200: #f1cfb7;
}

body {
  font-family: "Roboto", Verdana, Geneva, sans-serif;
  margin: 0;
  padding: 0;
}

header {
  position: sticky;
  top: 0;
  height: 120px;
  z-index: 100;
  background: #fff;
  box-shadow: 0 -5px 10px var(--darkGrey);
}

header .container {
  display: flex;
  justify-content: space-between;
  height: 100%;
}

.header__brand {
  display: flex;
  align-items: center;
}

.header__logo {
  display: inline-block;
  color: var(--darkGrey);
  width: 60px;
}

.header__label {
  display: inline-flex;
  margin-left: 20px;
  font-size: 48px;
  font-weight: bold;
  letter-spacing: 6px;
  color: var(--darkGrey);
}

.header__label span {
  color: var(--accent);
}

.header__phone {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: end;
}

.header__phone a {
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: var(--darkBlue);
  white-space: nowrap;
}
.header__phone a svg {
  color: var(--accent);
  display: inline;
  margin-right: 8px;
}
.header__phone span {
  font-size: 11px;
  letter-spacing: 2px;
}

.banner {
  display: block;
  height: calc(100vh - 120px);
  max-height: 900px;
  min-height: 780px;
  background: linear-gradient(105deg, var(--darkBlue) calc(50% - 700px), var(--accent200) calc(50% + 700px));
}
.banner .container {
  display: flex;
  align-items: center;
  height: 100%;
  background: url("/img/banner.jpg") center bottom no-repeat;
  background-size: cover;
  position: relative;
}
.banner .container:before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  position: absolute;
  background: linear-gradient(105deg, var(--darkBlue) 11%, rgba(71 83 104 / 80%) 45%, rgb(217 218 215 / 85%) 75%, var(--accent200) 89%);
}
.slogan {
  position: relative;
  margin: 80px;
}
.slogan h1 {
  font-size: 100px;
  color: #ffffff;
  font-weight: 700;
  font-style: normal;
  text-shadow: 3px 3px 5px var(--darkBlue);
  margin: 0;
}
.slogan h1 span {
  color: var(--accent);
}

.centered-text {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  line-height: 60px;
  padding: 40px 80px;
}

.services.container {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  justify-content: space-evenly;
  gap: 90px;
  background: var(--lightBlue);
  padding-top: 30px;
  padding-bottom: 30px;
}

.service {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
  align-content: space-between;
  flex-grow: 1;
  flex-basis: 300px;
  min-width: 300px;
  max-width: 430px;
  height: 230px;
  box-sizing: border-box;
  padding: 10px;
  box-shadow: 1px 1px 3px var(--darkGrey);
  transition: box-shadow 0.1s;
  background-size: cover;
  background-position: center;
  background-color: var(--darkGrey);
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}

.service:hover {
  box-shadow: 3px 3px 5px var(--darkGrey);
}

.service::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  /*background: linear-gradient(105deg, var(--lightGrey) 0%, rgba(164 171 189 / 30%) 50%, var(--lightGrey) 100%);*/
  background-color: rgba(164, 171, 189, 0.5);
}

.service-title {
  color: #ffffff;
  font-size: 24px;
  font-weight: 400;
  padding: 8px;
  background: rgba(26, 38, 57, 0.7);
  z-index: 1;
  text-shadow: 3px 3px 5px var(--darkBlue);
  flex-grow: 1;
}

.service-price {
  color: #ffffff;
  font-size: 30px;
  font-weight: 600;
  padding: 8px;
  background: rgba(194, 77, 44, 0.7);
  z-index: 1;
  text-shadow: 3px 3px 5px var(--darkBlue);
  flex-grow: 0;
}

.service-call {
  display: inline-flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--accent);
  color: #ffffff;
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 1;
}

.service1 {
  background-image: url("/img/service1.jpg");
}
.service2 {
  background-image: url("/img/service2.jpg");
}
.service3 {
  background-image: url("/img/service3.jpg");
}
.service4 {
  background-image: url("/img/service4.jpg");
}
.service5 {
  background-image: url("/img/service5.jpg");
}

.brands.container {
  padding: 0;
}

footer {
  display: block;
  position: sticky;
  top: 0;
  width: 100%;
  background-color: var(--darkGrey);
  z-index: 100;
}

.footer__text {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  line-height: 60px;
  padding: 40px 80px 20px;
  color: #ffffff;
}

.footer__direction-icon {
  color: #ffffff;
  text-align: center;
}

.footer__phone {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  padding: 40px;
}

.footer__phone a {
  font-size: 30px;
  font-weight: bold;
  text-decoration: none;
  color: #ffffff;
  white-space: nowrap;
}
.footer__phone a svg {
  color: var(--accent);
  display: inline;
  margin-right: 8px;
}
.footer__phone span {
  font-size: 11px;
  letter-spacing: 2px;
}

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

.container {
  display: block;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/*
 * Hide visually and from screen readers
 */

.hidden,
[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
 */

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

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

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

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

.invisible {
  visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * 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: "";
  display: table;
}

.clearfix::after {
  clear: both;
}

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

@media (max-width: 1367px) {
  .slogan h1 {
    font-size: 80px;
  }

  .centered-text, .footer__text {
    font-size: 20px;
    line-height: 40px;
  }
}

@media screen and (max-width: 840px) {
  header {
    height: 160px;
  }

  header .container {
    flex-wrap: wrap;
    justify-content: center;
    column-gap: 30px;
  }

  .header__logo {
    width: 34px;
    height: auto;
  }

  .header__label {
    margin-left: 10px;
    font-size: 40px;
  }

  .slogan {
    margin: 10px;
  }

  .slogan h1 {
    font-size: 60px;
  }

  .banner {
    height: calc(100vh - 160px);
    max-height: 600px;
    min-height: 580px;
  }

  .centered-text {
    padding: 20px 0px;
  }

  .centered-text, .footer__text {
    font-size: 18px;
    line-height: 36px;
  }

  .services.container {
    gap: 40px;
  }
}

@media screen and (max-width: 520px) {
  .slogan h1 {
    font-size: 52px;
  }
}

@media screen and (max-width: 460px) {
  header {
    height: 120px;
  }

  .header__label {
    font-size: 24px;
  }

  .header__phone a, .footer__phone a {
    font-size: 26px;
  }

  .header__phone span, .footer__phone span {
    font-size: 9px;
  }

  .banner {
    height: calc(100vh - 120px);
    max-height: 440px;
    min-height: 380px;
  }

  .slogan h1 {
    font-size: 38px;
  }

  .centered-text, .footer__text {
    font-size: 14px;
    line-height: 28px;
  }

  .service {
    min-width: auto;
  }

  .footer__phone {
    padding: 0 0 40px;
  }

  .footer__text {
    padding: 40px 6% 0;
  }
}

@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: #fff !important;
    color: #000 !important;
    /* Black prints faster */
    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;
  }

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

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

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

