/* ===========================================
   SVATEBNÍ WEB v5 - TABASCO
   Petr & Aida | 15. srpna 2026
   =========================================== */

/* ===========================================
   DESIGN TOKENS
   =========================================== */
:root {
  /* Barvy - Tabasco: kakao, selva, řeka, mango, bugambilia */
  --white: #ffffff;
  --off-white: #fdf8ef;
  --cream: #fbf1df;
  --sand: #efdcbc;
  --taupe: #c9a57c;
  --warm-gray: #80604a;
  --charcoal: #3d2518;      /* kakao */
  --deep-charcoal: #2a170d; /* tmavé kakao */
  
  /* Akcenty */
  --selva: #1f8a5b;         /* džungle */
  --selva-dark: #14603f;
  --rio: #1aa3b0;           /* řeka Grijalva */
  --mango: #f2a007;
  --chile: #e8590c;
  --bugambilia: #d6246e;

  /* Sémantické role - komponenty používají tyto, ne paletu přímo */
  --accent: var(--selva);
  --accent-dark: var(--selva-dark);
  --accent-hover: var(--bugambilia);

  /* Světlé tóny barevných sekcí (odvozené z palety) */
  --tint-1: color-mix(in srgb, var(--selva) 18%, var(--off-white));
  --tint-2: color-mix(in srgb, var(--rio) 20%, var(--off-white));
  --tint-3: color-mix(in srgb, var(--mango) 30%, var(--off-white));
  --tint-4: color-mix(in srgb, var(--bugambilia) 18%, var(--off-white));
  --tint-5: color-mix(in srgb, var(--taupe) 35%, var(--off-white));

  /* Sarape proužek - nadpisy a patička */
  --sarape: linear-gradient(to right,
    var(--bugambilia) 0 20%, var(--mango) 0 40%, var(--selva) 0 60%,
    var(--rio) 0 80%, var(--chile) 0);
  
  /* Typografie
     - Nadpisy: vybrat z načtených fontů (viz index.html)
       Alex Brush, Allura, Great Vibes, Italianno, Parisienne,
       Pinyon Script, Sacramento, Tangerine, Dancing Script, Satisfy
     - Texty: Cormorant Garamond (elegantní serif)
  */
  --font-display: 'Alex Brush', cursive;
  --font-body: 'Inter', Georgia, serif;
  
  /* Velikosti písma - fluid */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.8rem);
  --text-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.95rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
  --text-lg: clamp(0.95rem, 0.85rem + 0.25vw, 1rem);
  --text-xl: clamp(1.4rem, 1.2rem + 1vw, 1.8rem);
  --text-2xl: clamp(1.8rem, 1.4rem + 2vw, 2.8rem);
  --text-3xl: clamp(2.5rem, 2rem + 2.5vw, 4rem);
  --text-hero: clamp(4rem, 3rem + 5vw, 8rem);
  
  /* Spacing - generous */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;
  
  --section-padding: clamp(5rem, 8vh, 10rem);
  --container-max: 1200px;
  --content-max: 680px;
  
  /* Efekty */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
  
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

/* ===========================================
   RESET & BASE
   =========================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.8;
  color: var(--charcoal);
  background: url("assets/images/background.jpg") center / cover no-repeat fixed;
  background-color: var(--off-white);
  overflow-x: hidden;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Nadpisy - NE uppercase (psací font) */
h1, h2, h3 {
  text-transform: none;
  letter-spacing: 0.02em;
}

/* Formuláře - NE uppercase (lepší čitelnost) */
input, textarea, select, button {
  text-transform: none;
  letter-spacing: normal;
}

/* Selection */
::selection {
  background: var(--accent);
  color: var(--white);
}

/* Focus */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ===========================================
   TYPOGRAPHY - základní
   =========================================== */
h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--deep-charcoal);
}

p {
  max-width: 58ch;
  margin-bottom: 1.5em;
  margin-left: auto;
  margin-right: auto;
  color: var(--charcoal);
  font-weight: 400;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--deep-charcoal);
}

