@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Sora:wght@100..800&display=swap");

:root {
  --default: #2e3958;
  --light: #f5f5f5;
  --red: #e3000a;
  --buffer: 60px;
  --transition: 0.5s;
  --radius: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--default);
  font-size: 17px;
  line-height: 160%;
  font-style: normal;
  overflow-x: hidden;
  background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--blue);
  display: block;
  line-height: 130%;
  text-wrap: balance;
  font-weight: 800;
  margin-bottom: 1em;
}

h1 {
  font-size: 4rem;
  line-height: 1;
  margin-bottom: 1em;
  em {
    font-style: normal;
    color: var(--red);
    font-size: 0.7em;
    line-height: 1;
  }
}
h2 {
  font-size: 2.4rem;
}
h3 {
  font-size: 1.3rem;
}

a {
  color: var(--red);
  transition: all var(--transition);
  &:hover {
    text-decoration: none;
  }
}
p {
  margin: 0 0 1rem 0;
  text-wrap: balance;
  &:last-child {
    margin-bottom: 0;
  }
}

.bigger {
  font-size: 1.1em;
}

ul {
  margin: 1rem 0 1rem 1.5rem;
  strong {
    font-weight: 800;
    color: var(--blue);
  }
  li {
    text-wrap: balance;
  }
}

section {
  padding: var(--buffer) 0;
  position: relative;
}

.center {
  text-align: center;
}

.container {
  width: 100%;
  padding: 0 20px;
  max-width: 1440px;
  margin: auto;
}

#hero,
#services,
#vysivka,
#print,
#plneni,
#laser,
#contact {
  scroll-margin-top: 120px;
}

#hero img {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  background: transparent;
  animation: levitate 3s ease-in-out infinite alternate;
}
@keyframes levitate {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-18px);
  }
}

#hero h1 {
  margin-bottom: 0.5em;
}

#hero .container {
  padding: 0 5% var(--buffer) 5%;
}

.short {
  max-width: 900px;
  margin: auto;
}

.container_services {
  display: grid;
  display: flex;
  flex-wrap: wrap;
  margin-top: 3rem;
  gap: 3rem;
  h3 {
    margin: 1rem 0;
    color: var(--red);
  }
  .item {
    width: calc(33.333% - 2rem);
    border: 1px solid var(--light);
    padding: 2rem 1rem;
    border-radius: var(--radius);
    text-align: center;
    transition: all var(--transition);
    &:hover {
      box-shadow: 0 0 32px var(--light);
      transform: translateY(-5px);
    }
  }
}

.container_text_img {
  display: flex;
  gap: 3rem;
  align-items: center;
  margin-top: 3rem;
  &.reverse {
    flex-direction: row-reverse;
  }
  div {
    flex: 1;
  }
  img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 0 0 32px var(--light);
  }
}

.btn {
  display: inline-block;
  background: var(--default);
  color: white;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  &:hover {
    background: var(--red);
    color: #fff;
  }
}
.cta {
  display: inline-block;
  background: var(--red);
  color: white;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  &:hover {
    background: var(--default);
    color: #fff;
  }
}

.flex_container {
  display: flex;
  gap: 3rem;
  flex-wrap: nowrap;
  &.two_cols {
    flex-wrap: wrap;
    div {
      flex: 1;
    }
  }
  &.flex_center {
    align-items: center;
  }
}

.icon {
  position: relative;
  img {
    width: 80px;
    height: 80px;
  }
}

#reference h2 {
  margin: 1em;
  font-size: 3.6rem;
}
#reference {
  padding: 0;
}

.logo img {
  height: 44px;
  width: auto;
}
.nopadding {
  padding: 0 !important;
}

header {
  padding: 2rem 0;
  position: sticky;
  top: 0;
  background: white;
  z-index: 100;
  background: rgba(255, 255, 255, 0.35); /* poloprůhledné pozadí */
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  a {
    text-decoration: none;
    font-weight: 700;
    font-family: "Sora", sans-serif;
    color: var(--blue);
  }
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  li a {
    position: relative;
    padding: 0.5rem 0;
    &::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 3px;
      background: var(--red);
      transform: scaleX(0);
      transform-origin: right;
      transition: transform 0.3s ease;
    }
    &:hover::after {
      transform: scaleX(1);
      transform-origin: left;
    }
  }
}

.nav_trigger {
  display: none;
}

footer {
  padding: 90px 0 var(--buffer) 0;
  position: relative;
  h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5em;
  }
  .container {
    position: relative;
    &::before {
      content: "Reklama na Vysočině";
      font-weight: 700;
      position: absolute;
      top: 0;
      left: 50%;
      transform: translateX(-50%);
      color: var(--light);
      font-size: 10rem;
      z-index: -1;
    }
  }
  h2 {
    margin-bottom: 1em;
  }
  .container_footer {
    position: relative;
    padding: 2rem 0;
    margin-bottom: 2rem;
    display: flex;
    div {
      flex: 1;
    }
  }
}

@media (max-width: 480px) {
  .nav_trigger {
    display: block;
    cursor: pointer;
    background: url("../img/menu.svg") no-repeat center/contain;
    width: 2.4rem;
    height: 2.4rem;
    display: block;
  }
  h1 {
    font-size: 2.6rem;
  }
  h2 {
    font-size: 2rem;
    &:after {
      font-size: 5.525rem;
      bottom: 5.525rem;
    }
  }

  main {
    width: 100dvw;
    overflow-x: hidden;
  }

  body.freeze {
    height: 100vh;
    overflow: hidden;
  }
  header .container nav {
    display: block;
    position: fixed;
    top: 10dvh;
    left: 0;
    width: 100%;
    height: 90dvh;
    background: #fff;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding-top: 5rem;
    ul {
      flex-direction: column;
      margin: 0;
      align-items: center;
      padding: 0;
      li {
        margin: 0;
        width: 100%;
        text-align: center;
        a {
          font-size: 1.5rem;
          margin-left: 0;
          padding: 1rem 2rem;
          display: block;
          &:hover {
            color: var(--lighter);
          }
        }
      }
    }
  }
  .logo img {
    height: 36px;
    width: auto;
  }

  .flex_container {
    flex-wrap: wrap;
    &.two_cols {
      div {
        flex: auto;
      }
    }
  }

  header nav.open {
    transform: translateX(0);
  }

  header .cta {
    display: none;
  }
  #hero h1 {
    margin-left: 0;
    font-size: 4rem;
    line-height: 1;
  }

  .container_footer {
    div {
      width: 100%;
    }
  }
  .container_services {
    .item {
      width: 100%;
    }
  }
  .container_text_img {
    flex-direction: column;
    &.reverse {
      flex-direction: column;
    }
  }
  #reference h2 {
    margin: 0;
    font-size: 2.6rem;
  }
  footer {
    text-align: center;
    .container_footer {
      flex-wrap: wrap;
      flex-direction: column;
      gap: 3rem;
    }
  }
  #hero {
    padding: 0;
  }
  footer {
    & .container {
      &::before {
        font-size: 3rem;
      }
    }
  }
}

@media (min-width: 481px) and (max-width: 900px) {
}
