:root {
  --blue-bg: #0055a5;
  --blue-dark: #003b73;
  --card-blue: #0456a9;
  --yellow: #ffd647;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  background: url("img/christmas-bg.jpg") center/cover no-repeat fixed;
  color: var(--white);
}

.page {
  min-height: 100vh;
  background: var(--blue-bg);
}

/* TOPBAR */

.topbar {
  position: relative;
  z-index: 10;
  background: var(--blue-dark);
  padding: 20px 6vw;
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible;
}

.logo-img-wrapper {
  flex-shrink: 0;
}

.logo-img {
  height: 110px;
  width: auto;
  display: block;
  margin-top: -40px;   /* wystawanie do góry */
  margin-bottom: -25px; /* wystawanie do dołu */
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 40px;      /* większe odstępy między elementami */
}

.top-nav a {
  color: white;
  font-size: 20px;       /* większa czcionka */
  font-weight: 600;      /* pogrubienie */
  text-decoration: none;
  letter-spacing: 0.5px; /* subtelny premium look */
  padding: 12px 0;       /* większy odstęp góra/dół */
  transition: 0.2s;
}

.top-nav a:hover {
  opacity: 0.8;
}

/* aktywny link w nawigacji */

.top-nav a.nav-active {
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 10px;
}

/* HERO – STRONA GŁÓWNA */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  padding: 40px 6vw 60px;
  gap: 40px;
  align-items: center;
  background: url("img/hero-bg.jpg") center/cover no-repeat;
}

.hero-title {
  font-size: 2.4rem;
  font-weight: 800;
}

.hero-sub {
  margin-top: 8px;
  font-style: italic;
}

.hero-tag {
  margin-top: 18px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hero-name {
  font-size: 1.7rem;
  font-weight: 700;
}

.btn-primary {
  display: inline-block;
  margin-top: 24px;
  background: var(--yellow);
  color: #222;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.hero-btn {
  background: #ffd647;              /* żółty jak Lubella */
  color: #222 !important;
  padding: 14px 32px;
  font-weight: 700;
  font-size: 20px;
  border-radius: 999px;             /* „pigułka” */
  display: inline-block;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45);
  opacity: 0.95;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-photo {
  width: 260px;
  height: 260px;
  border-radius: 999px;
  overflow: hidden;
  border: 4px solid var(--white);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-badge {
  background: rgba(0, 0, 0, 0.15);
  border: 2px solid var(--white);
  border-radius: 16px;
  padding: 8px 18px;
  text-align: center;
  text-transform: uppercase;
}

.badge-time {
  display: block;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--yellow);
}

.badge-text {
  font-size: 0.8rem;
}

/* OGÓLNE SEKCJE */

.section-title {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 26px;
}

.products-section,
.slider-section,
.contact-section {
  padding: 20px 6vw 60px;
}

/* PRODUKTY */

.products-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.product-card {
  width: 260px;
  background: var(--card-blue);
  border-radius: 24px;
  padding: 20px 18px 18px;
  text-align: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.product-brand {
  font-size: 0.9rem;
}

.product-name {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 4px 0 12px;
}

.product-image {
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.7);
  overflow: hidden;
  height: 190px;
  margin-bottom: 14px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-time {
  font-size: 0.9rem;
  font-weight: 600;
}

/* SLIDER */

.slider-section {
  background: var(--blue-dark);
}

.slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  padding: 20px 40px 40px;
}

.slider-track {
  overflow: hidden;
  position: relative;
}

.slide {
  display: none;
  text-align: center;
}

.slide.active {
  display: block;
}

.slide-image {
  width: 100%;
  max-height: 380px;
  border-radius: 18px;
  object-fit: cover;
}

.slide-caption {
  margin-top: 14px;
  font-size: 1rem;
  font-weight: 600;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  border: none;
  color: var(--white);
  font-size: 1.8rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
}

.slider-arrow-left {
  left: 0;
}

.slider-arrow-right {
  right: 0;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 2px solid var(--white);
  cursor: pointer;
  opacity: 0.5;
}

.dot.active {
  background: var(--white);
  opacity: 1;
}

/* STOPKA */

.footer {
  text-align: center;
  padding: 16px 6vw 20px;
  font-size: 0.8rem;
  background: var(--blue-dark);
}

/* --- ŚWIĄTECZNA SEKCJA --- */

.christmas-section {
  padding: 80px 6vw 100px;
  text-align: center;
  position: relative;
  background: url("img/christmas-bg.jpg") center/cover no-repeat fixed, var(--blue-bg);
  overflow: hidden;
}

.christmas-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 90, 0.65); /* lekkie przyciemnienie */
  z-index: 0;
}

