/* ═══════════════════════════════════════════════════════════════
   Jola & Jurek · 60 lat i 35 lat razem
   Kierunek: „Złota godzina" — ciepły, kinowy Pixar z klasą.
   Sygnatura: złoto + koral (koralowa rocznica) + granat wieczoru.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ivory:      #F7F1E4;
  --ivory-2:    #F1E7D3;
  --paper:      #FBF6EC;
  --gold:       #C79A4B;
  --gold-lt:    #E7C77A;
  --gold-dp:    #9A7433;
  --coral:      #E0674A;
  --coral-dp:   #C24E33;
  --navy:       #1E2A3A;
  --navy-2:     #16202D;
  --ink:        #2A211A;
  --ink-soft:   #6B5C4B;
  --line:       rgba(42, 33, 26, .14);

  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --gold-foil: linear-gradient(135deg, #E7C77A 0%, #C79A4B 38%, #9A7433 55%, #E7C77A 100%);
  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; max-width: 100vw; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

section, header, footer { overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 3px; }

/* ─── layout ─── */
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(22px, 6vw, 64px); }
.wrap--narrow { max-width: 720px; }

/* ─── ambient: grain + bąbelki ─── */
.grain {
  position: fixed; inset: 0; z-index: 900; pointer-events: none;
  opacity: .30; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.2  0 0 0 0 0.15  0 0 0 0 0.1  0 0 0 0.14 0'/></filter><rect width='180' height='180' filter='url(%23n)'/></svg>");
  background-size: 180px 180px;
}
.bubbles { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.bubble {
  position: absolute; bottom: -24px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255,248,225,.95), rgba(199,154,75,.35) 60%, rgba(199,154,75,0) 72%);
  box-shadow: 0 0 6px rgba(231,199,122,.5);
  animation: rise var(--dur, 14s) linear infinite; animation-delay: var(--delay, 0s);
  opacity: 0;
}
@keyframes rise {
  0%   { transform: translateY(0) translateX(0) scale(.6); opacity: 0; }
  12%  { opacity: .8; }
  70%  { opacity: .55; }
  100% { transform: translateY(-108vh) translateX(var(--drift, 20px)) scale(1); opacity: 0; }
}

/* ─── eyebrow ─── */
.eyebrow {
  font-family: var(--serif); font-optical-sizing: auto;
  font-weight: 500; font-style: italic;
  letter-spacing: .02em; font-size: 1.05rem;
  color: var(--coral-dp);
  display: flex; align-items: center; gap: .6em; margin-bottom: 1rem;
}
.eyebrow--onDark { color: var(--gold-lt); }
.tick { width: 26px; height: 1px; background: currentColor; opacity: .5; }

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  text-align: center; padding: 0 22px clamp(64px, 12vh, 120px); color: #fff;
  isolation: isolate;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,28,40,.34) 0%, rgba(20,28,40,0) 24%, rgba(20,28,40,0) 34%, rgba(17,23,33,.55) 60%, rgba(13,18,26,.82) 82%, rgba(10,14,20,.95) 100%),
    radial-gradient(120% 55% at 50% 100%, rgba(10,14,20,.55) 0%, transparent 60%);
}

.hero__inner { max-width: 760px; animation: heroIn 1.1s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero__eyebrow {
  justify-content: center; color: #fff; opacity: .92;
  font-family: var(--sans); font-style: normal; font-weight: 500;
  letter-spacing: .38em; text-transform: uppercase; font-size: .72rem; margin-bottom: 1.2rem;
}
.hero__eyebrow .tick { background: var(--gold-lt); opacity: .85; width: 30px; }

.hero__title { margin-bottom: 1.4rem; }
.hero__names {
  display: block; font-family: var(--serif); font-optical-sizing: auto;
  font-weight: 400; font-size: clamp(3rem, 13vw, 6.2rem); line-height: .98;
  letter-spacing: -.01em; text-shadow: 0 2px 30px rgba(10,14,20,.5);
}
.hero__names .amp { font-style: italic; color: var(--gold-lt); font-weight: 300; padding: 0 .06em; }

/* seal 60 · 35 */
.seal {
  display: inline-grid; grid-template-columns: 1fr auto 1fr; align-items: start;
  column-gap: clamp(.6rem, 3vw, 1.15rem);
  padding: .55rem clamp(1.1rem, 4vw, 1.8rem);
  border: 1px solid rgba(231,199,122,.6); border-radius: 999px;
  background: rgba(16,22,32,.5); backdrop-filter: blur(5px);
  box-shadow: 0 6px 26px rgba(10,14,20,.4);
}
.seal > * { justify-self: center; }
.seal__unit { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.seal__num {
  font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 8vw, 3.2rem);
  line-height: 1;
  background: var(--gold-foil); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.seal__lab {
  font-family: var(--sans); font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  font-size: .58rem; opacity: .8; white-space: nowrap;
}
.seal__mid { width: clamp(11px, 3vw, 15px); color: var(--coral); display: inline-flex; align-self: start; margin-top: clamp(.9rem, 3.4vw, 1.35rem); }
.seal__mid svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 4px rgba(224,103,74,.6)); }
.seal__labels { display: none; }

