:root {
  --bg: #faf6f0;
  --bg-alt: #f3ece1;
  --ink: #2b2a27;
  --ink-soft: #5a554c;
  --rule: #e1d8c8;
  --accent: #7d8f7c;
  --accent-deep: #5d6e5c;
  --gold: #b89968;
  --shadow: 0 8px 30px rgba(60, 50, 30, 0.08);
  --maxw: 1100px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 19px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-align: center;
  position: relative;
  margin-bottom: 1.8rem;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 0.9rem auto 0;
}

h3 {
  font-size: 1.4rem;
  font-weight: 500;
}

p { margin: 0 0 1em; }

/* ───── Header ───── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 240, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

/* Navigation */
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.8rem, 3vw, 2rem);
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--ink-soft);
  position: relative;
  padding: 0.2rem 0;
  transition: color .2s;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s ease;
}

.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

.site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after { transform: scaleX(1); }

.site-nav a.nav-home {
  font-style: italic;
  color: var(--ink-soft);
}
.site-nav a.nav-home::after { display: none; }

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Playfair Display', Georgia, serif;
  letter-spacing: 0.15em;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.lang-toggle button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  font: inherit;
  color: var(--ink-soft);
  letter-spacing: inherit;
  transition: color .2s;
}

.lang-toggle button.active { color: var(--gold); }
.lang-toggle button:hover { color: var(--ink); }
.lang-divider { color: var(--rule); }

