/* ============================================================
   SkyElite — Soukromé lety
   Statická rekonstrukce (React + Tailwind → čisté CSS)
   Barvy: Tailwind gray škála + brand #202A36
   ============================================================ */

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #F9FAFB;               /* bg-gray-50 */
  color: #111827;                            /* text-gray-900 */
  min-height: 100vh;                         /* min-h-screen */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* ---------- Hero (relative, h-screen, overflow-hidden) ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background-color: #E5E7EB;                 /* fallback než se načte video */
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;                         /* object-cover */
}

/* Content wrapper: relative, h-full, flex flex-col */
.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* ---------- Navigace ---------- */
.nav {
  animation: navFade 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.nav-inner {
  position: relative;
  width: 100%;
  max-width: 80rem;                          /* max-w-7xl */
  margin: 0 auto;
  padding: 1.5rem 2rem;                      /* px-8 py-6 */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-size: 1.5rem;                         /* text-2xl */
  line-height: 2rem;
  font-weight: 600;                          /* font-semibold */
  color: #111827;                            /* text-gray-900 */
  letter-spacing: -0.01em;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand:hover {
  color: #374151;
}

.nav-links {
  display: none;                             /* hidden */
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: #111827;                            /* text-gray-900 */
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);  /* transition-colors */
}

.nav-links a:hover {
  color: #374151;                            /* hover:text-gray-700 */
}

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  color: #111827;
  border-radius: 0.5rem;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-toggle:hover {
  color: #374151;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}

.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

/* Mobilní dropdown: white/95, backdrop blur, rounded, shadow */
.mobile-menu {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 2rem;
  right: 2rem;
  z-index: 20;
  background-color: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -4px rgba(0, 0, 0, 0.10);
  padding: 0.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu a {
  display: block;
  padding: 0.625rem 0;
  color: #111827;
  font-weight: 500;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu a:hover {
  color: #374151;
}

.mobile-menu a + a {
  border-top: 1px solid rgba(17, 24, 39, 0.06);
}

/* ---------- Hlavní obsah (flex-1, items-center, justify-center) ---------- */
.hero-main {
  flex: 1 1 0%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
}

.hero-inner {
  text-align: center;
  margin-top: -10rem;                        /* mobil: mírnější vytažení nahoru */
}

.hero-label {
  font-size: 0.875rem;                       /* text-sm */
  line-height: 1.25rem;
  font-weight: 600;                          /* font-semibold */
  color: #4B5563;                            /* text-gray-600 */
  letter-spacing: 0.05em;                    /* tracking-wider */
  text-transform: uppercase;
  margin-bottom: 1rem;                       /* mb-4 */
}

/* Dvouřádkový nadpis s překryvem */
.hero-heading {
  font-size: 3.75rem;                        /* text-6xl */
  font-weight: 400;                          /* font-normal */
  line-height: 1;                            /* leading-none */
  letter-spacing: -0.05em;                   /* tracking-tighter */
}

.hero-heading .line-1 {
  display: block;
  color: #6B7280;                            /* text-gray-500 */
}

.hero-heading .line-2 {
  display: block;
  color: #202A36;
  margin-top: -12px;                         /* překryv řádků */
}

.hero-subtitle {
  font-size: 1.125rem;                       /* text-lg */
  line-height: 1.75rem;
  color: #4B5563;                            /* text-gray-600 */
  max-width: 42rem;                          /* max-w-2xl */
  margin: 1.5rem auto 1.5rem;                /* mb-6 */
}

/* ---------- CTA tlačítka ---------- */
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;                                 /* gap-4 */
}

.btn {
  padding: 0.5rem 1rem;                      /* px-4 py-2 */
  border-radius: 9999px;                     /* rounded-full */
  font-weight: 500;                          /* font-medium */
  font-size: 1rem;
  line-height: 1.5rem;
  transition: background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-secondary {
  background-color: #D1D5DB;                 /* bg-gray-300 */
  color: #1F2937;                            /* text-gray-800 */
}

.btn-secondary:hover {
  background-color: #9CA3AF;                 /* hover:bg-gray-400 */
}

.btn-primary {
  background-color: #202A36;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #1A2229;
}

/* ---------- Patička hero s kreditem ---------- */
.hero-footer {
  display: flex;
  justify-content: center;
  padding: 0 2rem 1.25rem;
}

.demo-credit {
  font-size: 0.75rem;
  line-height: 1rem;
  color: #374151;
  background-color: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  transition: color 0.15s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.demo-credit:hover {
  color: #111827;
  background-color: rgba(255, 255, 255, 0.9);
}

/* ---------- Toast (ukázkové CTA) ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  z-index: 50;
  transform: translate(-50%, 12px);
  background-color: #202A36;
  color: #FFFFFF;
  font-size: 0.875rem;
  line-height: 1.25rem;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2), 0 4px 6px -4px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: calc(100vw - 2rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Vstupní animace ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-1 { animation-delay: 0.20s; }
.reveal-2 { animation-delay: 0.32s; }
.reveal-3 { animation-delay: 0.46s; }
.reveal-4 { animation-delay: 0.60s; }
.reveal-5 { animation-delay: 0.85s; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes navFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav,
  .reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .mobile-menu,
  .toast,
  .btn,
  .brand,
  .nav-links a,
  .demo-credit {
    transition: none !important;
  }
}

/* ---------- Breakpoint md (768px) ---------- */
@media (min-width: 768px) {
  .nav-links {
    display: flex;                           /* md:flex */
  }

  .nav-toggle,
  .mobile-menu {
    display: none;                           /* hamburger jen na mobilu */
  }

  .hero-inner {
    margin-top: -20rem;                      /* -mt-80 */
  }

  .hero-heading {
    font-size: 4.5rem;                       /* md:text-7xl */
  }

  .hero-subtitle {
    font-size: 1.25rem;                      /* md:text-xl */
    line-height: 1.75rem;
  }
}

/* ---------- Breakpoint lg (1024px) ---------- */
@media (min-width: 1024px) {
  .hero-heading {
    font-size: 6rem;                         /* lg:text-8xl */
  }
}

/* Pojistka pro velmi nízké viewporty (landscape mobil) */
@media (max-height: 560px) {
  .hero-inner {
    margin-top: -3rem;
  }
}
