/* ============================================
   SVADBA VERONIKA & MATÚŠ — 29.8.2026 — STATEK OPAJDA
   Paleta: lúka + slnko (krémová / žltá / zelená)
   ============================================ */

:root {
  --bg:        #FAF6E7;
  --surface:   #FFFDF5;
  --accent-1:  #C7B458;   /* slnečná žltá */
  --accent-1-dark: #A8953F;
  --accent-2:  #6B8E4E;   /* lúčna zeleň */
  --accent-2-dark: #4F6B38;
  --text:      #3D3225;
  --text-soft: #6E5E48;
  --border:    #E5DCC3;
  --shadow:    0 6px 24px rgba(61, 50, 37, 0.08);
  --radius:    8px;
  --maxw:      1100px;

  --font-head: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.5px;
  margin: 0 0 0.6em 0;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }

p { margin: 0 0 1em 0; }

a { color: var(--accent-2-dark); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-1-dark); }

img { max-width: 100%; display: block; }

/* ============ NAVBAR ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 231, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}
.nav-logo {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.nav-logo .amp { color: var(--accent-2); font-style: italic; padding: 0 .2em; }
.nav-links {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.8rem;
}
.nav-links a {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a.active,
.nav-links a:hover {
  color: var(--accent-2-dark);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent-1);
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text);
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: 0.3s;
}

/* ============ LANGUAGE SWITCHER ============ */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-left: 0.5rem;
}
.lang-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 4px 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  line-height: 0;
  opacity: 0.55;
  transition: opacity .2s, border-color .2s, transform .2s;
}
.lang-btn:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.lang-btn.active {
  opacity: 1;
  border-color: var(--accent-1);
}
.lang-btn svg {
  display: block;
  border: 1px solid rgba(61, 50, 37, 0.15);
  border-radius: 2px;
}

@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--surface);
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-150%);
    transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-toggle { display: block; }
  .lang-switch { margin-left: auto; margin-right: 0.5rem; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #FFF8E5;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(61, 50, 37, 0.35) 0%,
    rgba(61, 50, 37, 0.55) 100%);
  z-index: -1;
}
.hero-content {
  padding: 2rem 1.5rem;
  max-width: 800px;
}
.hero .eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 6px;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}
.hero h1 {
  color: #FFF8E5;
  font-style: italic;
  font-weight: 400;
  margin-bottom: 1rem;
}
.hero h1 .amp {
  color: var(--accent-1);
  font-size: 1.2em;
  padding: 0 0.15em;
}
.hero .date {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: 8px;
  margin: 1.5rem 0;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255, 248, 229, 0.5);
  border-bottom: 1px solid rgba(255, 248, 229, 0.5);
  display: inline-block;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.hero .location-tag {
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.92;
}
.scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #FFF8E5;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.7;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Hero variant for inner pages (shorter) */
.hero.inner {
  min-height: 55vh;
}

/* ============ COUNTDOWN ============ */
.countdown-wrap {
  background: var(--surface);
  padding: 4rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.countdown-wrap .label {
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--text-soft);
  margin-bottom: 2rem;
}
.countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.countdown-unit {
  min-width: 100px;
  padding: 1.2rem 0.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.countdown-unit .num {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  color: var(--accent-2-dark);
  line-height: 1;
  display: block;
}
.countdown-unit .lbl {
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 0.6rem;
  display: block;
}

/* ============ SECTIONS ============ */
section {
  padding: 4.5rem 1.5rem;
}
.section-inner {
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-head .eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 0.8rem;
  color: var(--accent-2);
  margin-bottom: 1rem;
}
.section-head h2 {
  margin-bottom: 0.5rem;
}
.section-head .lead {
  color: var(--text-soft);
  font-style: italic;
  font-family: var(--font-head);
  font-size: 1.3rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Decorative divider */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem auto;
  max-width: 200px;
  color: var(--accent-1);
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--accent-1);
  opacity: 0.6;
}
.divider span { padding: 0 1rem; font-size: 1.2rem; }

