/* Navbar styling */
.navbar {
  width: 100%;
  background-color: var(--clr-navbar, #000);
  padding: 0.9em var(--pading-inline, 1em);
  z-index: 98;
  box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.3);
}

.navbar.active2 {
  transform: translateY(-200%);
}

.navbar.active {
  position: fixed;
  top: 0;
  transform: translateY(0%);
  transition: transform var(--transition, 350ms) ease;
}

.navbar__logo > img {
  width: 8rem;
}

.navbar__toggler {
  width: 1.8em;
  height: 1.4em;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  cursor: pointer;
}

.navbar__toggler > span {
  width: 100%;
  height: 3px;
  background-color: var(--clr-white, #fff);
  border-radius: 10em;
  transition: transform var(--transition, 350ms) ease;
}

.navbar__toggler.active span:nth-child(1) {
  transform: rotate(45deg) translateX(5px) translateY(9px);
}
.navbar__toggler.active span:nth-child(2) {
  transform: scale(0);
  transition-duration: 250ms;
}
.navbar__toggler.active span:nth-child(3) {
  transform: rotate(-45deg) translateX(5px) translateY(-9px);
}

.navbar__menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 40vw;
  height: 100vh;
  background-color: var(--clr-navbar, #000);
  color: var(--clr-white, #fff);
  z-index: 99;
  padding: 5em 2em 1em;
  opacity: 0;
  transform: translateX(200%);
  transition: transform var(--transition, 350ms) ease,
    opacity var(--transition, 350ms) ease;
}

.navbar__menu.active {
  transform: translateX(0%);
  opacity: 1;
}

.navbar__menu > li {
  opacity: 0;
  transform: translateX(20px);
  transition: opacity var(--transition, 350ms) 0ms ease,
    transform var(--transition, 350ms) 0ms ease;
}

.navbar__menu.active > li {
  opacity: 1;
  transform: translateX(0px);
}

.navbar__menu > li + li {
  margin-top: 1em;
}

.navbar__menu > li > a {
  font-size: 1.3rem;
  text-transform: capitalize;
}

.navbar__menu > li > a[data-active="false"] {
  color: #5f5d5d;
}

.navbar__menu-social a {
  display: inline-block;
  margin-top: 0.4em;
}

.navbar__menu-social img {
  width: 1.5rem;
}

/* Hero section styling */
.hero {
  background-color: var(--clr-navbar, #000);
  background-image: url("/assets/images/hero-image.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: var(--clr-white, #fff);
  min-height: 350px;
  display: flex;
  align-items: center;
}

.hero.active {
  margin-top: 70px;
}

.hero .container {
  width: 100%;
}

.hero h1 {
  font-size: 2rem;
  color: var(--clr-white, #fff);
  line-height: 1.3;
}

.box {
  background-color: var(--clr-white, #fff);
  width: 100%;
  border-radius: var(--border-radius, 4px);
  box-shadow: 0 10px 5px 0 var(--box-shadow);
  padding: 3em 1em;
}

.box + .box {
  margin-top: 100px;
}

section .container h2 {
  text-transform: capitalize;
  margin-bottom: 2em;
  font-size: 1rem;
}

section .container h3 {
  text-transform: capitalize;
  font-weight: 900;
  margin-bottom: 24px;
  font-size: 1.8rem;
}

section .container h5 {
  text-transform: capitalize;
  font-weight: 900;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* Featured products styling */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
  place-content: end;
}

.grid > * {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius, 4px);
}

/* About styling */
.about .container > div {
  background-color: var(--clr-white, #fff);
  border-radius: var(--border-radius, 4px);
  box-shadow: 0 20px 54px 0 var(--box-shadow);
  padding: 3em 1em;
}

.about__flex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

/* Gallery styling */
.gallery {
  display: grid;
  gap: 1rem;
}

.gallery__item {
  border-radius: var(--b-radius, 2px);
  width: 100%;
  height: 250px;
  cursor: pointer;
}

.gallery__image {
  border-radius: var(--b-radius, 2px);
  width: 100%;
  height: 100%;
}

/* Contact styling */
.form {
  background-color: var(--clr-white, #fff);
  padding: 3em 1em;
  border-radius: var(--border-radius, 4px);
  box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.1);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.6em;
  margin-bottom: 0.8em;
  outline: 0;
  background-color: var(--clr-white, #fff);
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  font-size: 0.9rem;
  resize: none;
  transition: border var(--transition, 350ms) ease;
}

.form input:focus,
.form textarea:focus {
  border: 1px solid rgba(0, 0, 0, 0.4);
}

.form textarea {
  margin-bottom: 0;
}

.form button[type="submit"] {
  width: 100%;
  padding: 0.5em;
  border: 0;
  outline: 0;
  background-color: var(--clr-navbar, #000);
  color: var(--clr-white, #fff);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  cursor: pointer;
}

.form button[type="submit"] img {
  width: 13px;
  transition: transform var(--transition, 350ms) ease;
}

.form button[type="submit"]:hover img {
  transform: translateX(4px);
}

.form-flex {
  display: flex;
  gap: 0.5em;
}

.map iframe {
  width: 100%;
  height: 300px;
  border-bottom-left-radius: var(--border-radius, 4px);
  border-bottom-right-radius: var(--border-radius, 4px);
}

.contact__info {
  margin-top: 5em;
  display: flex;
  flex-direction: column;
  gap: 1.4em;
}

.contact__info .contact__box {
  background-color: var(--clr-navbar, #000);
  color: var(--clr-white, #fff);
  border-radius: var(--border-radius, 4px);
  padding: 3em 2em;
  display: flex;
  gap: 1.5em;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 10px 0 rgba(0, 0, 0, 0.2);
}

.contact__info .contact__box img {
  width: 2.2rem;
}

.contact__info-title {
  text-decoration: underline;
  text-align: center;
}

/* Footer styling */
.footer {
  background-color: var(--clr-navbar, #000);
  color: var(--clr-white, #fff);
  padding: 0 var(--pading-inline, 1em);
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: 3em;
  padding: 4em 0;
}

.footer__top img {
  width: 10rem;
  margin-bottom: 1.4em;
}

.footer__top p {
  color: rgba(255, 255, 255, 0.7);
}

.footer__top h4 {
  color: var(--clr-white, #fff);
  margin-bottom: 0.6em;
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__bottom p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
}

/* Gallery screen */
.gallery-modal {
  width: 100%;
  height: 100vh;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.05);
  transition: opacity var(--t-duration, 300ms) ease,
    visibility var(--t-duration, 300ms) ease,
    transform var(--t-duration, 300ms) ease;
}

.gallery-modal.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.gallery-modal__overlay {
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}

.gallery-modal__close {
  width: 2.2rem;
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
}

.gallery-modal__image {
  width: 100%;
  max-width: 550px;
  border-radius: var(--b-radius, 2px);
}

.gallery-modal__arrow {
  position: absolute;
  cursor: pointer;
  padding: 6px 4px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: var(--b-radius, 4px);
}

.gallery-modal__arrow--left {
  left: 0.5rem;
}

.gallery-modal__arrow--left > img {
  transform: rotate(180deg);
}

.gallery-modal__arrow--right {
  right: 0.5rem;
}

@supports (backdrop-filter: blur(2px)) {
  .gallery-modal__overlay {
    backdrop-filter: blur(5px);
    background-color: rgba(0, 0, 0, 0.8);
  }
}

@media (min-width: 600px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item {
    width: 100%;
    height: 200px;
  }
}

@media (min-width: 768px) {
  :root {
    --pading-inline: 3em;
  }

  p {
    font-size: 0.95rem;
  }

  /* Navbar styling */
  .navbar {
    padding: 1em var(--pading-inline, 1em);
  }

  .navbar__menu {
    left: 60vw;
    padding: 5em var(--pading-inline, 1em) 1em;
  }

  .navbar__menu > li + li {
    margin-top: 1.2em;
  }

  .navbar__menu > li > a {
    font-size: 1.4rem;
  }

  /* Hero section styling */
  .hero {
    min-height: 400px;
  }

  .hero.active {
    margin-top: 76px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .box {
    padding: 2em 2em;
    display: flex;
    align-items: center;
  }

  .box > *:first-child {
    flex: 1 1 50%;
  }

  .box > *:last-child {
    flex: 1 1 50%;
  }

  .box--reverse div:first-child {
    order: 2;
  }

  .box--reverse div:last-child {
    order: 1;
  }

  .box__image {
    margin-top: 0;
  }

  .box + .box {
    margin-top: 120px;
  }

  section .container h2 {
    font-size: 2rem;
  }

  section .container h3 {
    font-size: 1.1rem;
  }

  section .container h5 {
    font-size: 1rem;
  }

  .box div img {
    width: 60%;
  }

  .box .box__image {
    margin-top: 0;
    margin-left: auto;
  }

  .box--reverse .box__image {
    margin: 0;
  }

  /* About styling */
  .about .container > div {
    padding: 4em 4em;
  }

  /* Gallery styling */
  .gallery__item {
    height: 240px;
  }

  /* Kontakto styling */
  .form {
    padding: 4em 4em;
  }

  .form input,
  .form textarea {
    padding: 0.5em 0.6em;
    font-size: 1rem;
  }

  .map iframe {
    height: 400px;
  }

  .contact__info {
    flex-direction: row;
  }

  .contact__info .contact__box {
    flex: 1 1 33%;
    padding: 3em 2em;
    gap: 2em;
  }

  .contact__info .contact__box img {
    width: 2.6rem;
  }

  .contact__info-title {
    text-decoration: underline;
  }

  /* Footer styling */
  .footer {
    padding: 0 var(--pading-inline, 1em);
  }

  .footer__top {
    flex-direction: row;
    gap: 4em;
  }

  .footer__top div {
    flex: 1 1 33%;
  }

  .footer__top h4 {
    margin-top: 0.4em;
  }

  /* Pre loader styling */
  .loader img {
    width: 5rem;
  }

  /* To top arrow styling */
  .to-top {
    width: 2.6rem;
    bottom: 15px;
    right: 15px;
  }

  /* Gallery screen styling */
  .gallery-modal__close {
    top: 2rem;
    right: 2rem;
  }

  .gallery-modal__arrow {
    padding: 8px 6px;
  }

  .gallery-modal__arrow--left {
    left: 2rem;
  }

  .gallery-modal__arrow--right {
    right: 2rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --pading-inline: 6em;
  }

  section {
    padding: 5em var(--pading-inline, 1em);
  }

  /* Navbar styling */
  .navbar {
    padding: 1.2em var(--pading-inline, 1em);
  }

  .navbar__toggler {
    all: unset;
    display: none;
  }

  .navbar__menu {
    all: unset;
    color: var(--clr-white);
  }

  .navbar__menu > li {
    all: unset;
    transition: none;
  }

  .navbar__menu > li + li {
    margin-top: 0em;
    margin-left: 54px;
  }

  .navbar__menu > li > a {
    font-size: 1.1rem;
    text-transform: capitalize;
    transition: opacity var(--transition, 350ms) ease;
  }

  .navbar__menu > li > a:hover {
    opacity: 0.7;
  }

  li.navbar__menu-social {
    display: none;
  }

  /* Hero section styling */
  .hero {
    min-height: 450px;
  }

  .hero h1 {
    font-size: 2.8rem;
    color: var(--clr-white, #fff);
  }

  .box {
    padding: 4em 5em;
    display: flex;
    align-items: center;
  }

  .box + .box {
    margin-top: 140px;
  }

  section .container h2 {
    font-size: 1.2rem;
  }

  section .container h3 {
    font-size: 2.4rem;
  }

  /* About styling */
  .about .container > div {
    padding: 4em 5em;
  }

  /* Contact styling */
  .contact .flex-form {
    display: flex;
    flex-wrap: wrap;
  }

  .contact .flex-form > div {
    flex: 1 1 50%;
  }

  /* Gallery styling */
  .gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .gallery__item {
    height: 200px;
  }

  .gallery__image {
    object-position: top;
    transition: object-position 500ms ease;
  }

  .gallery__image:hover {
    object-position: 0 -20px;
  }

  .form {
    background-color: var(--clr-white, #fff);
    padding: 4em 5em;
    height: 454px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: var(--border-radius, 4px);
  }

  .map iframe {
    height: 454px;
    border-top-right-radius: var(--border-radius, 4px);
    border-bottom-right-radius: var(--border-radius, 4px);
    border-bottom-left-radius: 0;
  }

  .contact__info .contact__box {
    transition: transform var(--transition, 350ms) ease;
  }

  .contact__info .contact__box:hover {
    transform: translateY(-4px);
  }

  /* Footer styling */
  .footer__top {
    gap: 6em;
  }

  /* Gallery screen styling */
  .gallery-modal__close {
    transition: opacity 300ms ease;
  }

  .gallery-modal__close:hover {
    opacity: 0.8;
  }

  .gallery-modal__arrow {
    transition: opacity 300ms ease;
  }

  .gallery-modal__arrow:hover {
    opacity: 0.8;
  }

  /* Pre loader styling */
  .loader span {
    font-size: 1.1rem;
  }

  .loader img {
    width: 5.4rem;
    animation: loader-animation 700ms ease infinite alternate;
  }
}

@media (min-width: 1200px) {
  .gallery__item {
    height: 220px;
  }
}

@media (min-width: 1440px) {
  :root {
    --pading-inline: 8em;
  }

  section {
    padding: 6em var(--pading-inline, 1em);
  }

  /* Hero section styling */
  .hero {
    min-height: 570px;
  }

  .hero h1 {
    font-size: 3.6rem;
    color: var(--clr-white, #fff);
  }

  .box {
    display: flex;
    align-items: center;
  }

  .box + .box {
    margin-top: 168px;
  }

  section .container h2 {
    font-size: 1.2rem;
  }

  section .container h3 {
    font-size: 2.5rem;
  }

  /* Gallery styling */
  .gallery__item {
    height: 250px;
  }

  /* Footer styling */
  .footer__top {
    gap: 10em;
  }

  .footer__bottom {
    --padding-inline: 0;
  }

  /* Pre loader styling */
  .loader span {
    bottom: 30px;
  }
}

/* @media (min-width: 1660px) {
  .footer__top {
    padding: 5em 0;
  }
} */