/* ===========================================
   NADPISY - KOMPLETNÍ NASTAVENÍ
   
   Načtené fonty (viz index.html):
   'Alex Brush', 'Allura', 'Great Vibes', 'Italianno',
   'Parisienne', 'Pinyon Script', 'Sacramento',
   'Tangerine', 'Dancing Script', 'Satisfy'
   =========================================== */

/* -----------------------------------------
   HERO - INICIÁLY (M & J)
   ----------------------------------------- */
.hero-initials .initial {
  font-family: 'Tangerine', cursive;
  font-size: clamp(12rem, 11rem + 11vw, 13rem);
  font-weight: 1000;
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.02em;
}

/* -----------------------------------------
   HERO - AMPERSAND (&)
   ----------------------------------------- */
.hero-initials .ampersand {
  font-family: 'Alex Brush', cursive;
  font-size: clamp(2.8rem, 2.4rem + 2.1vw, 4.5rem);
  font-weight: 400;
  color: var(--mango);
  font-style: italic;
  opacity: 0.8;
}

/* -----------------------------------------
   HERO - JMÉNA (Michaela a Jiří)
   ----------------------------------------- */
h1.hero-names {
  font-family: 'Italianno', cursive;
  font-size: clamp(2.7rem, 2.3rem + 2.1vw, 4.5rem);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: none;
  color: var(--charcoal);
}

/* -----------------------------------------
   SEKCE - NADPISY h2 (Dress code, Obřad...)
   ----------------------------------------- */
h2 {
  font-family: 'Allura', cursive;
  font-size: clamp(2.5rem, 2.1rem + 1.9vw, 4rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  line-height: 1.15;
  color: var(--deep-charcoal);
}

/* ===========================================
   TEXTOVÉ ÚROVNĚ
   =========================================== */
/* C2 - Hlavní texty (datum, místo, adresy) */
.text-main {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--charcoal);
  line-height: 1.6;
  text-transform: uppercase;
}

/* C3 - Poznámky (menší, kurzíva) */
.text-note {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--warm-gray);
  line-height: 1.5;
  text-transform: uppercase;
}

/* ===========================================
   LAYOUT - Sekce jako scény
   =========================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--narrow {
  max-width: var(--content-max);
}

section {
  padding: clamp(80px, 12vh, 150px) 0; /* Upravitelné: min 80px, ideálně 12vh, max 150px */
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: visible;
}

/* Hero zůstává fullscreen */
#hero {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
}

/* Obsah sekce nad overlayem */
section > .container,
section > .container--narrow,
section > .container--wide {
  position: relative;
  z-index: 2;
}

/* ===========================================
   OVERLAY SEKCÍ - průhledné okraje
   
   Hodnoty rgba(0,0,0,X) v masce určují viditelnost:
   - 0   = úplně průhledné (neviditelné)
   - 0.85 = skoro plné (15% průsvitné) 
   - 1   = plně viditelné
   
   Pozice (procenta):
   - 0%/100% = okraje
   - 10%/90% = hranice přechodu (vertikální)
   - 5%/95%  = hranice přechodu (horizontální)
   
   PRO ÚPRAVU PRŮHLEDNOSTI OKRAJŮ:
   - Změň hodnotu 0.85 na nižší (více průsvitné) nebo vyšší (méně průsvitné)
   - Rozsah: 0 (úplně průhledné) až 1 (plně viditelné)
   =========================================== */

