/* ===========================
   CSS Variables & Reset
   =========================== */
:root {
  /* Colors */
  --c-dark: rgba(15, 20, 15, 1);
  --c-dark-75: rgba(15, 20, 15, 0.75);
  --c-dark-25: rgba(15, 20, 15, 0.25);
  --c-light: #faf6f0;
  --c-light-85: rgba(250, 246, 240, 0.85);
  --c-cream: #fdfcf9;
  --c-gold: #c9a959;
  --c-card: rgba(235, 225, 215, 0.6);
  --c-forest: #2d4a3e;

  /* Typography */
  --ff-serif: "Cormorant Garamond", Georgia, serif;
  --ff-sans: "Montserrat", -apple-system, sans-serif;

  /* Spacing */
  --container-max: 1200px;

  /* Transitions */
  --ease: all 0.3s ease;

  /* Noise texture */
  --noise: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");

  /* Common shadows */
  --shadow-text: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--ff-sans);
  font-weight: 300;
  color: var(--c-dark);
  background: var(--c-cream);
  line-height: 1.6;
}
h1,
h2,
h3,
h4 {
  font-family: var(--ff-serif);
  font-weight: 400;
  line-height: 1.2;
}

/* ===========================
   Utility Classes
   =========================== */
/* Typography */
.ff-serif {
  font-family: var(--ff-serif);
}
.small-caps {
  font-variant: small-caps;
  letter-spacing: 0.05em;
}
.italic {
  font-style: italic;
}
.fw-500 {
  font-weight: 500;
}
.fw-600 {
  font-weight: 600;
}
.fw-700 {
  font-weight: 700;
}
.text-center {
  text-align: center;
}
.text-shadow {
  text-shadow: var(--shadow-text);
}

/* Colors */
.c-dark {
  color: var(--c-dark);
}
.c-light {
  color: var(--c-light);
}
.c-muted {
  color: rgba(15, 20, 15, 0.6);
}

/* Layout */
.relative {
  position: relative;
}
.z-1 {
  z-index: 1;
}
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.gap-1 {
  gap: 1rem;
}

/* Pseudo-element base for overlays */
.overlay-base {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* ===========================
   Component Classes
   =========================== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  position: relative;
  padding: 6rem 2rem;
  padding-top: calc(75px + 10vh);
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  pointer-events: none;
}
.section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.08;
  pointer-events: none;
}
.section > .container {
  position: relative;
  z-index: 1;
}

.section-title {
  font-size: clamp(1.875rem, 6vw, 3.75rem);
  margin-bottom: 0.5rem;
}

.card {
  position: relative;
  background: var(--c-card);
  border: 1px solid var(--c-dark-25);
  border-radius: 4px;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}
.card > * {
  position: relative;
  z-index: 1;
}

/* ===========================
   Navigation
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--c-dark-75);
  backdrop-filter: blur(8px);
  transition: var(--ease);
}
.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  height: 75px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
}
.nav-logo {
  text-decoration: none;
}
.nav-logo-img {
  height: 85px;
  width: auto;
  transition: var(--ease);
  margin-top: 30px;
  margin-bottom: 10px;
}
.nav-logo-img:hover {
  transform: scale(1.05);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  min-width: 120px;
}
.nav-links-left {
  justify-content: flex-end;
}
.nav-links-right {
  justify-content: flex-start;
}
.nav-links a {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 600;
  font-variant: small-caps;
  color: var(--c-light);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: var(--ease);
}
.nav-links a:hover {
  color: var(--c-gold);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("/images/hero-bg.png") center/cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.08;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--c-light);
  padding: 2rem;
}
.hero-title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 0.25rem;
}
.hero-title .amp {
  font-size: 0.85em;
}
.hero-date {
  font-size: clamp(1.25rem, 4vw, 2.5rem);
  margin-bottom: clamp(2.5rem, 8vw, 5rem);
}
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-light);
  opacity: 0.7;
}
.hero-scroll span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: var(--c-light);
  animation: scroll 2s ease-in-out infinite;
}
@keyframes scroll {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 1;
  }
  50% {
    transform: scaleY(0.5);
    opacity: 0.5;
  }
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-buttons .btn {
  min-width: 200px;
  text-align: center;
}

/* Section Separator */
.section-separator {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  transform: translateY(-50%);
  z-index: 50;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(15, 20, 15, 0.8) 50%,
    transparent 100%
  );
}
.section-separator::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.5;
}

/* ===========================
   Buttons
   =========================== */
