/*! HTML5 Boilerplate v8.0.0 | MIT License | https://html5boilerplate.com/ */

/* main.css 2.1.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
   ========================================================================== */
@import "custom.css";
@import "utils.css";

html {
  /*color: #222;*/
  color: var(--clr-secondary);
  font-size: 0.875em;
  line-height: 1.4;
  font-family: Rubik, sans-serif;
  scroll-behavior: smooth;
}

input, textarea, select {
  font-family: Rubik, sans-serif;
}

/*
 * 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 #cbcbcb;
  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
   ========================================================================== */

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  /*max-width: 1920px;*/
  margin-inline: auto;
}

body > * {  /* direct body children */
  flex: 1 0 auto;
}

body {
  /*background: #1a1a1a;*/
}

main {
  background: white;
}



/* HEADER **************************************/
.header {
  padding: 2rem 2rem;

  background-color: var(--clr-primary);
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, .85), rgba(0, 0, 0, .7)),
                    url('/img/header/header-jpg__640w471h.webp');
  background-position: center;
  background-size: cover;

  position: relative;
}

/* 800x390 */
@media (min-width: 640px) {
  .header {
    background-image:
      linear-gradient(to bottom, rgba(0, 0, 0, .85), rgba(0, 0, 0, .7)),
      url('/img/header/header-jpg__800w390h.webp');
  }
}

/* 1100x240 */
@media (min-width: 800px) {
  .header {
    background-image:
      linear-gradient(to bottom, rgba(0, 0, 0, .85), rgba(0, 0, 0, .7)),
      url('/img/header/header-jpg__1100w240h.webp');
  }
}

/* 1366x240 */
@media (min-width: 1100px) {
  .header {
    linear-gradient(to bottom, rgba(0, 0, 0, .85), rgba(0, 0, 0, .7)),
    background-image: url('/img/header/header-jpg__1366w240h.webp');
  }
}

/* 1600x240 */
@media (min-width: 1366px) {
  .header {
    linear-gradient(to bottom, rgba(0, 0, 0, .85), rgba(0, 0, 0, .7)),
    background-image: url('/img/header/header-jpg__1600w240h.webp');
  }
}

/* 1920x240 */
@media (min-width: 1600px) {
  .header {
    linear-gradient(to bottom, rgba(0, 0, 0, .85), rgba(0, 0, 0, .7)),
    background-image: url('/img/header/header-jpg__1920w240h.webp');
  }
}

.header__logo-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  display: block;
  width: 9rem;
}

.header__logo img {
  width: 100%;
  height: fit-content;
}

.phone-button {
  display: block;
  height: fit-content;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.25em;
  border-radius: 0.8em;
  border: 0.2rem solid var(--clr-alternative);
  padding: 0.5em 1em;
  transition: background-color 0.1s linear,
              color 0.1s linear;
  line-height: 1.5;
}
.phone-button i {
  margin-right: 0.5em;
}
.phone-button:hover {
  background: var(--clr-alternative);
  color: var(--clr-inverse-primary);
  text-shadow: var(--text-shadow-light);
}
.phone-button__text {
  font-size: 1.15em;
  /*letter-spacing: 1px;*/
  /*text-transform: uppercase;*/
}

/* Navigation */
.nav {
  --transition-time: 100ms;

  margin-top: 2rem;
}

.nav__list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  /*text-align: right;*/
  text-align: center;
  line-height: 2.2;
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  transition: max-height var(--transition-time) linear,
              opacity var(--transition-time) linear;
}

.nav__item {
  /*display: inline-block;*/
  /*margin-left: 0.5rem;*/
}

.nav__item-anchor {
  padding: 0.5rem 0.5rem;
  color: var(--clr-inverse-secondary);
  text-decoration: none;
  text-transform: uppercase;
}

.nav__item-anchor:hover,
.nav__item.active .nav__item-anchor {
  color: var(--clr-inverse-primary);
  position: relative;
}

.nav__item.active .nav__item-anchor::after {
  content: "";
  width: 40%;
  height: 2px;
  background: var(--clr-alternative);
  color: var(--clr-alternative);
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  /*border-bottom: var(--clr-alternative) 2px solid;*/
}

