body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    
    background-color: rgba(252, 243, 235, 0.45); /* Semi-transparent black overlay */
    
    z-index: -1; /* Puts the overlay behind the body content */
}

@media (max-width: 768px) {
  body {
       margin: 0;
      padding: 0;
      background-attachment: scroll; /* Fixes the scroll lag */
  }

    /* 1. Set a consistent safe-zone for the whole container */
  .content-wrapper {
      width: 100% !important;
      padding: 0 20px !important; /* This is your global "text margin" */
      box-sizing: border-box;
  }

  /* 2. Make the image "break out" of the padding to hit the edges */
  .high-res-image {
      margin-top: -1em;
      width: calc(100% + 20px) !important; /* Adds back the 20px padding from both sides */
      margin-left: -10px !important;       /* Pulls it back to the absolute left edge */
      max-width: none !important;
      height: 35vh; 
      object-fit: cover;
      border-radius: 0;
  }

  /* 3. Fix the Bootstrap Row Gutter */
  /* Bootstrap rows have negative margins that can cause "squishing" if not reset */
  section .row {
      margin-left: 0 !important;
      margin-right: 0 !important;
      padding: 0 !important; /* Let the content-wrapper handle the padding */
  }

  /* 4. Reposition Menu so it stays inside the safe-zone */
  .hero-nav {
      position: absolute;
      top: 15px;
      right: 20px; /* Align with the text padding */
      width: auto !important;
  }
  
  /* 5. Typography boost */
  .p-text {
      font-size: 0.9rem; /* Slightly larger text is easier to read on mobile */
      letter-spacing: 1px; /* Reducing letter-spacing helps text feel less "stretched" */
  }
  .mobile-swap-container {
    display: flex;
    flex-direction: column; /* Stack vertically */
  }

  /* Move Nav to the top (Position 1) */
  .mobile-swap-container nav {
    order: 1;
  }

  /* Move Wedding Header below the Nav (Position 2) */
  .mobile-swap-container .wedding-header {
    order: 2;
    margin-top: 1rem; /* Adjust spacing after swap */
  }

  .navbar-toggler {
    margin-left: auto; /* Pushes the button to the right */
    margin-top: 1em;
  }
  .nav-link.active::after {
        background: none !important;
  }

  /* Optional: Change the text color of the active link instead 
      so it's still clear which section is selected */
  .nav-link.active {
      color: #888 !important; /* Or a color that fits your theme */
      font-weight: 600;
  }
  /* Ensure the RSVP header stays at the very top */
  .mobile-swap-container .wedding-header {
      order: 1 !important;
  }
  
  /* Nav goes second */
  .mobile-swap-container .navbar {
      order: 2 !important;
      margin-top: 10px;
  }

  /* Form section goes third */
  .mobile-swap-container #rsvp-form-section {
      order: 3 !important;
  }
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-image: url('/images/bg.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* Keep for desktop */
}

.navbar-brand {
  font-family: Georgia, serif;
  font-size: 1.5rem;
}

footer {
  font-size: 0.9rem;
}

.map-responsive {
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;
  height: 0;
}
.map-responsive iframe {
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  position: absolute;
}

/* Position container on top of hero image */
.hero-overlay {
  position: absolute;
  top: 20px;          /* adjust spacing from top */
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* Styled floating navbar */
.hero-nav {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 40px;
}

/* Make sure toggler icon is visible on transparent bg */
.navbar-toggler {
  border-color: rgba(0, 0, 0, 0.3);
}

/* On mobile */
@media (max-width: 576px) {
  .couple-names {
    font-size: 1.8rem;
  }

  .wedding-date {
    font-size: 0.9rem;
  }

  .hero-nav {
    width: 90%;
  }
}

.couple-names {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: 4px;
}

.wedding-date {
  font-size: 1.1rem;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: 4px;
}

.nav-text {
  font-size: 0.9rem;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  letter-spacing: 2px;
}

.h1-text {
  font-size: 2rem;
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  letter-spacing: 4px;
}

.p-text {
  font-size: 0.75rem;
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  letter-spacing: 2px;
}

.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    width: 60%;
    height: 2px;
    background: #000; /* or whatever color fits your theme */
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    content: "";
    position: absolute;
    width: 60%;
    height: 2px;
    background: #888;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Better Content Wrapper */
.content-wrapper {
  position: relative;
  width: 90%; /* Mobile friendly width */
  max-width: 700px; /* Desktop constraint */
  margin: 20px auto;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9); /* Fallback for browsers that hate gradients */
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.8) 70%, #f0f0f0 95%);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* Styling for the high-resolution image itself */
.high-res-image {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	/* Ensure the image doesn't have its own sharp border */
	border-radius: 4px; 
	display: block;
	opacity: 90%;
}

