:root {
  --nav-primary: #9a333d;
  --nav-secondary: #803c43;
  --nav-dark: rgb(95, 95, 95);
  --main-accent: #f9be49;
  --main-accent-darker: hsl(40, 94%, 47%);
  --secondary-accent: hsl(60, 90%, 58%);
  --small-screen: 500px;
}

body {
  margin: 0;
  font-family: "Pangolin", "Times New Roman", Times, serif;
}

main,
footer {
  margin-left: auto;
  margin-right: auto;
}

.bangers-regular {
  font-style: normal;
  font-weight: 400;
  font-family: "Bangers", system-ui;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "Bangers";
}

nav img {
  height: 4rem;
}

#hamburger-lines {
  display: flex;
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.375rem;
  z-index: 100;
  cursor: pointer;
}

#hamburger-lines * {
  display: block;
  outline: 2px solid black;
  border-radius: 1rem;
  background-color: white;
  width: 2.5rem;
  height: 0.4rem;
}

#hamburger-checkbox {
  display: none;
}

.nav-links {
  display: flex;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: scale(0, 1);
  transform-origin: right;
  opacity: 0;
  z-index: 20;
  transition: all ease-in-out 150ms;
  background-image: url("./images/nav.jpg");
  background-repeat: no-repeat;
  width: 50vw;
  min-width: 15rem;
  max-width: 300px;
  height: 100vh;
  object-fit: contain;
}

.nav-links * {
  opacity: 0;
  transition: opacity ease-in-out 150ms 50ms;
  margin: 0.25em 1em;
  border: solid 5px var(--nav-primary);
  border-radius: 2.5rem / 2rem 4rem;
  background-color: var(--nav-primary);
  padding: 0.875em 0.75em;
  width: 10rem;
  min-width: fit-content;
  color: white;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.nav-links *:hover,
.nav-links *:focus,
.nav-links *:active {
  transition: all ease-in-out 150ms;
  box-shadow: 3px 3px 5px gray;
  border-color: var(--nav-secondary);
}

#hamburger-checkbox:checked ~ .nav-links {
  transform: scale(1);
  opacity: 1;
  transition: transform ease-in-out 150ms;
}

#hamburger-checkbox:checked ~ .nav-links * {
  opacity: 1;
  transition: opacity ease-in-out 100ms 120ms;
}

#hamburger-checkbox:checked ~ #hamburger-lines * {
  transition: all ease-in-out 150ms;
  outline: 2px solid black;
  background-color: white;
}

#hamburger-checkbox:checked ~ #hamburger-lines {
  transform: translateY(0.5rem);
}

#hamburger-checkbox:checked ~ #hamburger-lines .hamburger-line-1 {
  transform: rotate(45deg) translateY(0.25rem) translateX(0.25rem);
}

#hamburger-checkbox:checked ~ #hamburger-lines .hamburger-line-2 {
  display: none;
}

#hamburger-checkbox:checked ~ #hamburger-lines .hamburger-line-3 {
  transform: rotate(-45deg) translateY(-0.25rem) translateX(0.25rem);
}

