/* ==========================================================================
   layout.css — navbar, hero, sekcje, footer
   ========================================================================== */

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 96px;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 100%;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  flex: 1;
  justify-content: center;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--t-fast);
  position: relative;
  padding: 4px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent-yellow);
  transition: width var(--t-base);
}
.nav-link:hover { color: var(--text-primary); }
.nav-link:hover::after { width: 100%; }
.navbar-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  transition: background var(--t-fast);
}
.nav-toggle:hover { background: var(--bg-card-hover); }
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--t-base);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, 88vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-primary);
  /* Fallback tła: ciemna tekstura + żółty akcent, gdy video/poster się nie załaduje */
  background-image:
    radial-gradient(ellipse at 70% 50%, rgba(245, 180, 0, 0.12) 0%, transparent 60%),
    linear-gradient(135deg, #0a0a0a 0%, #050505 50%, #0a0800 100%);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  /* Domyślnie widoczne — działa nawet gdy JS nie doda klasy (file://, blokady autoplay) */
  opacity: 1;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(5,5,5,0.85) 0%, rgba(5,5,5,0.55) 50%, rgba(5,5,5,0.4) 100%),
    linear-gradient(180deg, rgba(5,5,5,0.2) 0%, rgba(5,5,5,0.6) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 64px;
  padding-bottom: 64px;
}
.hero-text { max-width: 720px; }
.hero-title {
  font-size: var(--fs-h1);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 560px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 44px;
  border: 2px solid var(--text-secondary);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
  z-index: 2;
  opacity: 0.7;
  transition: opacity var(--t-fast);
}
.scroll-cue:hover { opacity: 1; }
.scroll-cue span {
  width: 4px;
  height: 8px;
  background: var(--accent-yellow);
  border-radius: 2px;
  animation: scrollCue 1.5s ease-in-out infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ---------- Wartości (4 karty) ---------- */
.values-section { background: var(--bg-secondary); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  transition: all var(--t-base);
}
.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-yellow);
  box-shadow: var(--shadow-card);
}
.value-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(245, 180, 0, 0.1);
  color: var(--accent-yellow);
  margin-bottom: 20px;
}
.value-icon svg { width: 28px; height: 28px; }
.value-title { font-size: 18px; margin-bottom: 8px; font-weight: 600; }
.value-desc { color: var(--text-secondary); font-size: 14px; line-height: 1.55; }

/* ---------- Pakiety (3 karty) ---------- */
.packages-section { background: var(--bg-primary); }
.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--t-base);
}
.package-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.package-card-featured {
  border: 2px solid var(--accent-yellow);
  background: linear-gradient(180deg, rgba(245, 180, 0, 0.04) 0%, var(--bg-card) 30%);
  box-shadow: 0 8px 32px rgba(245, 180, 0, 0.1);
}
.package-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-yellow);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 100px;
  white-space: nowrap;
}
.package-head { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-subtle); }
.package-name { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.package-card-featured .package-name { color: var(--accent-yellow); }
.package-duration { color: var(--text-secondary); font-size: 14px; }

.package-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}
.package-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.4;
}
.package-features li .check-icon { margin-top: 2px; }

.package-price-block {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 20px;
}
.package-price-from { color: var(--text-secondary); font-size: 14px; }
.package-price {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent-yellow);
  letter-spacing: -0.02em;
}

/* ---------- Rezerwacja (3 kolumny) ---------- */
.booking-section { background: var(--bg-secondary); }
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr 0.9fr;
  gap: 20px;
  align-items: start;
}

/* ---------- Galeria ---------- */
.gallery-section { background: var(--bg-primary); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.4));
  opacity: 0;
  transition: opacity var(--t-base);
  pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; }

/* ---------- SEO content (2 kolumny) ---------- */
.seo-section { background: var(--bg-secondary); }
.seo-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 56px;
  align-items: center;
}
.seo-text .section-title { text-align: left; margin-bottom: 20px; }
.seo-lead {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}
.seo-list { display: flex; flex-direction: column; gap: 12px; }
.seo-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.5;
}
.seo-list li .check-icon { margin-top: 4px; }
.seo-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border-subtle);
}
.seo-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Opinie ---------- */
.reviews-section { background: var(--bg-primary); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--t-base);
}
.review-card:hover { border-color: var(--border-strong); }
.review-stars { display: flex; gap: 2px; color: var(--accent-yellow); margin-bottom: 16px; }
.review-stars svg { width: 16px; height: 16px; }
.review-text {
  color: var(--text-primary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.review-author { display: flex; flex-direction: column; gap: 2px; }
.review-author strong { color: var(--text-primary); font-size: 15px; }
.review-author span { color: var(--text-secondary); font-size: 13px; }

/* ---------- FAQ ---------- */
.faq-section { background: var(--bg-secondary); }
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--t-fast);
}
.faq-item[open] { border-color: var(--accent-yellow); }
.faq-q {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  color: var(--accent-yellow);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-base);
}
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { padding: 0 24px 20px; color: var(--text-secondary); line-height: 1.6; font-size: 15px; }
.faq-a > * + * { margin-top: 10px; }
.faq-a ul { margin-top: 6px; padding-left: 22px; list-style: disc; }
.faq-a ul li { margin-bottom: 4px; }
.faq-a ul li::marker { color: var(--accent-yellow); }
.faq-a strong { color: var(--text-primary); font-weight: 600; }
.faq-a a { color: var(--accent-yellow); text-decoration: underline; text-underline-offset: 3px; }
.faq-a a:hover { text-decoration: none; }
.faq-item:focus-within { border-color: var(--accent-yellow); }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  padding: 100px 0;
  overflow: hidden;
  isolation: isolate;
}
.final-cta-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse at center, rgba(5,5,5,0.45) 0%, rgba(5,5,5,0.7) 100%),
    url("../assets/images/10.jpg") center/cover no-repeat;
}
.final-cta-inner {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.final-cta-title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.final-cta-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-col { display: flex; flex-direction: column; }
.footer-brand-col .brand { margin-bottom: 16px; }
.footer-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}
.footer-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer-links, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--accent-yellow); }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
}
.footer-contact .icon { width: 16px; height: 16px; color: var(--accent-yellow); margin-top: 2px; }
.footer-contact a:hover { color: var(--accent-yellow); }

.socials { display: flex; gap: 12px; }
.social {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  transition: all var(--t-fast);
}
.social svg { width: 18px; height: 18px; }
.social:hover {
  color: var(--accent-yellow);
  border-color: var(--accent-yellow);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--text-muted); transition: color var(--t-fast); }
.footer-legal a:hover { color: var(--accent-yellow); }
