@import url("https://fonts.googleapis.com/css2?family=Sora:wght@100..800&display=swap");

:root {
  --default: #2e3958;
  --blue: #1d4873;
  --light-blue: #9eb9d5;
  --light: #f5f5f5;
  --red: #ed1c22;
  --buffer: 80px;
  --transition: 0.5s;
  --radius: 20px;
}

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

html {
  scroll-behavior: smooth;
}

main {
  overflow: hidden;
}

body {
  font-family: "Sora", 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;
  a {
    color: inherit;
    text-decoration: none;
  }
  &.normal {
    font-weight: 400;
  }
}

.bigger {
  font-size: 1.75em;
}
.biggest {
  color: var(--blue);
  margin-top: 1em;
}
.smaller {
  font-size: 0.85em;
  line-height: 1.5;
}
hr {
  margin: 1rem 0;
}

h1 {
  font-size: 4.25rem;
  margin: 2em 0 0 0;
  color: #fff;
}
h2 {
  font-size: 3rem;
  margin: 0 0 0.5em 0;
  line-height: 120%;
  color: var(--default);
  letter-spacing: -1px;
}
h3 {
  font-size: 1.3rem;
  margin: 0 0 0.5em 0;
  color: var(--default);
  letter-spacing: -1px;
}

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

.single h1 {
  margin-top: 0;
}

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

.btn,
input[type="submit"] {
  display: inline-block;
  background: var(--blue);
  color: white;
  cursor: pointer;
  width: auto;
  padding: 1rem 2rem;
  font-weight: 500;
  text-decoration: none;
  border-top-right-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  transition: all var(--transition);
  &:hover {
    background: var(--red);
    color: #fff;
  }
  &.inverse {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--light);
    &:hover {
      background: var(--red);
      color: #fff;
      border-color: var(--red);
    }
  }
}

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

.center {
  text-align: center;
}

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

.no-padding {
  padding: 0;
  margin: 0;
}

.section-dark {
  padding: var(--buffer) 0;
  background: var(--blue);
  color: #fff;
  position: relative;
  &::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 0;
    width: 100vw;
    height: 100%;
    background: var(--blue);
    z-index: -1;
  }
  &::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 0;
    width: 100vw;
    height: 100%;
    background: var(--blue);
    z-index: -1;
  }
  h2,
  h3,
  h4,
  h5,
  h6 {
    color: #fff;
  }
}
.section-light {
  padding: var(--buffer) 0;
  background: var(--light);
  position: relative;
  h1 {
    color: var(--blue);
  }
  &::after {
    content: "";
    position: absolute;
    left: 100%;
    top: 0;
    width: 100vw;
    height: 100%;
    background: var(--light);
    z-index: -1;
  }
  &::before {
    content: "";
    position: absolute;
    right: 100%;
    top: 0;
    width: 100vw;
    height: 100%;
    background: var(--light);
    z-index: -1;
  }
}

.great {
  font-size: 5rem;
  font-weight: 800;
  margin: 1em 0;
}

.tile {
  border: 1px solid var(--light);
  background-color: #fff;
  padding: 3rem;
  z-index: 1;
  transition: all 1s;
  &:hover {
    box-shadow: 0px 0px 40px 0px rgba(0, 0, 0, 0.08);
    z-index: 2;
  }
  h3 {
    font-size: 30px;
    font-weight: 800;
  }
  a {
    padding: 0.5rem 1.5rem 0.5rem 1rem;
    background: transparent;
    color: var(--red);
    margin-top: 1rem;
    display: inline-block;
    text-decoration: none;
    border: 1px solid var(--red);
    border-top-right-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
    background-position: center right;
    &:hover {
      border-color: var(--blue);
      color: var(--blue);
      padding: 0.5rem 3rem 0.5rem 1rem;
      background: url("../images/icon-arrow-right.svg") no-repeat center right;
    }
  }
}

.arrow-right a {
  display: block;
  width: 100%;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  input,
  textarea,
  select {
    padding: 0.75rem;
    border: 1px solid var(--light);
    border-top-right-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
    font-family: "Sora", sans-serif;
    font-size: 1rem;
    transition: all var(--transition);
    width: 100%;
    &:focus {
      outline: none;
      border-color: var(--blue);
    }
  }
  button {
    align-self: flex-start;
    width: auto;
  }
}

.container_form {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  div {
    width: calc(50% - 2rem);
    @media (max-width: 768px) {
      width: 100%;
    }
  }
}

#hero {
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 20px;
  background-color: var(--light);
  margin-bottom: var(--buffer);
  position: relative;
  h1 {
    position: relative;
    z-index: 1;
  }
  &::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 65%;
    background: linear-gradient(
      to top,
      rgba(29, 72, 115, 0.5),
      rgba(0, 0, 0, 0)
    );
    z-index: 0;
  }
}