header {
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(var(--main-accent) 0 4vmin, #fff0 10vmin 100%),
    repeating-conic-gradient(
      from 0deg at 51% 59%,
      var(--main-accent) 0 6deg,
      var(--main-accent-darker) 0 12deg
    );
  min-height: 20rem;
  font-family: "Bangers";
}

header h1 {
  transform: rotate(5deg);
  margin-top: 0;
  color: rgb(255, 225, 55);
  font-size: 5rem;
  line-height: 2ch;
  letter-spacing: 0.17ch;
  text-align: center;
  text-shadow: 1.5px 1.5px black, 1.5px -1.5px black, -1.5px 1.5px black,
    -1.5px -1.5px black, 3px 5px #333;
}

.header-buttons {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2em;
}

.header-buttons a {
  display: block;
  position: relative;
  z-index: 10 !important;
  padding: 0.8rem 1rem;
  color: white;
  font-size: 1.25rem;
  text-decoration: none;
}

.header-buttons a:hover,
.header-buttons a:focus,
.header-buttons a:active {
  outline: 3px solid black;
  outline-offset: -2px;
  color: black;
}

.header-buttons a::before {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(0);
  z-index: -10;
  background-color: white;
  width: 100%;
  height: 100%;
  content: "";
}

.header-buttons a:hover::before,
.header-buttons a:active::before,
.header-buttons a:focus::before {
  transform: scale(1);
  transition: transform ease-in-out 20ms;
}

.header-form-btn {
  margin-right: 1em;
  background-color: #222;
  color: white;
}

.header-about-btn {
  background-color: #222;
  color: #333;
}

.title-red {
  color: #ff4040;
}

@keyframes motto-appear {
  from {
    transform: scale(0) translateX(-3rem);
    opacity: 0;
    transform-origin: bottom;
  }

  to {
    opacity: 1;
    transform: scale(1) translateX(-3rem);
  }
}

.motto {
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateX(-3rem);
  animation: motto-appear 500ms ease-in;
  margin-top: 4rem;
  border-radius: 2rem;
  background-image: url("./images/speech-bubble.svg");
  background-position: center;
  background-size: 18rem;
  background-repeat: no-repeat;
  padding: 1em;
  width: 100%;
  min-width: 15rem;
  height: 8rem;
  object-fit: scale-down;
}

.motto p {
  margin-bottom: 2em;
  font-style: italic;
  font-size: 1.5rem;
  text-align: center;
}

.description {
  margin: 2em;
  line-height: 2.5ch;
  font-family: "Pangolin";
}

.description-box {
  border: 1px solid black;
  background-color: whitesmoke;
  padding: 0.75em;
  font-size: 1.2rem;
}

h2 {
  color: black;
  font-size: 2.5rem;
  font-family: "Bangers";
  text-align: center;
}

.about {
  background-color: whitesmoke;
  padding: 1em 2rem;
  padding-top: 0.5em;
  font-size: 1.2rem;
  line-height: 2.25ch;
  font-family: "Pangolin";
}

.about-title,
.services-title {
  outline: 4px #333 solid;
  outline-offset: -4px;
  padding: 0.625em 0;
  width: 100%;
}

.about-title {
  background: linear-gradient(45deg, hsl(39, 100%, 87%), rgb(255, 209, 125));
}

.about ul li {
  list-style-type: square;
}

.about-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-logo {
  width: 150px;
}

.about-box {
  border: 1px black solid;
  background-color: white;
  padding: 0.75em;
}

/* Zajišťujeme */
.about-box h3 {
  margin: 0.5em;
  padding: 0.25em 0.5em;
  padding-bottom: 0;
  width: fit-content;
  font-size: 1.5rem;
  font-family: "Bangers";
  letter-spacing: 0.125ch;
}

.highlight {
  background-color: hsl(44, 90%, 80%);
  padding: 0.1ch;
}

.services-bubble-button {
  display: none;
  position: relative;
  top: 6rem;
  right: 3.5rem;
  justify-content: center;
  align-items: center;
  float: right;
}

.services-bubble-button * {
  position: absolute;
}

.services-bubble-button span {
  transform: rotate(12deg);
  z-index: 20;
  color: black;
  font-size: 1.5rem;
  font-family: "Bangers";
  letter-spacing: 0.2ch;
}

.services-bubble-button img {
  display: block;
  z-index: 10;
  filter: drop-shadow(2px 2px black);
  max-width: 160px;
}

.services-bubble-click-text {
  display: none;
  position: relative;
  right: 3.5rem;
  top: 2rem;
  float: right;
}

.services-bubble-click-text * {
  position: absolute;
}

.services-bubble-click-text span {
  top: -20px;
  right: -3px;
  transform: skew(-10deg) rotate(7.5deg);
  border-radius: 3px;
  padding: 0.25em;
  font-weight: 900;
  font-size: 1.5rem;
}

.services-bubble-click-text img {
  width: 25px;
}

@media screen and (min-width: 375px) {
  .services-bubble-button,
  .services-bubble-click-text {
    transform: scale(0.7);
  }

  .services-bubble-button {
    display: flex;
  }
  .services-bubble-click-text {
    display: unset;
  }
}

@media screen and (min-width: 420px) {
  .services-bubble-button,
  .services-bubble-click-text {
    transform: scale(1);
  }

  .services-bubble-button {
    right: 4.5rem;
  }

  .services-bubble-click-text {
    top: 0;
    right: 4.5rem;
  }
}

@media screen and (min-width: 460px) {
  .services-bubble-button {
    right: 5.5rem;
  }

  .services-bubble-click-text {
    top: 0;
    right: 5.5rem;
  }
}

@media screen and (min-width: 500px) {
  .services-bubble-button {
    top: 5rem;
    right: 6.5rem;
  }

  .services-bubble-click-text {
    top: -1rem;
    right: 6.5rem;
  }
}

footer {
  --main-color: hsl(198, 50%, 53%);
  --secondary-color: hsl(198, 40%, 40%);
  display: flex;
  justify-content: center;

  background: radial-gradient(
      circle at 50% 50%,
      var(--main-color) 0 3vmin,
      rgba(255, 255, 255, 0) 10vmin 100%
    ),
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      var(--main-color) 0deg 6deg,
      var(--secondary-color) 6.1deg 12deg,
      var(--main-color) 12.1deg
    ),
    var(--main-color);
  padding: 2em 0;
}

