@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;
  --blue: #14375e;
  --light: #f5f5f5;
  --orange: #c8874c;
  --buffer: 60px;
  --transition: 0.5s;
  --radius: 20px;
}

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

html {
  scroll-behavior: smooth;
}

main {
  overflow: hidden;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Sora", sans-serif;
  margin: 0;
  color: var(--blue);
  display: block;
  line-height: 130%;
  text-wrap: balance;
}

h1 {
  font-size: 4rem;
}
h2 {
  font-size: 3rem;
}
h3 {
  font-size: 1.3rem;
}

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

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,
#about,
#contact {
  scroll-margin-top: 120px;
}

#realizace {
  background: var(--light);
  &.light {
    background: white;
  }
}

.no_padding {
  padding: 0 !important;
}

.container_services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  h3 {
    margin: 1rem 0;
  }
}

#hero h1 {
  margin-left: 1ch;
}

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

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

.hero_image {
  position: relative;
  overflow: hidden;
}

.hero_image::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    #fff 50%,
    #fff 50%
  ); /* bílý překryv, upravte barvu dle potřeby */
  z-index: 2;
  pointer-events: none;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.18, 1);
  transform: scaleX(1);
  transform-origin: center;
}

.hero_image.reveal::after {
  transform: scaleX(0);
}

.hero_image {
  width: 100%;
  margin: 3rem 0;
  display: block;
  overflow: hidden;
  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
  }
}

.icon {
  position: relative;
  img {
    width: 80px;
    height: 80px;
  }
  &::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -65%);
    aspect-ratio: 1/1;
    display: block;
    width: 160px;
    border-radius: 50%;
    background: var(--light);
    transition: all var(--transition);
    z-index: -1;
  }
}
.service:hover .icon::after {
  width: 200px;
}

#services .flex_container .first {
  flex: 1 1 25%;
}

.hero_image {
  position: relative;
  img {
    position: relative;
    z-index: 0;
  }
  a {
    position: absolute;
    aspect-ratio: 1/1;
    background: url("../img/down.svg") no-repeat center;
    width: 80px;
    height: 80px;
    display: block;
    z-index: 10;
    right: 2rem;
    bottom: 2rem;
  }
}

#realizace .flex_container {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  .next {
    font-family: "Sora", sans-serif;
    font-weight: 700;
    text-decoration: none;
    padding-right: 3rem;
    position: relative;
    color: var(--blue);
    &::after {
      content: "";
      position: absolute;
      top: 50%;
      right: 0;
      transform: translateY(-50%);
      width: 2.4rem;
      height: 2.4rem;
      background: url("../img/arrow.svg") no-repeat center / contain;
    }
  }
}

.container_realizace {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  .realizace {
    padding: 2rem 1rem;
    img {
      width: 100%;
      height: auto;
      aspect-ratio: 3/2;
      object-fit: cover;
      border-radius: var(--radius);
      transition: all var(--transition);
    }
    .image_box {
      display: block;
      overflow: hidden;
      border-radius: var(--radius);
      aspect-ratio: 3/2;
      margin-bottom: 1rem;
    }
    h4 {
      margin-top: 0.5rem;
    }
    a {
      text-decoration: none;
    }
    &:hover img {
      transform: scale(1.05);
    }
  }
}
.logo img {
  height: 24px;
  width: auto;
}

.container_detail {
  display: flex;
  flex-wrap: nowrap;
  gap: 5rem;
  align-items: center;
  flex-direction: row;
  @media (max-width: 900px) {
    flex-wrap: wrap;
  }
  .item {
    width: 50%;
    a {
      display: block;
      aspect-ratio: 4/3;
      overflow: hidden;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: var(--radius);
      }
    }
  }
}

.slick-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  gap: 10px;
  list-style-type: none;
  button {
    width: 12px;
    height: 12px;
    background-color: var(--light);
    border-radius: 6px;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all var(--transition);
    font-size: 0;
  }
  .slick-active button {
    background-color: var(--orange);
    width: 2rem;
  }
  button:hover {
    background-color: var(--orange);
  }
}

form {
  p {
    margin: 0;
  }
  label {
    display: block;
    margin: 0 0 0.25rem;
    padding: 0;
    font-size: 0.75rem;
    cursor: pointer;
  }
  input,
  select,
  textarea {
    width: 100%;
    border: 1px solid var(--default);
    color: var(--default);
    border-radius: var(--radius);
    font-size: 1rem;
    padding: 0.75rem 1rem;
    transition: all var(--transition);
    margin-bottom: 0.5rem;
    font-family: "Inter", sans-serif;
    &:focus {
      border-color: var(--orange);
    }
  }
  input[type="checkbox"] {
    float: left;
    margin-right: 1rem;
    width: auto;
    position: relative;
    top: 6px;
  }
  br {
    display: none;
  }
}
.wpcf7-submit {
  padding: 1rem 2rem 1rem 2rem;
  background-color: var(--orange);
  color: #fff;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  border-radius: 100px;
  border: none;
  transition: all var(--transition);
  position: relative;
  &:hover {
    background-color: var(--default);
    color: #fff;
  }
}

.grecaptcha-badge {
  display: none;
}

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(--orange);
      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: "clearPOWER";
      font-family: "Sora", sans-serif;
      font-weight: 700;
      position: absolute;
      top: 0;
      right: 0;
      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;
    }
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
}
.modal.open {
  display: flex;
}
.modal_content {
  background: #fff;
  padding: 3rem 2rem 2rem;
  border-radius: 12px;
  border: 1px solid var(--light);
  max-width: 90vw;
  max-height: 90vh;
  min-width: 600px;
  position: relative;
  box-shadow: 0 0 64px var(--light);
  overflow-y: auto;
}
.modal_close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--blue);
}

nav .open_modal {
  display: none;
}

.slider ul {
  margin: 0;
}

@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;
    }
  }

  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: 19px;
    width: auto;
  }

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

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

  header .cta {
    display: none;
  }
  #hero h1 {
    margin-left: 0;
    font-size: 4rem;
    line-height: 1;
  }
  .container_realizace {
    gap: 1rem;
    .realizace {
      padding: 1rem 0.5rem;
    }
  }
  #realizace .flex_container {
    text-align: center;
    .next {
      text-align: center;
      display: inline-block;
      margin: 0 auto 1rem;
    }
  }
  .modal_content {
    min-width: auto;
  }
  .container_detail {
    .item {
      width: 100%;
    }
  }
  .single h1 {
    font-size: 2rem;
  }
  nav .open_modal {
    display: inline-block;
  }
}

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