/* =====================================================
   ZÁKLADY / RESET
===================================================== */

html {
  scroll-behavior: auto;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding-top: 0px;
  background: #eef8f0;
  color: #333;
}

/* =====================================================
   TYPOGRAFIE
===================================================== */

h1 {
  color: #444;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #2f4633;
}

/* =====================================================
   NAVIGACE
===================================================== */

#nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  text-align: center;

  background: rgba(238, 248, 240, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #d0dfd4;

  z-index: 1000;
}

#nav a {
  margin: 0 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 18px;
  text-shadow: none;
}

#nav a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* HAMBURGER – SKRYTÝ NA DESKTOPU */
#hamburger {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

#hamburger span {
  display: block;
  width: 32px;
  height: 3px;
  background: #2f4633;
  border-radius: 2px;
  transition: all 0.3s;
}

/* MOBILNÍ NAVIGACE */
@media (max-width: 768px) {
  #hamburger {
    display: flex;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
  }

  #nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: #eef8f0;
    flex-direction: column;
    padding: 24px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    margin-top: 12px;
  }

  #nav-links.open {
    display: flex;
  }

  #nav-links a {
    margin: 10px 0;
    font-size: 16px;
  }
}

/* =====================================================
   HERO SEKCE
===================================================== */

#hero {
  width: 100%;
  min-height: 70vh;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.45),
      rgba(255, 255, 255, 0.25)
    ),
    url("images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  padding-top: 140px;
  padding-bottom: 100px;

  border-radius: 0;
  box-shadow: none;
  margin: 0;
  margin-bottom: 20px;
}

#hero h1,
#hero p {
  position: relative;
  z-index: 2;
}

#hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 84px;
  margin-bottom: 10px;
}

#hero p {
  font-size: 44px;
  color: #666;
}

#countdown {
  margin-top: 30px;
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  color: #444;
  font-weight: 300;
  letter-spacing: 1px;
}

#countdown span {
  font-weight: 500;
  color: #2f4633;
  font-size: 28px;
}

/* HERO – MOBIL */
@media (max-width: 768px) {
  #hero h1 {
    font-size: 48px;
  }

  #hero p {
    font-size: 28px;
  }

  #countdown {
    font-size: 16px;
  }

  #countdown span {
    font-size: 20px;
  }
}

/* =====================================================
   OBECNÉ SEKCE (PANELY)
===================================================== */

section:not(#hero):not(.fullwidth) {
  background: #ffffffaa;
  padding: 40px 20px;
  border-radius: 12px;
  max-width: 700px;
  margin: 40px auto;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* =====================================================
   INFO
===================================================== */

#info {
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
}

#info h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

#info p {
  font-size: 18px;
  margin: 8px 0;
  color: #555;
}

/* =====================================================
   PROGRAM
===================================================== */

#program {
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
}

#program h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

#program ul {
  list-style: none;
  padding: 0;
}

#program li {
  font-size: 18px;
  margin: 10px 0;
  color: #555;
}

/* =====================================================
   DARY
===================================================== */

#gifts {
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
}

#gifts h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

#gifts p {
  font-size: 18px;
  margin: 10px 0;
  color: #555;
  line-height: 1.8;
}

/* =====================================================
   RSVP
===================================================== */

#rsvp {
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
}

#rsvp h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

#rsvp p {
  font-size: 18px;
  color: #555;
  margin-bottom: 20px;
}

#rsvp-button {
  display: inline-block;
  padding: 12px 24px;
  background-color: #333;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 18px;
}

#rsvp-button:hover {
  background-color: #555;
}

/* =====================================================
   PRAKTICKÉ INFO
===================================================== */

#details {
  max-width: 600px;
  margin: 80px auto;
  text-align: center;
}

#details h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

#details p {
  font-size: 18px;
  margin: 10px 0;
  color: #555;
}

/* =====================================================
   HORIZONTÁLNÍ LINKY
===================================================== */

hr {
  border: none;
  border-top: 1px solid #cdddcf;
  margin: 40px auto;
  width: 50%;
}

/* =====================================================
   MAPA – FULL WIDTH
===================================================== */

section.fullwidth {
  all: unset;
  display: block;
}

#map-section {
  width: 100%;
  margin: 0;
  padding: 40px 0;
  text-align: center;
  background: none;
}

#map-section h2 {
  text-align: center;
  margin: 40px 0 20px 0;
}

.map-full {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 30%;
}

.map-full iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =====================================================
   FULLWIDTH UTILITY
