:root {
  --green: #5F8F7B;
  --green-dark: #3e6f5c;
  --deep-emerald-green: #1f3D2B;
  --muted-sage: #a8bfa3;

  --white: #ffffff;
  --off-white: #f9f7f1;
  --ivory-white: #f8f6f2;

  --gold: #C9A96A;
  --gold-soft: #E5C98B;
  --champagne-gold: #e5d3a1;

  --text-dark: #2F3E36;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


body {
  line-height: 1.6;
  color: #333;

  opacity: 1;
  transition: opacity 0.4s ease;
}

/* PAGE TRANSITION OVERLAY */
.page-transition {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: var(--ivory-white); /* matches your theme */
  opacity: 0;
  pointer-events: none;

  transition: opacity 0.4s ease;
  z-index: 9999;
}

/* active fade */
.page-transition.active {
  opacity: 1;
  pointer-events: all;
}

/* fade out */
body.fade-out {
  opacity: 0;
}

/* HEADER (TRANSPARENT & CENTERED) */
.transparent-header {
  position: fixed; /* changed */
  top: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: 0.3s;
}

/* Add this new class */
.scrolled {
  background: rgba(168, 191, 163, 0.95); /* muted sage */
  backdrop-filter: blur(6px);
}

.nav-center {
  display: flex;
  justify-content: center;
}

.nav-center ul {
  display: flex;
  list-style: none;
  gap: 40px;
}

.nav-center ul li a {
  color: white;
  text-decoration: none;
  font-weight: 300;
  letter-spacing: 2px;
  font-size: 14px;
  text-transform: uppercase;
  transition: 0.3s;
  position: relative;
}

.nav-center ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 1px;
  background: var(--gold);
  transition: 0.3s;
}

.nav-center ul li a:hover {
  opacity: 0.7;
}

.nav-center ul li a:hover::after {
  width: 100%;
}

/* LIGHT NAV MODE (for light backgrounds like gallery) */

.light-nav .nav-center ul li a {
  color: var(--deep-emerald-green);
}

.light-nav .nav-center ul li a::after {
  background: var(--gold);
}

.light-nav .burger {
  color: var(--deep-emerald-green);
  background: rgba(255, 255, 255, 0.6);
}

/* BURGER MENU */
.burger {
  display: none;
  position: absolute;
  right: 20px;
  top: 20px;

  font-size: 26px;
  color: white;
  cursor: pointer;

  /* 👇 Reduced size */
  padding: 6px;
  border-radius: 6px;

  background: rgba(0, 0, 0, 0.2); /* lighter */
  backdrop-filter: blur(4px);

  box-shadow: 0 2px 6px rgba(0,0,0,0.2);

  transition: all 0.3s ease;
}

.burger:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 70%;
  height: 100%;
  background: var(--deep-emerald-green);
  padding: 30px;
  transition: 0.3s;
  z-index: 2000;
}

.mobile-title {
  font-family: 'Great Vibes', cursive;
  font-size: 28px;
  color: var(--champagne-gold);

  text-align: center;
  margin-bottom: 20px;

  letter-spacing: 2px;
}

.mobile-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--champagne-gold);
  margin: 10px auto 0;
}

/* MOBILE MENU MONOGRAM ONLY */
.mobile-monogram {
  width: 100px;
  margin: 15px auto 5px;
  display: block;

  border: 1px solid var(--champagne-gold);
  padding: 10px;
  border-radius: 50%;

  opacity: 0.9;
  transition: all 0.3s ease;
}

.mobile-monogram:hover {
  transform: scale(1.05);
  opacity: 1;
}

#menu-toggle:checked + .mobile-menu::before {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu ul li {
  width: 100%;
}

.mobile-menu ul li a {
  display: block; /* makes full row clickable */
  padding: 18px 0;
  text-decoration: none;

  font-family: 'Playfair Display', serif;
  font-size: 18px;
  letter-spacing: 2px;

  color: white;

  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: 0.3s;
}

.mobile-menu ul li a:hover {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.05);
}

#menu-toggle {
  display: none;
}

#menu-toggle:checked + .mobile-menu {
  left: 0;
}