/* Form Specific Styling */
.rsvp-input {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px solid #ddd;
    border-radius: 0; /* Keeps the elegant sharp-edge look */
    font-family: 'Helvetica Neue', sans-serif;
    padding: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.rsvp-input:focus {
    background-color: #fff;
    border-color: #333;
    box-shadow: none;
    outline: none;
}

.rsvp-toggle {
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    padding: 15px;
    border-color: #ccc;
    color: #555;
}

.btn-check:checked + .rsvp-toggle {
    background-color: #333 !important;
    border-color: #333 !important;
    color: #fff !important;
}

.rsvp-submit-btn {
    font-family: 'Playfair Display', serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding: 15px 50px;
    border-radius: 0;
    font-weight: 500;
    transition: 0.4s ease;
}

.rsvp-submit-btn:hover {
    background-color: #555;
    letter-spacing: 5px;
}

/* Mobile Tweaks */
@media (max-width: 768px) {
    .rsvp-submit-btn {
        width: 100%; /* Makes it easier to tap on mobile */
    }
    
    .rsvp-toggle {
        padding: 10px;
        font-size: 0.85rem;
    }
}

/* --- Desktop Settings (Standard Navbar) --- */
.custom-mobile-nav .navbar-collapse {
    background: transparent; /* No white background on desktop */
    box-shadow: none;
    justify-content: center;
}

/* --- Mobile Only (Below 992px) --- */
@media (max-width: 991.98px) {
  /* 1. Force the button to be a horizontal row */
  .navbar-toggler {
      display: flex !important;
      flex-direction: row !important; /* Forces horizontal alignment */
      align-items: center !important; /* Centers text and circle vertically */
      justify-content: flex-end;      /* Pins everything to the right */
      border: none !important;
      padding: 0;
  }

  /* 2. Style the MENU text so it sits nicely next to the circle */
  .toggler-text {
      font-family: 'Playfair Display', serif;
      font-size: 0.8rem;
      letter-spacing: 2px;
      margin-right: 12px; /* Space between text and circle */
      line-height: 1;
      display: inline-block;
  }

  /* 3. The Circle Icon (Your existing code + centering fix) */
  .custom-toggler-icon {
      width: 45px;
      height: 45px;
      border: 1px solid #333;
      border-radius: 50%;
      display: flex !important;    /* Keeps the inner lines centered */
      align-items: center;
      justify-content: center;
      position: relative;
      flex-shrink: 0;             /* Prevents circle from squishing */
  }

  /* 4. Add the lines back inside the circle */
  .custom-toggler-icon::before {
      content: '';
      width: 18px;
      height: 1px;
      background-color: #333;
      position: absolute;
      /* This creates the top and bottom lines using a shadow */
      box-shadow: 0 6px 0 0 #333, 0 -6px 0 0 #333; 
  }
    .toggler-text {
        display: inline-block; /* Show "MENU" text on mobile */
    }

    /* Reset the container behavior only for mobile */
    .custom-mobile-nav .container-fluid {
        flex-direction: column !important;
        align-items: flex-end !important;
    }

    .navbar-toggler {
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        padding: 10px 0;
    }

    /* The "Glass" effect only on mobile dropdown */
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px);
        border-radius: 10px;
        margin-top: 10px;
        padding: 10px;
        width: 100%;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    }

    .navbar-nav {
        width: 100%;
    }
}

/* Desktop Horizontal Layout Fix */
@media (min-width: 992px) {
    .custom-mobile-nav .container-fluid {
        flex-direction: row !important; /* Force horizontal on desktop */
        justify-content: center !important;
    }
}