/* ===========================
   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.85);
  --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;

  /* 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-dark);
  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;
}

.page-content {
  position: relative;
  background-color: var(--c-cream);
  background-image: url("../images/all-bg.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}
/* .page-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 15, 0.55);
  pointer-events: none;
  z-index: 0;
} */
.page-content > * {
  position: relative;
  z-index: 1;
}

.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 > .container {
  position: relative;
  z-index: 1;
}

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

.card {
  position: relative;
  background: var(--c-card);
  border: 1px solid var(--c-dark-25);
  border-radius: 4px;
  overflow: hidden;
}

.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: space-between;
  align-items: center;
  padding: 0 2rem;
}
.nav-logo {
  text-decoration: none;
  font-family: var(--ff-serif);
  font-size: 2rem;
  font-style: italic;
  color: var(--c-light);
  letter-spacing: 0.05em;
  transition: var(--ease);
}
.nav-logo:hover {
  opacity: 0.8;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  min-width: 120px;
}

.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: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  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-image: url("/images/hero-bg.jpg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.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%
  );
}

/* ===========================
   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 > * {
  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 1rem;
}
.venue-location .venue-place:last-child {
  margin-bottom: 0;
}
.venue-location .venue-date {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-style: italic;
  color: rgba(15, 20, 15, 0.6);
  letter-spacing: 0.02em;
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
}
.venue-location .venue-detail {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-style: italic;
  color: rgba(15, 20, 15, 0.6);
  margin: 1rem 0 0;
  letter-spacing: 0.02em;
}
.venue-location .venue-parking {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-style: italic;
  color: rgba(15, 20, 15, 0.6);
  margin: 0;
  letter-spacing: 0.02em;
}
.venue-location .venue-dresscode {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  font-style: normal;
  color: var(--c-dark);
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  letter-spacing: 0.02em;
}
.venue-location .venue-dresscode a {
  display: inline-block;
  color: var(--c-dark);
  text-decoration: none;
  background: rgba(15, 20, 15, 0.05);
  border: 1px solid var(--c-dark-25);
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
  font-style: normal;
  font-variant: small-caps;
  font-weight: 500;
  letter-spacing: 0.06em;
}
.venue-location .venue-dresscode a:hover {
  background: rgba(15, 20, 15, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(15, 20, 15, 0.1);
}
.dresscode-hint {
  display: block;
  font-size: 0.7em;
  opacity: 0.55;
  margin-top: 0.3rem;
  font-style: italic;
  font-variant: normal;
  letter-spacing: 0.01em;
}

/* Dress Code Dialog */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}
.dialog-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}
.dresscode-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none;
  border-radius: 12px;
  padding: 1.5rem;
  width: min(92vw, 680px);
  max-height: 90vh;
  max-height: 90dvh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background: #faf8f9;
  color: var(--c-dark);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: none;
  z-index: 9999;
  opacity: 0;
  transform: scale(0.92) translateY(20px);
  transition:
    opacity 1s ease,
    transform 1s ease;
}
.dresscode-dialog[open] {
  display: flex;
}
.dresscode-dialog.dialog-showing {
  opacity: 1;
  transform: scale(1) translateY(0);
}
.dialog-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}
.dialog-close:hover {
  color: #000;
}
.dialog-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 0 0 0.25rem;
  letter-spacing: 0.08em;
}
.dialog-subtitle {
  font-size: 1.1rem;
  color: #666;
  margin: 0 0 1.25rem;
  font-style: italic;
}
.dialog-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  min-height: 0;
  flex-shrink: 1;
  object-fit: contain;
  border-radius: 0;
  margin: 0 auto 1rem;
  background: #faf8f9;
}
.dialog-explanation {
  font-family: var(--ff-serif);
  font-size: 0.95rem;
  color: #555;
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 0;
  padding: 1rem 0 1.25rem;
  border-top: 1px solid #eee;
}
.dialog-explanation p {
  margin: 0.15rem 0;
}
.dialog-explanation strong {
  font-style: normal;
  font-variant: small-caps;
  letter-spacing: 0.04em;
  color: #333;
}
.dialog-palette {
  border-top: 1px solid #eee;
  padding-top: 1.25rem;
}
.palette-label {
  font-size: 0.95rem;
  color: #555;
  margin: 0 0 0.75rem;
}
.palette-swatches {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}
.swatch {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ddd;
  position: relative;
}
.swatch::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -2px;
  right: -2px;
  height: 2px;
  background: #c00;
  transform: rotate(-45deg);
  transform-origin: center;
}
.venue-detail a {
  color: var(--c-forest);
  text-decoration: none;
  border-bottom: 1px solid var(--c-gold);
  transition: var(--ease);
}
.venue-detail a:hover {
  color: var(--c-gold);
}
.venue-detail a:visited,
.venue-detail a:active {
  color: var(--c-forest);
}

/* ===========================
   RSVP Section
   =========================== */