/* BÍLÉ SEKCE */
section.bg-white::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  
  background: color-mix(in srgb, var(--off-white) 98%, transparent);
  
  /* MASK - průhledné okraje na všech stranách */
  -webkit-mask: 
    linear-gradient(to bottom, 
      rgba(0,0,0,0.95) 0%,     /* horní okraj - 85% viditelný (15% průsvitný) */
      rgba(0,0,0,1) 5%,       /* přechod do plné viditelnosti */
      rgba(0,0,0,1) 95%,       /* plný střed */
      rgba(0,0,0,0.95) 100%    /* spodní okraj - 85% viditelný (15% průsvitný) */
    ),
    linear-gradient(to right,
      rgba(0,0,0,0.45) 0%,     /* levý okraj - 85% viditelný */
      rgba(0,0,0,1) 25%,        /* přechod do plné viditelnosti */
      rgba(0,0,0,1) 75%,       /* plný střed */
      rgba(0,0,0,0.45) 100%    /* pravý okraj - 85% viditelný */
    );
  -webkit-mask-composite: source-in;
  mask: 
    linear-gradient(to bottom, rgba(0,0,0,0.90) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0.90) 100%),
    linear-gradient(to right, rgba(0,0,0,0.60) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0.60) 100%);
  mask-composite: intersect;
}

/* ===========================================
   BAREVNÉ SEKCE - třídy bg-tint-1..5 přiřazuje main.js,
   barvy jsou tokeny --tint-* v :root
   =========================================== */

/* Společný styl pro všechny barevné sekce */
section.bg-tint::before {
  background: color-mix(in srgb, var(--tint) 98%, transparent);
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  
  /* MASK - průhledné okraje na všech stranách */
  -webkit-mask: 
    linear-gradient(to bottom, 
      rgba(0,0,0,0.90) 0%,     /* horní okraj - 85% viditelný (15% průsvitný) */
      rgba(0,0,0,1) 10%,       /* přechod do plné viditelnosti */
      rgba(0,0,0,1) 95%,       /* plný střed */
      rgba(0,0,0,0.90) 100%    /* spodní okraj - 85% viditelný (15% průsvitný) */
    ),
    linear-gradient(to right,
      rgba(0,0,0,0.45) 0%,     /* levý okraj - 85% viditelný */
      rgba(0,0,0,1) 25%,        /* přechod do plné viditelnosti */
      rgba(0,0,0,1) 75%,       /* plný střed */
      rgba(0,0,0,0.45) 100%    /* pravý okraj - 85% viditelný */
    );
  -webkit-mask-composite: source-in;
  mask: 
    linear-gradient(to bottom, rgba(0,0,0,0.90) 0%, rgba(0,0,0,1) 10%, rgba(0,0,0,1) 90%, rgba(0,0,0,0.90) 100%),
    linear-gradient(to right, rgba(0,0,0,0.60) 0%, rgba(0,0,0,1) 15%, rgba(0,0,0,1) 85%, rgba(0,0,0,0.60) 100%);
  mask-composite: intersect;
}

section.bg-tint-1 { --tint: var(--tint-1); }
section.bg-tint-2 { --tint: var(--tint-2); }
section.bg-tint-3 { --tint: var(--tint-3); }
section.bg-tint-4 { --tint: var(--tint-4); }
section.bg-tint-5 { --tint: var(--tint-5); }

/* ===========================================
   NAVIGACE - Plovoucí tečky + vždy viditelné texty
   =========================================== */
.nav-sidebar {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

@media (max-width: 900px) {
  .nav-sidebar {
    display: none;
  }
}

.nav-sidebar ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.nav-sidebar a {
  display: block;
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--warm-gray);
  border-radius: 50%;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-sidebar a:hover {
  border-color: var(--accent);
  transform: scale(1.2);
}

.nav-sidebar a.active {
  border-color: var(--accent);
  background: var(--accent);
}

/* Label - VŽDY viditelný, bez pozadí */
.nav-sidebar .nav-label {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warm-gray);
  background: none;
  padding: 0;
  opacity: 1;
  transition: color var(--transition-fast), font-weight var(--transition-fast);
}

.nav-sidebar a:hover .nav-label {
  color: var(--charcoal);
}

/* Aktivní sekce - bold */
.nav-sidebar a.active .nav-label {
  color: var(--accent-dark);
  font-weight: 700;
}

/* Skrýt tečku span - už nepotřebujeme */
.nav-sidebar .nav-dot {
  display: none;
}

/* Mobile toggle */
.nav-mobile-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1001;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--charcoal);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast);
}

.nav-mobile-toggle:hover {
  transform: scale(1.05);
}

