/* Base resets */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: 'Montserrat', sans-serif;
  color: #333;
}

body {
  line-height: 1.6;
  background-color: #f3eddf;
}

:root {
  --navbar-height: 60px;
}

/* Global Styles */
/* by default: no underline, slightly muted */
a {
  text-underline-offset: 5px;
  text-decoration: underline;
  color: inherit;         /* match your existing text color */
  opacity: 1.0;
}

/* on hover: full opacity + underline to signal “clickable” */
a:hover {
  opacity: 0.5;
  transition: opacity 0.1s ease;
}


/* Navbar */
.navbar {
  /* use the fixed height */
  height: var(--navbar-height);
  width: 100%;
  color: #5a4a3d;
  background-color: #f3eddf;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  /* vertically center links */
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.navbar ul {
  display: flex;
  list-style: none;
  justify-content: center;
}

.navbar li {
  margin: 1rem;
}

.navbar a {
  text-decoration: none;
  font-weight: 600;
  color: #555;
  transition: color 0.3s;
}

.navbar a:hover {
  color: #a362ff;
}

/* Sections */
section {
  min-height: 100vh;
}

.section {
  padding: 120px 20px 60px;
  /* account for fixed nav */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Hero Section */

.hero {
  /* subtract navbar height so it doesn’t fill the whole viewport */
  min-height: calc(100vh - var(--navbar-height));
  padding-top: var(--navbar-height)
    /* so content isn’t hidden behind navbar */
  ;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Center content */
.hero-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  z-index: 1;
}

.hero-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  color: #777;
  margin-bottom: 0.5rem;
}

.hero-names {
  font-family: 'Cinzel', serif;
  font-size: 4rem;
  color: #5a4a3d;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.and {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  margin: 0 0.5rem;
  vertical-align: middle;
  color: #5a4a3d;
}

/* Date & Info */
.hero-details {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.hero-date {
  font-family: 'Montserrat', sans-serif;
  color: #5a5959;
}

.hero-date .day,
.hero-date .month,
.hero-date .year {
  display: block;
}

.hero-date .day {
  font-size: 3rem;
}

.hero-date .month {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin: 0.2rem 0;
}

.hero-date .year {
  font-size: 1.2rem;
}

.hero-info {
  text-align: left;
  font-family: 'Montserrat', sans-serif;
  color: #5a5959;
}

.hero-info .weekday,
.hero-info .time,
.hero-info .location {
  margin: 0.3rem 0;
}

.hero-line {
  /* width: 40px; */
  margin: 0.3rem auto;
  border: none;
  border-bottom: 1.0px solid #5a5959;
}

/* Images on right */
.hero-images {
  position: absolute;
  right: 0px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 0;
  margin: 0 auto;
}

.hero-img {
  max-width: 300px;
  height: auto;
  opacity: 0.6;
}

.hero-img:hover {
  opacity: 1;
  transition: opacity 0.1s ease;
}

.hero-img-bottom {
  width: 150px;
  right: 0px;
  margin: 0 0 0 auto;
}


/* Align date and venue info vertically */
.hero-details {
  flex-direction: row;
  align-items: center;
}

/* Sticky Navbar */
.navbar {
  width: 100%;
  /* match hero background */
  color: #5a4a3d;
  font-family: 'Montserrat', sans-serif;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.navbar a {
  position: relative;
  padding-bottom: 0.5rem;
  /* space for the line */
  text-decoration: none;
  color: #5a4a3d;
  /* distinct from background */
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: #a1836b;
}

/* draw the line */
.navbar a::after {
  content: "";
  position: absolute;
  bottom: 0;
  /* sit at the bottom of the link */
  left: 50%;
  /* center it */
  transform: translateX(-50%);
  width: 100%;
  /* same width as .hero-line */
  height: 1.0px;
  /* same thickness as .hero-line */
  background-color: #5a5959;
  /* same color as your date underline */
  transition: background-color 0.3s;
  /* smooth transition */
  opacity: 0.5;
  /* make it slightly transparent */
}

/* optional: change line color on hover */
.navbar a:hover::after {
  background-color: #a1836b;
}


/* Schedule Section */
.schedule-section {
  padding: 100px 40px;
  font-family: 'Cinzel', serif;
  color: #3d4b3f;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.schedule-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: auto;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem 4rem;       /* row-gap 2rem, col-gap 4rem */
  align-items: start;
}

.event-left {
  padding-left: 2rem;
}

.event-right {
  padding-right: 2rem;
  text-align: right;
}

.event-heading {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 400;
}

.event-heading .of {
  font-family: 'Great Vibes', cursive;
  font-size: 2.5rem;
  display: inline-block;
  margin: 0.5rem 0;
}

.event-date {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: #3d4b3f;
  margin-top: 1rem;
}

.event-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.1em;
  width: 100%;
}

.event-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #3d4b3f;
  padding: 1.2rem 0;
}

.event-list li:last-child {
  border-bottom: 1px solid #3d4b3f;
}

.event-time {
  color: #3d4b3f;
  font-weight: 400;
}

.event-name {
  text-align: right;
  color: #3d4b3f;
  font-weight: 400;
}

.event-divider {
  grid-column: 1 / -1;          /* span both columns */
  border: none;                 /* reset default hr styling */
  border-top: 2px solid #3d4b3f;/* 1px solid line matching your theme */
  margin: 2rem 0;               /* vertical spacing */
  width: auto;                  /* let grid sizing handle width */
}

/* Responsive: stack schedule into one column on narrow viewports */
@media (max-width: 768px) {
  .schedule-grid {
    grid-template-columns: 1fr !important;  /* one column only */
    gap: 1.5rem !important;                 /* tighten the gaps a bit */
  }

  .schedule-grid {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      /* first row stays L→R */
      "wedding-left"
      "wedding-right"
      /* divider */
      "divider"
      /* second row flips R→L */
      "brunch-right"
      "brunch-left";
      gap: 1.5rem !important;
  }

    /* assign each item to its area */
  .wedding-left     { grid-area: wedding-left;   }
  .wedding-right    { grid-area: wedding-right;  }
  .event-divider  { grid-area: divider;     }
  .brunch-left       { grid-area: brunch-left; }
  .brunch-right       { grid-area: brunch-right; }

  .event-divider {
    grid-column: 1 / -1;
  }

  .schedule-grid > * {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .event-left, .event-right {
    padding-left: 0px;
    padding-right: 0px;
    text-align: center;
  }
}

/* FAQ Section */
.faq-section {
  font-family: 'Montserrat', sans-serif;
  color: #3d4b3f;
  text-align: center;
}

.faq-heading {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 3rem;
  font-weight: 400;
  font-family: 'Cinzel', serif;
  color: #3d4b3f;
}

/* numbering */
.faq-list {
  counter-reset: faq;
  list-style: none;
  width: 100%;           /* stretch to container */
  max-width: 800px;      /* but no wider than before */
  margin: 0;             /* remove auto centering */
  padding: 0;
}


.faq-list li + li {
  margin-top: 1.5rem;
}

/* remove any default styling on details */
.faq-list details {
  padding: 0;
  margin: 0;
}

/* style the question */
.faq-list summary {
  counter-increment: faq;
  position: relative;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  list-style: none;
  outline: none;
  padding-bottom: 0.25rem;
  /* divider line under question */
  border-bottom: 1px solid #e0d7c8;
  display: block;
  width: 100%;
}

/* hide default marker */
.faq-list summary::-webkit-details-marker {
  display: none;
}

/* prepend the number */
.faq-list summary::before {
  content: counter(faq) ". ";
  margin-right: 0.5rem;
}

/* answer styling */
.faq-list p {
  margin: 0.75rem 0 0 1.5em;
  line-height: 1.5;
  text-align: left;
}


/* Travel Tips */
.buddymoon-section {
  font-family: 'Montserrat', sans-serif;
  color: #3d4b3f;
  text-align: center;
}

.buddymoon-heading {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 3rem;
  font-weight: 400;
  font-family: 'Cinzel', serif;
  color: #3d4b3f;
}

.buddymoon p {
  max-width: 700px;
  font-size: 1.1rem;
  line-height: 1.5;
}

/* numbering */
.buddymoon-list {
  counter-reset: faq;
  list-style: none;
  width: 100%;           /* stretch to container */
  max-width: 800px;      /* but no wider than before */
  margin: 0;             /* remove auto centering */
  padding: 0;
}

/* hearth animation */
.heart-pop {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

/* The heart that appears on hover */
.heart-pop::after {
  content: '❤️';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%) translateY(0);
  opacity: 0;
  font-size: 1.5rem;
  transition: transform 0.6s ease, opacity 0.6s ease;
  pointer-events: none;
}

.heart-pop-blue::after {
  content: '💙';
}

/* Hover animation */
.heart-pop:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(-40px) scale(1.4) rotate(10deg);
  animation: heart-pop-burst 0.6s ease forwards;
}

/* Burst effect */
@keyframes heart-pop-burst {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(0) scale(0.5) rotate(0deg);
    z-index: 100;
  }
  40% {
    opacity: 1;
    transform: translateX(-50%) translateY(-20px) scale(1.2) rotate(10deg);
    z-index: 100;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-60px) scale(1.8) rotate(-20deg);
    z-index: 100;
  }
}