/* General Resets */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

:root {
  --green: #3e513c;
  --cream: #f3dbb9;
  --sage: #b4b49f;
  --white: #ffffff;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--green);
  color: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
.serif {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
}

.script {
  font-family: 'Great Vibes', cursive;
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  gap: 2rem;
  z-index: 1000;
  background: linear-gradient(to bottom, rgba(62, 81, 60, 0.95) 0%, rgba(62, 81, 60, 0.7) 70%, rgba(62, 81, 60, 0) 100%);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 2px;
  color: var(--sage);
  transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
  color: var(--cream);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Base Sections & Theming Variables */
section {
  --sec-bg: var(--green);
  --sec-text: var(--white);
  --sec-heading: var(--cream);
  --sec-card-bg: rgba(243, 219, 185, 0.05);
  --sec-card-border: rgba(243, 219, 185, 0.2);

  background-color: var(--sec-bg);
  color: var(--sec-text);

  min-height: 100vh;
  padding: 6rem 2rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

section.bg-cream {
  --sec-bg: var(--cream);
  --sec-text: var(--green);
  --sec-heading: var(--green);
  --sec-card-bg: rgba(62, 81, 60, 0.05);
  --sec-card-border: rgba(62, 81, 60, 0.2);
}

.section-title {
  font-size: 5rem;
  color: var(--sec-heading);
  margin-bottom: 4rem;
  letter-spacing: -1px;
}

/* Section: Home */
#home {
  flex-direction: row;
  justify-content: center;
  gap: 4rem;
  padding-top: 8rem;
}

.hero-image {
  max-width: 500px;
  width: 100%;
  border-radius: 12px;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.couple-names {
  line-height: 0.9;
  margin-bottom: 2rem;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.name {
  font-size: 6.5rem;
  color: var(--sec-heading);
  letter-spacing: -2px;
}

.and-chris {
  display: flex;
  align-items: center;
  margin-top: -1.5rem;
}

.and {
  font-size: 4.5rem;
  color: var(--sec-heading);
  margin-right: 1.5rem;
}

.tagline {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-top: 2rem;
  margin-bottom: 2rem;
  color: var(--sec-heading);
}

.date-location {
  display: flex;
  gap: 2rem;
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  align-items: center;
  color: var(--sec-heading);
}

.date-location .divider {
  width: 1px;
  height: 40px;
  background-color: var(--sec-heading);
}

.rsvp-large {
  font-size: 4.5rem;
  margin-top: 3rem;
  text-decoration: underline;
  text-underline-offset: 8px;
  color: var(--sec-heading);
  transition: color 0.3s;
  letter-spacing: -1px;
}

.rsvp-large:hover {
  color: var(--white);
}

/* Section: The Wedding */
.wedding-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  max-width: 1200px;
  width: 100%;
  align-items: flex-start;
}

.wedding-card {
  flex: 1;
  text-align: center;
}

.wedding-card .card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.wedding-card h3 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--sec-heading);
  font-family: 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.wedding-card p {
  font-size: 1.1rem;
  color: var(--sec-text);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.wedding-card a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Section: Travel */
#travel h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--sec-heading);
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 2px;
}

#travel .travel-grid {
  display: flex;
  gap: 4rem;
  max-width: 1000px;
  text-align: left;
}

#travel .travel-col {
  flex: 1;
}

#travel ul {
  list-style-type: circle;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

#travel p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

#travel .reassurance {
  margin-top: 3rem;
  text-align: center;
  max-width: 800px;
}

/* Accommodations */
#accommodations .hotel-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  font-size: 1.2rem;
  margin-bottom: 3rem;
  color: var(--sec-heading) !important;
}

#accommodations p {
  color: var(--sec-text) !important;
}

/* Shared Grids */
.itinerary-grid {
  display: flex;
  gap: 4rem;
  max-width: 1000px;
  text-align: left;
  align-items: flex-start;
}

.itinerary-day {
  flex: 1;
  background: var(--sec-card-bg);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid var(--sec-card-border);
}

.itinerary-day h3 {
  font-size: 1.5rem;
  color: var(--sec-heading);
  margin-bottom: 2rem;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 2px;
}

.event {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.event h4 {
  font-size: 1.2rem;
  color: var(--sec-heading);
  font-family: 'Montserrat', sans-serif;
}

.event p {
  color: var(--sec-text);
  font-size: 1.1rem;
}

/* RSVP */
#rsvp {
  padding-top: 8rem;
}

#rsvp h2 {
  font-size: 6.5rem;
  margin-bottom: 1rem;
  letter-spacing: -2px;
  color: var(--sec-heading) !important;
}

#rsvp p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto 3rem;
  color: var(--sec-text);
}

#rsvp .deadline {
  font-size: 1.6rem;
  color: var(--sec-heading);
  margin-bottom: 3rem;
  font-family: 'Playfair Display', serif;
}

.btn-rsvp {
  display: inline-block;
  font-size: 1.4rem;
  border: 2px solid var(--sec-heading);
  padding: 1rem 3rem;
  border-radius: 40px;
  color: var(--sec-heading);
  transition: all 0.3s;
}

.btn-rsvp:hover {
  background-color: var(--sec-heading);
  color: var(--sec-bg);
}

/* Contact */
.contact-cards {
  display: flex;
  gap: 4rem;
  max-width: 900px;
  margin-top: 3rem;
  justify-content: center;
}

.contact-card {
  text-align: center;
  background: var(--sec-card-bg);
  padding: 3rem;
  border-radius: 8px;
  border: 1px solid var(--sec-card-border);
  flex: 1;
}

.contact-card h3 {
  color: var(--sec-heading);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1px;
}

.contact-card p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--sec-text);
}

/* Responsive */
@media (max-width: 900px) {
  #home {
    flex-direction: column-reverse;
    /* image on top or text on top */
    padding-top: 8rem;
    gap: 3rem;
  }

  .wedding-grid,
  #travel .travel-grid,
  .contact-cards,
  .itinerary-grid {
    flex-direction: column;
    gap: 3rem;
  }

  .name {
    font-size: 4.5rem;
  }

  .and {
    font-size: 3rem;
  }

  nav {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: rgba(62, 81, 60, 0.95);
  }

  .section-title {
    font-size: 3.5rem;
  }
}