/* HERO SECTION */
/* HERO SLIDESHOW */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* container */
.hero-slideshow {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

/* each slide */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

/* active slide */
.slide.active {
  opacity: 1;
}

/* SHOW DESKTOP / HIDE MOBILE */
.desktop-slide {
  display: block;
}

.mobile-slide {
  display: none;
}

/* MOBILE VIEW */
@media(max-width: 768px) {
  .desktop-slide {
    display: none;
  }

  .mobile-slide {
    display: block;
  }
}

/* overlay (keep your gradient effect) */
.hero::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;

  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.45) 0%,
  rgba(0,0,0,0.3) 75%, /*change here*/
  rgba(249, 247, 241, 0.9) 95%,
  #f9f7f1 100%
  );
}

/* keep text above */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  transform: translateY(-20px); /* adjust this if needed */
}

.hero h2 {
  font-family: 'Playfair Display', serif;
  font-size: 60px;
  font-weight: 400;
  letter-spacing: 4px;

  color: #ffffff;

  text-shadow:
    0 2px 10px rgba(0,0,0,0.6),
    0 0 25px rgba(0,0,0,0.4);
}

.subtitle {
  display: block;              /* IMPORTANT */
  text-align: center;

  font-family: 'Great Vibes', cursive;
  font-size: 32px;
  letter-spacing: 3px;

  color: var(--champagne-gold);

  text-shadow:
    0 2px 10px rgba(0,0,0,0.6),
    0 0 20px rgba(0,0,0,0.4);
}

/* FADE EFFECT */
.fade-out {
  height: 200px;
  background: linear-gradient(to bottom, transparent, white);
  margin-top: -200px;
}

.invitation {
  text-align: center;
  padding: 120px 20px;

  background: #f8f6f2; 
  background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  position: relative;
}

.invitation::before {
  content: "";
  position: absolute;
  left: 10%;
  top: 20%;
  width: 2px;
  height: 60%;
  background: rgba(0,0,0,0.05);
}

.invitation::after {
  content: "INVITED";
  position: absolute;
  right: 40px;
  bottom: 40px;

  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: rgba(183, 28, 28, 0.4);

  border: 2px solid rgba(183, 28, 28, 0.4);
  padding: 10px 20px;

  transform: rotate(-15deg);
}

.pen-decor {
  position: absolute;
  bottom: 30px;
  right: 40px; /* moved to right */
  width: 550px; /* bigger */
  opacity: 0.85;
  transform: rotate(-15deg); /* more natural placement */
}

.invite-title {
  font-family: 'Great Vibes', cursive;
  font-size: 42px;
  color: var(--deep-emerald-green);
  margin-bottom: 20px;
}

.invite-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 1px;
  background: var(--gold);
  margin: 15px auto 0;
}

.rsvp-link {
  margin-top: 25px;
  margin-bottom: 25px;
  text-align: center;
}

.rsvp-link a {
  display: inline-block;
  padding: 10px 20px;
  border: 3px solid var(--champagne-gold);
  border-radius: 25px;
  text-decoration: none;
  color: var(--deep-emerald-green);

  transition: all 0.3s ease;
}

.rsvp-link a:hover {
  opacity: 0.7;
  letter-spacing: 1px;
}

.invite-message {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  max-width: 700px;
  margin: 0 auto 30px;
  line-height: 1.8;
  color: #3b3b3b;
}

.invite-signature {
  font-family: 'Great Vibes', cursive;
  font-size: 32px;
  color: var(--deep-emerald-green);
}

.countdown {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px;
  background: linear-gradient(
    to bottom,
    #1f2f2a,
    var(--deep-emerald-green)
  );
  color: #f9f7f1;
}

.countdown h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin-bottom: 30px;
  color: #f9f7f1;
}

.timer {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.timer div {
  text-align: center;
}

.timer span {
  font-family: 'Playfair Display', serif;
  font-size: 44px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--champagne-gold);
}

.timer p {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: #cfcfcf;
}

/* DETAILS SECTION */
.details {
  padding: 100px 20px;
  text-align: center;

  background: url('img-2.png') no-repeat center/cover;
  position: relative;
  color: white;
}

.details::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(255, 255, 255, 0.75); /* soft white overlay */
}

.details > * {
  position: relative;
  z-index: 1;
}

.details h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 500;
  color: #2E7D32;
  margin-top: 40px;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.details p {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  margin: 6px 0;
  color: #3e3e3e;
}