@media (min-width: 901px) {
  .nav-mobile-toggle {
    display: none;
  }
}

/* ===========================================
   HERO - Half viewport, atmospheric
   =========================================== */
#hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-md);
  position: relative;
  background: transparent !important; /* Vidět skrz na pozadí body */
  overflow: visible; /* Změněno z hidden - aby iniciály nepřetékaly */
}

/* Overlay - jemný pro čitelnost */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--off-white) 45%, transparent);
  z-index: 1;
}

/* Papel picado - girlanda praporků přes horní okraj hera */
#hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(64px, 9vw, 96px);
  background: url("assets/images/papel-picado.svg") center top / auto 100% repeat-x;
  z-index: 2;
  pointer-events: none;
}

#hero > * {
  position: relative;
  z-index: 2;
}

/* Initials - layout */
.hero-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  margin-bottom: var(--space-sm);
}

/* Names (h1) - layout */
.hero-names {
  margin-bottom: var(--space-md);
}

/* Date & details */
.hero-date {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--deep-charcoal);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-time,
.hero-location {
  font-size: var(--text-sm);
  color: var(--warm-gray);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.hero-location {
  color: var(--accent-dark);
  font-weight: 400;
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  color: var(--taupe);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 0.5; }
}

/* Section header */
.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-header h2 {
  margin-bottom: 0;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 120px;
  height: 5px;
  margin: var(--space-sm) auto 0;
  border-radius: 3px;
  background: var(--sarape);
}

/* Section icons - obrázky pod nadpisy */
.section-icon {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: var(--space-md) auto 0;
  opacity: 0.65;
}

.section-icon--large {
  width: 210px;
  height: 210px;
}

/* ===========================================
   DRESS CODE - pouze barevné vzorky
   =========================================== */
#dress-code {
  text-align: center;
}

#dress-code .container {
  max-width: 600px;
}

.color-swatches {
  display: flex;
  justify-content: center;
  gap: clamp(0.5rem, 2vw, 1.5rem);
  flex-wrap: nowrap;
  margin-bottom: var(--space-md);
}

.color-swatches .swatch {
  width: clamp(40px, 8vw, 60px);
  height: clamp(40px, 8vw, 60px);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.dress-note {
  font-size: var(--text-sm);
  color: var(--warm-gray);
  max-width: 400px;
  margin: 0 auto;
  font-style: italic;
}

/* ===========================================
   CEREMONY - Obřad
   =========================================== */
#ceremony {
  text-align: center;
}

.ceremony-info {
  text-align: center;
}

.ceremony-date {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--deep-charcoal);
  margin-bottom: var(--space-xs);
}

.ceremony-time {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--deep-charcoal);
  margin-bottom: var(--space-md);
}

.ceremony-place {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--charcoal);
}

/* ===========================================
   VENUE - Místo konání
   =========================================== */
#venue {
  text-align: center;
}

.venue-info {
  margin-bottom: var(--space-md);
}

.venue-address {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: var(--space-sm);
}

.venue-note {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--warm-gray);
}

/* Map */
.venue-map-wrapper {
  margin-bottom: var(--space-lg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

#venue-map {
  width: 100%;
  height: 350px;
  background: var(--cream);
}

.venue-map-link {
  display: block;
  padding: 0.875rem var(--space-sm);
  background: var(--white);
  font-size: var(--text-sm);
  color: var(--accent-dark);
  text-align: left;
  border-top: 1px solid var(--sand);
}

.venue-map-link:hover {
  color: var(--deep-charcoal);
}

/* Gallery - hierarchie: jedna dominantní + ostatní */
.venue-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 10px;
}

/* Hlavní fotka - velká */
.venue-gallery img:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.venue-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.venue-gallery img:hover {
  transform: scale(1.015);
  opacity: 0.92;
}

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

#lightbox.active {
  display: flex;
}

#lightbox img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

/* Lightbox tlačítka */
#lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 1rem;
  transition: color var(--transition-fast);
}

