:root {
  --cream: #F5F0E8;
  --stone: #3D3630;
  --stone-light: #6B5E54;
  --sage: #7A8B6F;
  --sage-light: #A4B396;
  --sage-pale: #E8EDE4;
  --amber: #C4935A;
  --amber-light: #E8C9A0;
  --sky: #8FABBF;
  --rose: #C49A8B;
  --white: #FEFCF9;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--stone);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  background: rgba(245, 240, 232, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(61, 54, 48, 0.08);
  transition: background 0.4s;
}

nav.over-image {
  background: rgba(0, 0, 0, 0.3);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

nav.over-image a { color: rgba(255, 255, 255, 0.8); }
nav.over-image a:hover { color: #fff; }

nav a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone-light);
  text-decoration: none;
  transition: color 0.3s;
}

nav a:hover { color: var(--sage); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(196, 147, 90, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(122, 139, 111, 0.10) 0%, transparent 60%),
    var(--cream);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-ornament {
  font-size: 1.6rem;
  color: var(--sage-light);
  letter-spacing: 0.5em;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.2s forwards;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--stone);
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.4s forwards;
}

.hero h1 em {
  font-style: italic;
  color: var(--sage);
}

.hero-date {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 1s ease 0.6s forwards;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 300;
  font-style: italic;
  color: var(--stone-light);
  max-width: 500px;
  opacity: 0;
  animation: fadeUp 1s ease 0.8s forwards;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeUp 1s ease 1.2s forwards;
}

.scroll-hint span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--sage-light), transparent);
  margin: 0 auto;
  animation: pulse 2s ease infinite;
}

/* ─── TEXT SECTIONS ─── */
.text-section {
  padding: 6rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1.5rem;
}

.text-section h2, section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  color: var(--stone);
  margin-bottom: 2rem;
}

.text-section p, section p {
  font-size: 1.05rem;
  color: var(--stone-light);
  margin-bottom: 1.5rem;
}

.text-section p:last-child { margin-bottom: 0; }

/* ─── DIVIDER ─── */
.divider {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--sage-light), transparent);
}

.divider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage-light);
}

/* ─── PARALLAX IMAGE PANELS ─── */

.parallax-panel {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  overflow: hidden;
}

/* iOS/touch devices don't support background-attachment: fixed */
@media (hover: none) and (pointer: coarse) {
  .parallax-panel {
    background-attachment: scroll;
  }
}

/* Dark gradient overlay for text readability */
.parallax-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.65) 0%,
    rgba(0, 0, 0, 0.25) 40%,
    rgba(0, 0, 0, 0.08) 100%
  );
  z-index: 1;
}

/* Subtle film grain */
.parallax-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  z-index: 2;
  pointer-events: none;
}

.parallax-content {
  position: relative;
  z-index: 3;
  padding: 3rem 3rem 3.5rem;
  max-width: 600px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.parallax-panel.visible .parallax-content {
  opacity: 1;
  transform: translateY(0);
}

.parallax-date {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-light);
  margin-bottom: 0.6rem;
}

.parallax-place {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 400;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 0.6rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.parallax-note {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

/* ─── Ceremony panel ─── */
.parallax-panel.ceremony::before {
  background: linear-gradient(
    to top,
    rgba(61, 40, 15, 0.7) 0%,
    rgba(61, 40, 15, 0.3) 40%,
    rgba(0, 0, 0, 0.05) 100%
  );
}

.parallax-panel.ceremony .parallax-date {
  color: var(--amber);
}

.ceremony-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(196, 147, 90, 0.15);
  border: 1px solid rgba(196, 147, 90, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
}

/* ─── Compact stop list ─── */
.stops-compact {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

.stop-mini {
  padding: 1.2rem;
  background: var(--white);
  border: 1px solid rgba(61, 54, 48, 0.08);
  border-radius: 8px;
}

.stop-mini-date {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.3rem;
}

.stop-mini-place {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--stone);
  margin-bottom: 0.2rem;
}

.stop-mini-note {
  font-size: 0.82rem;
  color: var(--stone-light);
}

/* ─── RECEPTION CARD ─── */
section {
  padding: 6rem 2rem;
  max-width: 720px;
  margin: 0 auto;
}

.reception-card {
  background: var(--white);
  border: 1px solid rgba(122, 139, 111, 0.15);
  border-radius: 12px;
  padding: 3rem;
  margin-top: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.reception-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--sage), var(--amber), var(--sage));
}

.reception-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--stone);
  margin-bottom: 1.5rem;
}

.reception-detail {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.reception-detail span {
  font-size: 1rem;
  color: var(--stone-light);
}

.reception-detail strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--stone);
}

.calendar-link {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.6rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--stone);
  background: none;
  border: 1px solid var(--stone-light);
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.calendar-link:hover {
  background: var(--stone);
  color: var(--cream);
}