.christmas-card {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid var(--yellow);
  border-radius: 22px;
  padding: 40px 30px;
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.25);
}

.christmas-text {
  font-size: 1.2rem;
  line-height: 1.55;
  font-weight: 400;
}

.christmas-text strong {
  font-size: 1.35rem;
  color: var(--yellow);
  text-shadow: 0 0 10px rgba(255, 215, 67, 0.7);
}

.christmas-decor {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 1.8rem;
  color: var(--yellow);
}

/* --- ŚNIEG NA CAŁEJ STRONIE --- */

.snow-container {
  pointer-events: none;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 9999;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
  animation-name: snow-fall;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes snow-fall {
  0% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(110vh);
  }
}

#snow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1000;
}

/* --- PODSTRONA PRZEPISY --- */

.recipes-page {
  background: var(--blue-bg);
}

/* Hero podstrony */

.recipes-hero {
  padding: 60px 6vw 40px;
  text-align: center;
  background: var(--blue-dark);
}

.recipes-hero-inner {
  max-width: 700px;
  margin: 0 auto;
}

.recipes-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.recipes-hero p {
  font-size: 1rem;
  opacity: 0.9;
}

.recipes-hero .btn-primary {
  margin-top: 24px;
}

/* Główna siatka przepisów */

.recipes-main {
  padding: 40px 6vw 80px;
}

.recipes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.recipe-card {
  background: #0456a9;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.recipe-image {
  height: 180px;
  overflow: hidden;
}

.recipe-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recipe-body {
  padding: 18px 18px 20px;
}

.recipe-body h2 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.recipe-meta {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.9;
  margin-bottom: 10px;
}

.recipe-desc {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-bottom: 14px;
}

.recipe-btn {
  background: var(--yellow);
  color: #222;
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
}

/* MODAL – wersja Lubella */

.recipe-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 23, 59, 0.75);
  display: none;
  justify-content: center;
  align-items: flex-start;      /* zamiast idealnego środka */
  z-index: 10050;
  padding: 30px 16px;           /* trochę odstępu od góry/dół */
  backdrop-filter: blur(4px);
  overflow-y: auto;             /* jakby modal-content był bardzo wysoki */
}

.recipe-modal.open {
  display: flex;
}

.recipe-modal-content {
  background: #003a78;               /* GŁÓWNY granat Lubelli */
  width: 100%;
  max-width: 650px;
  border-radius: 22px;
  padding: 30px;
  position: relative;
  color: #fff;                       /* białe litery */
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  animation: modalShow 0.25s ease-out;
  border: 4px solid #ffffff22;       /* delikatna biała ramka */
  max-height: calc(100vh - 80px);    /* nie wyjdzie poza ekran */
  overflow-y: auto;                  /* przewijanie środka */
}

@keyframes modalShow {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* X zamykający */

.recipe-modal-close {
  position: absolute;
  right: 18px;
  top: 10px;
  font-size: 38px;
  cursor: pointer;
  color: #fff;
  opacity: 0.8;
  transition: 0.2s;
}

.recipe-modal-close:hover {
  opacity: 1;
}

/* zdjęcie */

.recipe-modal-img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 20px;
  border: 3px solid #ffffff55;
}

/* meta / nagłówki / treść */

#modal-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 6px;
}

