/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: light;
  --cream:   #faf7f2;
  --warm:    #f5ede0;
  --gold:    #c9a96e;
  --gold-dk: #a8854a;
  --dark:    #2c2520;
  --mid:     #6b5c50;
  --light:   #9e8e82;
  --ff-serif: 'Cormorant Garamond', Georgia, serif;
  --ff-sans:  'Jost', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--dark);
  font-family: var(--ff-sans);
  font-weight: 300;
  line-height: 1.7;
}

/* ── Nav ──────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 1rem;
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

nav a {
  font-family: var(--ff-sans);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}
nav a:hover { color: var(--gold-dk); }

/* ── Hero ─────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(160deg, #faf7f2 0%, #f5ede0 100%);
  padding: 6rem 2rem 4rem;
}

.hero-inner { max-width: 640px; }

.hero-eyebrow {
  font-family: var(--ff-sans);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

h1 {
  font-family: var(--ff-serif);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 300;
  line-height: 1;
  color: var(--dark);
  letter-spacing: 0.02em;
}

h1 span {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-family: var(--ff-serif);
  font-size: clamp(1rem, 3vw, 1.4rem);
  font-style: italic;
  color: var(--mid);
  margin-top: 0.75rem;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin: 2rem auto;
  opacity: 0.6;
}

.hero-date {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--light);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

/* ── Button ───────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2.5rem;
  border: 1px solid var(--gold);
  color: var(--gold-dk);
  background: transparent;
  font-family: var(--ff-sans);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn:hover {
  background: var(--gold);
  color: white;
}

/* ── Sections ─────────────────────────────────────── */
section { padding: 5rem 2rem; }
section:nth-child(even) { background: var(--warm); }

.section-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

h2 {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.section-intro {
  color: var(--mid);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto 3rem;
}

/* ── Details Grid ─────────────────────────────────── */
.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  text-align: center;
}

.detail-card {
  padding: 2rem 1.5rem;
  background: var(--cream);
  border: 1px solid rgba(201, 169, 110, 0.2);
}

.detail-card h3 {
  font-family: var(--ff-serif);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.detail-card p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.6;
}

/* ── Gallery ──────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s;
}
.gallery-grid img:hover { opacity: 0.9; }

.gallery-placeholder {
  grid-column: 1 / -1;
  padding: 4rem;
  border: 2px dashed rgba(201, 169, 110, 0.3);
  color: var(--light);
  font-style: italic;
  font-family: var(--ff-serif);
  font-size: 1.2rem;
}

/* ── RSVP Form ────────────────────────────────────── */
.rsvp-form {
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 540px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 0.4rem;
}

.req { color: var(--gold); }

input, select, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(107, 92, 80, 0.25);
  background: white;
  font-family: var(--ff-sans);
  font-size: 0.9rem;
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239e8e82' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

textarea { resize: vertical; min-height: 80px; }

.rsvp-form .btn { margin-top: 0.5rem; width: 100%; }

.rsvp-success {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem;
  background: white;
  border: 1px solid rgba(201, 169, 110, 0.3);
  text-align: center;
  font-family: var(--ff-serif);
  font-size: 1.3rem;
  color: var(--mid);
}

.hidden { display: none; }

/* ── Footer ───────────────────────────────────────── */
footer {
  background: var(--dark);
  color: var(--light);
  text-align: center;
  padding: 2.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}
