/*! HTML5 Boilerplate v9.0.1 | MIT License | https://html5boilerplate.com/ */

/* main.css 3.0.0 | MIT License | https://github.com/h5bp/main.css#readme */
/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/*@import url('https://fonts.googleapis.com/css2?family=WindSong');
*/
/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Infant:ital,wght@0,300..700;1,300..700&display=swap');

@font-face {
  font-family: 'WindSong';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/windsong/v13/KR1WBsyu-P-GFEW57o9-F9A.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Add this to your global body styles at the top */
html, body {
  overflow-x: hidden; /* Prevents any horizontal "jiggles" or white bars */
  width: 100%;
}

:root {
  --heading-font: 'WindSong', serif;
  --body-font: 'Open Sans', sans-serif;
  --h2-font: 'Cormorant Infant';
  --primary-gold: #c5a059;
  --soft-white: #fdfdfd;
  --text-dark: #333;
  --serif-font: 'Playfair Display', serif;
  --sans-font: 'Lato', sans-serif;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--soft-white);

    /* The Fix: Hide it from the renderer entirely */
    visibility: hidden;
    opacity: 0;
    transition: left 0.4s ease, opacity 0.4s ease, visibility 0.4s;

    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  /* Reveal everything when active */
  .nav-links.active {
    left: 0;
    visibility: visible;
    opacity: 1;
  }
}




header {
  height: 80px; /* Set a specific height for consistency */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000; /* Keeps it above the hero image and other content */
  background-color: rgba(253, 253, 253, 0.95); /* Semi-transparent soft white */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;    /* Vertically centers the nav ul */
  justify-content: center; /* Horizontally centers the nav ul */
}

/* Offset the main content so it doesn't hide behind the fixed header */
main {
  margin-top: 80px; /* Adjust based on your header's height */
}

nav {
  width: 100%; /* Ensures the nav takes up the full header width */
}

body {
  margin: 0;
  font-family: var(--sans-font);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--soft-white);
}

h2 {
  font-family: var(--h2-font);
  text-align: center;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
}

h3 {
  font-family: var(--serif-font);
  text-align: center;
}

h1 {
  font-family: var(--heading-font);
  font-size: 5.5rem;
  font-weight: 400;
  margin-bottom: 0;
  text-align: center;
}

/* Navigation */
nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  gap: 5px;       /* Modern way to handle spacing between items */
  padding: 0;
  margin: 0;
  align-items: center;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  margin: 0 15px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 15px;
  transition: all 0.3s ease; /* Smooth transition over 0.3 seconds */
  font-size: clamp(0.9rem, 1.5vw, 1.2rem);
  white-space: nowrap; /* Prevents text from wrapping to a second line */
  padding: 10px 2vw;  /* Use 'vw' (viewport width) for horizontal padding too */
}

nav a:hover {
  color: var(--primary-gold); /* Or a specific darker shade */
  background-color: rgba(0, 0, 0, 0.05); /* Subtle background darken */
  border-radius: 4px;
}

.hero {
  padding-top: 80px;
  height: calc(100vh - 80px); /* 80% of the screen height */
  background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
  url('/img/hero-photo-2.jpg') no-repeat center center/cover;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 5vh; /* Adjust this to hit that perfect 25% mark */
  color: white;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* Helps text pop against the photo */
  gap: 0px;
}

.hero-content h1{
  margin-bottom: 5px;   /* Reduces space below the names */
  line-height: 1.1;      /* Pulls the lines of the name closer if it wraps */
  font-family: var(--heading-font);
}

.hero-content h2{
  margin-top: 0;
  font-family: var(--h2-font);
  font-size: 1.2rem;
  letter-spacing: 1px;
}

p {
  font-family: var(--body-font);
  font-size: 1.1rem;
  line-height: 1.8; /* Increases readability and feels "airy" */
  color: #555;      /* A dark grey is often softer than pure black */
}

/* --- Countdown Block --- */