/* ───── Hero ───── */
.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background:
    radial-gradient(ellipse at top, #fff8ec 0%, transparent 60%),
    radial-gradient(ellipse at bottom, #f0e6d2 0%, transparent 60%),
    var(--bg);
}

.eyebrow {
  font-style: italic;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.names {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 1.05;
  margin: 0 0 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.4em;
  justify-content: center;
  align-items: baseline;
}

.names .amp {
  font-size: 0.85em;
  color: var(--gold);
  font-style: italic;
  font-weight: 300;
}

.hero-line {
  width: 360px;
  max-width: calc(100% - 3rem);
  height: 1px;
  background: var(--gold);
  margin: 0 auto 1.4rem;
  transform-origin: center;
}

.date {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  letter-spacing: 0.4em;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.city {
  font-style: italic;
  color: var(--ink-soft);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin: 0 0 3rem;
}

/* Ceremony info */
.ceremony-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.8rem 2rem;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  max-width: 360px;
}

.ceremony-label {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-style: normal;
}

.ceremony-time {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  letter-spacing: 0.05em;
}

.ceremony-place {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

/* ───── Sections ───── */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  border-top: 1px solid var(--rule);
}

.section:nth-of-type(even) { background: var(--bg-alt); border-top-color: transparent; }

/* override since .section is used inside main multiple times */
main > .section + .section { border-top: 1px solid var(--rule); }

/* ───── Venues ───── */
.venue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.venue-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.venue-card h3 {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  margin-bottom: 1rem;
}

.venue-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  margin: 0 0 0.3rem;
  color: var(--ink);
}

.venue-addr { color: var(--ink-soft); font-style: italic; margin-bottom: 1.2rem; }

.venue-link {
  display: inline-block;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.parking-note {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  padding: 1.4rem 1.8rem;
  background: rgba(125, 143, 124, 0.08);
  border-left: 3px solid var(--accent);
  font-style: italic;
  color: var(--ink);
  text-align: center;
}

.parking-note p { margin: 0; }
.parking-note p + p { margin-top: 0.8rem; }

.map {
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

#map {
  width: 100%;
  height: 460px;
}

.map-hint {
  margin: 0;
  padding: 0.7rem 1rem;
  text-align: center;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  background: var(--bg);
}

/* Leaflet — match wedding aesthetic */
.leaflet-container {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: #f6efe1;
}

.venue-tooltip {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 4px 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink);
  box-shadow: 0 3px 12px rgba(60, 50, 30, 0.15);
  white-space: nowrap;
}

.venue-tooltip::before { display: none; }

.leaflet-popup-content-wrapper {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.leaflet-popup-content {
  margin: 14px 18px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--ink);
}

.leaflet-popup-content .popup-title {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 0.2rem;
}

.leaflet-popup-content .popup-sub {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.leaflet-popup-content .popup-addr {
  display: block;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.leaflet-popup-tip { background: #fff; }

/* ───── Sub-page (Ubytovanie) ───── */
.page-header {
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  background:
    radial-gradient(ellipse at top, #fff8ec 0%, transparent 60%),
    var(--bg);
}

.page-header .eyebrow {
  font-style: italic;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}

.page-header h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin: 0 0 1.4rem;
  line-height: 1.1;
}

.page-header h1::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 1.2rem auto 0;
}

.page-header .lead {
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--ink-soft);
  font-style: italic;
}

/* Section-level helper note (above an info-grid) */
.section-note {
  max-width: 640px;
  margin: -0.6rem auto 2.2rem;
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Info cards (Príchod & ubytovanie) */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.info-card h3 {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  margin: 0 0 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--rule);
}

.info-card p {
  margin: 0 0 1rem;
  color: var(--ink);
}

.info-card p:last-child { margin-bottom: 0; }

.info-card.highlight {
  background: rgba(184, 153, 104, 0.08);
  border-color: rgba(184, 153, 104, 0.25);
}

.info-card.highlight h3 {
  border-bottom-color: rgba(184, 153, 104, 0.3);
}

/* Phone block (inside venue-card) */
.phone-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  margin: 0 auto 1.2rem;
  padding-top: 0.9rem;
  border-top: 1px dashed var(--rule);
  width: 100%;
}

.phone-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.phone-number {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.phone-number:hover { color: var(--gold); }

/* ───── FAQ ───── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  padding: 1.6rem 0;
  border-bottom: 1px dashed var(--rule);
}

.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: none; padding-bottom: 0; }

.faq-q {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.6rem;
  line-height: 1.35;
}

.faq-q::before {
  content: '— ';
  color: var(--gold);
  font-style: normal;
}

.faq-a {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.faq-followup {
  max-width: 600px;
  margin: 3.5rem auto 0;
  padding-top: 2.5rem;
  text-align: center;
  border-top: 1px solid var(--rule);
}

.faq-followup h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 0.6rem;
}

.faq-followup p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.55;
}

/* ───── Menu ───── */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.menu-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 2.2rem 2rem;
  box-shadow: var(--shadow);
}

.menu-card h3 {
  text-align: center;
  font-style: italic;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-list li {
  padding: 0.9rem 0;
  border-bottom: 1px dashed var(--rule);
  text-align: center;
}

.menu-list li:last-child { border-bottom: none; }

.menu-list .course {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.menu-list .dish {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.menu-hint {
  margin-top: 1.4rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-style: italic;
}

.allergens {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.8rem;
  background: rgba(184, 153, 104, 0.08);
  border: 1px solid rgba(184, 153, 104, 0.2);
  border-radius: 4px;
  text-align: center;
}

.allergens h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  margin-bottom: 1rem;
}

.allergens .contact {
  margin-top: 0.8rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ───── Photos / QR ───── */
.photos-intro {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.qr-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.qr-frame {
  display: inline-block;
  background: #fff;
  padding: 1.4rem;
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

.qr-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(60, 50, 30, 0.14);
}

.qr-frame img {
  display: block;
  width: 220px;
  height: 220px;
}

.photo-link {
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  font-style: italic;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  word-break: break-all;
  text-align: center;
  max-width: 90%;
}

/* ───── Footer ───── */
.site-footer {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  border-top: 1px solid var(--rule);
  background: var(--bg-alt);
}

.footer-names {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 2rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
}

.footer-meta {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 0 0 1.2rem;
}

.footer-thanks {
  font-style: italic;
  color: var(--accent-deep);
  margin: 0;
}

/* ───── Responsive tweaks ───── */
@media (max-width: 560px) {
  #map { height: 340px; }
  .section { padding: 4rem 1.2rem; }
  .header-inner { padding: 0.6rem 1rem; gap: 0.6rem; }
  .site-nav { font-size: 0.85rem; gap: 0.9rem; }
  html { scroll-padding-top: 64px; }
}

/* ───── Hero opening animation ─────
   Staggered fade-rise + gold underline draw under the names.
   Uses animation-fill-mode: both so the @media (prefers-reduced-motion)
   override safely cancels the animation and elements remain visible. */
@keyframes heroFadeRise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes heroDrawLine {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

.hero .eyebrow,
.hero .names,
.hero .date,
.hero .city,
.hero .ceremony-info {
  animation: heroFadeRise 0.7s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.hero .eyebrow       { animation-delay: 0.05s; }
.hero .names         { animation-delay: 0.20s; animation-duration: 0.8s; }
.hero-line           { animation: heroDrawLine 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.65s both; }
.hero .date          { animation-delay: 0.85s; animation-duration: 0.55s; }
.hero .city          { animation-delay: 1.00s; animation-duration: 0.55s; }
.hero .ceremony-info { animation-delay: 1.15s; animation-duration: 0.65s; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
