/* Base Colors */
:root {
  --forest-green: #2c3e2f;
  --gold: #d4af37;
  --dark-gold: #c4a332;
  --white: #fff;
  --cream: #f9f7f1;
  --text-dark: #333;
  --text-light: #eee;
}
/* Base Fonts */
@font-face {
  font-family: 'Above the Beyond';
  src: url('/fonts/above-the-beyond.woff2') format('woff2');
  font-display: swap;
}
/* 
@font-face {
  font-family: 'The Seasons';
  src: url('/fonts/the-seasons.woff2') format('woff2');
  font-display: swap;
}

@font-face {
  font-family: 'Amoresa';
  src: url('/fonts/amoresa.woff2') format('woff2');
  font-display: swap;
} */

body {
  position: relative;
  z-index: 1;
  background: none; /* remove background here */
  width: 100vw;
  overflow-x: hidden;
}

body::before {
  /* background-image: url('/images/final-background.png');
  background-repeat: repeat-y;
  background-position-x: center;
  background-position-y: center; */
  /* background-size: cover; */
  background-size: 100%;
  opacity: 0.3;
  z-index: -1;
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}

body {
  font-family: 'Quattrocento', serif;
  background-color: var(--cream);
  /* background-image: url('/images/withjoy background.png');  */
  /* background-image: url('/images/modified-watercolor-background.png'); */
  /* background-repeat: no-repeat;
  background-position-x: center;
  background-position-y: center; */
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  color: var(--forest-green);
}


body {
  /* margin: 0; */
  /* color: #4a3f35; */
  background-color: var(--cream);
  /* color: var(--text-dark); */
}

section {
  padding: 30px 60px 80px 60px;
  text-align: center;
}

.hero {
  /* background: #f6e9e1;
  padding: 80px 20px; */
  /* background-color: var(--forest-green); */
  /* color: var(--text-light); */
  text-align: center;
  padding-top: 16px;
  padding-bottom: 32px;
  font-family: 'Above the Beyond', cursive;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  /* background-color: var(--cream); */
}

.hero h1 {
  font-size: 3rem;
  /* color: var(--gold); */
}

.hero p {
  font-family: 'Quattrocento', serif;
}

.hero-image {
  max-height: 180px;
  object-fit: cover;
  margin-left: -10px;
}

.couple-names {
  font-size: 48px;
  font-weight: bold;
  line-height: 2;
  margin-top: 24px;
  margin-bottom: 24px;
}