#countdown-section {
  padding: 60px 20px;
  background-color: #f9f9f9;
  text-align: center;
}

#countdown {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.time-block span {
  font-family: var(--serif-font);
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--primary-gold);
  display: block;
}

.time-block p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
}

/* --- Details --- */

.details-container {
  max-width: 1100px;
  margin: 80px auto; /* Provides breathing room from other sections */
  padding: 40px 20px;
  background-color: #fff;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05); /* Soft anchor to the page */
  border-radius: 8px;
}

.details-header {
  text-align: center;
  margin-bottom: 50px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.detail-card {
  text-align: center;
  padding: 30px;
  border: 1px solid #eee; /* Light border defines the "space" */
  transition: transform 0.3s ease;
}

.details-img{

}

.detail-card:hover {
  transform: translateY(-5px); /* Adds a premium, interactive feel */
  border-color: var(--primary-gold);
}

.detail-card-img {
  /*font-size: 2rem;
  margin-bottom: 15px;*/
  height: auto;
  max-width: 32px;
}

/* --- Map --- */

.map-wrapper {
  margin-top: 40px;
  text-align: center;
}

.map-frame {
  border: 5px solid white; /* Creates a "photo frame" effect */
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
  border-radius: 4px;
  overflow: hidden; /* Ensures the iframe corners follow the border-radius */
}

section {
  scroll-margin-top: 100px; /* This offsets the scroll by the height of your header */
}
/* --- Directions --- */

.directions-wrapper {
  margin-top: 20px;
  text-align: center;
}

.directions-btn {
  display: inline-block;
  background-color: var(--primary-gold);
  color: white;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: 4px;
  font-family: var(--sans-font);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color 0.3s ease;
}

.directions-btn:hover {
  background-color: #a8894a; /* A slightly darker shade for the hover effect */
  color: white;
}

/* --- Hotels --- */

.hotel-grid {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  padding: 20px;
}

.hotel-card {
  background: #fff;
  border: 1px solid #ddd;
  width: 300px;
  padding: 20px;
  text-align: center;
  position: relative; /* Needed for the 'Recommended' tag */
}

.hotel-img {
  width: 100%;
  height: 180px;
  object-fit: cover; /* Keeps images from stretching */
  margin-bottom: 15px;
}

.hotel-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary-gold);
  color: white;
  padding: 5px 10px;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.book-btn {
  display: block;
  margin-top: 15px;
  border: 1px solid var(--primary-gold);
  color: var(--primary-gold);
  padding: 10px;
  text-decoration: none;
  transition: 0.3s;
}

.book-btn:hover {
  background: var(--primary-gold);
  color: white;
}

/* --- Our Story --- */

.story-milestone {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 80px;
  flex-wrap: wrap; /* Important for mobile responsiveness */
}

/* This class flips the order of the image and text */
.milestone-reverse {
  flex-direction: row-reverse;
}

.story-image {
  flex: 1;
  min-width: 300px;
}

.story-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  /* Adding a subtle filter can give your photos a cohesive 'vibe' */
  filter: sepia(10%) contrast(105%);
}

.story-text {
  flex: 1;
  min-width: 300px;
  padding: 20px;
}

.story-text h3 {
  color: var(--primary-gold);
  font-size: 1.8rem;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  .story-milestone, .milestone-reverse {
    flex-direction: column; /* Stacks everything vertically */
    text-align: center;
  }

  .story-image {
    margin-bottom: 20px;
  }
}

/* --- Mobile View --- */

@media (max-width: 600px) {
  header {
    height: auto; /* Allow header to grow with the links */
    padding: 10px 0;
  }

  nav ul {
    flex-direction: column; /* Stack links vertically */
    gap: 5px;
  }

  .hero {
    height: 60vh; /* Shorter hero on mobile to get to the content faster */
  }

  .hero-content h1 {
    font-size: 2rem; /* Shrink the main title so it doesn't wrap awkwardly */
  }
}

