/************************************************************
  1. RESET & BASE STYLES
************************************************************/

/* Reset default browser styles for consistency */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Base font, color, and background for the entire document */
  body {
    font-family: "Open Sans", Arial, sans-serif;
    color: #333;
    background-color: #0E4732;
    line-height: 1.6;
  }
  
  /* Common heading style adjustments */
  h1, h2, h3, h4, h5, h6 {
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #444;
  }
  
  /* Paragraph spacing */
  p {
    margin-bottom: 1rem;
  }
  
  /************************************************************
    2. LAYOUT: HEADER, NAVIGATION, FOOTER
  ************************************************************/
  
  /* HEADER */
  header {
    background-color: #fff;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
  }
  
  /* NAVIGATION */
  nav ul {
    list-style-type: none;
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap on small screens */
    gap: 4rem;
    justify-content: center;
    align-items: center;
  }
  
  /* Each navigation link */
  nav li {
    display: inline-block;
  }
  
  nav a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    font-family: "Great Vibes", cursive;
    font-size: x-large;
  }
  
  nav a:hover {
    color: #0E4732; /* Change to match your accent color */
  }
  
  /* Optional: Highlight the current page link (if using aria-current) */
  nav a[aria-current="page"] {
    border-bottom: 2px solid #0E4732;
    padding-bottom: 2px;
  }
  
  /* FOOTER */
  footer {
    text-align: center;
    padding: 1rem;
    color: #0E4732;
  }
  
  /************************************************************
    3. MAIN CONTENT & SECTIONS
  ************************************************************/


  main {
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
  }
  
  section {
    background-color: #fff;
    margin-bottom: 2rem;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  /* Headings within sections */
  section h1,
  section h2 {
    margin-bottom: 1rem;
    color: #444;
    font-family: "Great Vibes", cursive;
    font-size: xx-large;
  }

  section h3 {
    margin-bottom: 1rem;
    color: #444;
    font-family: "Great Vibes", cursive;
    font-size: x-large;
  }
  
  section ul,
  section ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
  }
  
  /************************************************************
    4. FORMS & BUTTONS
  ************************************************************/
  
  /* Form Labels */
  form label {
    display: block;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
  }
  
  /* Form Inputs, Selects, Textareas */
  form input,
  form select,
  form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    font-family: inherit;
    font-size: 1rem;
  }
  
  /* Basic Button / Submit Styles */
  button[type="submit"],
  .btn {
    display: inline-block;
    background-color: #0E4732;
    color: black;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 1rem;
    transition: background-color 0.2s ease;
  }
  
  button[type="submit"]:hover,
  .btn:hover {
    background-color: #0056b3;
  }
  
  /* RSVP Message / Confirmation Text */
  #rsvp-message {
    font-style: bold;
    margin-top: 1rem;
  }
  
  /************************************************************
    5. GALLERY STYLES
  ************************************************************/
  
  .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
  }
  
  .gallery figure {
    background-color: #fff;
    border: 1px solid #eee;
    padding: 0.5rem;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 2px 3px rgba(0,0,0,0.08);
  }
  
  .gallery img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 0.5rem;
  }
  
  .gallery figcaption {
    color: #555;
    font-size: 0.9rem;
  }
  
  /************************************************************
    6. RESPONSIVE MEDIA QUERIES
  ************************************************************/
  
  @media (max-width: 600px) {
    /* Stack nav links vertically on narrow screens */
    nav ul {
      gap: 2rem;
    }
  
    /* Adjust main spacing */
    main {
      margin: 1rem auto;
      padding: 0 0.5rem;
    }
  
    /* Make sections less wide if you want */
    section {
      padding: 1rem;
    }
  }
  
  /************************************************************
    7. UTILITY CLASSES (OPTIONAL)
    - Quick margin/padding helpers if needed
  ************************************************************/
  
  /* Example: margin-top classes */
  .mt-1 { margin-top: 0.5rem !important; }
  .mt-2 { margin-top: 1rem !important; }
  .mt-3 { margin-top: 2rem !important; }
  
  /* Example: margin-bottom classes */
  .mb-1 { margin-bottom: 0.5rem !important; }
  .mb-2 { margin-bottom: 1rem !important; }
  .mb-3 { margin-bottom: 2rem !important; }

  .loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5); /* semi-transparent dark overlay */
    display: flex; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* on top of everything */
  }
  
  .spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ccc;
    border-top-color: #0E4732; /* match your accent color */
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }

/* Hero Section Styles */
.hero-section {
  background: url('../images/IMG_5852.JPG') no-repeat center center/cover;
  min-height: 100vh; /* Full viewport height */
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--secondary-color);
  text-align: center;
  position: relative;
  padding: 1rem; /* Adds padding for smaller screens */
}

.hero-content {
  background: var(--background-overlay); /* Semi-transparent overlay */
  padding: 2rem;
  border-radius: 10px;
  max-width: 800px; /* Limits width for better readability */
  width: 100%; /* Ensures full width on smaller screens */
}

.hero-section h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 3rem;
  margin-bottom: 12rem;
  color: black;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
}

.hero-section p {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: #0E4732;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.btn:hover {
  transform: scale(1.05);
  background-color: #e0663b; /* Darker shade of coral */
}

