/* --------- BASE --------- */
:root {
  --bg-color: #0a0a0a; 
  --text-gold: #d4c4a8; 
  --text-highlight: #fdfcf5; 
  --border-delicate: rgba(212, 196, 168, 0.3);
}

body {
  margin: 0;
  font-family: 'Cormorant Garamond', serif; 
  font-size: 19px;
  font-weight: 300;
  color: var(--text-gold);
  background: var(--bg-color);
  line-height: 1.8;
  overflow-x: hidden; 
}

h1, h2, h3 {
  font-family: 'Cinzel', serif; 
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 4px; 
  color: var(--text-highlight);
  margin-bottom: 24px; 
}

h2 {
  font-size: 32px;
  border-bottom: 1px solid transparent;
  display: inline-block;
  padding-bottom: 10px;
}

h3 {
  font-size: 20px;
  letter-spacing: 3px;
  color: var(--text-gold);
  border-bottom: 1px solid var(--border-delicate);
  padding-bottom: 5px;
  display: inline-block;
}

/* LINKI */
a {
  color: var(--text-highlight);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-gold);
  transition: 0.4s ease;
  font-style: italic;
}
a:hover {
  color: #fff;
  border-bottom: 1px solid #fff;
  letter-spacing: 1px;
}

/* SEPARATOR  */
.section-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-delicate), transparent);
  margin: 64px auto; 
  width: 60%;
  opacity: 0.6;
}

/* --------- BANNER --------- */
#banner {
  height: 100vh;
  background-image: url('./img/background.jpg');
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 150px rgba(0,0,0,0.8); 
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  color: var(--text-highlight);
}

#banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3); 
    z-index: 1;
}

#banner .banner-content {
    position: relative;
    z-index: 2;
    padding: 32px; 
    backdrop-filter: blur(2px);
}

#banner .banner-content h1 {
  font-family: 'Cinzel', serif;
  font-size: 56px;
  letter-spacing: 8px;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}


#banner .banner-content p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 5px;
  font-size: 16px; 
  margin: 24px 0; 
  color: #fff;
}

#banner q {
  font-family: "Great Vibes", cursive;
  font-size: 32px; 
  color: var(--text-gold);
  display: block;
  margin-top: 32px; 
  opacity: 0.9;
}


/* --------- SEKCJE OGÓLNE --------- */
section {
  text-align: center;
  margin: 0 auto;
}

p {
    max-width: 700px;
    margin: 16px auto; 
    font-size: 18px; 
}

/* --------- INTRO --------- */
#intro h3 {
    border: none;
    font-size: 16px;
    letter-spacing: 6px;
    opacity: 0.8;
}
#intro p {
    font-size: 20px; 
    font-style: normal;
    color: var(--text-highlight);
}

/* --------- ZAPROSZENIE --------- */
#invitation {
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  position: relative;
  padding: 96px 16px; 
  max-width: 1200px;
}

.invitation-box {
  background: rgba(15, 15, 15, 0.75);
  backdrop-filter: blur(10px); 
  padding: 64px 32px;
  border: 1px solid var(--border-delicate);
  color: var(--text-gold);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.official {
    line-height: 2;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
}

.official strong {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 29px;
    margin: 24px 0;
    color: var(--text-highlight);
    font-weight: 400;
    border-top: 1px solid var(--border-delicate);
    border-bottom: 1px solid var(--border-delicate);
}

.places {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 64px;
}

.places div {
  flex: 1;
  min-width: 250px;
  background: transparent;
  padding: 0;
  border-left: 1px solid var(--border-delicate);
  transition: transform 0.5s ease;
}

.places div:hover {
  transform: translateY(-5px);
}

/* ---------------- TIMELINE ---------------- */
.timeline-list li,
.timeline-item {
    margin: 32px 0;
    padding: 12px 0;
}

.timeline-list .time,
.timeline-item .time {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 20px;
    color: var(--text-highlight);
    letter-spacing: 2px;
    margin-bottom: 6px;
}

.timeline-list .event,
.timeline-item p {
    display: block;
    font-size: 17px;
    color: var(--text-gold);
    opacity: 0.9;
}

.timeline-list li::after,
.timeline-item::after {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--border-delicate);
    margin: 14px auto 0;
}