#contact {
  box-shadow: 10px 10px black;
  background-color: white;
  padding: 2em;
  max-width: fit-content;
  max-height: fit-content;
  font-size: 1.2rem;
}

.contact-list {
  margin: 0;
  max-width: fit-content;
}

.partners {
  text-align: center;
}

.services-title {
  background: linear-gradient(45deg, hsl(22, 100%, 87%), rgb(255, 255, 125));
}

.services-container {
  margin: 2em 0;
  padding: 1em 2em;
  padding-bottom: 2em;
  background-color: whitesmoke;
}

.services-list {
  font-size: 1.4rem;
  list-style-type: square;
}

.services-button {
  display: block;
  margin: 0 auto;
  margin-top: 1.5em;
  background-color: black;
  padding: 0.5em 1em;
  width: fit-content;
  color: white;
  font-size: 1.5rem;
  font-family: "Bangers";
  text-align: center;
  text-decoration: none;
}

.services-button:hover,
.services-button:focus,
.services-button:active {
  box-shadow: 8px 8px hsl(22, 100%, 87%);
}

.phone-bullet,
.email-bullet {
  padding: 3px 3px 3px 10px;
  padding: 8px 32px;
  list-style: none;
}

.phone-bullet {
  background: url("images/call.svg") no-repeat left center;
}

.email-bullet {
  background: url("images/mail.svg") no-repeat left center;
}

.company-info {
  margin: 2em auto 0 40px;
  max-width: fit-content;
  line-height: 2ch;
}

#demand {
  background: repeating-linear-gradient(
    135deg,
    #3c6f55,
    #3c6f55 20px,
    #2a4034 20px,
    #2a4034 25px
  );
  color: white;
}

#demand {
  padding: 1em 0;
}

.demand-title {
  margin: 0;
  padding: 2em 0 1em;
  color: white;
}

#demand form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

#demand form div {
  display: flex;
  flex-direction: column;
  width: 70%;
  min-width: 250px;
  max-width: 500px;
}

#demand input {
  padding: 0.5em 0.25em;
  font-size: 1.3rem;
  font-family: Arial, Helvetica, sans-serif;
}

#demand form label {
  margin: 4px 0;
  font-size: 1.3rem;
  font-family: "Bangers";
}

#demand textarea {
  min-height: 120px;
}

#demand-thanks-message {
  font-family: "Bangers";
  font-size: 2.5rem;
  line-height: 3ch;
  text-align: center;
  padding: 0.5em 1em;
  transform: scale(0);
  position: fixed;
  background-color: white;
  width: fit-content;
  margin: 0 auto;
  color: black;
  box-shadow: 10px 10px #333;
  margin: 5.32em auto;
}

#demand-thanks-message .submessage {
  font-family: "Pangolin";
  font-size: 1.5rem;
  font-style: bold;
}

#demand-thanks-message.thanks-animation {
  position: unset;
  margin: 1em auto 2em auto;
  transform: scale(1) !important;
  transition: all 250ms ease-in;
}

.gallery-container {
  padding: 2em;
  padding-top: 0.5em;
  background-color: whitesmoke;
}

.swiper-image {
  height: 500px;
}

.swiper-image {
  display: flex;
  justify-content: center;
}

.swiper-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
}

.swiper-button-prev svg,
.swiper-button-next svg {
  color: white;
}

.swiper-pagination-bullet-active {
  background-color: white !important;
}

.container {
  display: flex;
  position: relative;
  align-items: center;
  width: 100%;
  height: 100%;
}

#demand-text {
  width: 100%;
  resize: vertical;
}

#demand button[type="submit"] {
  display: inline-block;
  margin: 1.5em;
  border: #00441b solid 2px;
  background-color: #228b4c;
  padding: 0.5em 1em;
  color: white;
  font-size: 1.5rem;
  font-family: "Bangers";
}

#demand button[type="submit"]:hover,
#demand button[type="submit"]:active,
#demand button[type="submit"]:focus {
  cursor: pointer;
  border-color: white;
}

@media screen and (min-width: 500px) {
  nav {
    display: none;
  }

  main {
    max-width: 600px;
  }
  .description {
    margin: 0 auto;
  }
  #demand {
    margin: 2em auto;
    margin-bottom: 0.5em !important;
  }

  #hamburger-lines {
    display: none;
  }
}

@media screen and (min-width: 1200px) {
  body {
    background-color: #e5e5f7;
    background-size: 10px 10px;
    background-image: repeating-linear-gradient(
      10deg,
      #fff 0,
      #fff 10px,
      #333 16px,
      #333 50%
    );
  }
  main {
    margin-top: 3em;
    max-width: fit-content;
    max-width: 800px !important;
  }

  main > * {
    margin: 0 auto;
    box-sizing: border-box;
    height: fit-content;
  }

  #demand {
    margin-bottom: 0;
    width: 100%;
  }
}
