/* GLOBAL */
body {
  margin: 0;
  padding: 40px 20px;
  background-color: #FAF3E0;
  color: #2A1F1F;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.6;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* SECTION TITLES */
.section-title {
  font-size: 28px;
  font-weight: 600;
  color: #3B2F2F;
}

/* MAIN SECTIONS */
.section-block {
  background: white;
  padding: 25px;
  margin: 40px 0;

  /* 🔥 remove rounded look */
  border-radius: 0;

  /* keep structure */
  border-left: 6px solid #3B2F2F;

  /* cleaner shadow */
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* HERO (NEW CLEAN VERSION) */
.hero {
  background: #3B2F2F;
  color: #FAF3E0;

  padding: 120px 20px 100px;
  text-align: center;

  border-radius: 0;
  margin-bottom: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(
  180deg,
  #3B2F2F 0%,
  #2A1F1F 100%
);
}

.hero-inner {
  max-width: 700px;
}

/* NAMES */
.hero-names {
  font-family: 'The Ahmedians', cursive;

  /* 🔥 responsive scaling */
  font-size: clamp(52px, 10vw, 140px);

  font-weight: 400;
  margin: 0;
  letter-spacing: 1px;
  line-height: 1.05;
}

/* DATE */
.hero-date {
  margin-top: 20px;
  font-size: clamp(12px, 1.2vw, 16px);
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.8;
}

/* MOBILE */
@media (max-width: 600px) {
  .hero {
    padding: 90px 20px 70px;
  }

  .hero-names {
    font-size: 48px;
  }
}

/* RSVP FORM */
.rsvp-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
}

.rsvp-form label {
  font-weight: 600;
  font-size: 14px;
  color: #3B2F2F;
}

.rsvp-form input,
.rsvp-form select {
  padding: 14px;
  border: 2px solid #3B2F2F;
  background: #FAF3E0;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
}

.rsvp-form button {
  margin-top: 10px;
  background: #3B2F2F;
  color: #FAF3E0;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  transition: 0.3s;
}

.rsvp-form button:hover {
  background: #C6A667;
  color: #3B2F2F;
}

/* TIMELINE */
/* TITLE (proper underline) */
.timeline .section-title { 
  display: block;
  text-align: center;  
  margin-bottom: 30px;
}

/* DATE (NOW CENTERED AGAIN) */
.timeline-date {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 35px 0 25px;
  color: #3B2F2F;
}

/* LIST */
.timeline-list {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ITEM */
.timeline-item {
  text-align: center;
  margin-bottom: 26px;
  position: relative;
}

/* REMOVE GAP FOR NO-TIME ITEMS */
.timeline-item.no-time .timeline-event {
  margin-top: 0;
}

/* SEPARATOR LINE */
.timeline-item:not(:last-child)::after {
  content: "";
  display: block;
  width: 1px;
  height: 18px;
  background: rgba(59,47,47,0.18);
  margin: 14px auto 0;
}

/* TIME (lighter now) */
.timeline-time {
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 4px;
  font-weight: 500;
}

/* EVENT (primary focus) */
.timeline-event {
  font-size: 1.2rem;
  font-weight: 400;
  color: #2A1F1F;
}

/* SUB TEXT */
.timeline-sub {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-top: 4px;
}

/* MOBILE */
@media (max-width: 600px) {
  .timeline-date {
    font-size: 1.3rem;
  }

  .timeline-event {
    font-size: 1.05rem;
  }
}

/* TIMELINE CARD UPGRADE (scoped only here) */
.timeline-section {
  position: relative;
  padding: 40px 30px;

  border: 1px solid rgba(59, 47, 47, 0.15);
  border-radius: 0;

  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
}

.timeline-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 35px 0;
}

.timeline-divider::before,
.timeline-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(59, 47, 47, 0.2);
}

.timeline-divider span {
  width: 8px;
  height: 8px;
  background: #3B2F2F;
  border-radius: 50%;
  margin: 0 10px;
}

/* TIMELINE HEADER STRIP */
.timeline-title-main {
  text-align: center;
  background: #3B2F2F;
  color: #FAF3E0;

  padding: 16px 20px;
  margin: -40px -30px 30px -30px; /* stretch full width inside card */

  border-radius: 0;

  font-size: 26px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* FAQ */
.faq-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-list li {
  background: #FFFFFF;

  padding: 16px 18px;

  border-radius: 0;

  border: 1px solid rgba(59, 47, 47, 0.2);

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.faq-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.faq-list strong {
  display: block;
  margin-bottom: 6px;
  color: #3B2F2F;
}

/* LINKS */
.timeline-link,
.timeline-link:visited {
  color: #FAF3E0;
  text-decoration: none;
  font-weight: 600;
}

.timeline-link:hover {
  color: #C6A667;
}

/* FADE-IN */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

#guestNamesField {
  width: 100%;
}

#guestNamesField input {
  width: 100%;
  box-sizing: border-box;
}

#dietaryField {
  width: 100%;
}

#dietaryField input {
  width: 100%;
  box-sizing: border-box;
}

/* Registry link */
.registry-link {
  color: #bfa046;
  text-decoration: underline;
  cursor: pointer;
  font-weight: 500;
}

.registry-link:hover {
  opacity: 0.7;
}

/* REGISTRY MODAL OVERLAY */
.registry-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);

  justify-content: center;
  align-items: center;
}

/* SHOW MODAL */
.registry-modal.show {
  display: flex;
}

