/* ============================================================
   Lucie & Jakub – Wedding Website
   ============================================================ */

:root {
  --cream:   #FAF7F2;
  --beige:   #F0E8DC;
  --sand:    #E5D5C0;
  --gold:    #C4914F;
  --brown:   #8B6344;
  --dark:    #2C1D14;
  --text:    #4A3528;
  --muted:   #8C7060;
  --border:  #E0CEB8;
  --white:   #FFFFFF;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Jost', system-ui, sans-serif;

  --ease: 0.3s ease;
  --r:    3px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}
img  { display: block; max-width: 100%; height: auto; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
address { font-style: normal; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }

/* ── Layout helpers ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}
.container--narrow { max-width: 740px; }

/* ── Nav overlay (mobile) ── */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(44, 29, 20, .45);
  z-index: 130;
  opacity: 0;
  transition: opacity var(--ease);
}
.nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 13px 34px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  border-radius: var(--r);
  transition: background var(--ease), color var(--ease), border-color var(--ease);
}
.btn--primary {
  background: var(--gold);
  color: var(--white);
  border: 1.5px solid var(--gold);
}
.btn--primary:hover { background: var(--brown); border-color: var(--brown); }

.btn--outline {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--dark);
}
.btn--outline:hover { background: var(--dark); color: var(--white); }

.btn--sm { padding: 9px 22px; font-size: 0.7rem; }


/* ══════════════════════════════════
   NAV
══════════════════════════════════ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 44px;
  background: var(--cream);
  box-shadow: 0 1px 20px rgba(44,29,20,.06);
  transition: padding var(--ease), box-shadow var(--ease);
}
.nav.scrolled {
  padding: 13px 44px;
  box-shadow: 0 1px 28px rgba(44,29,20,.10);
}
.nav__logo {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
  color: var(--dark);
  letter-spacing: .06em;
}
.nav__links {
  display: flex;
  gap: 36px;
}
.nav__links a {
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color var(--ease);
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--ease);
}
.nav__links a:hover           { color: var(--gold); }
.nav__links a:hover::after    { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px 0;
}
.nav__toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--dark);
  transition: transform var(--ease), opacity var(--ease);
}

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 130px 56px 90px;
  background: var(--cream);
  position: relative;
  z-index: 2;
}
.hero__eyebrow {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.hero__names {
  font-size: clamp(52px, 6.5vw, 92px);
  font-weight: 300;
  font-style: italic;
  color: var(--dark);
  line-height: 1.0;
  margin-bottom: 22px;
}
.hero__amp {
  display: block;
  color: var(--gold);
  font-size: .62em;
  font-style: normal;
  margin: 4px 0;
}
.hero__dateline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.hero__orn  { color: var(--gold); }
.hero__date {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: .07em;
}
.hero__location {
  font-size: .78rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 38px;
}

/* Countdown */
.countdown {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  margin-bottom: 44px;
}
.cd-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}
.cd-num {
  font-family: var(--serif);
  font-size: clamp(28px, 3.6vw, 52px);
  font-weight: 300;
  color: var(--dark);
  line-height: 1;
}
.cd-lbl {
  font-size: .6rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}
.cd-sep {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1.55;
  padding: 0 2px;
  margin-bottom: 14px;
}

/* Photos */
.hero__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100vh;
}
.hero__photo {
  overflow: hidden;
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .9s ease;
}
.hero__photo:hover img { transform: scale(1.04); }
.hero__photo--offset img { object-position: center 20%; }

/* Scroll šipka */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 25%;
  transform: translateX(-50%);
  z-index: 10;
  color: var(--dark);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  animation: bounce 2.2s ease-in-out infinite;
}
.hero__scroll svg {
  width: 22px; height: 22px;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(9px); }
}


/* ══════════════════════════════════
   SECTIONS – shared
══════════════════════════════════ */
.section        { padding: 104px 0; }
.section--alt   { background: var(--beige); }
.section--dark  { background: var(--dark); color: var(--cream); }

