/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  --bg-color: #fffaf0;
  --off-white: #fff5e2;
  --navy-primary: #284156; /*#0d253a;*/
  --navy-secondary: #507aa9;
  --charcoal: #333333;
  --light-gray: #e2e8f0;
  --spacing-sm: 0.4em;
  --spacing-md: 0.8em;
  --spacing-lg: 2em;
  --border-radius: 4px;
}

@font-face {
  font-family: "Day Roman";
  src: url("fonts/day_roman.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Respondent";
  src: url("fonts/RespondentMedium.otf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap; /* This ensures text emains visible during font loading */
}

@font-face {
  font-family: "Respondent";
  src: url("fonts/RespondentBold.otf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap; /* This ensures text emains visible during font loading */
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Day Roman", serif;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--bg-color);
  font-size: 18px;
}

h1,
h2,
h3,
h4 {
  font-family: "Day Roman", serif;
  font-weight: normal;
  color: var(--navy-primary);
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
}

h1 {
  font-size: 2.5em;
}

h2 {
  font-size: 2em;
  position: relative;
  padding-bottom: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--navy-secondary);
}

h3 {
  font-size: 1.5em;
  margin-bottom: 0.75em;
}

h4 {
  font-size: 1.2em;
}

p {
  margin-bottom: var(--spacing-sm);
}

a {
  color: var(--navy-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600 !important;
}

a:hover {
  color: var(--navy-primary);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

section {
  scroll-margin-top: 100px;
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid var(--light-gray);
}

.button {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--navy-primary);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.button:hover {
  background-color: var(--navy-secondary);
  color: white;
}

/* Hero Section */
.hero {
  height: 80vh;
  min-height: 500px;
  max-height: 800px;
  background-image: url("output.jpg");
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--navy-primary);
}

.hero.full {
  height: 100vh;
  max-height: none;
}

.hero-content {
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  background-color: #fff5e273;
  padding: 3em;
  max-width: 100vw;
  text-shadow: 0px 0px 20px #ffe7b9;
}

.hero-content .rsvp-cta {
  font-family: "Respondent", serif;
  font-weight: 600;
  font-size: 3em;
  border: 3px solid var(--navy-primary);
  height: 1.25em;
  border-radius: 15px;
  padding: 0 30px;
  display: block;
  margin: 0.5em auto;
}

.rsvp-cta a {
  color: var(--navy-primary);
}

.hero-title {
  font-size: 3em;
  text-transform: uppercase;
  letter-spacing: 4px;
}

.hero-title .event-title {
  font-size: 0.3em;
}

.hero-title .ampersand {
  font-family: "Respondent", serif;
  font-weight: 600;
  font-size: 1.2em;
  height: 0px;
  position: relative;
  top: -22px;
  color: var(--navy-secondary);
  margin-bottom: var(--spacing-sm);
}

.hero .date {
  letter-spacing: 3px;
  font-family: "Day Roman";
  font-size: 1.4em;
  display: inline-block;
}

.hero .date .day {
  font-size: 1.7em;
}
.hero .date .year {
  font-size: 1.4em;
}

form {
  display: flex;
  flex-direction: column;
  color: var(--charcoal);
}

form p {
  line-height: 1.2;
  margin-bottom: 0.4em;
}

label {
  text-transform: lowercase;
}

form > label {
  pointer-events: none;
}

button,
label {
  font-family: Respondent;
  font-size: 3em;
  line-height: 0.8;
  position: relative;
  top: 7px;
  text-shadow: 1px 1px black;
}

input {
  font-family: "Day Roman";
  margin-bottom: 10px;
  padding: 8px;
  font-size: 1em;
  text-align: center;
  background-color: var(--off-white);
  color: var(--navy-primary);
  border: none;
  border-radius: 10px;
  width: 80vw;
  font-size: 16px;
  max-width: 400px;
  margin: 0 auto;
  margin-bottom: 6px;
}

input[type="radio"] {
  width: auto;
}

input:focus {
  box-shadow: 5px 5px var(--navy-primary);
  background-color: var(--navy-secondary) !important;
  color: var(--off-white);
  outline: none;
}

button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s ease;
  color: inherit;
}

button:hover {
  color: var(--navy-secondary);
}

form p.error {
  color: #ff6b6b;
  text-shadow: 1px 1px 2px #5e0606;
  font-weight: bold;
}

input.error:focus {
  background-color: #ff6b6b !important;
}

form .success {
  padding-top: 2em;
  color: #6affab;
  text-shadow: 1px 1px 2px #023021;
  font-weight: bold;
}

form.gate input {
  background-color: white;
}
form.gate button,
form.gate label {
  text-shadow: 1px 1px 1px var(--off-white);
  font-weight: 600;
}

form.gate button {
  line-height: 1;
  position: auto;
}

/* Navigation */
#navbar {
  font-family: "Respondent";
  background-color: var(--navy-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

#navbar li {
  display: flex;
  align-items: center;
  margin: 0 var(--spacing-sm);
}

#navbar a {
  text-shadow: 1px 3px black;
  position: relative;
  top: 8px;
  display: block;
  padding: var(--spacing-sm);
  font-size: 2em;
  color: var(--off-white);
  transition: color 0.3s ease;
}

.register-btn {
  color: white;
}

.register-btn:hover {
  color: var(--navy-secondary);
}

/* Location Section */
.location-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.map-placeholder {
  background-color: var(--light-gray);
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
  color: #777;
  font-style: italic;
}

/* Itinerary Section */
.day {
  margin-bottom: var(--spacing-md);
}

.schedule-item {
  margin-bottom: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--navy-secondary);
  padding-left: var(--spacing-sm);
  margin-left: 10px;
}

