:root {
  /* Color Palette - Elegant Wedding Theme */
  --primary-color: #5d5c5c;    /* Soft Charcoal */
  --accent-color: #d4af37;     /* Metallic Gold */
  --bg-color: #fdfbf7;         /* Off-white/Cream */
  --text-color: #333333;       /* Dark Grey */
  --card-bg: hsl(0, 0%, 100%); /* White */
  --error-color: #c0392b;      /* Soft Red */
  --success-color: #27ae60;    /* Soft Green */
  --nav-bg: rgba(255, 255, 255, 0.9);

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;

  /* Spacing & Radius */
  --section-padding: 80px 20px;
  --border-radius: 8px;
  --transition: all 0.3s ease;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background-color: var(--accent-color);
}

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

.hidden {
  display: none !important;
}

/* Navigation */
.sticky-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(5px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.nav-links {
  display: flex;
  list-style: none;
  padding: 1rem 0;
}

.nav-links li {
  margin: 0 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  height: 100vh;
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
              url('../assets/images/WW3_5851.JPEG') center/cover no-repeat;
  background-attachment: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

.hero-content h1 {
  font-size: 4rem;
  color: white;
  margin-bottom: 0.5rem;
}

.wedding-date {
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.wedding-location {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* Countdown Timer */
.timer-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.timer-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.timer-segment span {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-color);
}

.timer-segment label {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--primary-color);
}


/* New style for the sub-group headers */
.parents-group-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary-color);
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}


/* Wedding Party Grid */
#wedding-party {
  /* display: flex; */
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
              url('../assets/images/WW3_5872.JPEG') center/cover no-repeat;
  background-attachment: fixed;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#wedding-party > .section-title {
  color: white;
}
.member-grid {
  display: grid;
  /* grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); */
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  max-width: calc((250px * 3) + (var(--gap, 2rem) * 2)); 
  gap: 2rem;
  margin-top: 3rem;
  margin-inline: auto; 
}

.member-card {
  background: var(--card-bg);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: var(--transition);
}

.member-card:hover {
  transform: translateY(-5px);
}

.member-image {
  width: 150px;
  height: 150px;
  background-color: #eee;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background-size: cover;
  background-position: center;
}

/* Buffet Menu */
.menu-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.menu-category {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.menu-category h3 {
  color: var(--accent-color);
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.menu-list {
  list-style: none;
  margin-top: 1rem;
}

.menu-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f9f9f9;
}

/* RSVP Section */
.rsvp-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 3rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
}

.form-group input[readonly] {
  background-color: #f5f5f5;
}

.radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.btn-primary {
  width: 100%;
  padding: 1rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: #b8962d;
}

.feedback-message {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 4px;
  text-align: center;
}

.feedback-message.success {
  background-color: #d4edda;
  color: var(--success-color);
}

.feedback-message.error {
  background-color: #f8d7da;
  color: var(--error-color);
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 0;
  color: var(--primary-color);
  font-size: 0.9rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.5rem; }
  .timer-container { gap: 1rem; }
  .timer-segment span { font-size: 1.8rem; }
  .section { padding: 50px 15px; }
  .rsvp-card { padding: 1.5rem; }
}