.modal-meta {
  color: #c8def0;            /* jasny błękit – elegancki akcent */
  font-size: 15px;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-desc {
  font-size: 17px;
  line-height: 1.55;
  color: #e9f3ff;
}

/* przyciski w modalu */

.recipe-btn-modal {
  margin-top: 20px;
  background: #ffd647;
  color: #222;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  display: inline-block;
  transition: 0.2s;
}

.recipe-btn-modal:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.modal-buttons {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.modal-btn {
  background: #ffd647;
  color: #222;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: 0.2s;
}

.modal-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* listy w modalu */

.ingredients-list li {
  margin-bottom: 6px;
  font-size: 16px;
}

.ingredients-list input {
  margin-right: 8px;
  transform: scale(1.2);
}

.steps-list li {
  margin-bottom: 10px;
  line-height: 1.45;
  font-size: 16px;
}

.modal-meta-box {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  font-size: 15px;
  opacity: 0.9;
}

/* RWD */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-left {
    order: 1;
  }

  .hero-right {
    order: 2;
  }

  .topbar {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 720px) {
  .recipes-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .top-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-name {
    font-size: 1.4rem;
  }

  .slider {
    padding: 20px 10px 30px;
  }

  .slider-arrow-left {
    left: 4px;
  }

  .slider-arrow-right {
    right: 4px;
  }

  .product-card {
    width: 100%;
    max-width: 320px;
  }
}
/* MODAL O DOMINICE */
.about-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 23, 59, 0.75);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10050;
  padding: 30px 16px;
  backdrop-filter: blur(4px);
}

.about-modal.open {
  display: flex;
}

.about-modal-content {
  background: #003a78;
  width: 100%;
  max-width: 550px;
  border-radius: 22px;
  padding: 30px;
  position: relative;
  color: #fff;
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  border: 4px solid #ffffff22;
  animation: modalShow 0.25s ease-out;
}

.about-modal-close {
  position: absolute;
  right: 18px;
  top: 10px;
  font-size: 38px;
  cursor: pointer;
  color: #fff;
  opacity: 0.8;
  transition: 0.2s;
}

.about-modal-close:hover {
  opacity: 1;
}

.about-modal-img {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 20px;
  border: 3px solid #ffffff55;
}

.about-desc {
  font-size: 1rem;
  line-height: 1.55;
  color: #e9f3ff;
}
/* --- Slider w modalu Dominiki --- */

.about-slider {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
  height: 300px;
  object-position: center 25%;
}

.about-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.about-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-slide.active {
  opacity: 1;
}

.about-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.35);
  border: none;
  color: white;
  font-size: 28px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 999px;
  z-index: 10;
}

.about-arrow.left {
  left: 10px;
}

.about-arrow.right {
  right: 10px;
}

.about-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 10px 0 20px;
}

.about-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ffffff55;
  cursor: pointer;
}

.about-dot.active {
  background: #fff;
}

/* --- MINI GRA ŚWIĄTECZNA --- */

.hidden {
  display: none !important;
}

.xmas-mini-game {
  padding: 60px 6vw;
  text-align: center;
  background: rgba(0, 40, 90, 0.5);
  border-bottom: 2px solid rgba(255,255,255,0.2);
}

.bulbs-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 25px 0;
}

.bulb {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 30%, #444, #111);
  cursor: pointer;
  border: 2px solid #888;
  transition: 0.25s ease;
  box-shadow: 0 0 0 rgba(255,255,200,0);
}

.bulb.on {
  background: radial-gradient(circle at 30% 30%, #fff7c3, #ffda55);
  border-color: #ffe27a;
  box-shadow: 0 0 12px rgba(255,240,150,0.9),
              0 0 26px rgba(255,210,90,0.7);
  transform: translateY(-3px);
}

.game-status {
  font-size: 1rem;
  margin-top: 10px;
  opacity: 0.85;
}

.xmas-mini-game.finished {
  opacity: 0.4;
  pointer-events: none;
}