.hero .seal { margin-bottom: 1.5rem; }
.hero__meta {
  font-family: var(--serif); font-size: clamp(1rem, 3.4vw, 1.2rem); font-weight: 400;
  line-height: 1.7; opacity: .96;
}
.hero__venue { color: var(--gold-lt); border-bottom: 1px solid rgba(231,199,122,.6); padding-bottom: 1px; font-style: italic; }
.hero__venue:hover { color: #fff; }

.hero__scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgba(255,255,255,.5); border-radius: 999px;
  display: flex; justify-content: center; padding-top: 8px;
}
.hero__scroll-dot { width: 4px; height: 8px; border-radius: 4px; background: var(--gold-lt); animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0%,100%{ transform: translateY(0); opacity: .4; } 50%{ transform: translateY(10px); opacity: 1; } }

/* ═══════════════ LETTER / POWITANIE ═══════════════ */
.letter { background: var(--ivory); padding: clamp(72px, 14vh, 150px) 0; text-align: center; }
.letter__lead {
  font-family: var(--serif); font-weight: 300; font-optical-sizing: auto;
  font-size: clamp(1.7rem, 6vw, 3rem); line-height: 1.16; letter-spacing: -.01em;
  color: var(--ink); margin-bottom: 1.8rem;
}
.letter__lead em { font-style: italic; color: var(--coral-dp); }
.letter__body { max-width: 60ch; margin: 0 auto; }
.letter__body p { margin-bottom: 1.15rem; color: #46392e; font-size: 1.06rem; }
.letter__body p:last-child { margin-bottom: 0; }
.letter__body em { font-style: italic; color: var(--coral-dp); }
.letter__body strong { font-weight: 600; color: var(--ink); }
.ilink { color: var(--coral-dp); border-bottom: 1.5px solid rgba(224,103,74,.4); font-weight: 500; }
.ilink:hover { border-color: var(--coral-dp); }

.signoff { margin-top: 3rem; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.signoff__pair { display: flex; justify-content: center; }
.signoff__ph {
  width: 108px; height: 108px; border-radius: 50%; object-fit: cover;
  border: 4px solid var(--paper); box-shadow: 0 10px 26px rgba(154,116,51,.32);
  outline: 1.5px solid var(--gold); outline-offset: -1px;
}
.signoff__pair .signoff__ph:nth-child(2) { margin-left: -30px; }
.signoff__names { font-family: var(--serif); font-style: italic; font-size: 1.9rem; color: var(--ink); }

/* ═══════════════ COUNTDOWN ═══════════════ */
.count {
  background: var(--navy);
  background-image: radial-gradient(ellipse at 50% -20%, rgba(199,154,75,.22), transparent 60%);
  color: #fff; text-align: center; padding: clamp(56px, 10vh, 96px) 0;
}
.count .eyebrow { justify-content: center; }
.count__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(6px, 3vw, 26px); max-width: 560px; margin: 1.6rem auto .8rem;
}
.count__cell {
  display: flex; flex-direction: column; gap: .3rem; padding: .6rem 0;
  border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(231,199,122,.16);
}
.count__n {
  font-family: var(--serif); font-weight: 500; font-variant-numeric: tabular-nums;
  font-size: clamp(1.9rem, 8vw, 3rem); line-height: 1;
  background: var(--gold-foil); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.count__l { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255,255,255,.62); }
.count__date { font-family: var(--serif); font-style: italic; letter-spacing: .06em; font-size: 1.1rem; color: var(--gold-lt); margin-top: .6rem; }

/* ═══════════════ FEATURE (lokalizacja / prezent / nocleg) ═══════════════ */
.scene {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden; isolation: isolate; color: #fff;
  padding: clamp(36px, 7vh, 80px) 0;
}
.scene__bg { position: absolute; inset: 0; z-index: -2; }
.scene__bg img { width: 100%; height: 100%; object-fit: cover; }
.scene__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,16,24,.22) 0%, rgba(12,16,24,0) 24%, rgba(11,14,22,.5) 50%, rgba(9,12,19,.9) 78%, rgba(7,10,16,.97) 100%);
}
.scene__wrap { width: 100%; }