#lightbox button:hover {
  color: #fff;
}

.lightbox-close {
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
}

.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
}

.lightbox-prev {
  left: 1.5rem;
}

.lightbox-next {
  right: 1.5rem;
}

.lightbox-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: var(--text-sm);
}

@media (max-width: 900px) {
  .venue-gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 140px;
  }
  
  .venue-gallery img:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
}

@media (max-width: 600px) {
  .venue-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 120px;
  }
  
  .venue-gallery img:first-child {
    grid-column: 1 / -1;
    grid-row: span 1;
  }
}

/* ===========================================
   GALERIE - samostatná sekce
   =========================================== */
#gallery {
  text-align: center;
}

#gallery .container {
  max-width: 1100px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 10px;
}

.gallery-grid img:first-child {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  transition: opacity var(--transition-base);
}

.gallery-grid img:hover {
  opacity: 0.85;
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 140px;
  }
  .gallery-grid img:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 120px;
  }
  .gallery-grid img:first-child {
    grid-column: 1 / -1;
    grid-row: span 1;
  }
}

/* ===========================================
   MAPA - samostatná sekce
   =========================================== */
#map {
  text-align: center;
}

#map .container {
  max-width: 900px;
}

.map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-wrapper--large {
  border-radius: 12px;
}

#leaflet-map {
  width: 100%;
  height: 600px;
  background: var(--cream);
}

.map-link-standalone {
  display: inline-block;
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--accent-dark);
  text-decoration: none;
}

.map-link-standalone:hover {
  color: var(--deep-charcoal);
}

/* Starý styl - pro zpětnou kompatibilitu */
.map-link {
  display: block;
  padding: 0.875rem var(--space-sm);
  background: var(--white);
  font-size: var(--text-sm);
  color: var(--accent-dark);
  text-align: left;
  border-top: 1px solid var(--sand);
}

.map-link:hover {
  color: var(--deep-charcoal);
}

/* ===========================================
   TRANSPORT
   =========================================== */
#transport {
  text-align: center;
}

.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.info-card {
  padding: var(--space-md);
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.info-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--accent-dark);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.info-card p {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--charcoal);
  margin: 0;
  line-height: 1.5;
}

.cta-text {
  color: var(--warm-gray);
}

.cta-text a {
  color: var(--accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===========================================
   PROGRAM / TIMELINE
   =========================================== */
#program {
  text-align: center;
}

.program-note {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--charcoal);
  max-width: 400px;
  margin: 0 auto;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.timeline {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  text-align: left;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-icon {
  width: 105px;
  height: 105px;
  object-fit: contain;
  flex-shrink: 0;
  opacity: 0.7;
}

.timeline-dot {
  width: 75px;
  height: 75px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.5;
}

.timeline-content {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.timeline-time {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--charcoal);
}

.timeline-time::after {
  content: ' –';
}

.timeline-title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--charcoal);
  text-transform: none;
  letter-spacing: 0;
}

/* ===========================================
   GIFTS / DARY
   =========================================== */
#gifts {
  text-align: center;
}

#gifts .container {
  max-width: 600px;
}

.gifts-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.9;
  color: var(--charcoal);
}

/* ===========================================
   MENU / HOSTINA
   =========================================== */
#menu {
  text-align: center;
}

#menu .container {
  max-width: 600px;
}

.menu-text {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.menu-courses {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  max-width: 900px;
  margin: 0 auto;
}

.menu-course {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition-base);
}

.menu-course:hover {
  transform: translateY(-4px);
}

.menu-course img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.menu-course h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--white);
  margin: var(--space-sm) var(--space-sm) 0.5rem;
}

.menu-course p {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.8);
  margin: 0 var(--space-sm) var(--space-sm);
  line-height: 1.5;
}

.menu-note {
  font-style: italic;
  font-size: var(--text-sm);
  opacity: 0.85;
}

/* ===========================================
   RSVP
   =========================================== */
#rsvp {
  text-align: center;
}

.rsvp-text {
  font-size: var(--text-base);
  color: var(--charcoal);
  margin-bottom: var(--space-md);
}