/* Countdown Timer Styles */
.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap; /* Allows boxes to wrap if necessary */
}

.time-box {
  background-color: rgba(255, 255, 255, 0.5);
  padding: 1rem 2rem;
  border-radius: 10px;
  color: var(--secondary-color);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  text-align: center;
  flex: 1 1 100px; /* Allows boxes to grow and shrink with a base width */
}

.time-box span {
  font-size: 2rem;
  font-weight: bold;
  color: black;
}

.time-box p {
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* Footer Styles */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #0E4732;
  color: var(--text-color);
}

/* Social Links (Optional) */
.social-links {
  margin-top: 1rem;
}

.social-links a {
  margin: 0 0.5rem;
  display: inline-block;
  width: 30px;
  height: 30px;
}

.social-links img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.social-links a:hover img {
  transform: scale(1.1);
}


/* Responsive Styles */

/* Tablets and Below */
@media (max-width: 992px) {
  .hero-section {
    min-height: auto; /* Let content define height */
    padding: 2rem 1rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.25rem;
  }

  .countdown-timer {
    gap: 1.5rem;
  }

  .time-box span {
    font-size: 1.75rem;
  }

  .time-box p {
    font-size: 0.95rem;
  }
}

/* Mobile Phones */
@media (max-width: 600px) {
  .hero-section {
    padding: 1.5rem 0.5rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .countdown-timer {
    gap: 1rem;
  }

  .time-box {
    padding: 0.75rem 1rem; /* Reduce padding for smaller screens */
    flex: 1 1 80px; /* Further reduce base width */
  }

  .time-box span {
    font-size: 1.5rem;
  }

  .time-box p {
    font-size: 0.85rem;
  }

  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

.guest-option {
  border: 1px solid #ccc;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 5px;
}
.guest-option button {
  margin-top: 10px;
}
.success {
  color: green;
}
.error {
  color: red;
}

/* Desktop Navigation (visible on larger screens) */
.desktop-menu {
  display: flex;
  gap: 4rem;
}

/* Hamburger Icon (hidden on desktop) */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

/* Mobile Menu - Full Screen Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 2000;
  display: flex;  /* Hidden by default */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-family: "Great Vibes", cursive;
  font-weight: 700;
    /* Initially hidden offscreen with zero opacity */
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.7s ease, opacity 0.7s ease;
}

/* When active, the mobile menu slides in */
.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu ul {
  list-style: none;
  padding: 0;
}
.mobile-menu ul li {
  margin: 20px 0;
}
.mobile-menu ul li a {
  text-decoration: none;
  font-size: 2em;
  color: #333;
}

/* Close button styling */
.close-menu {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 3em;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
}

/* Responsive behavior */
@media (max-width: 768px) {
  .desktop-menu {
    display: none; /* Hide desktop menu on mobile */
  }
  .hamburger {
    display: block; /* Show hamburger on mobile */
  }
}

/* =======================
   FAQ Accordion Styles
   ======================= */
   .faq-accordion {
    max-width: 700px;
    margin: 2rem auto;
  }
  
  .faq-accordion summary {
    cursor: pointer;
    padding: 0.75rem 1rem;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: 500;
    list-style: none;
    position: relative;
    margin-top: 1rem;
  }
  
  .faq-accordion summary::marker {
    display: none; /* hide default arrow */
  }
  
  .faq-accordion summary::after {
    content: '+';
    position: absolute;
    right: 1rem;
    font-size: 1.2rem;
    transition: transform 0.2s;
  }
  
  .faq-accordion details[open] summary::after {
    content: '–';
    transform: rotate(180deg);
  }
  
  .faq-accordion details p {
    padding: 0.5rem 1rem 1rem;
    margin: 0;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    background: #fff;
  }

  .hotel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
  }
  .hotel-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 1rem;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  .hotel-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
  }
  .hotel-card h4 {
    margin: 0.75rem 0 0.25rem;
    font-size: 1.1rem;
  }
  .hotel-card p {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    color: #555;
  }
  .hotel-card .btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    border: 1px solid #333;
    font-weight: bold;
  }

  .hotel-card.featured {
    border: 2px solid #0E4732;
    position: relative;
  }
  .hotel-card.featured::before {
    content: 'We’re staying here';
    position: absolute;
    top: 0; left: 0;
    background: #0E4732;
    color: #fff;
    padding: 0.2rem 0.5rem;
    font-size: 0.8rem;
    border-bottom-right-radius: 4px;
  }

  /* =========== Registry Widget =========== */
/* Scope to your embed container */
.registry-widget {
  max-width: 800px;
  margin: 2rem auto;
  position: relative;
}

.address-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.address-link:hover {
  text-decoration: underline;
}

.story {
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem;
}
.story-entry {
  margin-bottom: 3rem;
}
.story-figure {
  margin: 0 0 1rem;
  text-align: center;
}
.story-figure img {
  display: block;          /* make margin auto centering work */
  margin: 0.5rem auto;     /* small vertical space + center */
  width: 80%;              /* scale down to 80% of its container */
  max-width: 500px;        /* but never exceed 500px wide */
  height: auto;            /* preserve aspect ratio */
  border-radius: 8px;      /* keep your rounded corners */
}
.story-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #555;
  font-style: italic;
}