/* ---------------- MENU  ---------------- */
/* Działa dla szablonu luxury (.menu-list) i golden (.menu-section ul li) */
.menu-list li,
.menu-section ul li {
    margin: 32px 0;
    padding: 12px 0;
    list-style: none;
    position: relative;
}

.menu-list .category
 {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: var(--text-highlight);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.menu-section h3{
    font-family: 'Cinzel', serif;
    font-size: 18px;
    color: var(--text-highlight);
    letter-spacing: 2px;
    border-bottom: none;
}

.menu-list .item,
.menu-section ul li {
    display: block;
    font-size: 17px;
    color: var(--text-gold);
    opacity: 0.85;
}

.menu-list li::after,
.menu-section ul li::after {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--border-delicate);
    margin: 14px auto 0;
}

/* reset list dla obu typów */
.timeline-list,
.menu-list,
.menu-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* --------- PREZENTY --------- */
.wish-list {
       background: linear-gradient(
        to bottom,
        #0a0a0a 0%,
        #111 60%,
        #0a0a0a 100%
    );
}

.wish:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.03);
  border-color: var(--text-gold);
}
.wishes {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    align-items: stretch;
}

.wish {
    width: 260px;
    min-height: 220px;   /* ta sama wysokość */
    padding: 32px;
    border: 1px solid var(--border-delicate);
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: center; /* ⬅️ KLUCZ */
    text-align: center;
    transition: all 0.4s ease;
}

.wish h3 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 16px;
    height: 48px;              /* STAŁA WYSOKOŚĆ */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 16px 0;
}

.wish p {
    margin: 0;
    line-height: 1.6;
}

/* --------- RSVP --------- */
.rsvp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 32px;
  text-align: center;
}

.rsvp button {
  background: transparent;
  border: 1px solid var(--text-gold);
  color: var(--text-gold);
  padding: 16px 48px;
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.4s;
  margin-top: 48px;
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.rsvp button:hover {
  background: var(--text-gold);
  color: #000;
  box-shadow: 0 0 20px rgba(212, 196, 168, 0.3);
}

.rsvp p {
    margin: 8px 0;
}

.rsvp p a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    text-decoration: none;
    border: none;
    display: inline-block;
    color: var(--text-highlight);
    transition: 0.3s;
}

.rsvp p a:hover {
    color: var(--text-gold);
    transform: scale(1.05);
}

/* --------- COUNTDOWN --------- */
.countdown-box {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.countdown-box div {
  text-align: center;
  background: transparent;
  padding: 30px;
  min-width: 100px;
  border: 1px solid rgba(255,255,255,0.1);
}

.countdown-box span {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 48px;
    color: var(--text-highlight);
    line-height: 1;
}

.countdown-box label {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 3px;
    margin-top: 10px;
    display: block;
    font-family: 'Montserrat', sans-serif;
}

/* --------- LAST SECTION --------- */
.last-section {
    padding-bottom: 96px;
}

.signature {
  font-family: "Great Vibes", cursive;
  font-size: 64px; 
  color: var(--text-gold);
  margin-top: 32px; 
  opacity: 0.8;
  transform: rotate(-5deg);
}

/* Animacje wejścia */
section {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.add-to-calendar-btn {
    background: transparent;
    border: 1px solid var(--text-gold);
    color: var(--text-gold);
    padding: 12px 30px; 
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 10px; 
    cursor: pointer;
    transition: 0.3s;
    margin-top: 20px; /* Lekki odstęp od daty */
    margin-bottom: 20px; /* Odstęp od cytatu */
    z-index: 3;
    position: relative;
    opacity: 0.9;
}

.add-to-calendar-btn:hover {
    background: rgba(212, 196, 168, 0.1); /* Delikatne tło po najechaniu */
    color: var(--text-highlight);
    opacity: 1;
}

/* --------- STYLIZACJA PANELU WYBORU KALENDARZA (MODAL) --------- */
#calendar-options-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px); /* Efekt szkła */
    z-index: 1000; /* Wysoka warstwa, by zakryć wszystko */
    display: none; /* Domyślnie ukryty */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#calendar-options-overlay.active {
    display: flex;
    opacity: 1;
}

#calendar-options-box {
    padding: 40px;
    border: 1px solid var(--text-gold);
    background: var(--bg-color);
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 50px rgba(212, 196, 168, 0.1);
}

