/*
Theme Name:   Varastot theme
Description:  Twenty Twenty-Four child theme
Author:       WordPress.org
Author URI:   https://wordpress.org/
Template:     twentytwentyfour
Version:      1.0.5
Text Domain:  varastot
*/

html {
  scroll-behavior: smooth;
  scroll-padding-top: 64px;
}

body:not(.wp-admin) {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #e7e7e7;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

h1,
h2,
h3 {
  font-family: "Big Shoulders", sans-serif;
  font-weight: 700;
}

.wp-block-button .wp-block-button__link {
  font-family: "Big Shoulders", sans-serif;
  font-weight: 700;
  background: linear-gradient(90deg, #79322c, #ff3e3e);
  border: none;
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 8px 16px;
}

.wp-block-button .wp-block-button__link:hover {
  background: linear-gradient(45deg, #58201b, #d42929);
}

:where(.wp-site-blocks *:focus) {
  outline: none;
}

:where(.wp-site-blocks *:focus-visible) {
  outline: 2px solid;
}

@media screen and (max-width: 767px) {
  h2 {
    font-size: 1.6rem;
  }
}

@media screen and (min-width: 768px) {
  body:not(.wp-admin) {
    font-size: 18px;
  }
}

/* header */

header .wp-block-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .is-layout-constrained> :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  margin: 0 !important;
}

header h1 {
  font-family: "Big Shoulders", sans-serif !important;
  font-weight: 700;
}

header h1::before {
  content: '';
  background-image: url('/wp-content/themes/varastot-theme/assets/warehouse.svg');
  width: 20px;
  height: 20px;
  display: inline-block;
  background-size: contain;
  margin-bottom: -2px;
  margin-right: 8px;
}

@media screen and (max-width: 767px) {
  header .wp-block-group {
    padding: 16px;
  }
}

/* front page */

.home .wp-block-cover {
  justify-content: flex-start;
  max-width: none !important;
}

.home .wp-block-cover__background {
  display: none;
}

.home .wp-block-cover img {
  margin-left: -34px;
  margin-right: -34px;
  width: calc(100% + 68px);
}

.home .wp-block-cover__inner-container {
  background: rgb(41 40 31 / 85%);
  padding: 32px 24px;
  max-width: 600px;
}

.home .wp-block-cover h1 {
  font-size: 32px;
  position: relative;
}

.home .wp-block-cover h1:after {
  content: '';
  background: #667A62;
  position: absolute;
  left: 0;
  height: 3px;
  width: 180px;
  bottom: -13px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
}

.home .wp-block-cover p {
  font-size: 14px;
}

.home .wp-block-cover .wp-block-buttons {
  margin-top: 24px;
}

@media screen and (max-width: 767px) {
  .home .wp-block-cover {
    flex-direction: column;
    padding-top: 0;
    padding-bottom: 0;
    min-height: 0 !important;
  }

  .home .wp-block-cover .wp-block-cover__image-background {
    position: static;
  }

  .home .wp-block-cover__inner-container {
    width: auto;
    margin-left: -17px;
    margin-right: -17px;
  }
}

@media screen and (min-width: 768px) {
  .home .wp-block-cover__inner-container {
    padding: 40px;
    margin-left: 40px !important;
  }

  .home .wp-block-cover h1 {
    font-size: 56px;
  }

  .home .wp-block-cover h1:after {
    width: 300px;
  }

  .home .wp-block-cover p {
    font-size: 18px;
  }
}

/* front page highlights */

.home .wp-block-media-text>.wp-block-media-text__content {
  padding-top: 8px;
}

.home .wp-block-media-text sup {
  font-size: 10px;
}

.home .wp-block-media-text li:not(:last-child) {
  margin-bottom: 8px;
}

/* front page free spaces */

.home .free-space {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 56px !important;
  padding-bottom: 56px !important;
}

.home .free-space h2 {
  margin-bottom: 8px !important;
}

.home .free-space sup {
  font-size: 10px;
  margin-right: 10px;
}

@media screen and (min-width: 768px) {
  .home .free-space {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  .home .free-space h2 {
    margin-bottom: 16px !important;
  }
}

/* footer */

footer {
  text-align: center;
}

footer .wp-block-heading::before {
  content: '';
  background-image: url('/wp-content/themes/varastot-theme/assets/warehouse.svg');
  width: 40px;
  height: 40px;
  display: inline-block;
  background-size: contain;
  margin-bottom: -2px;
  margin-right: 16px;
}

footer .has-large-font-size {
  font-size: 18px !important;
  margin-top: 32px;
}

footer p:last-child {
  margin-top: 40px;
}

footer a {
  text-underline-offset: 2px;
}

@media screen and (max-width: 767px) {
  footer {
    margin-top: 0;
  }

  footer .wp-block-group:first-child {
    padding-bottom: 40px !important;
    padding-top: 40px !important;
  }
}

@media screen and (min-width: 768px) {
  footer .has-large-font-size {
    font-size: 20px !important;
    margin-top: 56px;
  }

  footer p:last-child {
    margin-top: 56px;
  }
}