.section-head { text-align: center; margin-bottom: 68px; }
.section-head--light .eyebrow,
.section-head--light .section-title,
.section-head--light .section-desc { color: var(--cream); }
.section-head--light .eyebrow      { opacity: .55; }

.eyebrow {
  display: block;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(30px, 3.8vw, 50px);
  font-style: italic;
  color: var(--dark);
}
.section--dark .section-title { color: var(--cream); }
.section-desc {
  margin-top: 14px;
  font-size: .95rem;
  color: var(--muted);
  max-width: 460px;
  margin-left: auto; margin-right: auto;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }


/* ══════════════════════════════════
   TIMELINE
══════════════════════════════════ */
.timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
}

.tl-item {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  align-items: center;
  gap: 0 28px;
  margin-bottom: 52px;
}
.tl-item:last-child { margin-bottom: 0; }

/* Odd: time left, content right */
.tl-item:nth-child(odd) .tl-time    { grid-column: 1; text-align: right; }
.tl-item:nth-child(odd) .tl-dot     { grid-column: 2; }
.tl-item:nth-child(odd) .tl-body    { grid-column: 3; text-align: left; }

/* Even: content left, time right */
.tl-item:nth-child(even) .tl-body   { grid-column: 1; text-align: right; }
.tl-item:nth-child(even) .tl-dot    { grid-column: 2; }
.tl-item:nth-child(even) .tl-time   { grid-column: 3; text-align: left; }

.tl-time {
  font-family: var(--serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--gold);
  letter-spacing: .04em;
}
.tl-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--sand);
  border: 2px solid var(--gold);
  justify-self: center;
  position: relative; z-index: 1;
}
.tl-dot--main {
  width: 18px; height: 18px;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 5px rgba(196,145,79,.18);
}
.tl-body h3 {
  font-size: 1.12rem;
  color: var(--dark);
  margin-bottom: 3px;
}
.tl-body p {
  font-size: .87rem;
  color: var(--muted);
  line-height: 1.55;
}