.rsvp-intro {
  font-size: var(--text-lg);
  color: var(--charcoal);
  margin-bottom: var(--space-xs);
}

.rsvp-deadline {
  color: var(--warm-gray);
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
}

.rsvp-form {
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}

/* Tlačítko odeslat - na střed */
.rsvp-form button[type="submit"] {
  display: block;
  margin: var(--space-md) auto 0;
}

/* Řádek s 2 poli vedle sebe */
.form-row {
  display: flex;
  gap: var(--space-sm);
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group label, label#fullname {
  display: block;
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid var(--sand);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--taupe);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* Number input - menší šipky */
.form-group input[type="number"] {
  -moz-appearance: textfield;
}

.radio-group {
  display: flex;
  gap: var(--space-md);
}

.radio-group--vertical {
  flex-direction: column;
  gap: var(--space-xs);
}

.radio-label,
.checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  cursor: pointer;
  font-size: var(--text-sm);
}

.radio-label input,
.checkbox-label input {
  width: auto;
  accent-color: var(--accent);
}

/* Button */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-base);
}

.btn--primary {
  background: var(--accent);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--full {
  width: 100%;
}

/* ===========================================
   FOOTER
   =========================================== */
footer {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  background: var(--deep-charcoal);
  border-top: 6px solid;
  border-image: var(--sarape) 1;
}

footer p {
  font-size: var(--text-sm);
  color: var(--sand);
  margin-bottom: var(--space-xs);
}

footer a {
  color: var(--mango);
}

/* ===========================================
   PORTRAIT POZADÍ - pro viewporty užší než landscape obrázek
   =========================================== */
@media (max-width: 1200px) {
  body {
    background: url("assets/images/background-portrait.jpg") center / cover no-repeat fixed;
    background-color: var(--off-white);
  }
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
  :root {
    --section-padding: clamp(3rem, 6vh, 5rem);
  }

  /* fixed nefunguje na iOS, scroll + 100% auto (cover by zoomoval do středu na vysokém body) */
  body {
    background-attachment: scroll;
    background-size: auto 100vh;
    background-position: center top;
  }
  
  /* Hero iniciály - menší na mobilu aby se vešly */
  .hero-initials .initial {
    font-size: clamp(6rem, 20vw, 10rem);
  }
  
  .hero-initials .ampersand {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  
  .hero-initials {
    gap: clamp(0.25rem, 1vw, 0.75rem);
  }
  
  h1.hero-names {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  
  .venue-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .venue-gallery img {
    height: 140px;
  }
  
  #venue-map {
    height: 280px;
  }
  
  .info-cards {
    grid-template-columns: 1fr;
  }
  
  .menu-courses {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .menu-course {
    max-width: none;
  }
  
  .timeline {
    padding-left: 0;
  }
  
  .timeline-icon {
    width: 80px;
    height: 80px;
  }
  
  .timeline-content {
    flex-wrap: wrap;
  }
  
  .section-icon {
    width: 90px;
    height: 90px;
  }
  
  .section-icon--large {
    width: 150px;
    height: 150px;
  }
}

/* ===========================================
   UTILITIES
   =========================================== */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ===========================================
   LOADED STATE
   =========================================== */
body:not(.loaded) {
  overflow: hidden;
}

body.loaded .hero-initials,
body.loaded .hero-names,
body.loaded .hero-date {
  animation: fadeUp 0.8s ease forwards;
}

body.loaded .hero-names { animation-delay: 0.2s; }
body.loaded .hero-date { animation-delay: 0.4s; }

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Initial hidden state */
.hero-initials,
.hero-names,
.hero-date {
  opacity: 0;
}

/* ===========================================
   KRITICKÉ: Container NESMÍ zakrývat overlay
   =========================================== */
section.bg-tint .container,
section.bg-white .container,
section.bg-tint .container--narrow,
section.bg-white .container--narrow,
section.bg-tint .container--wide,
section.bg-white .container--wide {
  background: transparent !important;
}