.event {
  display: flex;
  align-items: stretch; /* IMPORTANT */
  justify-content: center;
  gap: 60px;
  margin-bottom: 100px;

  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.event-text {
  text-align: left;

  background: rgba(255, 255, 255, 0.85);
  padding: 30px;
  border-radius: 12px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  flex: 1;
  max-width: 500px; /* forces equal width */
  transition: 0.3s;
}
.event-text:hover {
  transform: translateY(-5px);
}

.event-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 500;
  color: var(--deep-emerald-green);
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.event-text h2 span {
  color: var(--gold);
}

.event-text p:nth-of-type(1) {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 1px;
  color: #2F3E36;
}

.event-text p:nth-of-type(2) {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #444;
}

.event-text p:nth-of-type(3) {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  color: #777;
  line-height: 1.6;
}

.event-text h2::after {
  content: "";
  display: block;
  width: 50px;
  height: 1px;
  background: var(--champagne-gold);
  margin-top: 10px;
}

.event-map {
  flex: 1;
  max-width: 500px; /* forces equal width */
}

.event-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 12px;

  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}


/* GALLERY SECTION */
.gallery-section {
  padding: 140px 20px;
  background: var(--ivory-white);
  text-align: center;
}

/* IMAGE LOADING PLACEHOLDER */
.gallery-img {
  background: linear-gradient(
    90deg,
    #f0ede6 25%,
    #e8e4db 50%,
    #f0ede6 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;

  border-radius: 10px;
}

/* shimmer animation */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* WHEN IMAGE LOADS → remove shimmer */
.gallery-img.loaded {
  animation: none;
  background: none;
}

.gallery-page {
  background: var(--ivory-white);
}

/* TITLE */
.gallery-title {
  font-family: 'Great Vibes', cursive;
  font-size: 42px;
  color: var(--green);
  margin-bottom: 50px;
}

.gallery-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 10px auto 0;
}

/* GRID */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 per row */
  gap: 20px;

  max-width: 1100px;
  margin: auto;
}

/* IMAGES */
.gallery-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;

  display: block;
}

.load-more-btn {
  display: block;
  margin: 50px auto;
  padding: 14px 32px;

  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;

  color: #6d5c4d;
  background: transparent;

  border: 3px solid var(--deep-emerald-green);
  border-radius: 50px;

  cursor: pointer;
  transition: all 0.35s ease;
}

/* HOVER EFFECT */
.load-more-btn:hover {
  background: #d8cfc4;
  color: white;
  border-color: #d8cfc4;
}

/* CLICK EFFECT */
.load-more-btn:active {
  transform: scale(0.97);
}

/* OPTIONAL: FADE IN */
.load-more-btn {
  opacity: 0;
  animation: fadeInBtn 1s ease forwards;
}

@keyframes fadeInBtn {
  to {
    opacity: 1;
  }
}

/* HOVER EFFECT */
.gallery-grid img:hover {
  transform: scale(1.05);
}

/* LIGHTBOX BACKGROUND */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  background: rgba(0, 0, 0, 0.85);
  display: none;

  justify-content: center;
  align-items: center;
  z-index: 3000;
}

/* SHOW ACTIVE */
.lightbox.active {
  display: flex;
}

/* IMAGE */
.lightbox-img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
}

/* CLOSE BUTTON */
.close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 30px;
  color: white;
  cursor: pointer;
}

/* ATTIRE PAGE ONLY */
.attire-page .gallery-grid img {
  height: auto;              /* remove forced crop */
  aspect-ratio: 2 / 3;       /* keeps portrait ratio (1024x1536) */
  object-fit: cover;         /* still clean cropping if needed */
}


/* FAQ */
.faq-page {
  background: var(--ivory-white);
}

.faq-section {
  padding: 140px 20px;
  text-align: center;
}

.faq-title {
  font-family: 'Great Vibes', cursive;
  font-size: 42px;
  color: var(--green);
  margin-bottom: 50px;
}

.faq-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 10px auto 0;
}

.faq-container {
  max-width: 800px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: white;
  border-radius: 12px;
  padding: 20px 25px;
  text-align: left;

  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: 0.3s;
}

.faq-item:hover {
  transform: translateY(-3px);
}