#hero-homepage {
  margin-bottom: var(--buffer);
  padding: 0;
  .container {
    height: 70vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 4rem;
    position: relative;
    z-index: 1;
    h1 {
      margin-top: 0;
    }
    p {
      max-width: 60ch;
      color: #fff;
    }
  }
}

.slider_hmp .slide {
  background-size: cover;
  background-position: center;
  position: relative;
  &::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 65%;
    background: linear-gradient(
      to top,
      rgba(29, 72, 115, 0.95),
      rgba(0, 0, 0, 0)
    );
    z-index: 0;
  }
  .btn {
    align-self: flex-start;
    width: auto;
  }
}

.slick-dots {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  list-style-type: none;
  margin: 0;
  padding: 0;
  button {
    width: 24px;
    height: 8px;
    cursor: pointer;
    border-radius: 100px;
    background: var(--light);
    border: none;
    padding: 0;
    font-size: 0;
    transition: all var(--transition);
    &:before {
      display: none;
    }
  }
  .slick-active button {
    background: var(--red);
  }
}
.slick-dots li {
  margin: 0.25rem;
  display: inline-block;
}

.cta a {
  display: inline-block;
  background: var(--blue);
  color: white !important;
  padding: 0.75rem 2rem;
  margin-left: 3rem;
  text-decoration: none;
  border-top-right-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  transition: all var(--transition);
  &:hover {
    background: var(--red);
    color: #fff;
  }
  &:after,
  &:after:hover {
    display: none;
  }
}

footer {
  padding: var(--buffer) 0;
  background: var(--light);
  color: var(--blue);
}

footer .menu {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  justify-content: space-between;
  padding: 1rem 0;
  border-top: 1px solid var(--blue);
  border-bottom: 1px solid var(--blue);
  margin: 1rem 0;
  li {
    list-style: none;
    a {
      color: var(--blue);
      font-weight: 600;
      transition: all var(--transition);
      &:hover {
        text-decoration: none;
        color: var(--red);
      }
    }
  }
}

/* Responzivní footer */
@media (max-width: 768px) {
  footer {
    padding: 30px 0;
  }
  footer .menu {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    li {
      flex: 1 1 auto;
      text-align: center;
    }
  }
  .great {
    line-height: 1.1;
    font-size: 3.6em;
  }
}

.container_form {
  gap: 1rem;
}

.grecaptcha-badge {
  display: none;
}

header {
  padding: 2rem 0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
  .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  a {
    text-decoration: none;
    font-weight: 500;
    font-family: "Sora", sans-serif;
    color: var(--blue);
  }
  .logo img {
    height: 5ch;
  }
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  align-items: center;
  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;
    }
  }
  li.cta a::after {
    display: none;
  }
  li.current-menu-item a::after {
    transform: scaleX(1);
    transform-origin: left;
  }
}

.nav_trigger {
  display: none;
}

@media (max-width: 768px) {
  .nav_trigger {
    display: block;
    background: url("../images/icon-menu.svg") no-repeat center;
    background-size: contain;
    border: none;
    cursor: pointer;
    width: 56px;
    height: 56px;
    padding: 0;
    z-index: 11;
    transition: all var(--transition);
  }

  header {
    padding: 1rem 0;
  }

  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    z-index: 10;
    transition: left var(--transition);
    padding: 100px 0 0 0;
    .cta a {
      margin-left: 0;
    }
  }

  nav.open {
    left: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    padding: 2rem;
    align-items: flex-start;
  }

  nav li {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  nav li a {
    font-size: 1.2rem;
    padding: 0.5rem 0;
  }

  nav li a::after {
    display: none;
  }

  body.freeze {
    overflow: hidden;
  }
}

header a.logo {
  position: relative;
  z-index: 20;
}

button.kt-blocks-accordion-header {
  cursor: pointer;
  position: relative;
  padding: 1rem 0 !important;
}

.kt-accordion-header-wrap button {
  position: relative;
  padding-right: 3rem !important;
  &::after {
    content: "";
    position: absolute;
    left: auto;
    right: 0;
    top: 50%;
    width: 2rem;
    height: 2rem;
    transition: all var(--transition);
    transform: translate(-50%, -50%) rotate(45deg);
    z-index: 1;
    background: url("../images/icon-close-white.svg") no-repeat center !important;

    pointer-events: none;
  }
  &.kt-accordion-panel-active {
    &::after {
      transform: translate(-50%, -50%) rotate(0deg);
    }
  }
}

