/* ── Reset & base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:   #f5ede0;
  --blush:   #d4a97a;
  --sage:    #5a7a5a;
  --charcoal:#2e2a22;
  --gold:    #7a5c38;
  --white:   #fdf8f2;
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Playfair Display', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--charcoal);
  background: var(--cream);
  font-weight: 400;
  line-height: 1.6;
  /* Přidej toto pro lepší vykreslování na mobilech */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--sage); text-decoration: none; }
a:hover { text-decoration: underline; }

h2 {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  text-align: center;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}

.section-sub {
  text-align: center;
  color: var(--sage);
  letter-spacing: 0.08em;
  font-size: 0.9rem;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.25);
}

nav ul {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  list-style: none;
  padding: 1rem 0;
}

nav a {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.2s;
}

nav a:hover { color: var(--gold); text-decoration: none; }

/* ── Hero ── */
#hero {
  min-height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.38), rgba(0,0,0,0.38)),
    url('photos/back.jpg') top center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.hero-overlay { padding: 2rem; }

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

#hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.ampersand {
  font-style: italic;
  color: var(--blush);
}

.wedding-date {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.wedding-venue {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 2.5rem;
}

/* Countdown */
#countdown {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.count-unit { text-align: center; }

.count-unit span {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 400;
  line-height: 1;
  font-variant-numeric: lining-nums tabular-nums;
}

.count-unit label {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* Button */
.btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 1px solid var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--white);
  transition: background 0.25s, color 0.25s;
}

.btn:hover {
  background: var(--white);
  color: var(--gold);
  text-decoration: none;
}

/* ── Intro ── */
#intro {
  padding: 5rem 2rem;
  background: var(--cream);
  text-align: center;
}

.intro-content {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.intro-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--charcoal);
}

.intro-content p:first-child {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  color: var(--gold);
}

/* ── Details ── */
#details {
  padding: 6rem 2rem;
  background: var(--white);
}

#details h2 { margin-bottom: 0.5rem; }

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 220px));
  justify-content: center;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
}

.detail-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(201, 169, 110, 0.3);
  background: var(--cream);
}

.detail-card .icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.detail-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--gold);
}

.detail-card p { font-size: 0.9rem; line-height: 1.8; }

.color-list {
  list-style: none;
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
  text-align: left;
}

.color-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.swatch {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  flex-shrink: 0;
}

/* ── Photos ── */
#photos {
  padding: 6rem 2rem;
  background: var(--cream);
}

.photo-grid {
  columns: 3;
  column-gap: 6px;
  max-width: 1100px;
  margin: 0 auto;
}

.photo-item {
  break-inside: avoid;
  margin-bottom: 6px;
  overflow: hidden;
  cursor: pointer;
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease, filter 0.4s ease;
  filter: brightness(0.92);
}

.photo-item:hover img {
  transform: scale(1.04);
  filter: brightness(1);
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

#lightbox.open { display: flex; }

#lb-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,0.1);
}

#lb-close, #lb-prev, #lb-next {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255,255,255,0.8);
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.5rem;
  transition: color 0.2s;
}

#lb-close { top: 1rem; right: 1.5rem; font-size: 2rem; }
#lb-prev  { left:  1.5rem; top: 50%; transform: translateY(-50%); }
#lb-next  { right: 1.5rem; top: 50%; transform: translateY(-50%); }

#lb-close:hover, #lb-prev:hover, #lb-next:hover { color: var(--blush); }

/* ── RSVP ── */
#rsvp {
  padding: 6rem 2rem;
  background: var(--white);
}

.form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid rgba(201, 169, 110, 0.3);
  overflow: hidden;
}

.form-wrapper iframe { display: block; }

/* ── Footer ── */
footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
  text-align: center;
  padding: 2.5rem 1rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.footer-sub {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  opacity: 0.5;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  nav ul { gap: 1.2rem; }
  #countdown { gap: 1.2rem; }
  .photo-grid { columns: 2; }
}

@media (max-width: 480px) {
  .photo-grid { columns: 1; }
}
