/* ==========================================================
   SLAPY ŽDÁŇ
   Responsive stylesheet
   Verze 1.0
========================================================== */

/* ----------------------------------------------------------
   DESKTOP / MENŠÍ NOTEBOOKY
---------------------------------------------------------- */

@media (max-width: 1200px) {

  :root {
    --container: 1080px;
  }

  .hero h1 {
    font-size: 56px;
  }

  .hero-info {
    gap: 50px;
  }

  .section {
    padding: 95px 0;
  }

}


/* ----------------------------------------------------------
   TABLETY
---------------------------------------------------------- */

@media (max-width: 992px) {

  body {
    font-size: 17px;
  }

  nav {
    padding: 24px 4%;
  }

  .logo {
    font-size: 24px;
  }

  nav ul {
    gap: 24px;
  }

  .hero {
    min-height: 700px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero p {
    font-size: 21px;
  }

  .hero-info {
    gap: 35px;
  }

  .hero-info strong {
    font-size: 30px;
  }

  .section {
    padding: 85px 0;
  }

  .section h2 {
    font-size: 38px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .layout {
    grid-template-columns: 1fr;
  }

}


/* ----------------------------------------------------------
   MOBILNÍ NAVIGACE
---------------------------------------------------------- */

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  z-index: 120;
}

.menu-toggle span {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 10px;
  transition:
    transform .3s ease,
    opacity .3s ease,
    top .3s ease;
}

.menu-toggle span:nth-child(1) {
  top: 14px;
}

.menu-toggle span:nth-child(2) {
  top: 21px;
}

.menu-toggle span:nth-child(3) {
  top: 28px;
}

.menu-toggle.active span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}


/* ----------------------------------------------------------
   MOBILY
---------------------------------------------------------- */

@media (max-width: 768px) {

  html {
    scroll-padding-top: 80px;
  }

  body {
    font-size: 16px;
    padding-bottom: 78px;
    overflow-x: hidden;
  }

  .container {
    width: min(90%, var(--container));
  }

  nav {
    position: absolute;
    padding: 20px 5%;
  }

  .logo {
    font-size: 22px;
    position: relative;
    z-index: 120;
  }

  .menu-toggle {
    display: block;
  }

  nav ul {
    position: fixed;
    inset: 0;
    min-height: 100dvh;
    padding: 110px 8% 50px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    background: rgba(24, 49, 38, .98);
    transform: translateX(100%);
    transition: transform .38s ease;
    z-index: 110;
  }

  nav ul.active {
    transform: translateX(0);
  }

  nav li {
    width: 100%;
    font-size: 22px;
    font-weight: 600;
    opacity: 1;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }

  nav li a {
    display: block;
    width: 100%;
    padding: 17px 0;
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero {
    height: 100svh;
    min-height: 640px;
    padding: 110px 0 90px;
    background-position: 62% center;
  }

  .overlay {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, .42),
        rgba(0, 0, 0, .58)
      );
  }

  .hero-content {
    width: 88%;
  }

  .hero h1 {
    font-size: clamp(38px, 10vw, 52px);
    line-height: 1.06;
    margin-bottom: 20px;
  }

  .hero p {
    font-size: 19px;
    line-height: 1.5;
    margin-bottom: 34px;
  }

  .hero-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    margin-bottom: 38px;
  }

  .hero-info div {
    padding: 14px 5px;
    border-top: 1px solid rgba(255, 255, 255, .35);
    border-bottom: 1px solid rgba(255, 255, 255, .2);
  }

  .hero-info strong {
    font-size: 25px;
    line-height: 1.2;
  }

  .hero-info span {
    margin-top: 4px;
    font-size: 13px;
  }

  .buttons {
    gap: 12px;
  }

  .btn {
    width: 100%;
    padding: 17px 24px;
    text-align: center;
  }

  .section {
    padding: 68px 0;
  }

  .section h2 {
    font-size: 32px;
    line-height: 1.15;
    margin-bottom: 26px;
  }

  .section p {
    font-size: 17px;
    line-height: 1.7;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 28px;
  }

  .card {
    padding: 30px 26px;
    border-radius: 16px;
  }

  .card:hover {
    transform: none;
  }

  .card h3 {
    font-size: 32px;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 32px;
  }

  .photo {
    border-radius: 14px;
  }

  .photo:hover {
    transform: none;
  }

  .layout {
    gap: 18px;
    margin-top: 30px;
  }

  .layout-card {
    padding: 30px 25px;
    border-radius: 16px;
  }

  .layout-card h3 {
    font-size: 25px;
  }

  .map {
    height: 360px;
    border-radius: 16px;
  }

  .contact {
    padding: 70px 0;
  }

  form {
    gap: 14px;
  }

  input,
  textarea {
    width: 100%;
    min-height: 52px;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
  }

  textarea {
    height: 160px;
  }

  button {
    min-height: 56px;
    padding: 17px;
    font-size: 17px;
  }

  footer {
    padding: 36px 20px 112px;
    font-size: 14px;
  }

}


