/* styles.css */

:root {
  --bg: #f9f6f2;
  --primary: #8b6f62;
  --secondary: #d9c7bd;
  --text: #333333;
  --white: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* NAVIGATION */
.nav {
  position: absolute;
  top: 0;
  width: 100%;
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.logo {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  color: var(--white);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.3s;
}

.nav-links a:hover {
  opacity: 0.7;
}

/* HERO */
.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("https://images.unsplash.com/photo-1522673607200-164d1b6ce486?q=80&w=1600&auto=format&fit=crop")
    center/cover no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
  padding: 20px;
}

.hero-content h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: 5rem;
  margin-bottom: 12px;
}

.date,
.location {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 28px;
  border: none;
  background: var(--primary);
  color: var(--white);
  text-decoration: none;
  border-radius: 40px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-size: 1rem;
}

.btn:hover {
  background: #73594d;
}

/* SECTIONS */
.section {
  padding: 90px 20px;
}

.alt {
  background: var(--white);
}

.container {
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  margin-bottom: 30px;
  color: var(--primary);
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: var(--bg);
  padding: 30px;
  border-radius: 16px;
}

.card h3 {
  margin-bottom: 12px;
  color: var(--primary);
}

/* TIMELINE */
.timeline {
  max-width: 600px;
  margin: auto;
  text-align: left;
}

.timeline-item {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #ddd;
}

.timeline-item span {
  font-weight: bold;
  color: var(--primary);
  min-width: 100px;
}

/* RSVP */
.rsvp-form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  padding: 14px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 1rem;
  font-family: inherit;
}

.response-message {
  margin-top: 20px;
  font-weight: bold;
  color: var(--primary);
}

/* FOOTER */
.footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 24px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }

  .nav {
    flex-direction: column;
    gap: 14px;
  }

  .nav-links {
    gap: 16px;
  }

  h2 {
    font-size: 2.3rem;
  }
}