.nav__button {
  border: none;
  background: none;
  position: absolute;
  right: 2rem;
  top: 9rem;
}

.hb {
  width: 3rem;
}




/* MAIN ****************************************/

.homepage {
  /*width: 80%;*/
  /*margin-inline: auto;*/
  font-size: 1.1em;
}

.homepage__svg-map-container {
  max-width: fit-content;
  height: 24rem;
  margin-inline: auto;
  margin-top: -0.75rem;
  margin-bottom: 1rem;
  overflow: visible;
}

.homepage__svg-map {
  max-width: 100%;
  max-height: 100%;
  filter: drop-shadow(0 1rem 1rem rgba(0, 0, 0, 0.15));
}

.homepage__map-text {
  font-size: 1rem;
}

/* SERVICE */
.service {
  margin-bottom: 5em;
}

.service__heading {
  margin-bottom: 1.25em;
}

.service .service__flex-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /*gap: 4rem;*/
}

.service .service__img-container {
  width: 307px;
  height: 307px;
  aspect-ratio: 1;
  margin-inline: 4em;
  margin-bottom: 2em;
}

.service .service__img {
  height: 100%;
  width: 100%;
}

/* CARDS */
.cards {
  background-image: url('/img/hexagons/bghexa3-jpg__560w950h.webp');
  background-size: cover;
  background-position: center;
  position: relative;
}

/* 800x1000 */
@media (min-width: 560px) {
  .cards {
    background-image: url('/img/hexagons/bghexa3-jpg__800w1000h.webp');
  }
}

/* 1140x1000 */
@media (min-width: 800px) {
  .cards {
    background-image: url('/img/hexagons/bghexa3-jpg__1140w1000h.webp');
  }
}

/* 1280x580 */
@media (min-width: 1140px) {
  .cards {
    background-image: url('/img/hexagons/bghexa3-jpg__1280w580h.webp');
  }
}

/* 1600x580 */
@media (min-width: 1280px) {
  .cards {
    background-image: url('/img/hexagons/bghexa3-jpg__1600w580h.webp');
  }
}

/* 1920x550 */
@media (min-width: 1600px) {
  .cards {
    background-image: url('/img/hexagons/bghexa3-jpg__1920w550h.webp');
  }
}

/* 2560x520 */
@media (min-width: 1920px) {
  .cards {
    background-image: url('/img/hexagons/bghexa3-jpg__2560w520h.webp');
  }
}

/* 5120x490 */
@media (min-width: 2560px) {
  .cards {
    background-image: url('/img/hexagons/bghexa3-jpg__5120w490h.webp');
  }
}


.cards::before {
  content: "";
  width: 100%;
  height: 100%;
  background: white;
  opacity: 0.9;
  position: absolute;
  left: 0;
  top: 0;
}

.cards > * {
  position: relative;
}

.cards__list {
  margin-block: 3em;
  list-style-type: none;
  gap: 3em;
}

.cards__item {

}

