@import url("https://fonts.googleapis.com/css2?family=Carattere&family=Forum&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap");
:root {
  --nav: #222;
  --gold: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 70px 0 0 0;
  font-family: "Carattere", cursive;
  color: #000;
  overflow: hidden;
}

hr {
  border: none;
  height: 1px;
  background-color: #333333;
  width: 100%; /* Ensures horizontal expansion */
  display: block; /* Prevents inline/flex collapsing */
}

li {
  list-style: none;
}

a {
  /* color of links */
  color: #f5f5f5;
  text-decoration: underline;
}

.navbar {
  /* color of nav bar */
  background-color: var(--nav);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  margin: 0 auto 0 auto;
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  z-index: 10;
  box-shadow:
    0 4px 8px 0 rgba(0, 0, 0, 0.2),
    0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.navbar h1 {
  color: var(--gold);
}

.nav-logo {
  width: 50px;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
}

.nav-text {
  color: var(--gold);
  margin-right: auto;
  margin-left: 10px;
}

.nav-link {
  transition: 0.7s ease;
  font-family: "Forum", "Times New Roman", Times, serif;
  text-decoration: none;
  color: var(--gold);
  font-weight: 400;
  font-size: 1.2rem;
}

.nav-link:hover {
  color: var(--main-color);
}

.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  -webkit-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  /* color of bars */
  background-color: var(--gold);
  border-radius: 3px;
}

/* SECTION */
section {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

section h2 {
  font-size: 4rem;
}

section h3 {
  font-size: 2rem;
}

section p {
  font-size: 1.4rem;
  font-family: "Forum", "Times New Roman", Times, serif;
  width: 80%;
  text-align: center;
}

section a {
  /* background-color: rgb(115, 122, 98); */
  background-color: #fff;
  color: #000;
  font-size: 2rem;
  font-family: "Forum", "Times New Roman", Times, serif;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  border: 2px solid #000;
}

section a:hover {
  cursor: pointer;
  background-color: #000;
  color: #fff;
}

.pics {
  overflow: hidden;
  padding: 0;
  white-space: nowrap;
  position: relative;
  background-color: rgb(247, 240, 230);
}

.pics-track {
  display: inline-flex;
  animation: slide 45s linear infinite;
}

/* .pics:hover .pics-track {
  animation-play-state: paused;
} */

.pics-slide {
  display: inline-flex;
  flex-shrink: 0;
}

.pics-slide img {
  width: 300px;
  vertical-align: middle;
  margin-right: 5px;
}

@keyframes slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* INTRO */
.intro {
  width: 100% !important;
  height: 100vh;
  background-color: #222222;
  color: #fff;
  position: relative;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.names,
.intro {
  width: 65%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  text-align: center;
}

.intro img {
  width: 65%;
}

.intro button,
#muteBtn {
  background-color: #fff;
  color: #000;
  font-size: 2rem;
  font-family: "Forum", "Times New Roman", Times, serif;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  padding: 0.5rem 1rem;
  text-transform: uppercase;
  border: 2px solid #000;
}

.intro button:hover,
#muteBtn:hover {
  cursor: pointer;
  background-color: #000;
  color: #fff;
}

.intro.fade-out {
  opacity: 0;
  transition: opacity 1s ease-out;
  pointer-events: none; /* Prevent interaction after fade-out */
}

#muteBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: transparent;
  border: none;
  font-size: 2rem;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px;
  border-radius: 50%;
  transition: background-color 0.3s ease;
  cursor: pointer;
  z-index: 10000;
  display: none;
}

#muteBtn.active {
  display: block;
}

/* HEADER */
#header-section {
  width: 100%;
  height: calc(100vh - 70px);
  background-image: url("header-bkgd4.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #fff;
  position: relative;
}

#header-section img {
  width: 35%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* KIDS */
.kid-picture-wrapper {
  background-image: url("kid-bkgd.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  height: 100vh;
  position: relative;
}

.kid-picture-wrapper img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50%;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

/* JOIN US */
.join-us {
  background-image: url("pink.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.join-us p {
  width: 60%;
}

.caps-join-us {
  text-transform: uppercase;
  font-size: 2rem;
  letter-spacing: 2px;
}

/* COUNTDOWN */
.countdown-wrap {
  font-family: "Forum", "Times New Roman", Times, serif;
  text-align: center;
  padding: 40px;
  background-color: #111;
}

.countdown-title {
  font-size: 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: #fff;
}

.countdown {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.unit {
  background: rgba(230, 229, 229, 0.986);
  border: 1px solid rgba(252, 236, 165, 0.3);
  padding: 20px 18px;
  min-width: 90px;
}

.unit .value {
  font-size: 2.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #000;
}

.unit .label {
  margin-top: 6px;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #000;
}

.finished {
  font-size: 1.5rem;
  color: #4ade80;
  font-weight: 600;
}

/* LOCATION */
#travel-section {
  /* background-image: url("bkgd-2.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat; */
  background-color: #fff;
  color: #000;
}

/* AGENDA */
#agenda-section {
  background-image: url("bkgd-2.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fff;
  color: #000;
}

.agenda-wrapper {
  display: flex;
  gap: 2rem;
  width: 80%;
}

.agenda-wrapper img {
  width: 50%;
}

.agenda-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 50%;
}

.empty-space {
  margin-right: 4rem;
}

.word-space {
  margin-right: 1rem;
}

.agenda-container p {
  font-size: 1.6rem;
  text-align: left;
  display: block;
  margin: 0 auto;
  width: 100%;
}

/* ACCORDION */
.accordion-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
}