.rsvp {
  background-image: url("/images/rsvp-bg.png");
  color: var(--c-light);
}
.rsvp-form {
  max-width: 600px;
  margin: clamp(1.5rem, 6vw, 3rem) auto 0;
  background: rgba(15, 20, 15, 0.9);
  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: 100000;
  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-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.92);
  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-place a {
  color: var(--c-forest);
  text-decoration: none;
  border-bottom: 1px solid var(--c-gold);
  transition: var(--ease);
}
.travel-place a:hover {
  color: var(--c-gold);
}
.travel-place a:visited,
.travel-place a:active {
  color: var(--c-forest);
}
.travel-detail {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  font-style: italic;
  color: rgba(15, 20, 15, 0.6);
  margin-top: 0.35rem;
}
.travel-detail a {
  color: var(--c-forest);
  text-decoration: none;
  border-bottom: 1px solid var(--c-gold);
  transition: var(--ease);
}
.travel-detail a:hover {
  color: var(--c-gold);
}
.travel-detail a:visited,
.travel-detail a:active {
  color: var(--c-forest);
}

/* ===========================
   Responsive
   =========================== */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 80px;
  }
  .nav-links {
    gap: 1rem;
  }
  .nav-links a {
    font-size: 1rem;
  }
  .hero {
    background-attachment: scroll;
  }
  .page-content {
    background-attachment: scroll;
    background-size: cover;
  }
  .section {
    padding: 4rem 1.5rem;
  }
}

/* Mobile Portrait - Compact Layout */
@media (max-width: 480px) {
  /* Container & Section spacing */
  .container {
    padding: 0 1rem;
  }
  .section {
    padding: 2.5rem 1rem;
    min-height: auto;
  }

  /* Navigation - more compact */
  .nav-container {
    height: 60px;
    padding: 0 1rem;
  }
  .nav-links {
    gap: 1.25rem;
    min-width: auto;
  }
  .nav-links a {
    font-size: 1.2rem;
    letter-spacing: 0.02em;
  }

  /* Hero - full width utilization */
  .hero {
    background-size: auto 140%;
    background-position: calc(50% - 125px) bottom;
  }
  .hero-content {
    padding: 1rem;
    width: 100%;
  }
  .hero-title {
    font-size: clamp(2rem, 10vw, 2.5rem);
    margin-bottom: 0.15rem;
  }
  .hero-date {
    font-size: clamp(1rem, 5vw, 1.25rem);
    margin-bottom: 2rem;
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .hero-buttons .btn {
    width: 100%;
    min-width: unset;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
  .hero-scroll {
    bottom: 1rem;
  }
  .hero-scroll span {
    font-size: 0.65rem;
  }
  .scroll-line {
    height: 25px;
  }

  /* Section titles */
  .section-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
    margin-bottom: 0.25rem;
  }

  /* Venue - compact layout */
  .venue-location > div {
    padding: 2rem 1rem;
  }
  .venue-location p {
    font-size: clamp(0.85rem, 4vw, 1rem);
  }
  .venue-location .venue-place {
    font-size: clamp(1.1rem, 5vw, 1.35rem);
    margin: 0 0 1rem;
  }

  /* RSVP Form - full width, compact */
  .rsvp-form {
    padding: 1.5rem 1rem;
    margin-top: 1.5rem;
    border-radius: 4px;
  }
  .form-group {
    margin-bottom: 1.25rem;
  }
  .form-group label {
    font-size: 1rem;
    margin-bottom: 0.35rem;
  }
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group select,
  .form-group textarea {
    padding: 0.75rem;
    font-size: 16px; /* Prevents iOS zoom on focus */
  }
  .btn-block {
    margin-top: 1rem;
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }

  /* Travel cards - full width, compact */
  .travel-grid {
    gap: 1rem;
    margin-top: 1.5rem;
  }
  .travel-card {
    padding: 1.5rem 1rem;
  }
  .travel-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    letter-spacing: 0.1em;
  }
  .travel-item {
    margin-bottom: 1rem;
  }
  .travel-label {
    font-size: 0.75rem;
    margin-bottom: 0.15rem;
  }
  .travel-place {
    font-size: 1.25rem;
  }
  .travel-detail {
    font-size: 0.8rem;
    margin-top: 0.25rem;
  }

  /* Cards - edge to edge option */
  .card {
    border-radius: 0;
  }

  /* Buttons - full width default on mobile */
  .btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  /* Toast - full width at bottom */
  .toast-container {
    top: auto;
    bottom: 1rem;
    right: 0.5rem;
    left: 0.5rem;
  }
  .toast {
    max-width: 100%;
    transform: translateY(120%);
    padding: 0.875rem 1rem;
    font-size: 0.875rem;
  }
  .toast.show {
    transform: translateY(0);
  }
  .toast.hiding {
    transform: translateY(120%);
  }
  .toast .toast-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8rem;
  }
  .toast-content h4 {
    font-size: 1rem;
  }
  .toast-content p {
    font-size: 0.8rem;
  }
}

/* Extra small devices - very compact */
@media (max-width: 360px) {
  .section {
    padding: 2rem 0.75rem;
  }
  .container {
    padding: 0 0.75rem;
  }
  .nav-container {
    height: 55px;
    padding: 0 0.75rem;
  }
  .nav-links a {
    font-size: 0.85rem;
  }
  .hero-title {
    font-size: 1.75rem;
  }
  .hero-date {
    font-size: 0.9rem;
  }
  .rsvp-form {
    padding: 1.25rem 0.75rem;
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    width: calc(100% + 1.5rem);
  }
}