.btn {
  position: relative;
  display: inline-block;
  padding: 0.5rem 1.5rem;
  font-size: 1.25rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--ease);
  overflow: hidden;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--noise);
  opacity: 0.3;
  pointer-events: none;
}
.btn > * {
  position: relative;
  z-index: 1;
}
.btn-primary {
  background: var(--c-dark-75);
  color: var(--c-light);
  border: 1px solid var(--c-light);
}
.btn-primary:hover {
  background: rgba(15, 20, 15, 0.9);
  transform: translateY(-2px);
}
.btn-secondary {
  background: var(--c-light-85);
  color: var(--c-dark);
  border: 1px solid rgba(15, 20, 15, 0.8);
}
.btn-secondary:hover {
  background: var(--c-light);
  transform: translateY(-2px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn:disabled:hover {
  transform: none;
}
.btn-block {
  width: 100%;
  margin-top: 1.5rem;
}

/* ===========================
   Venue Section
   =========================== */
.venue {
  background-image: url("/images/location-bg.png");
  background-position: top;
}
.venue-location {
  display: flex;
  justify-content: center;
  margin-top: clamp(1.5rem, 6vw, 3rem);
}
.venue-location > div {
  text-align: center;
  font-family: var(--ff-serif);
  color: var(--c-dark);
  line-height: 1.2;
  padding: 5rem clamp(1.875rem, 6vw, 3.75rem);
}
.venue-location p {
  font-size: clamp(0.9375rem, 3vw, 1.875rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.02em;
  margin: 0;
}
.venue-location .venue-place {
  font-size: clamp(1.25rem, 4vw, 2.5rem);
  font-weight: 700;
  font-variant: small-caps;
  font-style: normal;
  letter-spacing: 0.05em;
  margin: 0 0 clamp(1.5625rem, 5vw, 3.125rem);
}
.venue-location .venue-place:last-child {
  margin-bottom: 0;
}

/* ===========================
   RSVP Section
   =========================== */
.rsvp {
  background-image: url("/images/rsvp-bg.png");
  color: var(--c-light);
}
.rsvp-form {
  max-width: 500px;
  margin: clamp(1.5rem, 6vw, 3rem) auto 0;
  background: var(--c-dark-75);
  padding: 3rem 2.5rem;
  border-radius: 4px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
.form-group {
  margin-bottom: 1.75rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--ff-serif);
  font-size: 1.125rem;
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.05em;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  font-family: var(--ff-sans);
  font-size: 1rem;
  border: 1px solid rgba(248, 246, 240, 0.3);
  background: rgba(248, 246, 240, 0.1);
  color: var(--c-light);
  transition: var(--ease);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(248, 246, 240, 0.5);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-gold);
  background: rgba(248, 246, 240, 0.15);
}
.form-group select {
  cursor: pointer;
}
.form-group select option {
  background: var(--c-forest);
  color: var(--c-light);
}
.radio-group {
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
  margin-bottom: -0.5rem;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}
.radio-label input[type="radio"] {
  width: auto;
  accent-color: var(--c-gold);
}
.attending-only {
  display: none;
}
.attending-only.show {
  display: block;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: calc(75px + 1.5rem);
  right: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: rgba(45, 74, 62, 0.97);
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  color: var(--c-light);
  font-family: var(--ff-sans);
  font-size: 0.95rem;
  pointer-events: auto;
  transform: translateX(120%);
  opacity: 0;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
  max-width: 360px;
}
.toast.show {
  transform: translateX(0);
  opacity: 1;
}
.toast.hiding {
  transform: translateX(120%);
  opacity: 0;
}
.toast .toast-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.toast.success .toast-icon {
  background: var(--c-gold);
  color: var(--c-dark);
}
.toast.error .toast-icon {
  background: #c94444;
  color: white;
}
.toast-content h4 {
  font-family: var(--ff-serif);
  font-size: 1.1rem;
  margin-bottom: 0.15rem;
  font-weight: 600;
}
.toast-content p {
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0;
}

/* ===========================
   Travel Section
   =========================== */
.travel {
  background-image: url("/images/travel.png");
}
.travel .section-title {
  color: var(--c-light);
}
.travel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: clamp(1.5rem, 6vw, 3rem);
  align-items: stretch;
}
.travel-card {
  background: rgba(235, 225, 215, 0.8);
  padding: clamp(2rem, 5vw, 2.5rem);
  text-align: center;
  font-family: var(--ff-serif);
  color: var(--c-dark);
}
.travel-card h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 500;
  font-variant: small-caps;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--c-dark-25);
  color: rgba(15, 20, 15, 0.7);
}
.travel-item {
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
}
.travel-item:last-child {
  margin-bottom: 0;
}
.travel-label {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  font-style: italic;
  color: rgba(15, 20, 15, 0.6);
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}
.travel-place {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 600;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.travel-detail {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-style: italic;
  color: rgba(15, 20, 15, 0.6);
  margin-top: 0.35rem;
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }
  .nav-links a {
    font-size: 0.75rem;
  }
  .hero {
    background-attachment: scroll;
  }
  .radio-group {
    gap: 1rem;
  }
  .section {
    padding: 4rem 1.5rem;
  }
}
@media (max-width: 480px) {
  .nav-logo {
    font-size: 1.25rem;
  }
  .nav-links {
    gap: 0.75rem;
  }
  .toast-container {
    top: auto;
    bottom: 1.5rem;
    right: 1rem;
    left: 1rem;
  }
  .toast {
    max-width: 100%;
    transform: translateY(120%);
  }
  .toast.show {
    transform: translateY(0);
  }
  .toast.hiding {
    transform: translateY(120%);
  }
}
