/* ============================================================
   ROOT & RESET
   ============================================================ */
:root {
  --primary: #9A4A52;
  --cream: #f6f2ee;
  --soft: #e4e1df;
  --dark: #2b2b2b;
  --text: #2b2b2b;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-size: 1rem;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: 'Source Sans 3', sans-serif;
  letter-spacing: -0.02em;
  font-weight: 500;
}

a, a:visited {
  color: inherit;
  text-decoration: none;
}

iframe {
  width: 100% !important;
  max-width: 100%;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.5)),
    url('Photos/purelove3.JPG');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: blur(6px);
  transform: translateZ(0) scale(1.05);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem 4rem;
  animation: fadeUp 1.2s ease-out both;
}

.hero-content span {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  font-weight: 350;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.9;
  display: block;
  margin-bottom: 0.5rem;
}

.hero-names {
  max-width: 700px;
  width: 80%;
  margin: 2rem auto;
  display: block;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  font-size: 0.8rem;
  opacity: 0.7;
  letter-spacing: 0.2em;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  border-radius: 999px;
  padding: 1rem 2.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--primary);
  color: #fff;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: 'Source Sans 3', sans-serif;
  margin-top: 2rem;
}

.btn:visited { color: #fff; }

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(157, 107, 122, 0.3);
  background: #7a2f36;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 6rem 1.5rem;
  text-align: center;
  background: var(--cream);
  overflow: hidden;
  background-image: radial-gradient(rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 4px 4px;
}

.section.soft {
  background: var(--soft);
  background-image: radial-gradient(rgba(0,0,0,0.02) 1px, transparent 1px);
  background-size: 4px 4px;
}

.section > * {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.section h2 {
  font-size: 40px;
  margin-bottom: 1.25rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.12em;
}

.section p {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.section::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--primary);
  margin: 3rem auto 0;
}

/* ============================================================
   DIVIDER
   ============================================================ */
.divider {
  text-align: center;
  margin: 3rem auto 0;
}

.divider img {
  width: 40px;
  height: auto;
  opacity: 0.7;
}

.hint2 {
  font-size: 1rem;
  color: #666;
  margin-top: 0.1rem;
  margin-bottom: 0.1rem;
}

/* ============================================================
   PROGRAM CARDS
   ============================================================ */
.details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
}

.detail-card {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 500;
  background: #fff;
  padding: 2.5rem 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 45px rgba(0,0,0,0.12);
}

.detail-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

.detail-card h3::after {
  content: "";
  display: block;
  width: 32px;
  height: 2px;
  background: var(--primary);
  margin: 0.75rem auto 1.25rem;
  opacity: 0.5;
}

.detail-card .time {
  font-size: 1.75rem;
  font-weight: 600;
}

.detail-card p {
  font-size: 1rem;
  line-height: 1.5;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-section {
  padding: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.gallery-section::after {
  display: none;
}

.gallery-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

.gallery {
  display: flex;
  overflow-x: auto;
  gap: 0;
  padding: 0;
  cursor: grab;
  width: 100%;
  scrollbar-width: none;
}

.gallery:active { cursor: grabbing; }
.gallery::-webkit-scrollbar { display: none; }

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.gallery-arrow::before {
  content: '';
  display: block;
  width: 25px;
  height: 25px;
  border-top: 3px solid var(--primary);
  border-right: 3px solid var(--primary);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.gallery-arrow.right::before { transform: rotate(45deg); }
.gallery-arrow.left::before  { transform: rotate(-135deg); }
.gallery-arrow:hover::before { border-color: #fff; }
.gallery-arrow.left  { left: 1.5rem; }
.gallery-arrow.right { right: 1.5rem; }

.photo {
  flex: 0 0 auto;
  height: 300px;
  width: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  aspect-ratio: 3/4;
}

.dresscode-dots {
  display: block;
  margin-top: 1rem;
  max-width: 220px;
  height: auto;
}

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.countdown div {
  background: #fff;
  padding: 1.5rem 2rem;
  border-radius: 16px;
  min-width: 100px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.countdown div:hover { transform: scale(1.05); }

.countdown span {
  display: block;
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
}

.countdown small {
  font-size: 0.8rem;
  color: #777;
}

/* ============================================================
   VENUE / MAP
   ============================================================ */
.venue-social {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  opacity: 0.8;
}

.venue-social a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 500;
}

.venue-social img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-container {
  max-width: 800px;
  margin: 2rem auto 0;
  text-align: left;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease;
}

.faq-item:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.08); }

.faq-question {
  width: 100%;
  padding: 1rem 1.75rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question:hover { color: var(--primary); }

.faq-icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary);
  transition: transform 0.3s ease;
  min-width: 24px;
  text-align: center;
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.75rem;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.75rem 1.25rem;
}

.faq-answer p {
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   RSVP
   ============================================================ */
#rsvp {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  box-sizing: border-box;
  width: 100%;
}

#rsvp .btn { margin-top: 0.5rem; }

.rsvp-form {
  width: min(900px, 100%);
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.8s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}

.rsvp-form.open {
  max-height: 800px;
  opacity: 1;
}

.rsvp-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2.5rem;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 2px solid #e8dfda;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

.rsvp-form textarea {
  resize: vertical;
  min-height: 100px;
}

.rsvp-form .btn { width: 100%; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .details { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hero-content {
    padding: 1.5rem 1rem;
  }

  .hero-names {
    width: 90%;
    max-width: 320px;
  }

  .hero-content span { font-size: 0.85rem; }
  .scroll-indicator  { font-size: 0.7rem; }

  .hero::before {
    filter: none;
    transform: scale(1);
  }

  .section {
    padding: 4rem 1.2rem;
  }

  .section h2   { font-size: 28px; }
  .section p    { text-align: left; }
  .hint2        { text-align: left; }

  .details {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .photo {
    height: 220px;
    flex: 0 0 50%;
  }

  .gallery-arrow        { width: 36px; height: 36px; }
  .gallery-arrow::before { width: 14px; height: 14px; }

  .countdown     { gap: 0.75rem; }
  .countdown div { min-width: 70px; padding: 1rem; }
  .countdown span { font-size: 1.5rem; }

  .faq-container { margin: 1rem 0 0; }
  .faq-question  { font-size: 1rem; padding: 1rem 1.25rem; }

  iframe { height: 250px; }

  .venue-social a { font-size: 0.9rem; }

  .rsvp-form { width: 100%; }

  .rsvp-form input,
  .rsvp-form select,
  .rsvp-form textarea {
    font-size: 1rem;
    padding: 0.9rem 1rem;
  }
}

@media (max-width: 550px) {
  .details { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .countdown div  { min-width: 60px; padding: 0.75rem; }
  .countdown span { font-size: 1.2rem; }
  .details        { gap: 1rem; }
}