/* ─── ACCOMMODATION MODAL ─── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: rgba(61, 54, 48, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.open {
  visibility: visible;
  opacity: 1;
}

.modal {
  background: var(--cream);
  border-radius: 12px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 2.5rem;
  position: relative;
}

.modal h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--stone);
  margin-bottom: 1.5rem;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--stone-light);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--stone);
}

.stays-map {
  width: 100%;
  height: 300px;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(61, 54, 48, 0.1);
}

.stays-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.stays-item {
  padding: 1rem 1.2rem;
  background: var(--white);
  border: 1.5px solid rgba(61, 54, 48, 0.08);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.stays-item:hover {
  border-color: var(--sage-light);
}

.stays-item-muted {
  cursor: default;
  border-style: dashed;
}

.stays-item.active {
  border-color: var(--sage);
  background: var(--sage-pale);
}

.stays-item strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--stone);
}

.stays-item p {
  font-size: 0.9rem;
  color: var(--stone-light);
  margin-top: 0.3rem;
  line-height: 1.5;
}

.stays-paw {
  text-decoration: none;
  font-size: 0.95rem;
  margin-left: 0.3rem;
  vertical-align: middle;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.stays-paw:hover {
  opacity: 1;
}

.stays-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(196, 147, 90, 0.12);
  border: 1px solid rgba(196, 147, 90, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* ─── RSVP SECTION ─── */
.rsvp-section {
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem 2rem 8rem;
}

.rsvp-form {
  margin-top: 2.5rem;
}

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

.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.6rem;
}

.form-group input[type="text"],
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--stone);
  background: var(--white);
  border: 1.5px solid rgba(61, 54, 48, 0.15);
  border-radius: 8px;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(122, 139, 111, 0.12);
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(107, 94, 84, 0.4);
}

.radio-group {
  display: flex;
  gap: 0.8rem;
}

.radio-option {
  flex: 1;
}

.radio-option input { display: none; }

.radio-option label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--stone-light);
  background: var(--white);
  border: 1.5px solid rgba(61, 54, 48, 0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.radio-option input:checked + label {
  border-color: var(--sage);
  background: var(--sage-pale);
  color: var(--stone);
}

.radio-option label:hover {
  border-color: var(--sage-light);
}

.form-submit {
  width: 100%;
  padding: 1.1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--sage);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, transform 0.15s;
}

.form-submit:hover { background: var(--stone-light); }
.form-submit:active { transform: scale(0.98); }
.form-submit:disabled {
  background: var(--sage-light);
  cursor: not-allowed;
}

.form-message {
  text-align: center;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 1.5rem;
  font-size: 0.95rem;
  display: none;
}

.form-message.success {
  display: block;
  background: var(--sage-pale);
  color: var(--sage);
  border: 1px solid rgba(122, 139, 111, 0.2);
}

.form-message.error {
  display: block;
  background: #fdf0ed;
  color: #a04030;
  border: 1px solid rgba(160, 64, 48, 0.15);
}

/* ─── PARTY MEMBERS ─── */
.party-section {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--white);
  border: 1.5px solid rgba(61, 54, 48, 0.1);
  border-radius: 10px;
}

.party-member {
  display: flex;
  gap: 0.8rem;
  align-items: start;
  margin-bottom: 0.8rem;
}

.party-member input[type="text"] {
  flex: 1;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--stone);
  background: var(--cream);
  border: 1.5px solid rgba(61, 54, 48, 0.15);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.party-member input[type="text"]:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(122, 139, 111, 0.12);
}

.party-member select {
  padding: 0.75rem 0.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--stone);
  background: var(--cream);
  border: 1.5px solid rgba(61, 54, 48, 0.15);
  border-radius: 8px;
  outline: none;
  cursor: pointer;
  min-width: 130px;
}

.party-remove {
  padding: 0.75rem 0.9rem;
  background: none;
  border: 1.5px solid rgba(160, 64, 48, 0.2);
  border-radius: 8px;
  color: #a04030;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  transition: background 0.2s;
}

.party-remove:hover { background: #fdf0ed; }

.party-add {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--sage);
  background: none;
  border: 1.5px dashed var(--sage-light);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  margin-top: 0.4rem;
}

.party-add:hover {
  background: var(--sage-pale);
  border-color: var(--sage);
}

/* ─── FOOTER ─── */
footer {
  text-align: center;
  padding: 3rem 2rem;
  font-size: 0.82rem;
  color: var(--stone-light);
  opacity: 0.6;
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  nav { gap: 1.2rem; padding: 1rem 1rem; }
  nav a { font-size: 0.7rem; letter-spacing: 0.08em; }
  .text-section { padding: 4rem 1.5rem; }
  section { padding: 4rem 1.5rem; }
  .parallax-panel { min-height: 70vh; }
  .parallax-content { padding: 2rem 1.5rem 2.5rem; }
  .parallax-place { font-size: 1.8rem; }
  .reception-card { padding: 2rem 1.5rem; }
  .rsvp-section { padding: 4rem 1.5rem 6rem; }
  .radio-group { flex-direction: column; gap: 0.5rem; }
  .stops-compact { padding: 2rem 1.5rem; }
  .modal { padding: 1.5rem; }
  .stays-map { height: 250px; }
  .party-member { flex-wrap: wrap; }
  .party-member input[type="text"] { flex: 1 1 100%; }
  .party-member select { flex: 1; }
  .party-remove { flex: 0; }
}