/* ══════════════════════════════════
   PLACES
══════════════════════════════════ */
.places {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.places__arrow {
  flex-shrink: 0;
  color: var(--gold);
  width: 48px;
}
.places__arrow svg { width: 48px; }

.place-card {
  flex: 1;
  max-width: 400px;
  padding: 52px 44px;
  text-align: center;
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: box-shadow var(--ease);
}
.place-card:hover { box-shadow: 0 10px 40px rgba(44,29,20,.08); }
.place-card--accent {
  border-color: var(--gold);
  background: linear-gradient(145deg, #FEF9F3 0%, #F7ECD8 100%);
}
.place-card__num {
  font-family: var(--serif);
  font-size: .78rem;
  letter-spacing: .18em;
  color: var(--gold);
  margin-bottom: 18px;
}
.place-card__icon {
  width: 48px; height: 48px;
  margin: 0 auto 18px;
  color: var(--brown);
}
.place-card__icon svg { width: 48px; height: 48px; }
.place-card h3 {
  font-size: 1.55rem;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 4px;
}
.place-card__sub {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.place-card address {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.85;
  margin-bottom: 26px;
}


/* ══════════════════════════════════
   FORM
══════════════════════════════════ */
.info-box {
  background: var(--white);
  border-left: 3px solid var(--gold);
  padding: 20px 26px;
  margin-bottom: 36px;
  font-size: .95rem;
}

.form {
  padding: 48px 52px;
  border: 1.5px solid var(--border);
  background: var(--white);
}
.form--dark {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
}
.form__title {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 28px;
}
.form--dark .form__title { color: var(--cream); }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form__group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form__group label {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.form--dark .form__group label { color: rgba(250,247,242,.55); }

.form__group input,
.form__group select {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  background: transparent;
  font-family: var(--sans);
  font-size: .94rem;
  color: var(--dark);
  border-radius: var(--r);
  transition: border-color var(--ease);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form__group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238C7060' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.form--dark .form__group input {
  border-color: rgba(255,255,255,.15);
  color: var(--cream);
}
.form--dark .form__group input::placeholder { color: rgba(250,247,242,.35); }
.form__group input:focus,
.form__group select:focus { border-color: var(--gold); }

.form__note {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 12px;
}
.form-success {
  display: none;
  text-align: center;
  padding: 48px 20px;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-style: italic;
  color: var(--gold);
}
.form-success--light { color: rgba(250,247,242,.85); }


/* ══════════════════════════════════
   CHECKBOX GRID (Anketa)
══════════════════════════════════ */
.check-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.check-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 10px;
  border: 1.5px solid rgba(255,255,255,.12);
  cursor: pointer;
  transition: all var(--ease);
  user-select: none;
  border-radius: var(--r);
}
.check-card input { display: none; }
.check-card:hover {
  border-color: var(--gold);
  background: rgba(196,145,79,.07);
}
.check-card:has(input:checked) {
  border-color: var(--gold);
  background: rgba(196,145,79,.18);
}
.check-card__icon { font-size: 1.9rem; }
.check-card__lbl  {
  font-size: .7rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(250,247,242,.7);
  text-align: center;
}
.check-card:has(input:checked) .check-card__lbl { color: var(--gold); }


/* ══════════════════════════════════
   DRESS CODE
══════════════════════════════════ */
.dresscode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.dresscode .eyebrow { margin-bottom: 10px; }
.dresscode .section-title { margin-bottom: 6px; }
.dresscode__sub {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 18px;
}
.dresscode__text p { color: var(--text); margin-bottom: 10px; font-size: .95rem; }
.dresscode__hint {
  font-size: .73rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.dresscode__palette {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 20px;
}
.swatch {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--c);
  cursor: default;
  position: relative;
  transition: transform var(--ease);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
}
.swatch:hover { transform: scale(1.12); }
.swatch::after {
  content: attr(data-name);
  position: absolute;
  bottom: -24px; left: 50%;
  transform: translateX(-50%);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--ease);
  pointer-events: none;
}
.swatch:hover::after { opacity: 1; }


/* ══════════════════════════════════
   GIFTS
══════════════════════════════════ */
.gifts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.gift-card {
  padding: 44px 40px;
  border: 1.5px solid var(--border);
  background: var(--white);
  text-align: center;
  transition: box-shadow var(--ease);
}
.gift-card:hover { box-shadow: 0 8px 32px rgba(44,29,20,.07); }
.gift-card__icon { font-size: 2.4rem; margin-bottom: 18px; }
.gift-card h3    {
  font-size: 1.4rem;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 12px;
}
.gift-card p { font-size: .9rem; color: var(--muted); line-height: 1.75; }


/* ══════════════════════════════════
   INFO COLUMNS (Děti & Doprava)
══════════════════════════════════ */
.info-cols {
  display: flex;
  align-items: flex-start;
  max-width: 820px;
  margin: 0 auto;
}
.info-col {
  flex: 1;
  padding: 32px 48px;
  text-align: center;
}
.info-col__icon {
  width: 48px; height: 48px;
  margin: 0 auto 20px;
  color: var(--brown);
}
.info-col__icon svg { width: 48px; height: 48px; }
.info-col h3       {
  font-size: 1.4rem;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 12px;
}
.info-col p        { font-size: .9rem; color: var(--muted); line-height: 1.75; }
.info-col__divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 16px 0;
}


/* ══════════════════════════════════
   GALLERY
══════════════════════════════════ */
.gallery {
  columns: 3;
  column-gap: 12px;
}
.gallery__item {
  break-inside: avoid;
  margin-bottom: 12px;
  overflow: hidden;
  cursor: zoom-in;
  position: relative;
  border-radius: var(--r);
}
.gallery__item::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(44,29,20,.25);
  opacity: 0;
  transition: opacity var(--ease);
}
.gallery__item:hover::after { opacity: 1; }
.gallery__item img {
  width: 100%;
  display: block;
  transition: transform .7s ease;
}
.gallery__item:hover img { transform: scale(1.05); }