.faq-item summary {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  cursor: pointer;
  position: relative;
  list-style: none;
}

/* remove default arrow */
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* custom + icon */
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  font-size: 20px;
  color: var(--gold);
  transition: 0.3s;
}

/* when open */
.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  margin-top: 15px;
  color: #555;
  line-height: 1.7;
}


/* RSVP */
.rsvp-page {
  background: var(--ivory-white);
}

.rsvp-section {
  padding: 140px 20px 60px;
  text-align: center;
  max-width: 800px;
  margin: auto;
}

.rsvp-title {
  font-family: 'Great Vibes', cursive;
  font-size: 42px;
  color: var(--green);
  margin-bottom: 20px;
}

.rsvp-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 10px auto 0;
}

.rsvp-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  color: #444;
  margin-bottom: 40px;
  line-height: 1.8;
}

.qr-container img {
  width: 220px;
  height: 220px;
  object-fit: cover;

  border-radius: 12px;
  padding: 10px;
  background: white;

  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

.rsvp-btn {
  display: inline-block;
  padding: 14px 32px;

  background: var(--deep-emerald-green);
  color: white;
  text-decoration: none;

  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;

  border-radius: 30px;
  transition: 0.3s;
}

.rsvp-btn:hover {
  background: var(--green-dark);
}

.rsvp-note {
  margin-top: 20px;
  font-size: 13px;
  color: #777;
}

.section-divider {
  margin: 100px auto 60px;
  width: 100px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--champagne-gold),
    transparent
  );
  position: relative;
}


