:root {
  --cream: #faf7f2;
  --sand: #f1ebe2;
  --ink: #3a3530;
  --muted: #7d746b;
  --accent: #a8845c; /* tylko ozdoby (kreski, obramowania) - jako tekst ma za słaby kontrast */
  --accent-dark: #8a6a45;
  --accent-text: #7d5f3a; /* złoty tekst: min. 4,5:1 na białym i piaskowym tle */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Lato", system-ui, -apple-system, sans-serif;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.05rem;
  line-height: 1.7;
}

h1, h2, h3, .navbar-brand, .signature, .footer-names {
  font-family: var(--serif);
  font-weight: 600;
}

img { max-width: 100%; }

/* --- Nawigacja --- */
.site-nav {
  background: rgba(250, 247, 242, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.site-nav .navbar-brand { font-size: 1.8rem; color: var(--ink); }
.site-nav .nav-link {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--ink);
  padding: 0.6rem 1rem !important;
}
.site-nav .nav-link { position: relative; white-space: nowrap; }
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: var(--accent-dark); }
@media (min-width: 992px) {
  /* kreski między zakładkami i podkreślenie aktywnej - od razu widać, gdzie kończy się pozycja */
  .site-nav .nav-item + .nav-item .nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    height: 14px;
    margin-top: -7px;
    border-left: 1px solid rgba(58, 53, 48, 0.2);
  }
  .site-nav .nav-link.active::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.2rem;
    height: 2px;
    background: var(--accent);
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background-size: cover;
  background-position: center;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 24, 18, 0.45);
}
.hero-inner { position: relative; padding: 0 1rem; }
.hero-full { min-height: 100vh; min-height: 100svh; }
.hero-page { min-height: 55vh; padding-top: 70px; }
.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 400;
  line-height: 1.1;
  margin: 0.3rem 0 1rem;
}
.hero-title span { font-style: italic; color: #e8d5bb; }
.hero-date { letter-spacing: 0.15em; text-transform: uppercase; font-size: 0.9rem; }
.hero .eyebrow { color: #e8d5bb; }
.hero-lead { max-width: 30rem; margin: 0 auto; font-size: 1.05rem; }

/* --- Sekcje --- */
.section { padding: 5rem 0; }
.section-alt { background: var(--sand); }
.section-title { font-size: clamp(2rem, 5vw, 2.8rem); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-text);
  margin-bottom: 0.4rem;
}
.divider { width: 60px; height: 2px; background: var(--accent); margin: 1rem 0 1.5rem; }
.lead-text { font-size: 1.15rem; }
.signature { font-size: 2rem; font-style: italic; color: var(--accent-dark); }
.rounded-img { border-radius: 4px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08); }

/* --- Karty --- */
.info-card {
  background: #fff;
  padding: 2.2rem 1.8rem;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}
.info-card h3 { font-size: 1.8rem; }
.info-card p:last-child { margin-bottom: 0; }

.venue-card {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
}
.venue-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.venue-body { padding: 1.8rem; display: flex; flex-direction: column; flex: 1; }
.venue-body h3 { font-size: 1.9rem; }
.venue-body .btn { margin-top: auto; align-self: flex-start; }

.hotel-facts { list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: 0.95rem; }
.hotel-facts li { padding: 0.35rem 0; border-top: 1px solid var(--sand); }
.hotel-facts strong { font-weight: 700; }

.notice {
  background: var(--sand);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.4rem;
  border-radius: 2px;
}

