@font-face {
    font-family: "La Nord";
    src: url("/fonts/LaNord-Light.otf") format("opentype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
  }

/* ===== PROMĚNNÉ ===== */
:root {
  --text: #110ca8;
  --nav-height: 60px;
  --font-body: "La Nord", "La_Nord", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 0.03, 0.26, 1);
  --t: 700ms;
  --space: 2rem;
  --mobil-menu-bg: #29a2f5;
  --font-size-h2: 1.5rem;
  --font-size-h3: 1.3rem;
  --font-size-text: 1.3rem;
}

/* ===== RESET & ZÁKLAD ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  font-size: var(--font-size-text);
  letter-spacing: 1px;
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

main a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: opacity 0.2s;
}

main a:hover {
  font-weight: bold;
}

/* ===== GRADIENT POZADÍ ===== */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 120% at 50% 50%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, 0.4) 90%, rgba(255, 255, 255, 0.7) 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 12%, rgba(255, 255, 255, 0) 88%, rgba(255, 255, 255, 0.6) 100%),
    linear-gradient(180deg, #4a7bff 0%, #6ea1ff 28%, #8ec7ff 52%, #8fdcf5 70%, #6fd9c8 86%, #47c49a 100%);
}

.bg-rect {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  will-change: top, opacity, background-color;
  transition: top 2.5s var(--ease), opacity 2.5s var(--ease), background-color 2.5s var(--ease);
  opacity: 0;
}

.rect1 {
  width: 1400px;
  height: 900px;
  filter: blur(150px);
  top: 25%;
  opacity: 0.9;
  background: rgba(30, 41, 59, 0.95);
}

.rect2 {
  width: 1300px;
  height: 800px;
  filter: blur(140px);
  top: 30%;
  opacity: 0.85;
  background: rgba(51, 65, 85, 0.9);
}

.rect3 {
  width: 1200px;
  height: 700px;
  filter: blur(130px);
  top: 35%;
  opacity: 0.8;
  background: rgba(71, 85, 105, 0.85);
}

/* ===== NAVIGACE ===== */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 2rem;
  z-index: 1000;
}

.navbar__menu {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space);
}

.navbar__links {
  display: flex;
  gap: var(--space);
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar__links a {
  text-decoration: none;
  color: var(--text);
  position: relative;
  transition: opacity 0.2s;
}

.navbar__links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text);
  transition: width 0.25s ease;
}

.navbar__links a:hover { font-weight: bold; }
.navbar__links a:hover::after { width: 100%; }

.navbar__socials {
  display: none;
  /*display: flex;*/
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.icon-link { display: inline-flex; transition: opacity var(--t) var(--ease); }
.icon-link img { display: block; width: 24px; height: 24px; }
.icon-link:hover { opacity: 0.7; }

/* ===== HAMBURGER TLAČÍTKO ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

/* Animace hamburger → X */
.hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
  opacity: 0;
}
.hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== MOBILNÍ BACKDROP ===== */
.mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mobile-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ===== MOBILNÍ SLIDE-IN MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 80%;
  max-width: 320px;
  background: var(--mobil-menu-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1050;
  flex-direction: column;
  align-items: flex-start;
  padding: calc(var(--nav-height) + 2rem) 2rem 2rem;
  gap: var(--space);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 0.03, 0.26, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.3);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  color: var(--text);
  font-size: var(--font-size-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.mobile-menu__close:hover {
  opacity: 1;
}

.mobile-menu > a {
  text-decoration: none;
  color: var(--text);
  font-size: var(--font-size-text);
  font-weight: 600;
  transition: opacity 0.2s;
}

.mobile-menu > a:hover { opacity: 0.7; }

.mobile-menu__socials {
  display: flex;
  gap: var(--space);
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-menu__socials .icon-link img {
  width: 28px;
  height: 28px;
}

/* ===== HLAVNÍ OBSAH ===== */
h3 {
  margin-top: 1em;
  font-size: var(--font-size-h3);
  font-weight: bold;
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
  margin-top: var(--nav-height);
}

.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
}

.section__inner {
  max-width: 800px;
  width: 100%;
}

.section h2 {
  font-size: var(--font-size-h2);
  letter-spacing: 2px;
  margin: 0 0 1rem;
}

.section p {
  font-size: var(--font-size-text);
  line-height: 1.4;
  font-weight: normal;
}

/* Kontaktní údaje pod textem */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space);
  flex-wrap: wrap;
}

/* ==== LOGO ==== */
.hero-logo {
  position: absolute;
  top: 140px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: 324px;
  max-width: 60%;
  height: auto;
  display: block;
}
.hero {
  position: absolute;
  top: 310px;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  width: min(808px, calc(100% - 80px));
  text-align: center;
}

/* ===== CTA TLAČÍTKO ===== */
.cta-wipe {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 8px;
  border: 2px solid var(--text);
  background: rgba(0, 0, 0, 0.2);
  text-decoration: none;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  transition: color 0.35s var(--ease);
}

.cta-wipe::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  transform: translateX(-101%);
  transition: transform 0.35s var(--ease);
  z-index: 0;
}

.cta-wipe:hover {
  color: var(--text);
}

.cta-wipe:hover::before {
  transform: translateX(0);
}

.cta-wipe span {
  position: relative;
  z-index: 1;
}

.big-text {
  font-size: 3.0rem;
}

.img-foto {
  display: block;
  width: stretch;
  max-width: 400px;
  border-radius: 10px;
}

/* ===== PATIČKA ===== */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem;
  font-size: 0.85rem;
  opacity: 0.5;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   RESPONZIVNÍ BREAKPOINT — 540px
   ======================================== */
@media (max-width: 540px) {
  .navbar__menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

  .mobile-backdrop {
    display: block;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .navbar {
    padding: 0 1.25rem;
  }

  .big-text {
    font-size: 2.0rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bg-rect { transition: none; }
}
