/*
@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: #1a1a2e;
  --bg: #edf2f8;;
  --accent: #2d6a4f;
  --nav-height: 60px;
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-heading: Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

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

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.navbar__links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.navbar__links a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}

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

.navbar__links a:hover { color: var(--accent); }
.navbar__links a:hover::after { width: 100%; }

/* ===== 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Í OVERLAY MENU ===== */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--accent); }

/* ===== HLAVNÍ OBSAH ===== */
main {
  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-family: var(--font-heading);
  font-size: 2.5rem;
  margin: 0 0 1rem;
}

.section p {
  font-size: 1.1rem;
  line-height: 1.7;
  opacity: 0.8;
}

.section:nth-child(even) { background: #f8f9fa; }

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

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

  .hamburger {
    display: flex;
  }

  .mobile-menu {
    display: flex;
  }

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

  .navbar {
    padding: 0 1.25rem;
  }
}