.accordion-wrapper h2 {
  font-size: 4rem;
}

.faq-titles {
  font-size: 2rem;
  font-family: "Forum", "Times New Roman", Times, serif;
}

.accordion {
  width: 80%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1.3rem;
  margin-bottom: 2rem;
}

.accordion_item {
  overflow: hidden;
  transition: all 0.3s ease;
  font-family: "Forum", "Times New Roman", Times, serif;
}

.accordion_btn {
  position: relative;
  cursor: pointer;
  background: #d4d4d4;
  padding: 1rem;
  border: none;
  width: 100%;
  text-align: left;
  font-weight: 600;
  font-size: 1.3rem;
  font-family: "Forum", "Times New Roman", Times, serif;
  transition:
    background 0.3s,
    border-radius 0.3s ease;
  -webkit-text-fill-color: var(--color-text) !important;
  color: var(--color-active-text) !important;
}

.accordion_item.active .accordion_btn {
  background: #d2d2d2;
}

.accordion_item.active {
  color: var(--color-active-text);
}

.accordion_content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: #e4e4e4;
}

.accordion_inner {
  padding: 1rem;
  gap: 1rem;
  display: flex;
  flex-direction: column;
}

.accordion_inner ul {
  padding-left: 1.5rem;
}

.accordion_inner a {
  color: var(--color-active-text);
}

/* plus sign */
.accordion_btn::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 1.5rem;
  color: #555;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

/* X rotate*/
.accordion_item.active .accordion_btn::after {
  transform: translateY(-50%) rotate(45deg);
  color: #000;
}

footer {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  background-color: #222;
  gap: 1rem;
  padding: 1rem 0;
  font-size: 1.5rem;
  color: #fff;
}

footer img {
  width: 100px;
}

/* TABLET BREAKPOINTS */
@media (max-width: 1024px) {
  section {
    padding: 2rem 1rem;
    height: 100%;
  }

  section h2 {
    font-size: 3rem;
  }
  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    gap: 0;
    flex-direction: column;
    /* color of nav menu links */
    background-color: #444;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    opacity: 0.95;
  }

  .navbar h1 {
    font-size: 1.5rem;
  }

  .nav-item {
    margin: 16px 0;
  }

  .nav-text {
    display: none;
  }

  .nav-menu.active {
    left: 0;
  }

  /* HEADER */
  #header-section {
    background-attachment: scroll;
  }

  /* MODIFICATION 1 - TOP */
  #header-section img {
    width: 100%;
    top: 50%;
  }

  /* Pics Slide Scroll */
  .pics:hover .pics-slide {
    animation-play-state: running;
  }

  .kid-picture-wrapper {
    height: 40vh;
  }

  .join-us p {
    width: 90%;
  }

  /* SECTION */
  iframe {
    width: 95%;
  }

  /* MODIFICATION 2 - WIDTH */
  .location-img {
    width: 50%;
  }

  .agenda-wrapper {
    flex-direction: column;
    align-items: center;
    width: 95%;
  }

  /* MODIFICATION 3 - WIDTH */
  .agenda-wrapper img {
    width: 50%;
  }

  /* MODIFICATION 4 - WIDTH  */
  .agenda-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 40%;
  }

  .agenda-container p {
    width: 100%;
    font-size: 1.1rem;
  }

  .empty-space {
    margin-right: 2.9rem;
  }

  .accordion {
    width: 90%;
  }

  .accordion_btn {
    font-size: 1.2rem;
  }
}

/* MOBILE BREAKPOINTS */
@media (max-width: 768px) {
  /* MODIFICATION 1 - TOP */
  #header-section img {
    top: 40%;
  }

  /* Join Us */
  .join-us {
    background-image: url("pink-mobile.webp");
  }

  .kid-picture-wrapper img {
    width: 90%;
  }

  /* MODIFICATION 2 - WIDTH */
  .location-img {
    width: 100%;
  }

  /* MODIFICATION 3 - WIDTH */
  .agenda-wrapper img {
    width: 100%;
  }

  /* MODIFICATION 4 - WIDTH  */
  .agenda-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
}