.roles-section {
  text-align: center;
  background: white;
  padding: 60px 20px;
  border-radius: 20px;
  max-width: 1100px;
  margin: 40px auto 0;

  box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.roles-title {
  font-family: 'Great Vibes', cursive;
  font-size: 36px;
  color: var(--deep-emerald-green);
  margin-bottom: 30px;
  letter-spacing: 1px;
}

.roles-title::after {
  content: "";
  display: block;
  width: 60px; /* same as RSVP title */
  height: 1px;
  background: var(--gold);
  margin: 10px auto 0;
}

.table-wrapper {
  max-width: 1000px;
  margin: auto;
  overflow-x: auto; /* IMPORTANT for mobile */
  -webkit-overflow-scrolling: touch; /* smoother scroll on iPhone */
}

.roles-table {
  width: 100%;
  border-collapse: collapse;
  background: white;

  border-radius: 12px;
  overflow: hidden;

  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
}

/* HEADER */
.roles-table thead {
  background: var(--deep-emerald-green);
  color: white;
}

.roles-table th {
  padding: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* BODY */
.roles-table td {
  padding: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  color: #444;
}

/* ROW LINES */
.roles-table tr {
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* HOVER EFFECT */
.roles-table tbody tr:hover {
  background: rgba(168, 191, 163, 0.15);
}


/* FOOTER */
.footer {
  background: linear-gradient(
    to top,
    #162a22 0%,
    var(--deep-emerald-green) 70%,
    rgba(31, 61, 43, 0.85) 100%
  );
  background-size: cover, 20px 20px;
  color: var(--off-white);
  text-align: center;
  padding: 60px 20px;
  border-top: 5px solid rgba(229, 211, 161, 0.3); /* champagne gold */
}


.footer-content {
  max-width: 800px;
  margin: auto;
}

/* NAMES */
.footer-names {
  font-family: 'Great Vibes', cursive;
  font-size: 36px;
  margin-bottom: 10px;
}

/* TAGLINE */
.footer-tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 30px;
}

/* DIVIDER */
.footer-divider {
  width: 60px;
  height: 1px;
  background: rgba(229, 211, 161, 0.4); /* champagne gold */
  margin: 20px auto;
}

/* NAV */
.footer-nav {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  padding: 0;
}

.footer-nav a {
  text-decoration: none;
  color: var(--off-white);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: 0.3s;
}

.footer-nav a:hover {
  opacity: 0.6;
  color: var(--champagne-gold);
}

/* CONTACT */
.footer-contact {
  font-size: 14px;
  margin-top: 20px;
}

/* BOTTOM TEXT */
.footer-bottom {
  font-size: 12px;
  margin-top: 25px;
  opacity: 0.7;
}

.footer-monogram {
  width: 110px;
  margin-top: 25px;
  opacity: 0.7;
  filter: grayscale(20%);
  transition: all 0.4s ease;
  border-radius: 10px;
}

.footer-monogram:hover {
  opacity: 1;
  transform: scale(1.08);
  filter: grayscale(0%);
}

@media(max-width: 768px) {
  .footer-monogram {
    width: 90px;
    filter: none;
    opacity: 100;
  }
}


/* RESPONSIVE */
@media(max-width: 768px) {
  .nav-center {
    display: none;
  }

  .burger {
    display: block;
  }

  .hero h2 {
    font-size: 36px;
  }

  .subtitle {
    font-size: 22px;
  }

@media(max-width: 768px) {
  .hero-content {
    text-align: center;
    padding: 0 15px; /* prevents edge hugging */
  }

  .hero h2 {
    text-align: center;
  }

  .subtitle {
    text-align: center;
  }
}



@media(max-width: 768px) {
  .details {
    padding: 30px 15px;

    background-position: center;
    background-size: cover;
  }

  .details h2 {
    font-size: 26px;
    margin-top: 0; /* remove unwanted gap */
    margin-bottom: 10px;
  }

  .details p {
    font-size: 15px;
  }

  .details p:nth-of-type(3n+3) {
    font-size: 13px;
  }
}
}

@media(max-width: 768px) {
  .invitation {
    padding: 80px 15px;
  }
  .pen-decor {
    width: 140px;
    bottom: 90px;
    right: 10px;
    transform: rotate(-10deg);
    opacity: 0.7;
  }

  .invite-title {
    font-size: 34px;
  }

  .invite-message {
    font-size: 15px;
  }

  .invite-signature {
    font-size: 26px;
  }
  .invitation::after {
    right: 20px;
    bottom: 20px;
    font-size: 8px;
  }

  .invitation::before {
    display: none; /* avoid clutter on small screens */
  }
}

@media(max-width: 768px) {
  .timer {
    gap: 20px;
  }

  .timer span {
    font-size: 32px;
  }
}

@media(max-width: 768px) {
  .countdown {
    padding: 80px 15px;
  }
}

@media(max-width: 768px) {
  .event {
    flex-direction: column;
    text-align: center;
  }

  .event-text {
    text-align: center;
  }
  
  .event-text h2::after {
    margin-left: auto;
    margin-right: auto;
  }

  .event-map iframe {
    height: 250px;
  }
}

@media(max-width: 768px) {
  .transparent-header {
    background: transparent !important;
    backdrop-filter: none !important;
  }
}


@media(max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
  }

  .gallery-grid img {
    height: 180px;
  }
}

@media(max-width: 768px) {
  .faq-section {
    padding: 100px 15px;
  }

  .faq-title {
    font-size: 34px;
  }

  .faq-item {
    padding: 18px;
  }

  .faq-item summary {
    font-size: 16px;
  }

  .faq-item p {
    font-size: 14px;
  }
}

@media(max-width: 768px) {
  .rsvp-section {
    padding: 100px 15px;
  }

  .rsvp-title {
    font-size: 34px;
  }

  .rsvp-text {
    font-size: 15px;
  }

  .qr-container img {
    width: 180px;
    height: 180px;
  }
}

@media(max-width: 768px) {
  .roles-table {
    min-width: 600px; /* forces horizontal scroll instead of squeezing */
  }
}

@media(max-width: 768px) {
  .roles-title {
    font-size: 28px;
  }
}

@media(max-width: 768px) {
  .roles-table th,
  .roles-table td {
    font-size: 12px;
    padding: 10px;
  }
}

@media(max-width: 768px) {
  .roles-section {
    margin: 20px 15px 0; /* adds side spacing */
    padding: 30px 15px; /* tighter but clean */
    border-radius: 16px; /* softer look */
  }
}

@media(max-width: 768px) {
  .footer {
    padding: 40px 15px;
  }

  .footer-names {
    font-size: 30px;
    color: var(--champagne-gold);
  }

  .footer-nav {
    gap: 15px;
  }

  .footer-nav a {
    font-size: 12px;
  }

  .footer-contact {
    font-size: 13px;
  }
}

@media(max-width: 768px) {
  .attire-page .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}