/* Global styles for JR & Rosie wedding site */
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Lora', serif;
  background-color: #f8f6f3;
  color: #333;
  line-height: 1.6;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: 'Playfair Display', serif;
  margin: 0;
  color: #333;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
/* Navigation bar */
.navbar {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid #e0dcd3;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}
.logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: #7f5f3c;
  letter-spacing: 1px;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1rem;
}
.nav-list li a {
  text-decoration: none;
  font-weight: 500;
  color: #5a4b3b;
  padding: 0.5rem 0.75rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.nav-list li a:hover,
.nav-list li a.active {
  background-color: #e7dfd5;
  color: #7f5f3c;
  border-radius: 4px;
}
/* Hero section */
.hero {
  position: relative;
  height: 80vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}
.hero h2 {
  font-size: 2.5rem;
  letter-spacing: 2px;
  margin-bottom: 0.25rem;
}
.hero h3 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}
.hero .venue {
  font-size: 1rem;
  font-style: italic;
  margin-bottom: 1rem;
}
.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #c2a27d;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.button:hover {
  background-color: #a58660;
}

/* 
  New hero container styles for the custom hero image layout.
  These styles position the image and clickable areas and hide the original hero and info grid.
*/

.hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  display: block;
}

/* Invisible clickable areas overlaying the hero image */
.click {
  position: absolute;
  display: block;
}

/* Positioning for each clickable region, adjust percentages to fine tune alignment */
.rsvp {
  top: 58%;
  left: 8%;
  width: 26%;
  height: 18%;
}

.events {
  top: 58%;
  left: 36%;
  width: 26%;
  height: 18%;
}

.travel {
  top: 58%;
  left: 64%;
  width: 26%;
  height: 18%;
}

.hotels {
  top: 78%;
  left: 8%;
  width: 26%;
  height: 18%;
}

.gallery {
  top: 78%;
  left: 36%;
  width: 26%;
  height: 18%;
}

/* Hide the original hero section (not used after redesign) */
.hero {
  display: none;
}

/* Introduction section below the hero image */
.intro {
  text-align: center;
  margin: 3rem auto;
}
/* Info grid on home page */
.info-grid {
  margin: 4rem auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  text-align: center;
}
.info-card {
  padding: 1.5rem;
  border: 1px solid #e0dcd3;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.info-card h4 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: #7f5f3c;
}
.info-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 0.75rem;
}
.card-link {
  color: #7f5f3c;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}
.card-link:hover {
  border-color: #7f5f3c;
}
/* Pages general layout */
main {
  padding-top: 80px; /* space for fixed nav */
  padding-bottom: 2rem;
}
.page-header {
  text-align: center;
  margin-bottom: 2rem;
}
.section {
  padding: 2rem 0;
}
/* RSVP form */
.rsvp-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
 .rsvp-form input,
 .rsvp-form textarea,
 .rsvp-form select {
  padding: 0.75rem;
  border: 1px solid #e0dcd3;
  border-radius: 4px;
  font-size: 1rem;
}

/* Custom select arrow */
.rsvp-form select {
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%237f5f3c' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px 6px;
  padding-right: 2rem;
}
.rsvp-form button {
  padding: 0.75rem;
  background-color: #c2a27d;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}
.rsvp-form button:hover {
  background-color: #a58660;
}
/* Timeline list */
.timeline {
  max-width: 800px;
  margin: 0 auto;
}
.timeline-item {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.timeline-item .time {
  font-weight: 600;
  color: #7f5f3c;
  width: 80px;
  flex-shrink: 0;
}
.timeline-item .details {
  flex-grow: 1;
}
/* Gallery */
.gallery {
  column-count: 3;
  column-gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
  break-inside: avoid;
}
/* Footer */
.footer {
  background-color: #f0ece6;
  padding: 1rem;
  text-align: center;
  font-size: 0.875rem;
  color: #7a6d5a;
}

/* Attire page styles */
.attire-section {
  text-align: center;
  margin: 4rem auto;
}

.color-palette {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0;
}

.color-swatch {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.color-swatch:hover {
  transform: scale(1.2);
}

.color-swatch.champagne {
  background-color: #f7e9d5;
}
.color-swatch.blush {
  background-color: #f3d3d8;
}
.color-swatch.pink {
  background-color: #f7b7c3;
}
.color-swatch.burgundy {
  background-color: #803336;
}
.color-swatch.taupe {
  background-color: #d1c1ae;
}
.color-swatch.black {
  background-color: #000000;
}

.attire-guide-img {
  max-width: 100%;
  margin-bottom: 2rem;
}

.attire-details {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.attire-details h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