.cards__img {
  display: block;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.cards__text {
  font-size: 1.1em;
  line-height: 1.5;
  text-align: center;
  display: inline-block;
  width: 100%;
}

/* OFFERS */
.offers {
  margin-bottom: 7.5rem;
}

.offers__list {
  margin-bottom: 4em;
  margin-top: 2.25em;
  list-style-type: none;
  gap: 3em;
}

.offers__item {
  --offers-item-border-radius: 1rem;

  border-radius: var(--offers-item-border-radius);
  box-shadow: 0 5px 15px -3px rgba(0,0,0,0.1);

  transition: 0.25s ease-out;
  max-width: 35rem;
}

.offers__item a {
  color: var(--clr-primary);
}

.offers__item:hover a {
  color: var(--clr-inverse-primary);
}

.offers__item:hover,
.offers__item:focus {
  background: var(--clr-alternative);
  color: var(--clr-inverse-primary);
  transform: scale(1.1);
}

.offers__item:hover .offers__text {
  text-shadow: var(--text-shadow-light);
}

.offers__img-container {
  width: 100%;
  height: fit-content;
  aspect-ratio: 35/21;

  overflow: hidden;
  border-top-left-radius: var(--offers-item-border-radius);
  border-top-right-radius: var(--offers-item-border-radius);
}

.offers__img {
  width: 100%;
  object-fit: cover;
  max-width: 100%;
  max-height: 100%;

  /*border-top-left-radius: var(--offers-item-border-radius);*/
  /*border-top-right-radius: var(--offers-item-border-radius);*/
}

.offers__text {
  --padding-value: 1rem;

  font-size: 1.1em;
  line-height: 1.5;
  text-align: center;
  display: inline-block;
  width: calc(100% - var(--padding-value) * 2);
  padding-inline: var(--padding-value);
  text-transform: uppercase;
}

/* CONTACTS ************************************/
.contacts__container {
  --icon-size: 1.8rem;
  --icon-size-sm: 1.5rem;

  display: flex;
  flex-direction: column-reverse;
  font-size: 1.1em;
  align-items: center;
  justify-content: center;
  gap: 3rem
}

.contacts__map {
  width: 100%;
  height: 25rem;
}

.contacts__list {
  width: fit-content;
  list-style-type: none;
  padding: 0;
}

.contacts__list-item:not(:first-child) {
  margin-top: 1.5em;
}

.contacts__list-item {
  /*line-height: var(--icon-size);*/
  /*vertical-align: center;*/
  /*display: block;*/
}

.contacts__text-container {
  display: inline-block;
}

.contacts__text-container .contacts__text {
  display: block;
}

.contacts__text {
  margin: 0;
  line-height: var(--icon-size);
  display: inline-block;
}

.contacts__heading {
  margin-bottom: 0.5rem;
}


.contacts__icon {
  font-size: var(--icon-size);
  width: var(--icon-size);
  text-align: center;
  margin-right: 0.6rem;
  vertical-align: top;
}

.contacts__list-item a {
  color: var(--clr-secondary);
  font-weight: bold;
  text-decoration: none;
}

.contacts__list-item a .contacts__icon {
  font-size: var(--icon-size-sm);
}

.contacts__list-item a .contacts__text {
  line-height: var(--icon-size-sm);
}

  /* CONTACT FORM ********************************/
.contact-form__text {
  margin: 0;
  padding: 0;
}

.contact-form {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1em;
  width: 100%;
  margin-inline: auto;
}

.contact-form > label {
  text-align: left;
  font-size: 1em;
  font-weight: 500;
  padding-top: 0.4rem;
}

.contact-form .radio-container {
  padding: 0.45rem 0;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: none;
  border: 1px solid #cbcbcb;
}

.contact-form input.wrong,
.contact-form textarea.wrong {
  border: 2px solid #de0000;
}

.contact-form textarea {
  height: 8rem;
}

.contact-form__button {
  background: var(--clr-dark);
  color: var(--clr-inverse-primary);
  padding: 1em 3em;
  width: fit-content;
  border: none;
  border-radius: 1rem;
  cursor: pointer;
  transition: background-color 0.1s linear;
}

.contact-form__button:hover {
  background: var(--clr-primary);
}

.contact-form__message {
  margin-top: 0;
}

/* CONTACT US **********************************/
.contact-us {
  background: var(--clr-alternative);
  padding: 1.4em;
  font-size: 1.6em;
}

.contact-us__heading {
  margin: 0.6rem;
  font-weight: normal;
  display: inline-block;
  font-size: 1em;
  vertical-align: top;
}

.contact-us__anchor {
  display: inline-block;
  text-decoration: none;
  color: var(--clr-secondary);
  height: fit-content;
  font-weight: bold;
  font-size: 1em;
  border-radius: 1rem;
  /*border: 0.2rem solid var(--clr-secondary);*/
  padding: 0.6rem 1.25rem;
  margin-left: 1rem;
  transition: background-color 0.1s linear,
              color 0.1s linear,
              transform 0.1s linear;
  vertical-align: top;
}

.contact-us__anchor i {
  margin-right: 0.25rem;
}

.contact-us__anchor:hover {
  /*background: var(--clr-inverse-primary);*/
  /*border: 0.2rem solid var(--clr-inverse-primary);*/
  transform: translateX(0.5rem);
}

.contact-us__anchor-phone {
  display: block;
  text-align: right;
  font-size: 0.7em;
}

.contact-us__container {
  margin-inline: auto;
  width: fit-content;
  text-align: center;
}

/* FOOTER **************************************/
.footer {
  background-color: black;
}

.footer__column-container {
  display: grid;
  grid-template-columns: 1fr;
  /*display: fslex;*/
  flex-direction: row;
  justify-content: space-evenly;
  gap: 2rem;
  margin: 4rem 0;
  /*flex-wrap: wrap;*/
  padding-inline: 3rem;
  /*flex: 1 1 0px;*/
}

.footer__column {

}

.footer__list {
  list-style-type: none;
  padding-left: 0;
}

.footer__column-heading {
  color: var(--clr-inverse-primary);
  text-transform: uppercase;
  margin-bottom: 0;
  font-weight: normal;
}

.footer__list-item,
.footer__list-item a{
  text-decoration: none;
  color: var(--clr-inverse-secondary);
  line-height: 1.6;
}

.footer__list-item:hover,
.footer__list-item a:hover{
  color: var(--clr-inverse-primary);
}

.footer__item-contact,
.footer__item-contact a {
  font-weight: bold;
  text-decoration: none;
  font-size: 1.05em;
  margin-top: 0.5em;
  transition: color 0.1s linear;
  vertical-align: center;
}
.footer__item-contact:hover,
.footer__item-contact:hover a {
  color: var(--clr-inverse-primary)
}

.footer__item-contact i {
  margin-right: 0.5em;
}

.footer__socials-container {
  font-size: 1.8rem;
  margin-top: 1rem;
}

.footer__hr {
  border-top-color: var(--clr-secondary);
}

.footer__btc-container {
  display: flex;
  align-items: center;
}

.footer__btc-image {
  --image-size: 1.8rem;
  width: var(--image-size);
  height: var(--image-size);
  margin-right: 0.5rem;
}

.footer__btc-text {
  font-weight: 500;
  color: var(--clr-inverse-primary);
}

.copyright {
  color: var(--clr-inverse-secondary);
  font-size: 0.9em;
  margin-bottom: 1rem;
  text-align: center;
}

.copyright__anchor {
  text-decoration: none;
  color: var(--clr-inverse-secondary)
}

.copyright__anchor:hover {
  color: var(--clr-inverse-primary)
}

@media only screen and (min-width: 360px) {
  .footer__column-container {
    padding-inline: 4rem;
  }
}

@media only screen and (min-width: 640px) {
  html {
    font-size: 1rem;
  }

  .header__logo-container {
    flex-direction: row;
    gap: initial;
  }

  .footer__column-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-form {
    grid-template-columns: 1fr 2fr;
    width: 80%;
  }

  .contact-form > label {
    text-align: right;
  }
}

@media only screen and (min-width: 800px) {
  .header {
    padding: 2rem 10rem;
  }

  .nav__button {
    display: none;
  }

  .nav__list {
    text-align: right;
    max-height: 100% !important;
    visibility: visible;
    overflow: initial;
    opacity: 1;
  }

  .nav__item {
    display: inline-block;
    margin-left: 0.5rem;
  }
}

@media only screen and (min-width: 960px) {
  .footer__column-container {
    display: flex !important;
    flex-direction: row;
    padding-inline: 2rem;
  }

  .contacts__container {
    flex-direction: row;
  }

  .contacts__map {
    width: 26rem;
  }
}

@media only screen and (min-width: 1140px) {
  .contacts__map {
    width: 35rem;
  }

  .service .service__flex-container {
    flex-direction: row-reverse;
    align-items: initial;
  }
}


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

/*
 * 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
 */

.sr-only {
  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 .sr-only class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.sr-only.focusable:active,
.sr-only.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
 *
 * 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: " ";
  display: table;
}

.clearfix::after {
  clear: both;
}

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