/* ══════════════════════════════════
   LIGHTBOX
══════════════════════════════════ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(16,10,6,.94);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.active { opacity: 1; pointer-events: all; }

.lb-wrap { max-width: 92vw; max-height: 92vh; }
.lb-img  { max-width: 90vw; max-height: 88vh; object-fit: contain; }

.lb-close, .lb-prev, .lb-next {
  position: fixed;
  color: rgba(250,247,242,.8);
  transition: color var(--ease);
  z-index: 1001;
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--gold); }
.lb-close { top: 20px; right: 24px; font-size: 2.4rem; line-height: 1; }
.lb-prev  { left: 14px;  top: 50%; transform: translateY(-50%); font-size: 3.2rem; }
.lb-next  { right: 14px; top: 50%; transform: translateY(-50%); font-size: 3.2rem; }


/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
.footer {
  background: var(--dark);
  color: var(--cream);
  text-align: center;
  padding: 64px 20px;
}
.footer__names {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  font-style: italic;
  margin-bottom: 8px;
}
.footer__date {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer__love {
  font-size: .86rem;
  color: rgba(250,247,242,.4);
}


/* ══════════════════════════════════
   RESPONSIVE – tablet
══════════════════════════════════ */
@media (max-width: 960px) {
  .nav { padding: 18px 28px; }
  .nav.scrolled {
    padding: 12px 28px;
    /* backdrop-filter by způsoboval containing-block pro position:fixed nav__links */
    backdrop-filter: none;
    background: var(--cream);
  }

  .nav__links {
    position: fixed;
    inset: 0 0 0 auto;
    width: 270px;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform var(--ease);
    box-shadow: -4px 0 30px rgba(44,29,20,.08);
    z-index: 150;
  }
  .nav__links.open  { transform: translateX(0); }
  .nav__links a     { font-size: .9rem; }
  .nav__toggle      { display: flex; z-index: 160; position: relative; }

  .hero { grid-template-columns: 1fr; grid-template-rows: auto; min-height: auto; }
  .hero__content {
    order: 1;
    padding: 120px 36px 60px;
    align-items: center;
    text-align: center;
  }
  .hero__photos { order: 2; height: 56vw; }
  .hero__scroll { left: 50%; }

  .dresscode { grid-template-columns: 1fr; gap: 44px; }
  .dresscode__palette { max-width: 340px; margin: 0 auto; }

  .places { flex-direction: column; align-items: stretch; }
  .places__arrow { transform: rotate(90deg); align-self: center; }
  .place-card { max-width: 100%; }

  .check-grid { grid-template-columns: repeat(2, 1fr); }

  .gifts { grid-template-columns: 1fr; }

  .gallery { columns: 2; }
}

/* ── mobile ── */
@media (max-width: 600px) {
  .section { padding: 72px 0; }

  .hero__content { padding: 100px 22px 52px; }
  .hero__photos  { height: 90vw; }
  .countdown { gap: 0; }
  .cd-item   { min-width: 48px; }
  .cd-num    { font-size: 26px; }

  /* Timeline – single column */
  .timeline::before { left: 16px; }
  .tl-item {
    grid-template-columns: 20px 1fr;
    gap: 0 16px;
  }
  .tl-time { display: none; }
  .tl-item:nth-child(odd) .tl-dot,
  .tl-item:nth-child(even) .tl-dot  { grid-column: 1; grid-row: 1; }
  .tl-item:nth-child(odd) .tl-body,
  .tl-item:nth-child(even) .tl-body { grid-column: 2; grid-row: 1; text-align: left !important; }

  .form      { padding: 28px 20px; }
  .form__row { grid-template-columns: 1fr; }

  .info-cols { flex-direction: column; }
  .info-col  { padding: 28px 20px; }
  .info-col__divider { width: 60px; height: 1px; align-self: center; }

  .gallery { columns: 1; }

  .place-card { padding: 36px 28px; }
  .gift-card  { padding: 32px 24px; }
}