.kt-accordion-pane {
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}
.kt-blocks-accordion-icon-trigger {
  display: none;
}
.kt-accordion-inner-wrap {
  row-gap: 0 !important;
}

.kt-accordion-panel-inner {
  padding: 0 0 1rem 0 !important;
}
:where(.wp-block-columns) {
  margin-bottom: 0 !important;
}

.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  border-top: 1px solid var(--blue);
  border-bottom: 1px solid var(--blue);
}

.realizace .date {
  display: block;
  font-size: 0.85em;
  color: var(--red);
  margin-top: 0.5rem;
}
.realizace .mesto {
  display: block;
  font-size: 0.85em;
  color: var(--blue);
  margin-top: 0.25rem;
}

.hmp-services {
  position: relative;
}
.hmp-services::after {
  content: "";
  position: absolute;
  left: -100px;
  bottom: -100px;
  width: 400px;
  height: 500px;
  background: url(../images/symbol_line_white.svg) no-repeat center / contain;
  z-index: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
  will-change: opacity;
}
.hmp-services.in-view::after {
  opacity: 1;
  visibility: visible;
}

#services {
  a:hover {
    color: #9eb9d5;
  }
}

.container_realizace {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;

  .realizace {
    padding: 1rem 0.5rem;
    width: calc((100% - 3rem) / 4);
    .date {
      border-top: 1px solid var(--light-blue);
      color: var(--blue);
      margin-bottom: 0;
    }
    .mesto {
      border-top: 1px solid var(--light-blue);
      border-bottom: 1px solid var(--light-blue);
      color: var(--blue);
      margin-top: 0;
    }
    .image_box {
      display: block;
      margin: 0;
      aspect-ratio: 4/3;
      overflow: hidden;
      border-top-right-radius: var(--radius);
      border-bottom-left-radius: var(--radius);
      img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: all var(--transition);
      }
    }

    h3 {
      margin-top: 1em;
    }
    &:hover {
      .image_box {
        overflow: hidden;
        img {
          transform: scale(1.05);
        }
      }
    }
    a {
      text-decoration: none;
      transition: all var(--transition);
      :hover {
        color: var(--light-blue);
      }
    }
  }
}

h3.arrow-right {
  position: relative;
  padding-right: 4rem;
  display: block;
  &:after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: url(../images/icon-arrow-right-white.svg) no-repeat center;
    background-size: 3rem;
    border: 1px solid var(--light-blue);
    width: 3rem;
    height: 3rem;
    border-radius: 100px;
    transition: all var(--transition);
    pointer-events: none;
  }
}

#recents {
  display: flex;
  gap: 10%;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: flex-start;
  .recent {
    padding: 1rem 0.5rem;
    width: calc(100% / 3);
    img {
      width: 100%;
      height: auto;
      display: block;
    }
    h3 {
      margin-top: 1em;
    }
    a {
      text-decoration: none;
      transition: all var(--transition);
      :hover {
        color: var(--light-blue);
      }
    }
  }
}

.container_detail {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  h1 {
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 0.5em;
    line-height: 1.1;
  }
  .item {
    width: calc(50% - 1.5rem);
    @media (max-width: 768px) {
      width: 100%;
    }
    span {
      border-top: 1px solid var(--light-blue);
      display: block;
      margin-bottom: 0.5em;
      padding-top: 0.5em;
    }
  }

  .slider {
    position: relative;
    z-index: 1;
    &:after {
      content: "";
      position: absolute;
      left: -0.75rem;
      top: 0.75rem;
      width: 100%;
      height: 100%;
      border: 1px solid var(--light-blue);
      border-top-right-radius: 28px;
      border-bottom-left-radius: 28px;
      z-index: -1;
    }
  }

  img {
    width: 100%;
    height: auto;
    display: block;
    border-top-right-radius: var(--radius);
    border-bottom-left-radius: var(--radius);
  }
}

.kadence-blocks-gallery-item-inner img {
  border-top-right-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
}

/* Responzivní */
@media (max-width: 768px) {
  footer {
    padding: 40px 0;
  }
  footer .menu {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    li {
      flex: 1 1 auto;
      text-align: center;
    }
  }

  #recents {
    flex-wrap: wrap;
  }

  .container_realizace {
    flex-wrap: wrap;
    .realizace {
      width: 100%;
    }
  }
  h1 {
    font-size: 2.5em;
  }
  h2 {
    font-size: 2em;
  }
  h3 {
    font-size: 1.3rem;
  }
  .container_detail {
    h1 {
      font-size: 1.8rem;
    }
  }
  .tile {
    padding: 2rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .container_realizace {
    flex-wrap: wrap;
    .realizace {
      width: calc(100% / 3);
    }
  }
}