/* --- Footer --- */

footer {
  background-color: #333;
  color: var(--soft-white);
  padding: 40px 20px;
  text-align: center;
  margin-top: 80px;
}

.footer-bottom {
  margin-top: 20px;
  font-size: 0.8rem;
  opacity: 0.7;
  border-top: 1px solid #444;
  padding-top: 10px;
}

/* --- RSVP Form --- */

.form-container {
  max-width: 600px;
  margin: 50px auto;
  padding: 40px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.input-group {
  margin-bottom: 25px;
  text-align: left;
}

.input-group label {
  display: block;
  font-weight: bold;
  margin-bottom: 8px;
  font-family: var(--sans-font);
}

input[type="text"], select, textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: var(--sans-font);
  box-sizing: border-box; /* Crucial for WebStorm layouts */
}

input:focus {
  border-color: var(--primary-gold);
  outline: none;
  box-shadow: 0 0 5px rgba(197, 160, 89, 0.2);
}

.submit-btn {
  width: 100%;
  background-color: var(--primary-gold);
  color: white;
  padding: 15px;
  border: none;
  border-radius: 4px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background-color: #a8894a;
}

.radio-group {
  display: flex;
  flex-direction: column; /* Keeps the two main options stacked */
  gap: 15px;
  margin-top: 10px;
}

.radio-option {
  display: flex;         /* This is the magic fix */
  align-items: center;    /* Vertically centers the button with the text */
  gap: 10px;             /* Adds a little space between the circle and the word */
  cursor: pointer;
}

.radio-option label {
  margin-bottom: 0;       /* Removes any default bottom margin from your previous styles */
  font-weight: normal;    /* Makes the options look distinct from the main question */
}

/* Optional: Make the radio button slightly larger for better mobile tapping */
input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary-gold); /* Colors the inside of the button gold */
}

/* --- 404 Page --- */

.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh; /* Takes up most of the screen minus header/footer */
  text-align: center;
  padding: 20px;
}

.error-content h1 {
  font-size: 2.5rem;
  color: var(--primary-gold);
  margin-top: 20px;
}

.error-icon {
  font-size: 5rem;
  display: block;
  animation: wobble 2s infinite ease-in-out; /* Adds a "drunk" wobble effect */
}

/* Fun subtle animation for the champagne glass */
@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.error-actions {
  margin-top: 30px;
}

/* --- Desktop Navigation (Default) --- */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.menu-toggle {
  display: none; /* Hide button on desktop */
}

/* --- Mobile Navigation (The Fix) --- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001; /* Above the menu */
  }

  .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary-gold);
    transition: 0.3s ease-in-out;
  }

  .nav-links {
    position: fixed;
    left: -100%; /* Hide completely off-screen to the left */
    top: 0;
    flex-direction: column;
    background-color: var(--soft-white);
    width: 100%;
    height: 100vh;
    text-align: center;
    transition: 0.4s;
    z-index: 1000;
    padding-top: 100px; /* Space for the logo/close button */
  }

  .nav-links.active {
    left: 0; /* Slide in to cover the screen */
  }

  /* Animation: Hamburger to 'X' */
  .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
  .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Update these in your style.css */

.nav-logo a {
  font-family: var(--heading-font); /* Uses 'Playfair Display' or similar */
  text-decoration: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links a {
  font-family: var(--body-font); /* Uses 'Lato', 'Montserrat', etc. */
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 400;
  text-transform: uppercase; /* Match that "Wedding Invite" look */
  letter-spacing: 1px;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem); /* Keep that fluid scaling we built! */
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--primary-gold);
}

@media (max-width: 768px) {
  .nav-links a {
    font-size: 1.5rem; /* Make links larger for easier "thumb" tapping */
    padding: 15px 0;
    display: block;
    width: 100%;
  }
}

.nav-logo a {
  letter-spacing: 2px;
  font-style: italic; /* If you're using a Serif font, this adds a nice touch */
}