/* MODAL BOX */
.registry-modal-content {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  position: relative;
}

/* CLOSE BUTTON */
.registry-close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 22px;
  cursor: pointer;
}

/* LINK STYLE */
.registry-link {
  color: #bfa46f;
  text-decoration: underline;
  cursor: pointer;
}

/* COUNTDOWN STRIP */
.countdown-strip {
  margin: 40px 0;
  padding: 30px 20px;

  text-align: center;

  background: white;

  /* match your sections */
  border-left: 6px solid #3B2F2F;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);

  border-radius: 0; /* keep sharp edges */
}

.countdown-strip span {
  display: block;
  font-size: 4.5rem;
  font-weight: 600;
  color: #3B2F2F;
  letter-spacing: 2px;
}

.countdown-strip p {
  margin-top: 8px;
  font-size: 0.9rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #3B2F2F;
  opacity: 0.7;
}

/* subtle animation */
.countdown-strip span.animate {
  transform: translateY(-6px);
  opacity: 0.6;
  transition: 0.3s ease;
}

/* MOBILE */
@media (max-width: 600px) {
  .countdown-strip span {
    font-size: 3rem;
  }

  .countdown-strip {
    padding: 25px 15px;
  }
}

/* subtle animation */
.countdown-simple span.animate {
  transform: translateY(-6px);
  opacity: 0.6;
  transition: 0.3s ease;
}

/* MOBILE */
@media (max-width: 600px) {
  .countdown-simple span {
    font-size: 3rem;
  }
}

/* PHOTO GALLERY */

.gallery-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gallery-row {
  display: grid;
  gap: 18px;
}

.row-3 { grid-template-columns: repeat(3, 1fr); }
.row-2 { grid-template-columns: repeat(2, 1fr); }

.gallery-row img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;

  /* 🔥 THIS FIXES PIXELATION */
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);

  transition: transform 0.3s ease;
}

.gallery-row img:hover {
  transform: scale(1.04);
}

/* MOBILE */
@media (max-width: 768px) {

  /* 🔥 flatten rows into one grid */
  .gallery-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* remove row structure */
  .gallery-row {
    display: contents;
  }

  /* images */
  .gallery-row img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  /* 🔥 make every 3rd image full width (nice touch) */
  .gallery-row img:nth-child(3n) {
    grid-column: span 2;
    height: 220px;
  }
}

.map-button {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;

  background: #3B2F2F;
  color: #FAF3E0;

  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;

  transition: 0.3s ease;
}

.map-button:hover {
  background: #C6A667;
  color: #3B2F2F;
}

img[src="gallery5.JPG"] {
  object-position: left center;
}

@media (max-width: 600px) {

  .countdown-strip {
    padding: 25px 15px;
    margin: 30px 0;
  }

  .countdown-strip span {
    font-size: clamp(42px, 12vw, 60px);
  }

  .countdown-strip p {
    font-size: 11px;
    letter-spacing: 2px;
  }

}

/* GALLERY HOVER */
.gallery-row img {
  cursor: zoom-in;
  transition: transform 0.25s ease;
}

.gallery-row img:hover {
  transform: scale(1.03);
}

/* LIGHTBOX OVERLAY */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;

  z-index: 9999;
}

/* SHOW */
.lightbox.show {
  opacity: 1;
  visibility: visible;
}

/* IMAGE */
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;

  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.lightbox.show img {
  transform: scale(1);
}

/* CLOSE BUTTON */
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 25px;

  font-size: 32px;
  color: #FAF3E0;
  cursor: pointer;

  transition: opacity 0.2s ease;
}

.lightbox-close:hover {
  opacity: 0.6;
}

/* MOBILE */
@media (max-width: 600px) {
  .lightbox img {
    max-width: 95%;
    max-height: 85%;
  }

  .lightbox-close {
    font-size: 28px;
    top: 15px;
    right: 20px;
  }
}

/* PASSWORD SCREEN (PREMIUM) */
#password-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* blurred background layer */
.password-overlay {
  position: absolute;
  inset: 0;
  background: rgba(250, 243, 224, 0.85);
  backdrop-filter: blur(8px);
}

/* content */
.password-box {
  position: relative;
  text-align: center;
  z-index: 2;

  padding: 40px 30px;
  width: 90%;
  max-width: 360px;

  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(10px);

  border-radius: 12px;
  border: 1px solid rgba(59,47,47,0.15);

  box-shadow: 0 10px 30px rgba(0,0,0,0.08);

  animation: fadeUp 0.8s ease;
}

.password-title {
  font-family: 'The Ahmedians', cursive;
  font-size: 48px;
  margin: 0;
  color: #3B2F2F;
}

.password-sub {
  margin: 10px 0 25px;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.6;
}

/* input */
.password-box input {
  width: 100%;
  padding: 14px;

  border: 2px solid #3B2F2F;
  border-radius: 8px;

  background: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;

  margin-bottom: 15px;
  outline: none;
}

.password-box input:focus {
  border-color: #C6A667;
}

/* button */
.password-box button {
  width: 100%;
  padding: 14px;

  background: #3B2F2F;
  color: #FAF3E0;

  border: none;
  border-radius: 8px;

  font-weight: 600;
  cursor: pointer;

  transition: 0.3s ease;
}

.password-box button:hover {
  background: #C6A667;
  color: #3B2F2F;
}

/* error */
#error-msg {
  color: #a94442;
  font-size: 12px;
  margin-top: 10px;
}

/* fade animation */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* unlock transition */
#password-screen.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}