/* ----------------------------------------------------------
   MALÉ MOBILY
---------------------------------------------------------- */

@media (max-width: 480px) {

  .hero {
    min-height: 620px;
    padding-top: 100px;
  }

  .hero-content {
    width: 90%;
  }

  .hero h1 {
    font-size: clamp(34px, 11vw, 44px);
  }

  .hero p {
    font-size: 17px;
  }

  .hero-info strong {
    font-size: 22px;
  }

  .hero-info span {
    font-size: 12px;
  }

  .section h2 {
    font-size: 29px;
  }

  .card {
    padding: 26px 22px;
  }

  .layout-card {
    padding: 26px 22px;
  }

  .map {
    height: 310px;
  }

}


/* ----------------------------------------------------------
   LANDSCAPE MOBILY
---------------------------------------------------------- */

@media (max-width: 900px) and (orientation: landscape) {

  .hero {
    height: auto;
    min-height: 100vh;
    padding: 120px 0 80px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    margin-bottom: 26px;
  }

  .hero-info {
    margin-bottom: 28px;
  }

}


/* ----------------------------------------------------------
   STICKY CTA LIŠTA PRO MOBIL
---------------------------------------------------------- */

.mobile-cta {
  display: none;
}

@media (max-width: 768px) {

  .mobile-cta {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    min-height: 70px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    padding:
      8px
      max(8px, env(safe-area-inset-right))
      calc(8px + env(safe-area-inset-bottom))
      max(8px, env(safe-area-inset-left));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 25px rgba(0, 0, 0, .08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 200;
  }

  .mobile-cta a {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
  }

  .mobile-cta-call {
    color: var(--green);
    background: #edf4f0;
  }

  .mobile-cta-visit {
    color: #fff;
    background: var(--green);
  }

}


/* ----------------------------------------------------------
   IPHONE / SAFE AREA
---------------------------------------------------------- */

@supports (padding: max(0px)) {

  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

}


/* ----------------------------------------------------------
   OMEZENÍ ANIMACÍ DLE NASTAVENÍ UŽIVATELE
---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }

}


/* ----------------------------------------------------------
   DOTYKOVÁ ZAŘÍZENÍ
---------------------------------------------------------- */

@media (hover: none) {

  .card:hover,
  .photo:hover,
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }

}


/* ----------------------------------------------------------
   VELKÉ DISPLEJE
---------------------------------------------------------- */

@media (min-width: 1600px) {

  .hero h1 {
    font-size: 72px;
  }

  .hero p {
    font-size: 26px;
  }

  .section {
    padding: 130px 0;
  }

}


/* ---------------- FINAL PROJECT ADDITIONS ---------------- */

@media (max-width: 992px) {
  .location-box {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .location-panel {
    padding: 30px 25px;
    border-radius: 16px;
  }

  .map,
  .map iframe {
    min-height: 360px;
  }
}


@media (max-width: 768px) {
  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 34px;
  }

  .benefits-grid > div {
    padding: 16px 18px;
  }
}