/* mobile: tekst wprost na gradiencie (jak hero) — para pozostaje widoczna */
.panel { max-width: 540px; padding-block: .4rem; }
.scene__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 8vw, 3.6rem); line-height: 1.02; letter-spacing: -.01em; margin-bottom: .4rem; }
.scene__title--ink { color: var(--ink); }
.scene__sub { color: var(--gold-lt); font-style: italic; font-family: var(--serif); font-size: 1.15rem; margin-bottom: 1rem; }
.scene__addr { font-size: 1.1rem; line-height: 1.5; margin-bottom: 1.5rem; color: rgba(255,255,255,.92); }
.scene__lead { font-family: var(--serif); font-size: clamp(1.3rem, 4.5vw, 1.7rem); font-weight: 300; margin-bottom: .8rem; }
.scene__lead em { font-style: italic; color: var(--gold-lt); }
.scene__text { font-size: 1.06rem; color: rgba(255,255,255,.9); margin-bottom: 1.6rem; }

/* sloty (zbiórka / nocleg) wewnątrz ciemnego panelu */
.info-lead { font-family: var(--serif); font-size: 1.3rem; margin-bottom: .5rem; color: #fff; }
.info-text { color: rgba(255,255,255,.85); font-size: 1.02rem; margin-bottom: 1.2rem; }
.info-soon {
  display: inline-flex; align-items: center; gap: .5em; font-size: .95rem; color: rgba(255,255,255,.85);
  border: 1px dashed rgba(231,199,122,.45); border-radius: 999px; padding: .5em 1em;
}
.info-soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

/* ═══════════════ BUTTONS ═══════════════ */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; font-weight: 600; font-size: .95rem;
  letter-spacing: .01em; transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s, color .3s;
  border: 1px solid transparent;
}
.btn__a { transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .btn__a { transform: translateX(3px); }
.btn--gold { background: var(--gold-foil); color: #3a2c12; box-shadow: 0 8px 22px -8px rgba(154,116,51,.7); }
.btn--gold:hover { box-shadow: 0 12px 26px -8px rgba(154,116,51,.85); }
.btn--ghost { border-color: currentColor; color: inherit; opacity: .9; }
.btn--glass { border-color: rgba(231,199,122,.5); color: var(--gold-lt); background: rgba(255,255,255,.06); }
.btn--glass:hover { background: rgba(255,255,255,.12); }
.btn--block { width: 100%; justify-content: center; padding-block: 1em; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

/* ═══════════════ RSVP ═══════════════ */
.scene--form { align-items: center; }
.card-form {
  max-width: 560px; margin: 0 auto; width: 100%;
  background: rgba(251,246,236,.97); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--ink); border-radius: 22px;
  padding: clamp(24px, 5vw, 42px);
  box-shadow: 0 30px 72px -28px rgba(0,0,0,.72); border: 1px solid rgba(231,199,122,.4);
}
.card-form .eyebrow { justify-content: flex-start; }
.rsvp__intro { color: var(--ink-soft); margin-bottom: 1.6rem; }

.form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; border: 0; }
.field label, .field legend { font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.field .opt { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--ink-soft); }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 12px; padding: .8em .9em; width: 100%;
  transition: border-color .25s, box-shadow .25s;
}
.field input:focus, .field textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,154,75,.18); outline: none; }
.field textarea { resize: vertical; min-height: 84px; }