/* ============ CARDS (preview on home) ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.card-img {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
}
.card-body {
  padding: 1.5rem;
}
.card h3 {
  margin-bottom: 0.4rem;
  color: var(--accent-2-dark);
}
.card p {
  color: var(--text-soft);
  font-size: 0.95rem;
}
.card-link {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-2-dark);
  font-weight: 600;
}
.card-link::after {
  content: ' →';
  transition: padding .2s;
}
.card-link:hover::after { padding-left: 4px; }

/* ============ MIESTO – two-column layout ============ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.two-col.reverse > :first-child { order: 2; }
.two-col img,
.two-col .img-block {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}
@media (max-width: 760px) {
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .two-col.reverse > :first-child { order: 0; }
}

.fact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0 0;
}
.fact-list li {
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--border);
  display: flex;
  gap: 1rem;
}
.fact-list li:last-child { border-bottom: 0; }
.fact-list .key {
  flex: 0 0 130px;
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 600;
  padding-top: 2px;
}
.fact-list .val { color: var(--text); }

/* ============ TIMELINE (program) ============ */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 110px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--accent-1);
  opacity: 0.5;
}
.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 2rem;
  padding: 1.3rem 0;
}
.timeline-time {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--accent-2-dark);
  font-weight: 500;
  text-align: right;
  padding-right: 0.5rem;
  position: relative;
}
.timeline-time::after {
  content: '';
  position: absolute;
  right: -7px;
  top: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-1);
  border: 3px solid var(--bg);
  z-index: 1;
}
.timeline-body h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1.3rem;
  color: var(--text);
}
.timeline-body p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin: 0;
}

@media (max-width: 560px) {
  .timeline::before { left: 70px; }
  .timeline-item { grid-template-columns: 70px 1fr; gap: 1.2rem; }
  .timeline-time { font-size: 1.2rem; }
}

/* ============ MAP ============ */
.map-frame {
  width: 100%;
  height: 460px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 2rem 0;
}

/* ============ TRANSPORT / ACCOMMODATION ============ */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.info-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.info-block h3 {
  color: var(--accent-2-dark);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.info-block .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-1);
  color: #fff;
  font-size: 1.1rem;
}

/* ============ GALLERY ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  grid-auto-rows: 220px;
}
.gallery-item {
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  transition: transform .3s;
  cursor: zoom-in;
}
.gallery-item:hover {
  transform: scale(1.02);
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }
@media (max-width: 600px) {
  .gallery-item.wide { grid-column: span 1; }
  .gallery { grid-auto-rows: 180px; }
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 8, 0.94);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox.open {
  display: flex;
  opacity: 1;
}
.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  display: block;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.6);
  border-radius: 4px;
  cursor: default;
}
.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 248, 229, 0.3);
  color: #FFF8E5;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: 28px;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s, border-color .2s;
  backdrop-filter: blur(6px);
}
.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent-1);
}
.lightbox-close {
  top: 20px;
  right: 20px;
  font-size: 24px;
}
.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 248, 229, 0.7);
  font-size: 0.85rem;
  letter-spacing: 2px;
  font-family: var(--font-body);
}
@media (max-width: 600px) {
  .lightbox { padding: 0.5rem; }
  .lightbox-btn { width: 42px; height: 42px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-close { top: 12px; right: 12px; font-size: 22px; }
  .lightbox-counter { bottom: 14px; font-size: 0.8rem; }
}

/* ============ BUTTONS ============ */
.btn {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--accent-2);
  color: #FFF8E5;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  border: 2px solid var(--accent-2);
  transition: all .25s;
  cursor: pointer;
}
.btn:hover {
  background: var(--accent-2-dark);
  border-color: var(--accent-2-dark);
  color: #FFF8E5;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline {
  background: transparent;
  color: var(--accent-2-dark);
}
.btn-outline:hover {
  background: var(--accent-2);
  color: #FFF8E5;
}
.btn-big {
  padding: 1.2rem 3rem;
  font-size: 1rem;
}

/* ============ RSVP page ============ */
.rsvp-hero {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
}
.rsvp-deadline {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background: var(--accent-1);
  color: #fff;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 2rem;
}
.questions-list {
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 0;
  list-style: none;
  counter-reset: q;
}
.questions-list li {
  counter-increment: q;
  padding: 1.2rem 1.2rem 1.2rem 4rem;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
}
.questions-list li::before {
  content: counter(q);
  position: absolute;
  left: 1.2rem;
  top: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-2);
  color: #FFF8E5;
  font-family: var(--font-head);
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.questions-list strong { display: block; margin-bottom: 0.2rem; }
.questions-list .hint {
  font-size: 0.88rem;
  color: var(--text-soft);
  font-style: italic;
}

/* ============ FOOTER ============ */
footer {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  background: #3D3225;
  color: #F2EBD0;
  font-size: 0.9rem;
}
footer .names {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-style: italic;
  margin-bottom: 0.5rem;
}
footer .amp { color: var(--accent-1); padding: 0 0.2em; }
footer .small {
  font-size: 0.78rem;
  opacity: 0.7;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 1rem;
}

/* ============ UTIL ============ */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.alt-bg { background: var(--surface); }

.callout {
  background: var(--accent-1);
  background: linear-gradient(135deg, #D8C66A 0%, #C7B458 100%);
  color: var(--text);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 2rem 0;
}
.callout h3 { color: var(--text); margin-bottom: 0.5rem; }
.callout p { margin: 0; }