/* --- Przyciski / linki --- */
.btn-wedding, .btn-outline-wedding {
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  padding: 0.75rem 1.6rem;
}
.btn-wedding { background: var(--accent-dark); color: #fff; border: 1px solid var(--accent-dark); }
.btn-wedding:hover { background: var(--accent-text); border-color: var(--accent-text); color: #fff; }
.btn-outline-wedding { color: var(--accent-dark); border: 1px solid var(--accent); }
.btn-outline-wedding:hover { background: var(--accent-dark); color: #fff; }
.link-wedding { color: var(--accent-dark); text-decoration: none; font-weight: 400; }
.link-wedding:hover { text-decoration: underline; }

/* --- Plan dnia --- */
.timeline { list-style: none; padding: 0; max-width: 560px; margin: 0 auto; }
.timeline li {
  display: flex;
  gap: 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.timeline-time {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent-dark);
  min-width: 70px;
  line-height: 1.3;
}
.timeline-label { align-self: center; }

/* --- Logowanie --- */
.login-page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-size: cover;
  background-position: center;
}
.login-card {
  background: rgba(255, 255, 255, 0.94);
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 420px;
  text-align: center;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}
.login-card .form-label { font-size: 0.9rem; }
.script-title { font-size: 2.8rem; font-weight: 400; margin-bottom: 0.2rem; }
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 0.2rem rgba(168, 132, 92, 0.2); }

/* --- Stopka --- */
.site-footer { background: var(--ink); color: #d8cfc4; padding: 2.5rem 0; font-size: 0.9rem; }
.footer-names { font-size: 1.8rem; color: #fff; margin-bottom: 0.2rem; }

/* --- Telefon --- */
@media (max-width: 767.98px) {
  .section { padding: 3.5rem 0; }
  /* duży odstęp Bootstrapa (g-5) wystawał poza ekran telefonu */
  .row.g-5 { --bs-gutter-x: 1.5rem; }
  .timeline li { gap: 1rem; }
}

/* --- Lokalizacja / Noclegi --- */
.narrow-card { max-width: 640px; }
.map-frame {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.address { font-size: 1.1rem; line-height: 1.5; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

.footer-links a { color: #d8cfc4; text-decoration: none; margin: 0 0.6rem; display: inline-block; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.contact-phone { font-size: 1.4rem; color: var(--accent-dark); text-decoration: none; font-weight: 400; }
.contact-phone:hover { text-decoration: underline; }

/* --- Strzałka "przewiń w dół" --- */
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.9;
  animation: scroll-bounce 2s ease-in-out infinite;
}
.scroll-hint:hover { opacity: 1; color: #e8d5bb; }
@keyframes scroll-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}
/* Ograniczony ruch: nic się nie zapętla (kulka disco, „kliknij mnie!”, strzałka „przewiń”),
   a jednorazowe przejścia kończą się od razu */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Prezenty --- */
.gift-swap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1rem 0;
}
.gift-swap + .gift-swap { border-top: 1px solid var(--sand); }
.gift-item { margin: 0; width: 7rem; color: var(--accent-dark); }
.gift-item svg { width: 44px; height: 44px; stroke-width: 1.25; }
.gift-item figcaption {
  margin-top: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--ink);
}
.gift-from { opacity: 0.45; }
.gift-arrow svg { width: 22px; height: 22px; stroke-width: 1.25; color: var(--accent); }

/* --- Przełącznik disco mode: świecąca, kręcąca się kula --- */
.disco-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: 0.5rem;
  border-radius: 50%;
  transition: background 0.2s;
}
.disco-toggle:hover,
.disco-toggle:focus-visible { background: var(--sand); }
.mini-ball-rig {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -8px;
  transform-origin: 50% 0;
}
.disco-toggle:hover .mini-ball-rig { animation: disco-swing 0.8s ease-in-out infinite alternate; }
.mini-ball-string { width: 1px; height: 8px; background: var(--muted); }
/* Animacje tylko przez transform/filter - działają na GPU, także przy przewijaniu */
.mini-ball {
  position: relative;
  width: 24px;
  height: 24px;
  overflow: hidden;
  border-radius: 50%;
  background: #9a9aa8;
  box-shadow: 0 0 6px #fff, 0 0 14px #ff5fc8;
  animation: mini-glow 3s linear infinite;
}
.mini-ball::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -36px;
  right: 0;
  background: repeating-linear-gradient(90deg, #f4f4f4 0 3px, #9a9aa8 3px 6px, #fff 6px 9px, #6f6f80 9px 12px, #ffd9f3 12px 15px, #c9f4ff 15px 18px);
  animation: mini-spin 1.6s linear infinite;
}
.mini-ball::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, #fff, transparent 32%),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.35) 3px 4px);
  box-shadow: inset -4px -4px 7px rgba(0, 0, 0, 0.55);
}
.disco-toggle::after {
  content: "✦";
  position: absolute;
  top: 4px;
  right: 5px;
  font-size: 10px;
  line-height: 1;
  color: #e8b94a;
  animation: mini-twinkle 1.2s ease-in-out infinite;
}
.click-me {
  position: absolute;
  top: 100%;
  right: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  pointer-events: none;
  white-space: nowrap;
  color: #fff;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
  animation: click-bob 1.2s ease-in-out infinite;
}
.click-me span { animation: click-shine 1.6s ease-in-out infinite; }
.click-me svg { width: 40px; height: 32px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6)); }
.click-me span { margin-right: 30px; }
.site-nav:has(.navbar-collapse.show, .navbar-collapse.collapsing) .click-me { display: none; }
.click-me { transition: opacity 0.3s, visibility 0.3s; }
.site-nav.scrolled .click-me { opacity: 0; visibility: hidden; }
@keyframes click-shine { 50% { opacity: 0.55; } }
@keyframes click-bob {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-4px, 5px); }
}
@keyframes mini-spin { to { transform: translateX(36px); } }
@keyframes mini-glow { to { filter: hue-rotate(360deg); } }
@keyframes mini-twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.6) rotate(0); }
  50% { opacity: 1; transform: scale(1.2) rotate(45deg); }
}
@keyframes disco-swing {
  from { transform: rotate(-14deg); }
  to { transform: rotate(14deg); }
}
@media (max-width: 767.98px) {
}
@media (max-width: 991.98px) {
  .site-nav .navbar-collapse { padding-bottom: 0.5rem; }
  .site-nav .nav-link { padding: 0.6rem 0 !important; }
  .disco-toggle { margin-right: 0.5rem; }
}

/* --- Lineup --- */
.hero-stage {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(232, 213, 187, 0.35), transparent 45%),
    radial-gradient(ellipse at 80% 0%, rgba(168, 132, 92, 0.45), transparent 50%),
    linear-gradient(#2a241e, #15110d);
}
.hero-stage::before { background: none; }
.artist-tile {
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
}
.artist-photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(160deg, #cfc2b0, #7d746b);
}
.artist-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.artist-silhouette { position: absolute; inset: 12% 12% 0; width: 76%; height: 88%; fill: rgba(255, 255, 255, 0.55); }
.artist-label {
  position: absolute;
  left: 0;
  bottom: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: calc(100% - 1.2rem);
}
.artist-name, .artist-sub {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  background: var(--ink);
  line-height: 1.2;
}
.artist-name { padding: 0.35rem 0.8rem; font-size: clamp(1.2rem, 2.4vw, 1.6rem); }
.artist-sub { padding: 0.25rem 0.8rem; font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink); background: #fff; }
.artist-text { padding: 1.3rem 1.4rem 1.6rem; }

/* --- Q&A --- */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(0, 0, 0, 0.1); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--accent-dark); }
.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.faq-item p { margin: 0 0 1.4rem; }