.choice { display: flex; gap: 10px; flex-wrap: wrap; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip {
  display: inline-flex; align-items: center; gap: .5em; cursor: pointer;
  padding: .7em 1.3em; border-radius: 999px; border: 1.5px solid var(--line);
  font-weight: 600; background: var(--paper); transition: all .25s var(--ease); user-select: none;
}
.chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .4; }
.chip--yes { color: #2f6a45; }
.chip--no { color: var(--ink-soft); }
#a-yes:checked + .chip--yes { background: #2f6a45; color: #fff; border-color: #2f6a45; box-shadow: 0 6px 16px -6px rgba(47,106,69,.6); }
#a-no:checked + .chip--no { background: var(--ink-soft); color: #fff; border-color: var(--ink-soft); }
.chip:hover { transform: translateY(-1px); }
#a-yes:focus-visible + .chip, #a-no:focus-visible + .chip { outline: 2px solid var(--coral); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__note { min-height: 1.2em; font-size: .95rem; font-weight: 500; }
.form__note.is-ok { color: #2f6a45; }
.form__note.is-err { color: var(--coral-dp); }
.form.is-done { text-align: center; }

/* ═══════════════ FOOTER ═══════════════ */
.foot { background: var(--navy); color: #fff; padding: clamp(56px, 10vh, 90px) 0 3rem; text-align: center; }
.foot__inner { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.seal--sm { border-color: rgba(231,199,122,.4); background: rgba(255,255,255,.03); padding: .35rem 1rem; }
.seal--sm .seal__num { font-size: 1.5rem; }
.seal--sm .seal__mid { width: 10px; }
.foot__sign { font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; opacity: .95; }
.foot__sign em { font-style: italic; color: var(--gold-lt); font-size: 1.5rem; }
.foot__contact { display: flex; flex-direction: column; gap: .2rem; }
.foot__contact-label { font-size: .66rem; letter-spacing: .28em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: .4rem; }
.foot__contact p { font-size: 1.05rem; }
.foot__contact span { color: var(--gold-lt); font-weight: 600; margin-right: .5em; }
.foot__contact a { border-bottom: 1px solid rgba(255,255,255,.2); }
.foot__contact a:hover { border-color: var(--gold-lt); }
.foot__loc { font-size: .66rem; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.45); margin-top: .6rem; }

/* ═══════════════ DIVIDER — przerywnik między scenami ═══════════════ */
.divider {
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  padding: clamp(30px, 6vh, 60px) 0;
}
.divider::before, .divider::after { content: ""; height: 1px; width: clamp(44px, 18vw, 130px); }
.divider::before { background: linear-gradient(90deg, transparent, rgba(199,154,75,.9)); }
.divider::after  { background: linear-gradient(90deg, rgba(199,154,75,.9), transparent); }
.divider__gem { width: 13px; color: var(--coral); margin: 0 16px; display: inline-flex; }
.divider__gem svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 3px rgba(224,103,74,.55)); }

/* mobile: RSVP jako baner zdjęcia + karta pod nim (tło widoczne) */
@media (max-width: 767px) {
  .scene--form { display: block; min-height: auto; background: var(--navy); align-items: stretch; }
  .scene--form .scene__bg { position: relative; height: 42svh; }
  .scene--form .scene__scrim { background: linear-gradient(180deg, transparent 45%, rgba(9,12,19,.55)); }
  .scene--form .scene__wrap { margin-top: -36px; position: relative; padding-bottom: clamp(40px, 8vh, 64px); }
}

/* ═══════════════ REVEAL ═══════════════ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ═══════════════ DESKTOP ═══════════════ */
@media (min-width: 768px) {
  body { font-size: 18px; }
  .hero { padding-bottom: clamp(72px, 8vh, 104px); }
  .hero__names { font-size: clamp(3.6rem, 9vw, 5.6rem); }

  .scene { align-items: flex-end; }
  .scene__wrap { display: flex; }
  .scene--left .scene__wrap { justify-content: flex-start; }
  .scene--right .scene__wrap { justify-content: flex-end; }
  .scene--form .scene__wrap { justify-content: flex-end; }
  .card-form { margin: 0; }

  /* desktop: panel jako szklane pudełko z boku */
  .panel {
    background: rgba(15,21,31,.52); backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px);
    border: 1px solid rgba(231,199,122,.28); border-radius: 20px;
    padding: clamp(24px, 5vw, 40px); box-shadow: 0 26px 64px -28px rgba(0,0,0,.75);
    max-width: 480px;
  }

  /* przesunięcie kadru: para po stronie przeciwnej do panelu (twarze odsłonięte) */
  .scene--left .scene__bg img { object-position: 18% center; }
  .scene--right .scene__bg img { object-position: 82% center; }
  .scene--form .scene__bg img { object-position: 100% center; }
  .card-form { max-width: 500px; }

  /* przyciemnienie po stronie panelu */
  .scene--left .scene__scrim  { background: linear-gradient(270deg, transparent 24%, rgba(9,12,19,.84) 78%); }
  .scene--right .scene__scrim { background: linear-gradient(90deg, transparent 24%, rgba(9,12,19,.84) 78%); }
  .scene--form .scene__scrim  { background: linear-gradient(90deg, transparent 18%, rgba(9,12,19,.66) 72%); }
}

@media (min-width: 1080px) {
  .hero__bg img { object-position: 50% 30%; }
}

/* ═══════════════ REDUCED MOTION ═══════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__inner { animation: none; }
}