.time {
  font-weight: 600;
  color: var(--navy-primary);
  margin-bottom: 0.25em;
}

.event-details {
  margin-bottom: var(--spacing-sm);
}

/* FAQ Section */
.faq-item {
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--light-gray);
}

.faq-item:last-child {
  border-bottom: none;
}

#rsvp {
  background-color: var(--navy-primary);
  color: white;
  text-align: center;
  padding: var(--spacing-lg) 0;
}

#rsvp h2 {
  color: inherit;
}

#rsvp h2::after {
  background-color: white;
  left: 50%;
  transform: translateX(-50%);
}

#rsvp p {
  max-width: 600px;
  margin: 0 auto var(--spacing-md);
}

#rsvp form {
  color: inherit;
}

fieldset {
  border: none;
  margin-bottom: 1em;
}

fieldset label {
  font-size: 2em;
  line-height: 1;
  position: auto;
}

/* Footer */
footer {
  background-color: var(--navy-primary);
  color: white;
  padding: var(--spacing-md) 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

#mobile-menu-prompt {
  text-align: center;
  border-top: 1px solid var(--off-white);
}

/* Responsive Styles */
@media (min-width: 768px) {
  .location-details {
    flex-direction: row;
  }

  .location-info,
  .location-map {
    flex: 1;
  }

  .schedule-item {
    flex-direction: row;
    gap: var(--spacing-md);
  }

  .time {
    min-width: 180px;
  }
  #mobile-menu-prompt {
    display: none !important;
  }
  .rsvp-cta {
    display: none !important;
  }

  #navbar a:hover {
    color: var(--navy-secondary);
  }

  .hero-content {
    box-shadow: 1px 1px 1em #28415612;
  }
}

@media (max-width: 780px) {
  html {
    font-size: 90%;
  }

  #navbar ul {
    flex-wrap: wrap;
  }

  #navbar li {
    margin: 0 auto;
  }

  #navbar a {
    padding: 10px;
    font-size: 0.9em;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
  }

  #navbar {
    font-size: 3em;
  }
  #navbar ul {
    justify-content: center;
    flex-direction: column;
    padding: 5px 0;
    display: none;
    transition: all 0.3s ease;
  }

  #navbar #links li {
    opacity: 0;
    max-height: 0;
    transition:
      opacity 0.3s ease,
      max-height 0.5s ease;
    overflow: hidden;
  }
  label span {
    display: none;
  }

  .hero {
    height: 90vh;
  }
  .hero-content {
    height: 100%;
    width: 100vw;
    padding: 0;
  }
}