#calendar-options-box p {
    font-family: 'Cinzel', serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 16px;
    margin-bottom: 25px;
    color: var(--text-gold);
}

/* Przyciski/linki w panelu */
#calendar-options-box a, #calendar-options-box button {
    display: block;
    margin: 15px auto;
    text-decoration: none;
    border: 1px solid var(--border-delicate);
    padding: 10px 20px;
    color: var(--text-highlight);
    transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    background: transparent;
}
#calendar-options-box a:hover, #calendar-options-box button:hover {
    background: var(--text-gold);
    color: var(--bg-color);
    border-color: var(--text-gold);
}


/* --------- RESPONSYWNOŚĆ --------- */

/* MAX 1024px – duże wishty */
@media (max-width: 1024px) {

    h1, h2 {
        font-size: 90%;
    }

    .invitation-box {
        padding: 48px 24px;
    }

    .places {
        gap: 32px;
    }

}

/* MAX 768px – wishty */
@media (max-width: 768px) {

    body {
        font-size: 17px;
    }

    #banner .banner-content {
        padding: 24px;
    }

    #banner .banner-content h1 {
        font-size: 36px;
        letter-spacing: 5px;
    }

    #banner q {
        font-size: 26px;
    }

    h2 {
        font-size: 26px;
        letter-spacing: 2px;
    }

    h3 {
        font-size: 18px;
    }

    p {
        font-size: 17px;
        padding: 0 16px;
    }

    .places {
        flex-direction: column;
        gap: 40px;
    }

    .places div {
        border-left: none;
        border-top: 1px solid var(--border-delicate);
        padding-top: 24px;
    }

    .countdown-box {
        gap: 16px;
    }

    .countdown-box div {
        padding: 20px;
        min-width: 80px;
    }

    .countdown-box span {
        font-size: 36px;
    }
}

/* MAX 480px – telefony */
@media (max-width: 480px) {
    #banner {
        background-position: center top;
    } 

    #banner .banner-content h1 {
        font-size: 32px;
        letter-spacing: 4px;
    }

    #banner p {
        font-size: 14px;
        letter-spacing: 3px;
    }

    #banner q {
        font-size: 22px;
    }

    h2 {
        font-size: 20px;
    }

    .invitation-box {
        padding: 32px 20px;
    }

    .places div p {
        font-size: 16px;
    }

    ul li {
        font-size: 16px;
    }

    .rsvp button {
        padding: 14px 32px;
        font-size: 12px;
        letter-spacing: 2px;
    }

    .countdown-box {
        gap: 12px;
        padding: 15px;
    }

    .countdown-box span {
        font-size: 30px;
    }
 
    .signature {
        font-size: 48px;
    }
}

/* MAX 375px – najmniejsze ekrany (iPhone SE) */
@media (max-width: 375px) {

    #banner .banner-content h1 {
        font-size: 28px;
        letter-spacing: 3px;
    }

    #banner q {
        font-size: 19px;
    }

    h2 {
        font-size: 19px;
        letter-spacing: 1px;
    }

    p {
        font-size: 16px;
    }

    ul li {
        font-size: 13px;
    }

    .timeline-list{
      padding: 30px;
    }

    .menu-list{
      padding: 30px;
    }

    .countdown-box span {
        font-size: 26px;
    }

    .rsvp button {
        padding: 12px 26px;
        font-size: 11px;
    }
}