===================================================== */

.fullwidth {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  display: block !important;
}

/* =====================================================
   RSVP FORM – JEMNÝ, SVATEBNÍ VZHLED
===================================================== */

#rsvp form {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 30px;
}

/* POPISKY */
#rsvp label {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 15px;
  color: #556b5f;
  font-weight: 400;
}

/* INPUTY & SELECTY – LINKOVÝ STYL */
#rsvp input[type="text"],
#rsvp input[type="email"],
#rsvp select {
  margin-top: 8px;
  padding: 8px 4px;
  font-size: 16px;
  border: none;
  border-bottom: 1px solid #cdddcf;
  border-radius: 0;
  background: transparent;
  width: 100%;
  max-width: 280px;
  text-align: center;
  font-family: 'Inter', sans-serif;
}

#rsvp input:focus,
#rsvp select:focus {
  outline: none;
  border-bottom-color: #2f4633;
}

/* RADIO SEKCE – BEZ RÁMEČKŮ */
#rsvp fieldset {
  border: none;
  padding: 0;
  margin: 0;
  text-align: center;
}

#rsvp legend {
  font-size: 15px;
  color: #556b5f;
  font-weight: 400;
  margin-bottom: 10px;
}

#rsvp fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 14px;
  font-size: 15px;
  color: #444;
}

/* TLAČÍTKO – LEHČÍ */
#rsvp button {
  margin: 10px auto 0;
  padding: 12px 34px;
  font-size: 18px;
  border-radius: 999px;
  border: 1px solid #2f4633;
  background: transparent;
  color: #2f4633;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

#rsvp button:hover {
  background-color: #2f4633;
  color: #fff;
}

#rsvp button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* STATUS TEXT */
#rsvp-status {
  font-size: 15px;
  color: #555;
  text-align: center;
}

/* =====================================================
   RSVP FORM – MOBILNÍ ŠÍŘKA
===================================================== */

@media (max-width: 600px) {
  #rsvp input[type="text"],
  #rsvp input[type="email"],
  #rsvp select {
    max-width: 100%;
  }

  #rsvp fieldset label {
    display: flex;
    justify-content: center;
    margin: 10px 0;
  }

  #rsvp button {
    width: 100%;
    max-width: 360px;
  }
}

/* =====================================================
   RSVP FORM – SKRYTÍ PLACEHOLDERU "VYBER"
===================================================== */

#rsvp select {
  color: #2f4633;
}

/* placeholder option */
#rsvp select:has(option:checked[value=""]) {
  color: transparent;
}

/* šipka zůstane viditelná */
#rsvp select:has(option:checked[value=""]) option {
  color: #2f4633;
}

/* =====================================================
   PRAKTICKÉ INFORMACE – IKONKY
===================================================== */

.details-list {
  display: flex;
  flex-direction: column;
  gap: 36px;
  margin-top: 40px;
}

.detail-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 28px;
  align-items: center;
}

/* IKONKY – STEJNÝ ODSTÍN */
.detail-icon {
  width: 56px;
  height: auto;
  opacity: 0.6;
  filter: grayscale(100%);
}

/* TEXT – JEMNĚJŠÍ */
.detail-text p {
  margin: 0;
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  text-align: left;
}

/* =====================================================
   PRAKTICKÉ INFO – MOBIL
===================================================== */

@media (max-width: 600px) {
  .detail-item {
   display: grid;
   grid-template-columns: 56px 1fr;
   column-gap: 28px;
   align-items: center;
  }

  .detail-icon {
    width: 44px;
    margin-top: 2px;
  }

  .detail-text p {
    font-size: 14px;
    line-height: 1.7;
  }
}

/* =====================================================
   FOTOGALERIE
===================================================== */

#gallery {
  max-width: 900px;
  margin: 80px auto;
  text-align: center;
}

#gallery h2 {
  font-size: 32px;
  margin-bottom: 30px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.photo-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.photo-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* LIGHTBOX */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-img {
  max-width: 80%;
  max-height: 80%;
  border-radius: 8px;
}

#lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 48px;
  color: white;
  cursor: pointer;
  font-weight: 300;
  user-select: none;
}

#lightbox-close:hover {
  color: #ccc;
}

/* ŠIPKY */
#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 64px;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 0 20px;
}

#lightbox-prev {
  left: 20px;
}

#lightbox-next {
  right: 20px;
}

#lightbox-prev:hover,
#lightbox-next:hover {
  color: #ccc;
}