:root {
  --primary: #ace1af;
  --background: #f5eadc;
  --text: #333;
}

/* =========================
   CUSTOM FONTS
========================= */
@font-face {
  font-family: 'Boheme Floral';
  src: url('assets/fonts/BohemeFloral.woff2') format('woff2'),
    url('assets/fonts/BohemeFloral.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Kugile';
  src: url('assets/fonts/Kugile.woff2') format('woff2'),
    url('assets/fonts/Kugile.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* =========================
   GLOBAL STYLING
========================= */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Georgia", serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  position: relative;
}

header,
footer,
.section {
  text-align: center;
  padding: 2rem 1rem;
}

.contact ul * {
  list-style: none;
  text-decoration: none;
}

/* =========================
   HERO BACKGROUND
========================= */
.hero-image {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background-image: url('assets/img/AGNIESZKA&DAMIAN-32.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
  opacity: 1;
  transition: opacity 0.2s linear;
}

/* =========================
   HERO OVERLAY
========================= */
.welcome.hero-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 30%;
  height: 100vh;
  /* pełna wysokość */
  max-height: none;
  /* usuń ograniczenie */
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  color: #fff;
  overflow: hidden;
  z-index: 1;
}

.welcome.hero-overlay h1 {
  font-family: 'Boheme Floral', Georgia, serif;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  word-break: keep-all;
}

.hero-date {
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 0.5rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.hero-image,
.hero-overlay {
  transition: opacity 0.2s linear;
}

/* =========================
   MAIN CONTENT
========================= */
main {
  position: relative;
  z-index: 2;
  margin-top: 100vh;
  /* padding-top: 0.1rem; */
  background: var(--background);
}

/* =========================
   SEKCJE
========================= */
.section {
  padding: 3rem 1rem;
  min-height: 10vh;
  margin-bottom: 3rem;
}

.section:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.6);
}

/* =========================
   GOLDEN FRAME
========================= */
.goldenframe {
  padding: 1.5rem;
  border-radius: 14px;
  background:
    linear-gradient(#fffaf4, #fffaf4) padding-box,
    linear-gradient(135deg, #b8860b, #c9a84a, #ffd700, #e6c46a, #b8860b) border-box;
  border: 2px solid transparent;
}

/* =========================
   LICZNIK ŚLUBU
========================= */
.countdown {
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 4rem 0;
}

#countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 2rem auto;
  font-size: 1.8rem;
  font-weight: 600;
  color: #2b2b2b;
}

#countdown span {
  position: relative;
  display: inline-block;
  min-width: 2ch;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

#countdown span.change {
  animation: numberChange 0.35s ease-out;
}

@keyframes numberChange {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   SEKCJE TREŚCI
========================= */
.details,
.contact {
  text-align: center;
}

.details h2,
.contact h2 {
  margin-bottom: 1rem;
}
.contact ul{
  padding-left: 0;
}

.maps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto 3rem;
}

.map-box {
  padding: 1.5rem;
}

.map-box h3 {
  margin-bottom: 0.5rem;
}

.map-box p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.map-box iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 10px;
}

/* =========================
   RESPONSYWNOŚĆ MOBILE/TABLET/LANDSCAPE
========================= */

/* MOBILE portrait ≤480px */
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  main {
    padding: 2rem 1rem;
  }

  .welcome.hero-overlay {
    padding: 1.5rem;
    width: 80%;
  }

  .welcome.hero-overlay h1 {
    font-size: 3rem;
    letter-spacing: 0.03em;
  }

  .hero-date {
    font-size: 1rem;
  }

  .section {
    padding: 2rem 1rem;
  }

  .goldenframe {
    padding: 1.2rem;
  }

  #countdown {
    flex-wrap: wrap;
    justify-content: center;
    font-size: 1.3rem;
    gap: 0.5rem;
  }

  #countdown span {
    min-width: 2ch;
  }

  .maps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .map-box iframe {
    height: 240px;
  }
}


/* TABLET ≤768px */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  main {
    padding: 2.5rem 1.5rem;
  }

  .welcome.hero-overlay h1 {
    font-size: 4.2rem;
  }

  #countdown {
    font-size: 1.5rem;
  }

  .maps {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .map-box iframe {
    height: 280px;
  }

  .details,
  .contact {
    padding: 1rem;
  }
}

/* MOBILE/Tablet landscape ≤900px */
@media (max-width: 900px) and (orientation: landscape) {
  body {
    font-size: 15px;
  }

  main {
    padding: 2rem 1.5rem;
  }

  .welcome.hero-overlay {
    padding: 1.5rem 2rem;
    max-width: 60%;
  }

  .welcome.hero-overlay h1 {
    font-size: 3rem;
    letter-spacing: 0.04em;
  }

  .hero-date {
    font-size: 1.1rem;
    letter-spacing: 0.15em;
  }

  .section {
    padding: 2rem 1.5rem;
  }

  #countdown {
    font-size: 1.3rem;
    gap: 0.4rem;
  }

  .maps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .map-box iframe {
    height: 220px;
  }
}

/* SPECJALNE FIXY dla małej wysokości w landscape */
@media (max-height: 430px) and (orientation: landscape) {
  .welcome.hero-overlay {
    height: 100vh;
    max-height: none;
    padding: 1.2rem 1.5rem;
  }

  .welcome.hero-overlay h1 {
    font-size: 2.6rem;
    line-height: 1.05;
  }

  .hero-date {
    font-size: 1rem;
    margin-top: 0.4rem;
  }
}

/* Wrapper całej strony */
.wrapper {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 1rem;
    background-color: #f5eadc;
}

/* Formularz */
.guest-upload {
    max-width: 500px;
    width: 100%;
    padding: 2.5rem;
    background: #fffaf4;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.guest-upload h2 {
    /* font-family: 'Boheme Floral', serif; */
    font-size: 2.5rem;
    color: #b8860b;
    margin-bottom: 2rem;
}

.file-input {
    width: 90%;
    padding: 1.2rem;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    border-radius: 10px;
    border: 1px solid #ccc;
    cursor: pointer;
}

.submit-btn {
    display: block;
    width: 100%;
    padding: 1.2rem;
    font-size: 1.3rem;
    font-weight: bold;
    color: #fff;
    background-color: #b8860b;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-btn:hover {
    background-color: #daa520;
}

.message {
    margin-bottom: 1rem;
    font-weight: bold;
    color: green;
}

/* Responsywność dla małych ekranów */
@media (max-width: 480px) {
    .guest-upload {
        padding: 2rem 1.5rem;
    }

    .guest-upload h2 {
        font-size: 2rem;
    }

    .file-input,
    .submit-btn {
        font-size: 1rem;
        padding: 1rem;
    }
}