.wedding-date, .wedding-countdown {
  font-size: 20px;
  font-weight: 500;
  /* color: var(--gold); */
  padding: 0px;
  margin: 4px 0px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.wedding-date span {
  padding-left: 4px;
  padding-right: 4px;
}

.wedding-date .separator {
  font-size: 14px;
}

.gallery {
  padding: 60px 20px;
}

.gallery-grid {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-grid img {
  width: 300px;
}

.our-story .section-body {
  line-height: 1.4;
}

.gallery-image-container {
  height: 400px;         /* desired crop height */
  overflow: hidden;      /* hides overflow */
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
  width: 90vw;
}

.gallery-image-container img {
  width: 300px;
  object-fit: cover;
}
.gallery-image-container.landscape {
  height: 300px;
}
.gallery-image-container.landscape img {
  width: 600px;
}

input, select, button {
  padding: 10px;
  margin: 8px;
  font-size: 16px;
  width: 80%;
  max-width: 420px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* button {
  background-color: #cda69d;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

button:hover {
  background-color: #a97d74;
} */

button, .btn {
  background-color: var(--gold);
  color: var(--forest-green);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover, .btn:hover {
  /* background-color: #c4a332; */
}
/* 
footer {
  background: #f6e9e1;
  padding: 40px;
  font-size: 16px;
  color: #7a6455;
} */

footer {
  background-color: var(--forest-green);
  /* color: var(--text-light); */
  color: var(--dark-gold);
  text-align: center;
  padding: 1rem;
}

/* Sticky Header */
.sticky-header {
  position: sticky;
  top: 0;
  /* background: #fffaf5; */
  /* background-color: var(--forest-green); */
  /* background-color: var(--cream); */
  background-color: #f9f7f15c;
  z-index: 999;
  /* padding: 10px 0; */
  /* box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05); */
  color: var(--white);
  padding: 1rem;
  /* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); */
}


/* Wrapper for nav list + slider */
.nav-inner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Nav List */
.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Nav Links */
.nav-list li a {
  text-decoration: none;
  color: var(--forest-green);
  font-weight: bold;
  transition: color 0.3s ease;
  text-align: center;
  position: relative;
  padding: 0.5rem 0;
}

/* .nav-list li a:hover {
  color: var(--gold);
} */

/* Sliding underline */
.nav-slider {
  position: absolute;
  bottom: -4px;
  left: 0;
  margin-top: 4px;
  height: 2px;
  width: 0;
  background-color: var(--forest-green);
  transition: all 0.3s ease;
  pointer-events: none;
}
/* Smooth Scroll Behavior (already added but ensuring it's here) */
html {
  scroll-behavior: smooth;
}


/* E-Invite Styling */
.e-invite {
  padding: 60px 20px;
  /* background: #fffaf5; */
  /* background-color: rgba(255, 255, 255, 0.85); */
  text-align: center;
  /* border-top: 2px solid var(--forest-green); */
  /* border-bottom: 2px solid var(--forest-green); */
}

/* .invite-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
} */

.invite-gallery {
  display: flex;
  flex-wrap: nowrap; /* Prevent wrapping so we can control squeeze effect */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  overflow: visible;
  transition: all 0.3s ease;
  position: relative;
}

.invite-gallery-wrapper {
  display: flex;
  gap: 8px;
}

/* Image Animation Base */
.invite-img {
  width: 350px;
  height: auto;
  opacity: 0;
  transform: translateY(40px);
  transition: transform 0.6s ease, opacity 0.6s ease, scale 0.4s ease;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Directional Animation Setup */
.from-left {
  transform: translateX(-120px);
}
.from-right {
  transform: translateX(120px);
}

/* When visible, fade in */
.invite-img.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Hover Effects */
.invite-img:hover {
  transform: scale(1.3);
  z-index: 2;
}

/* .invite-gallery:hover .invite-img:not(:hover) {
  transform: scale(0.70);
  opacity: 0.6;
} */

/* .invite-img {
  flex: 0 0 auto;
  width: 350px;
  height: auto;
  transform: translateY(0);
  transition: transform 0.4s ease, opacity 0.4s ease, scale 0.4s ease;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}*/

/* When image is hovered */
.invite-img:hover {
  transform: scale(1.3) translateX(0);
  z-index: 3;
}
/* 
.invite-gallery-wrapper:hover .invite-img:not(:hover) {
  transform: scale(0.7);
  opacity: 0.6;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.invite-gallery-wrapper:hover .invite-img:not(:hover) {
  margin-left: -60px;
  margin-right: -60px;
} */

/* Fullscreen Overlay */
.fullscreen-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
}

.fullscreen-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

.close-btn {
  position: relative;
  /* top: 2rem; */
  /* right: 2rem; */
  margin-bottom: 8px;
  font-size: 1rem;
  color: white;
  cursor: pointer;
  z-index: 1001;
}
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: white;
  cursor: pointer;
  user-select: none;
  z-index: 1001;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 8px;
  transition: background 0.3s ease;
}

.arrow:hover {
  background: rgba(255, 255, 255, 0.2);
}

.left-arrow {
  left: 2rem;
}

.right-arrow {
  right: 2rem;
}
/* End of E-Invite Styling */


/* RSVP Styling */
.rsvp-image {
  margin-top: 24px;
  max-height: 180px;
  object-fit: cover;
  margin-left: -10px;
}

.rsvp-step h1 {
  text-transform: uppercase;
  text-align: center;
  margin-top: 12px;
  margin-bottom: 12px;
}

.rsvp-wizard {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.rsvp-wizard.hidden {
  opacity: 0;
  pointer-events: none;
}

.rsvp-wizard-content {
  background: var(--cream);
  color: var(--forest-green);
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  width: 100vw;
  height: 100vh;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s ease, opacity 0.4s ease;
  display: flex;
  flex-direction: column;
}

.rsvp-wizard:not(.hidden) .rsvp-wizard-content {
  transform: translateY(0);
}

.rsvp-header {
  display: flex;
  flex-direction: row;
  width: 50vw;
  align-self: center;
  justify-self: center;
  gap: 20px;
}

.close-rsvp {
  /* position: absolute;
  top: 1rem;
  right: 1rem; */
  background: none;
  border: none;
  /* font-size: 2rem; */
  /* background: var(--forest-green); */
  /* color: var(--cream); */
  color: var(--forest-green);
  cursor: pointer;
  height: 16px;
  width: 16px;
  padding: 0;
  font-size: 28px;
}

.close-rsvp:hover {
  /* background: #2c3e2f59; */
}

.rsvp-progress {
  /* position: absolute;
  top: 1rem;
  left: 20%; */
  background: none;
  border: none;
  /* top: 0;
  left: 0; */
  width: 60%;
  height: 16px;
  background-color: #2c3e2f59; 
  overflow: hidden;
  /* align-self: center; */
  align-self: flex-end;
  flex-grow: 3;
  border-radius: 6px;
}

.rsvp-progress .progress-bar {
  height: 100%;
  width: 33%; /* 1/3 of the progress bar, for 3 steps */
  background-color: var(--forest-green);
  transition: width 0.4s ease;
}

.rsvp-step {
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.rsvp-step.active {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50vw;
  align-self: center;
  justify-self: center;
}

.rsvp-step .user-input-container {
  display:flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
}

.rsvp-step .user-input-container.dietary-restrictions {
  width: 100%;
  flex-direction: column;
}

.rsvp-step .user-input-container.dietary-restrictions > div {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 50%;
  margin-left: 25%;
}

.dietary-restrictions-left > div, .dietary-restrictions-right > div {
  display: flex;
  flex-direction: row;
  gap: 4px;
  height: 1rem;
}

.dietary-restrictions-left {
  margin-bottom: 12px;
}

.dietary-restrictions-left input[type=checkbox], .dietary-restrictions-right input[type=checkbox] {
  width: 40px;
  margin: 0;
}

.dietary-restrictions-right .underline-input {
  border: none;
  border-bottom: 1px solid #ccc;
  width: 100%;
  background: transparent;
  outline: none;
  transition: border-color 0.3s;
  padding: 0;
  max-width: 240px;
  margin: 0;
  font-size: 16px;
  padding: 0px;
}

.dietary-restrictions-right .underline-input:focus {
  border-bottom-color: #000; /* or your accent color */
}


.rsvp-step h2 {
  text-align: center;
}

.rsvp-step input,
.rsvp-step select,
.rsvp-step textarea {
  padding: 0.5rem;
  font-size: 1rem;
  width: 400px;
  border: 1px solid var(--forest-green);
  border-radius: 4px;
  font-family: 'Quattrocento', serif;
  background: transparent;
  resize: none;
}

.rsvp-step .buttons {
  display: flex;
  justify-content: space-around;
  gap: 1rem;
  max-width: 500px;
}

.rsvp-step button {
  background: var(--forest-green);
  color: var(--cream);
  border: none;
  cursor: pointer;
  border-radius: 6px;
  width: 420px;
  padding: 0.5rem 1rem;
}

.rsvp-form {
  display: flex;
  flex-direction: column;
}

.rsvp-form .hidden {
  display: none;
}
.rsvp-step button:hover {
  background: #2c3e2f59;
}

.group-rsvp-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 70%;
}

.group-member {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  border-bottom: 1px solid #ccc;
  padding-bottom: 0.5rem;
}

.member-name {
  flex: 1.5;
  font-weight: bold;
  min-width: 120px;
}

.group-member label {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
  min-width: 100px;
}

.group-member label input {
  max-width: 40px;
  height: 16px;
  font-size: 5px;
  margin:0;
}

.spinner {
  border: 2px solid #ccc;
  border-top: 2px solid #333;
  border-radius: 50%;
  width: 1em;
  height: 1em;
  animation: spin 0.6s linear infinite;
  display: inline-block;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* End of RSVP Styling */


/* Mobile Responsive Styling */
@media (max-width: 768px) {
  section {
    padding: 20px 20px 60px 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .rsvp-image {
    max-height: 120px;
  }

  .couple-names {
    font-size: 32px;
  }

  .wedding-date,
  .wedding-countdown {
    font-size: 16px;
    letter-spacing: 2px;
    flex-direction: column;
  }

  .gallery-grid img,
  .invite-img {
    width: 90%;
    max-width: 300px;
  }

  .gallery-image-container {
    height: 400px;         /* desired crop height */
    overflow: hidden;      /* hides overflow */
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .gallery-grid {
    gap: 8px;
  }
  .gallery-row {
    flex-wrap: wrap;
  }
  
  .gallery-image-container img {
    width: 300px;
    object-fit: cover;
  }
  .gallery-image-container.landscape {
    height: auto;
    max-width: 80vw;
  }
  .gallery-image-container.landscape img {
    width: 100%;
  }

  .invite-gallery {
    flex-wrap: wrap;
    gap: 12px;
  }

  .invite-gallery-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .nav-list {
    flex-direction: row;
    gap: 12px;
  }

  .nav-inner {
    flex-direction: row;
  }

  .sticky-header {
    text-align: center;
  }

  input, select, button {
    width: 90%;
    font-size: 1rem;
  }

  .fullscreen-overlay img {
    max-width: 95%;
    max-height: 80%;
  }


  .arrow:hover {
    background: rgba(0, 0, 0, 0.4);
  }

  .arrow {
    font-size: 2rem;
    padding: 0.25rem 0.5rem;
  }

  .left-arrow {
    left: 1rem;
  }

  .right-arrow {
    right: 1rem;
  }
}

@media (max-width: 480px) {
  body::before {
    /* background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: center;
    background-size: cover;
    background-image: url("images/final-mobile-background.png"); */
    opacity: 0.4;
    z-index: -1;
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .couple-names {
    margin-top: 16px;
    margin-bottom: 16px;
    font-size: 24px;
  }

  .gallery-grid {
    flex-direction: column;
    align-items: center;
  }

  .invite-img:hover {
    transform: scale(1.1); /* reduce zoom on small screens */
  }

  /* Directional Animation Setup */
  .from-left {
    transform: translateX(0) translateY(160px);
  }
  .from-right {
    transform: translateX(0) translateY(160px);
  }
  .invite-img.visible {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
/* @media (max-width: 600px) { */
  .rsvp-form {
    padding: 24px;
  }

  .user-input-container {
    width: 80%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .user-input-container input {
    /* height: 48px; */
    width: 300px;
  }

  .user-input-container select {
    height: 48px;
  }

  .user-input-container textarea {
    height: 120px;
  }

  .rsvp-header {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }

  .rsvp-progress {
    width: 100%;
    height: 8px;
  }

  .close-rsvp {
    align-self: flex-end;
    font-size: 1.2rem;
  }

  .rsvp-step.active {
    width: 80vw;
  }
  .rsvp-step h2 {
    font-size: 1.1rem;
  }

  .rsvp-step button {
    font-size: 0.95rem;
    width: 80%;
  }
  .group-rsvp-container {
    width: 100%;
  }

  .group-member {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .member-name {
    width: 100%;
    min-width: unset;
  }

  .group-member label {
    width: 100%;
    justify-content: flex-start;
  }

  .group-member label input {
    margin-right: 0.5rem;
  }


  .rsvp-step .user-input-container.dietary-restrictions {
    flex-direction: column;
    height: 100%;
  }
  .rsvp-step .user-input-container.dietary-restrictions > div {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-self: start;
    margin-left: 0px;
  }

  .dietary-restrictions-left input[type=checkbox], .dietary-restrictions-right input[type=checkbox] {
    width: 16px;
    margin: 0;
    height: 16px;
  }


  .user-input-container .dietary-restrictions-right input[type=text] {
    max-width: 180px;
    margin: 0;
    font-size: 16px;
    height: 16px;
    padding: 0px;
  }
}
/* End of Mobile Responsive Styling */