/* Reminder: Optimize all images in the images/ folder for web (compression, correct format, etc.) */

@font-face {
  font-family: 'TAY_Benditos';
  src: url('fonts/TAYBenditos.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'Cooper';
  src: url('fonts/Cooper-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: 'Cooper';
  src: url('fonts/Cooper-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
}
@font-face {
  font-family: 'Cooper';
  src: url('fonts/Cooper-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: 'Cooper';
  src: url('fonts/Cooper-MediumItalic.ttf') format('truetype');
  font-weight: 500;
  font-style: italic;
}
@font-face {
  font-family: 'Cooper';
  src: url('fonts/Cooper-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
}
@font-face {
  font-family: 'Cooper';
  src: url('fonts/Cooper-SemiBoldItalic.ttf') format('truetype');
  font-weight: 600;
  font-style: italic;
}

/* Add font imports here, e.g.:
@import url('https://fonts.googleapis.com/css2?family=Cooper:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=TAY_Benditos:wght@400;700&display=swap');
*/

/* Basic Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Cooper', serif; background: #fff; color: #000938; }
html, body { overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
/* Navigation */
.nav { display: flex; justify-content: center; align-items: center; padding: 2rem 1rem; gap: 3rem; }
.nav-logo, .nav-link { font-family: 'TAY_Benditos', sans-serif; font-size: 1.5rem; color: #000938; }
.nav-union { width: 120px; height: 32px; display: flex; align-items: center; }
.nav-union img { width: 100%; height: auto; }
/* Main Section */
.main-section { display: flex; flex-direction: column; align-items: center; padding: 4rem 0 2rem 0; position: relative; z-index: 3; padding-top: 80px; padding-bottom: 80px; }
.main-title { font-size: clamp(1.3rem, 4vw, 2rem); color: rgba(0,9,56,0.6); margin-bottom: 2rem; text-align: center; line-height: 1.3; }  
.main-image-container { position: relative; max-width: 100%; display: flex; flex-direction: column;}
.main-image {
  display: block;
  margin: 0 auto;
  padding: 0px auto 48px 0px;
  max-width: 400px;
  width: 100%;
  z-index: 2;
  position: relative;
}
.main-date { font-size: clamp(1.3rem, 4vw, 1.8rem); color: rgba(0,9,56,0.6); text-align: center; margin-top: 1.5rem; }
.name-lock {
  max-width: 800px;
  border-radius: 12px;
  display: block;
  margin: 0px auto -40px auto;
  z-index: 10;
  position: relative;
  padding: 0px 2rem;
}
/* Event Details */
.event-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  padding: 3rem 0;
  width: 100vw;
  transform: translateX(-50%);
  box-sizing: border-box;
}
.background-image { width: 100%; display: block; margin: 0 auto; object-fit: cover; }
.background-image-container {
  position: relative;
  background-image: url("images/border-1.png");
  background-repeat: repeat-x;
  background-size: 400px;
  height: 80px;
  width: 100%;
  background-position: center;
  margin-bottom: -40px;
  z-index: 10;
}
.bottom-background {
  margin-top: -40px;
  z-index: 10;
  position: relative;
}
.event-card {
  background: transparent;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  mix-blend-mode: multiply;
  max-width: 540px;
  min-height: 480px;
  box-sizing: border-box;
  text-align: center;
}
.event-title { font-size: 1.1rem; color: rgba(0,9,56,0.6); margin-bottom: 1rem; }
.event-location { font-family: 'TAY_Benditos', sans-serif; font-size: clamp(2rem, 4vw, 2.5rem); color: #000938; margin-bottom: 1rem; }
.event-img { width: 100%; max-width: 525px; max-height: 350px; height: 100%; object-fit: cover; border-radius: 8px; margin-bottom: 0.5rem; display: block; }
.event-map { font-size: 0.9rem; color: #000938; margin-bottom: 1.25rem;}
.event-detail {font-family: 'TAY_Benditos', sans-serif; font-size: 1.1rem; color: rgba(0,9,56,0.60); margin-bottom: 0.5rem;}
.event-map-link { color: #000938; text-decoration: underline;padding-left: 10px;}
.afterparty-image {max-width: 160px; padding-bottom: 2rem;}
.afterparty-card {
  --r: 12px;
  position: relative;
  background: #164470;
  color: #fff;
  padding: 1.5rem;
  mask: 
    linear-gradient(#000 0 0) no-repeat
      50%/calc(100% - 2*var(--r)) calc(100% - 2*var(--r)),
    radial-gradient(farthest-side,#000 97%,#0000) 
      0 0/calc(2*var(--r)) calc(2*var(--r)) round;
  -webkit-mask: 
    linear-gradient(#000 0 0) no-repeat
      50%/calc(100% - 2*var(--r)) calc(100% - 2*var(--r)),
    radial-gradient(farthest-side,#000 97%,#0000) 
      0 0/calc(2*var(--r)) calc(2*var(--r)) round;
  box-sizing: border-box;
  min-height: 320px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.afterparty-card .event-title,
.afterparty-card .event-location,
.afterparty-card .event-detail {
  color: #fff;
}
.afterparty-card .afterparty-image {
  max-width: 180px;
  width: 100%;
  margin: 1rem auto;
  display: block;
  border-radius: 12px;
}
@media (max-width: 900px) {
  .afterparty-card {
    min-height: 240px;
    --r: 8px;
    padding: 1.5rem;
  }
}
@media (max-width: 600px) {
  .afterparty-card {
    min-height: 160px;
    --r: 5px;
    padding: 1.5rem;
  }
}
/* RSVP Section */
.rsvp-section {
  display: flex;
  justify-content: center;
  padding: 8rem 0;
  padding-block: clamp(4rem, 10vw, 10rem);
  position: relative;
  background-image: url("images/stripes-min.jpg");
  background-repeat: repeat;
  background-size: 240px;
  margin: 0 -50vw;
  padding-left: 50vw;
  padding-right: 50vw;
}
.rsvp-btn {
  padding: 3.2rem 5rem 3rem 5rem; 
  font-family: 'TAY_Benditos', sans-serif; 
  font-size: 1.75rem; 
  color: white; 
  border-radius: 1px; 
  cursor: pointer; 
  transition: all 0.2s; 
  text-decoration: none; 
  display: inline-block;
  margin: 2rem 0;
  background-image: url("images/rsvp-bg-min.png");
  background-size: 95% 95%;
  background-position: center;
  background-repeat: no-repeat;
}
.rsvp-btn:hover, .rsvp-btn:focus { 
  background-image: url("images/rsvp-bg-min.png");
  background-size: 95% 95%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.8;
  outline: none; 
}
/* FAQs Section */
.faqs-section { 
  padding: 4rem 0; 
  padding-block: clamp(2rem, 8vw, 6rem);
}
.faqs-title { font-family: 'TAY_Benditos', sans-serif; font-size: 2rem; color: #000938; text-align: center; margin-bottom: 2rem; }
.faqs-list {
  margin: 0 auto;
  max-width: 900px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.faq-card { background-color: #fff; padding: 0.75rem; }
.faq-q { font-family: 'Cooper', serif; font-weight: bold; color: #000938; margin-bottom: 0.5rem; font-size: 1.1rem; line-height: 1.4; }
.faq-a { font-family: 'Cooper', serif; color: #000938; font-size: 1rem; line-height: 1.6; }
.faq-link {color: #145694;}
/* Footer */
footer { background: none; color: #888; font-size: 0.9rem; text-align: center; padding: 2rem 0 1rem 0; }
    /* Responsive - Updated for Masonry */
    @media (max-width: 1200px) {
      .container { max-width: 98vw; }
      .main-image-container { max-width: 90vw; }
    }
    @media (max-width: 900px) {
      .event-section {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
      }
      .event-card {
        width: 90vw;
        max-width: 400px;
        min-height: 400px;
      }
      .name-lock {max-width: 100%;}
      .faqs-list {
        grid-template-columns: 1fr;
        gap: 1rem;
      }
      .diamond-stack {
        flex-direction: row !important;
        gap: 12px;
        margin: 1rem 0;
        justify-content: center;
        align-items: center;
      }
    }
    @media (max-width: 768px) {
      .main-section, .event-section, .faqs-section { padding: 2rem 1rem; }
      .event-card { width: 100%; }
      .main-image-container { width: 100%; }
      .faq-frame-wrap { width: 280px; }
      .container { padding: 0 0.5rem; }
      .rsvp-section { padding: 8rem 0; }
      .event-location {text-align: center;}
      .nav {gap: 1.5rem;}
    }
    @media (max-width: 600px) {
      .main-image { border-radius: 8px; }
      .name-lock {max-width: 80%;}
      .event-img { border-radius: 6px; }
      .faqs-section { padding: 1.5rem 0; background: none; }
      .main-section, .event-section, .faqs-section { padding: 1rem; }
      .container { padding: 0 0.25rem; }
      .rsvp-section {
        padding: 4rem 0;
        background-size: 120px !important;
        background-repeat: repeat;
        background-position: center;
        position: relative;
        width: 100vw;
        left: 50%;
        right: 50%;
        transform: translateX(-50%);
      }
      .rsvp-btn {
        position: relative;
        z-index: 1;
        padding: 2.2rem 4rem 2rem 4rem;
        font-size: 1.1rem;
        width: 90vw;
        max-width: 350px;
        box-sizing: border-box;
        text-align: center;
      }
      .main-bordered-container {
        padding: 0 20px;
      }
      .main-border-img {
        height: 40px;
      }
      .main-section {
        padding-top: 40px;
        padding-bottom: 40px;
      }
      .faqs-list {
        max-width: 100vw;
        grid-template-columns: 1fr;
        padding: 0 0.5rem;
      }
      .faq-frame-wrap {
        width: 100%;
        box-sizing: border-box;
        padding: 0;
      }
      .faq-card {
        width: 100%;
        box-sizing: border-box;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
      }
    }

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s cubic-bezier(0.4, 0.2, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.fade-in.in-view {
  opacity: 1;
  transform: translateY(0);
}
.fade-in.delay-1 { animation-delay: 0.2s; }
.fade-in.delay-2 { animation-delay: 0.4s; }
.fade-in.delay-3 { animation-delay: 0.6s; }
.fade-in.delay-4 { animation-delay: 0.8s; } 
.fade-in.delay-4 { animation-delay: 0.8s; } 

section,
.faqs-section,
.event-section,
.main-section {
  padding-block: clamp(6rem, 8vw, 10rem);
}

/* Decorative top and bottom border images for main section */
.main-border-img {
  display: block;
  width: 100%;
  height: 80px;
  object-fit: cover;
}
.main-border-img-top {
  margin-bottom: -10px;
}
.main-border-img-bottom {
  margin-top: -10px;
}
.main-section {
  position: relative;
  z-index: 3;
}
@media (max-width: 600px) {
  .main-border-img {
    height: 40px;
  }
}

/* Diamond stack between event cards */
.diamond-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 1.5rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s cubic-bezier(0.4, 0.2, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.diamond-stack.in-view {
  opacity: 1;
  transform: translateY(0);
}
.diamond-img {
  width: 16px;
  max-width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.2s cubic-bezier(0.4, 0.2, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0.2, 0.2, 1);
}
.diamond-stack.in-view .diamond-img {
  opacity: 1;
  transform: translateY(0);
}

/* Afterparty section: visually related to event-section but slightly separated */
.afterparty-section {
  margin-top: 2rem;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0;
  padding-bottom: 0;
}
.afterparty-section .event-card {
  max-width: 540px;
  min-height: 320px;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: center;
}
@media (max-width: 900px) {
  .afterparty-section {
    margin-top: 1.2rem;
  }
  .afterparty-section .event-card {
    width: 90vw;
    max-width: 400px;
    min-height: 240px;
  }
}
@media (max-width: 600px) {
  .afterparty-section {
    margin-top: 0.8rem;
  }
  .afterparty-section .event-card {
    width: 100%;
    min-height: 180px;
  }
}

.event-row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 2rem;
  width: 100%;
}
.afterparty-row {
  display: flex;
  justify-content: center;
  width: 100%;
}
@media (max-width: 900px) {
  .event-row {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

@media (max-width: 600px) {
  .event-row {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
  }
}
@media (max-width: 600px) {
  .fade-in, .fade-in.in-view {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .diamond-stack,
  .diamond-stack.in-view,
  .diamond-img,
  .diamond-stack.in-view .diamond-img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}