/* Global */
:root {
  --navy: #071b3a;
  --black: #111111;
  --gold: #c49a3a;
  --burgundy: #7d1f34;
  --ivory: #fffaf0;
  --cream: #f4ead8;
  --text-dark: #171717;
  --text-light: #fff8e8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--ivory);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

:focus-visible {
  outline: 3px solid rgba(196, 154, 58, 0.44);
  outline-offset: 3px;
}

.content-wrapper {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.narrow-wrapper {
  width: min(860px, calc(100% - 32px));
}

/* Header / Mobile Menu */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(196, 154, 58, 0.28);
  background: rgba(7, 27, 58, 0.96);
  color: var(--text-light);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  border-bottom-color: rgba(196, 154, 58, 0.48);
  background: rgba(5, 12, 25, 0.97);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.header-nav {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 18px;
  min-height: 70px;
  padding: 12px 0;
}

.brand-link {
  justify-self: start;
  color: var(--text-light);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(196, 154, 58, 0.5);
  border-radius: 999px;
  background: rgba(255, 248, 232, 0.06);
  color: var(--text-light);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform-origin: center;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  transition:
    max-height 220ms ease,
    opacity 180ms ease,
    padding 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.nav-links a {
  color: rgba(255, 248, 232, 0.86);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--gold);
}

.login-nav-link {
  justify-self: end;
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  border: 1px solid rgba(196, 154, 58, 0.64);
  border-radius: 999px;
  background: rgba(255, 248, 232, 0.07);
  color: var(--text-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

.login-nav-link:hover,
.login-nav-link:focus {
  background: var(--burgundy);
  color: var(--text-light);
}

/* Public Wedding Page */
.public-wedding-page {
  background:
    linear-gradient(
      180deg,
      rgba(255, 250, 240, 0.95),
      rgba(244, 234, 216, 0.96)
    ),
    var(--ivory);
}

.wedding-section,
.message-section {
  scroll-margin-top: 86px;
}

.wedding-section {
  padding: 84px 0;
}

.section-kicker,
.hero-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-intro {
  margin: 0 auto;
  max-width: 680px;
  color: #4c4a46;
  font-size: 17px;
}

.wedding-section h2,
.site-footer h2 {
  margin: 0 0 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 6vw, 58px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--navy);
}

.button,
.rsvp-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button:hover,
.rsvp-form button:hover {
  transform: translateY(-1px);
}

.button-primary,
.rsvp-form button {
  background: var(--burgundy);
  color: var(--text-light);
  box-shadow: 0 14px 28px rgba(125, 31, 52, 0.22);
}

.button-primary:hover,
.rsvp-form button:hover {
  background: #611626;
}

.button-secondary {
  border-color: rgba(196, 154, 58, 0.7);
  background: rgba(255, 250, 240, 0.82);
  color: var(--navy);
}

.button-secondary:hover {
  background: var(--text-light);
  box-shadow: 0 12px 24px rgba(7, 27, 58, 0.12);
}

.alert {
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 600;
}

.alert-success {
  border: 1px solid #71945e;
  background: #f2faed;
  color: #385f28;
}

.alert-error,
.form-error {
  border: 1px solid #b35d5a;
  background: #fff4f2;
  color: #8a2f2d;
}

/* Hero */
.wedding-hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 70px);
  place-items: center;
  overflow: hidden;
  padding: 88px 16px 72px;
  text-align: center;
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(5, 12, 25, 0.9), rgba(7, 27, 58, 0.62)),
    linear-gradient(180deg, rgba(125, 31, 52, 0.12), rgba(0, 0, 0, 0.44)),
    url("/Media/hero.jpeg");
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.wedding-hero::before {
  position: absolute;
  inset: 28px;
  content: "";
  border: 1px solid rgba(196, 154, 58, 0.56);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
}

.hero-inner .hero-kicker {
  margin-bottom: 28px;
}

.hero-inner h1 {
  margin: 0;
  color: var(--text-light);
  font-family: "Great Vibes", cursive;
  font-size: clamp(72px, 15vw, 158px);
  font-weight: 400;
  line-height: 1.1;
  text-shadow: 0 5px 26px rgba(0, 0, 0, 0.38);
}

.hero-subtitle {
  margin: 20px auto 0;
  max-width: 620px;
  color: rgba(255, 248, 232, 0.92);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.2;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 30px auto 0;
  color: var(--text-light);
  font-weight: 700;
}

.hero-meta span {
  padding: 8px 14px;
  border: 1px solid rgba(196, 154, 58, 0.62);
  border-radius: 999px;
  background: rgba(7, 27, 58, 0.58);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

/* Countdown */
.countdown-section {
  text-align: center;
  background: var(--ivory);
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.countdown-item {
  padding: 22px 14px;
  border: 1px solid rgba(196, 154, 58, 0.34);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, var(--cream));
  box-shadow: 0 16px 34px rgba(7, 27, 58, 0.08);
}

.countdown-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(7, 27, 58, 0.12);
}

.countdown-item span {
  display: block;
  color: var(--burgundy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 7vw, 62px);
  font-weight: 700;
  line-height: 1;
}

.countdown-item small {
  display: block;
  margin-top: 8px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.countdown-complete {
  margin: 26px auto 0;
  color: var(--burgundy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 5vw, 44px);
}

/* Wedding Details */
.details-section {
  background: linear-gradient(180deg, var(--cream), var(--ivory));
}

.details-section > .content-wrapper {
  text-align: center;
}

.content-wrapper a {
  text-decoration: none;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
  text-align: left;
}

.detail-card {
  min-height: 232px;
  padding: 24px;
  border: 1px solid rgba(196, 154, 58, 0.36);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(255, 252, 245, 0.94);
  box-shadow: 0 18px 42px rgba(7, 27, 58, 0.08);
}

.detail-card:hover {
  border-color: rgba(196, 154, 58, 0.62);
  transform: translateY(-5px);
  box-shadow: 0 24px 52px rgba(7, 27, 58, 0.12);
}

.detail-card span {
  display: block;
  margin-bottom: 18px;
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  line-height: 1.15;
}

.detail-card p {
  margin: 0;
  color: #4d4a46;
}

/* Program Timeline */
.program-section {
  background: var(--ivory);
  text-align: center;
}

.program-timeline {
  position: relative;
  display: grid;
  gap: 16px;
  margin-top: 38px;
  text-align: left;
}

.program-timeline::before {
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 211px;
  width: 2px;
  content: "";
  background: rgba(196, 154, 58, 0.54);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(132px, 150px) 42px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 76px;
  padding: 18px 24px;
  border: 1px solid rgba(7, 27, 58, 0.1);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 16px 34px rgba(7, 27, 58, 0.07);
}

.timeline-item:hover {
  border-color: rgba(196, 154, 58, 0.5);
  transform: translateX(4px);
}

.timeline-marker {
  position: relative;
  z-index: 1;
  justify-self: center;
  width: 14px;
  height: 14px;
  border: 3px solid var(--gold);
  border-radius: 999px;
  background: var(--burgundy);
  box-shadow: 0 0 0 6px #fffdf8;
}

.timeline-item time {
  display: block;
  color: var(--burgundy);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
}

.timeline-item h3 {
  margin: 0;
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
}

/* Photo Share / QR Section */
.photo-share-section {
  position: relative;
  overflow: hidden;
  padding: 112px 0;
  background:
    linear-gradient(
      135deg,
      rgba(5, 12, 25, 0.98),
      rgba(7, 27, 58, 0.94) 48%,
      rgba(125, 31, 52, 0.88)
    ),
    var(--black);
  color: var(--text-light);
}

.photo-share-section::before {
  position: absolute;
  inset: 34px;
  content: "";
  border: 1px solid rgba(196, 154, 58, 0.22);
  pointer-events: none;
}

.photo-share-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.7fr);
  gap: 56px;
  align-items: center;
}

.photo-share-copy {
  padding: 24px 0 24px 24px;
}

.photo-share-copy h2,
.photo-share-copy .section-intro {
  color: var(--text-light);
}

.photo-share-copy .section-intro {
  margin: 0 0 22px;
  max-width: 620px;
}

.photo-share-copy > p:not(.section-kicker):not(.section-intro) {
  max-width: 620px;
  color: rgba(255, 248, 232, 0.84);
  font-size: 17px;
}

.photo-steps {
  display: grid;
  gap: 14px;
  max-width: 520px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: photo-step;
}

.photo-steps li {
  position: relative;
  min-height: 54px;
  padding: 14px 18px 14px 62px;
  border: 1px solid rgba(196, 154, 58, 0.22);
  border-radius: 8px;
  background: rgba(255, 248, 232, 0.06);
  color: rgba(255, 248, 232, 0.9);
  counter-increment: photo-step;
}

.photo-steps li::before {
  position: absolute;
  top: 12px;
  left: 16px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy);
  content: counter(photo-step);
  font-size: 13px;
  font-weight: 800;
}

.photo-share-card {
  padding: 26px;
  border: 1px solid rgba(196, 154, 58, 0.56);
  border-radius: 8px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 248, 232, 0.12),
      rgba(255, 248, 232, 0.04)
    ),
    rgba(5, 12, 25, 0.7);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.32),
    0 0 42px rgba(125, 31, 52, 0.18);
}

.qr-frame {
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  padding: 24px;
  border: 1px solid rgba(196, 154, 58, 0.54);
  border-radius: 8px;
  background: #ffffff;
}

.qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.gallery-note {
  margin-top: 20px;
  padding: 20px;
  border-left: 3px solid var(--gold);
  background: rgba(255, 248, 232, 0.06);
}

.gallery-note span {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.gallery-note p {
  margin: 8px 0 0;
  color: rgba(255, 248, 232, 0.82);
}

/* Personal Message */
.message-section {
  position: relative;
  padding: 86px 0;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(7, 27, 58, 0.94), rgba(125, 31, 52, 0.9)),
    var(--navy);
  color: var(--text-light);
}

.message-section::before,
.message-section::after {
  position: absolute;
  color: rgba(196, 154, 58, 0.24);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(120px, 18vw, 220px);
  line-height: 1;
  pointer-events: none;
}

.message-section::before {
  top: 12px;
  left: max(16px, calc((100vw - 1120px) / 2));
  content: "\201C";
}

.message-section::after {
  right: max(16px, calc((100vw - 1120px) / 2));
  bottom: -34px;
  content: "\201D";
}

.message-section p {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 820px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.24;
}

/* Wedding Crew */
.wedding-crew-section {
  background: linear-gradient(180deg, var(--cream), #fffdf8);
  text-align: center;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto;
}

.featured-crew-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin: 44px auto 30px;
  text-align: left;
}

.crew-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
  text-align: left;
}

.crew-card {
  flex: 1 1 300px;
  max-width: calc((100% - 40px) / 3);
  overflow: hidden;
  border: 1px solid rgba(196, 154, 58, 0.42);
  border-radius: 8px;
  background: #fffdf8;
  box-shadow: 0 18px 44px rgba(7, 27, 58, 0.1);
}

.featured-crew-card {
  max-width: none;
  border-color: rgba(196, 154, 58, 0.66);
  background:
    linear-gradient(
      180deg,
      rgba(255, 250, 240, 0.96),
      rgba(244, 234, 216, 0.86)
    ),
    #fffdf8;
  box-shadow: 0 24px 64px rgba(7, 27, 58, 0.14);
}

.crew-card:hover {
  border-color: rgba(196, 154, 58, 0.72);
  transform: translateY(-6px);
  box-shadow: 0 28px 62px rgba(7, 27, 58, 0.16);
}

.crew-image-frame {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--cream);
}

.featured-crew-card .crew-image-frame {
  aspect-ratio: 3 / 4;
  background:
    linear-gradient(180deg, rgba(7, 27, 58, 0.08), rgba(196, 154, 58, 0.16)),
    var(--cream);
}

.crew-card img,
.crew-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.image-focus-top {
  object-position: center top;
}

.image-focus-center {
  object-position: center center;
}

.image-focus-bottom {
  object-position: center bottom;
}

.bride-image-adjust {
  object-position: center center;
}

.groom-image-adjust {
  object-position: center 8%;
}

.crew-card-content {
  padding: 22px;
}

.featured-crew-card .crew-card-content {
  padding: 28px;
}

.crew-role {
  margin: 0 0 8px;
  color: var(--burgundy);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.crew-card h3 {
  margin: 0;
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 25px;
  line-height: 1.16;
}

.featured-crew-card h3 {
  font-size: clamp(30px, 4vw, 42px);
}

.crew-card ul {
  display: grid;
  gap: 6px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.crew-card li {
  position: relative;
  padding-left: 18px;
  color: #3f3d39;
  font-size: 14px;
  line-height: 1.45;
}

.crew-card li::before {
  position: absolute;
  top: 0.65em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 999px;
  background: var(--gold);
}

/* RSVP Form */
.rsvp-section {
  background: #fffdf8;
}

.rsvp-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  gap: 34px;
  align-items: start;
}

.rsvp-copy {
  position: sticky;
  top: 104px;
}

.rsvp-copy p {
  max-width: 420px;
  color: #4c4a46;
}

.rsvp-panel {
  display: grid;
  gap: 14px;
}

.rsvp-form {
  display: grid;
  gap: 18px;
  padding: 30px;
  border: 1px solid rgba(196, 154, 58, 0.36);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 54px rgba(7, 27, 58, 0.11);
}

.form-field {
  display: grid;
  gap: 8px;
}

.rsvp-form label {
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfc3aa;
  border-radius: 8px;
  background: #fffdf9;
  color: var(--text-dark);
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(196, 154, 58, 0.16);
  outline: 0;
}

.rsvp-form textarea {
  resize: vertical;
}

.rsvp-form button {
  width: fit-content;
  margin-top: 2px;
}

.rsvp-form input:disabled {
  background: #efebe4;
  color: #716d67;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.additional-guests {
  display: grid;
  gap: 18px;
}

/* Wedding Map */
.map-section {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  text-align: center;
  background: transparent;
}

.map-frame {
  display: block;
  width: 100%;
  height: 430px;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(196, 154, 58, 0.34);
  background: var(--cream);
}

.map-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Accepted Guest List */
.accepted-list-section {
  text-align: center;
  background: linear-gradient(180deg, var(--cream), var(--ivory));
}

.accepted-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.accepted-list li {
  display: grid;
  gap: 4px;
  padding: 10px 16px;
  border: 1px solid rgba(196, 154, 58, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 18px;
  box-shadow: 0 12px 24px rgba(7, 27, 58, 0.07);
}

.accepted-list small,
.names-cell span {
  display: block;
  color: #5a554d;
  font-family: "Poppins", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
}

/* Footer */
.site-footer {
  margin-top: 0;
  padding: 52px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--navy), #05070b);
  color: var(--text-light);
}

.site-footer h2 {
  margin-bottom: 8px;
  color: var(--text-light);
}

.site-footer p {
  margin: 6px auto;
  color: rgba(255, 248, 232, 0.82);
}

.site-footer .copyright {
  margin-top: 18px;
  color: var(--gold);
  font-size: 13px;
}

/* Animations */
.reveal-on-scroll,
.reveal-left,
.reveal-right,
.reveal-top,
.reveal-bottom {
  opacity: 0;
  transition:
    opacity 760ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 180ms ease,
    box-shadow 180ms ease;
  will-change: opacity, transform;
}

.reveal-left {
  transform: translate3d(-38px, 0, 0);
}

.reveal-right {
  transform: translate3d(38px, 0, 0);
}

.reveal-top {
  transform: translate3d(0, -30px, 0);
}

.reveal-bottom,
.reveal-on-scroll {
  transform: translate3d(0, 30px, 0);
}

.reveal-on-scroll.is-visible,
.reveal-left.is-visible,
.reveal-right.is-visible,
.reveal-top.is-visible,
.reveal-bottom.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.countdown-item.is-visible:hover,
.detail-card.is-visible:hover,
.crew-card.is-visible:hover,
.photo-share-card.is-visible:hover {
  transform: translateY(-5px);
}

.timeline-item.is-visible:hover {
  transform: translateX(4px);
}

.countdown-grid > :nth-child(2),
.details-grid > :nth-child(2),
.program-timeline > :nth-child(2),
.featured-crew-grid > :nth-child(2),
.crew-grid > :nth-child(2) {
  transition-delay: 90ms;
}

.countdown-grid > :nth-child(3),
.details-grid > :nth-child(3),
.program-timeline > :nth-child(3),
.crew-grid > :nth-child(3) {
  transition-delay: 150ms;
}

.countdown-grid > :nth-child(4),
.details-grid > :nth-child(4),
.program-timeline > :nth-child(4),
.crew-grid > :nth-child(4) {
  transition-delay: 210ms;
}

.program-timeline > :nth-child(5),
.crew-grid > :nth-child(5) {
  transition-delay: 270ms;
}

.program-timeline > :nth-child(6),
.crew-grid > :nth-child(6) {
  transition-delay: 330ms;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal-on-scroll,
  .reveal-left,
  .reveal-right,
  .reveal-top,
  .reveal-bottom {
    opacity: 1;
    transform: none;
  }
}

/* Admin Styles */
.admin-page {
  min-height: 100vh;
  color: var(--text-dark);
  background:
    linear-gradient(
      180deg,
      rgba(255, 250, 240, 0.96),
      rgba(244, 234, 216, 0.98)
    ),
    var(--ivory);
}

.admin-login-page {
  background:
    linear-gradient(90deg, rgba(5, 12, 25, 0.86), rgba(7, 27, 58, 0.64)),
    linear-gradient(180deg, rgba(125, 31, 52, 0.16), rgba(0, 0, 0, 0.54)),
    url("/Media/hero.jpeg") center center / cover no-repeat fixed,
    var(--navy);
}

.admin-dashboard-page {
  background:
    linear-gradient(180deg, #fffaf0 0, #f4ead8 42%, #fffdf8 100%), var(--ivory);
}

.admin-site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  border-bottom: 1px solid rgba(196, 154, 58, 0.34);
  background: rgba(7, 27, 58, 0.97);
  color: var(--text-light);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.admin-site-nav {
  display: flex;
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-brand {
  color: var(--text-light);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
}

.admin-nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 18px;
}

.admin-nav-links a {
  color: rgba(255, 248, 232, 0.86);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.admin-nav-links a:hover,
.admin-nav-links a:focus {
  color: var(--gold);
}

.login-wrapper,
.dashboard-wrapper {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

.login-wrapper {
  display: grid;
  min-height: calc(100vh - 214px);
  place-items: center;
  padding: 72px 0;
}

.login-panel {
  width: min(420px, 100%);
  padding: 34px;
  border: 1px solid rgba(196, 154, 58, 0.48);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 28px 74px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}

.login-panel h1,
.dashboard-header h1 {
  margin: 0 0 18px;
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form label,
.filter-field label {
  color: var(--navy);
  font-weight: 700;
}

.login-form input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfc3aa;
  border-radius: 8px;
  background: #fffdf9;
  color: var(--text-dark);
}

.login-form button,
.logout-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--burgundy);
  color: var(--text-light);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(125, 31, 52, 0.18);
}

.login-form button:hover,
.logout-link:hover,
.login-form button:focus,
.logout-link:focus {
  background: #611626;
  transform: translateY(-1px);
}

.form-error {
  padding: 12px;
  border-radius: 8px;
}

.dashboard-wrapper {
  padding: 48px 0 64px;
}

.dashboard-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 28px;
  border: 1px solid rgba(196, 154, 58, 0.32);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 27, 58, 0.96), rgba(125, 31, 52, 0.82)),
    var(--navy);
  box-shadow: 0 22px 54px rgba(7, 27, 58, 0.14);
}

.dashboard-header h1,
.dashboard-header p,
.dashboard-header .section-kicker {
  color: var(--text-light);
}

.dashboard-header .section-kicker {
  color: var(--gold);
}

.dashboard-header p {
  margin: 0;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.summary-card {
  padding: 22px;
  border: 1px solid rgba(196, 154, 58, 0.34);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.94);
  box-shadow: 0 16px 36px rgba(7, 27, 58, 0.08);
}

.summary-card h2 {
  margin: 0 0 8px;
  color: var(--burgundy);
  font-size: 16px;
}

.summary-card p {
  margin: 0;
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  font-weight: 700;
}

.dashboard-section {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(196, 154, 58, 0.32);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 18px 42px rgba(7, 27, 58, 0.08);
}

.dashboard-section h2 {
  margin: 0 0 18px;
  color: var(--navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
}

.admin-filter-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 240px) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.filter-field {
  display: grid;
  gap: 6px;
}

.filter-field input,
.filter-field select {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #cfc3aa;
  border-radius: 8px;
  background: #fffdf9;
  color: var(--text-dark);
}

.filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.filter-actions button,
.filter-actions a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.filter-actions button {
  background: var(--navy);
  color: var(--text-light);
}

.filter-actions a {
  border-color: rgba(196, 154, 58, 0.54);
  background: #fffaf0;
  color: var(--navy);
}

.table-wrapper {
  overflow-x: auto;
}

.responses-table-wrapper {
  margin-top: 8px;
}

.responses-table {
  min-width: 980px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid rgba(196, 154, 58, 0.18);
  text-align: left;
  vertical-align: top;
}

.names-cell strong {
  display: block;
  color: var(--navy);
}

th {
  background: rgba(7, 27, 58, 0.96);
  color: var(--text-light);
  font-weight: 700;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.status-accepted {
  background: #e8f5e9;
  color: #1b5e20;
}

.status-declined {
  background: #fff3e0;
  color: #7a3f00;
}

.delete-rsvp-form {
  margin: 0;
}

.delete-rsvp-form button {
  padding: 7px 10px;
  border: 1px solid #b00020;
  border-radius: 6px;
  background: #fff5f5;
  color: #8a0018;
  font-weight: 700;
  cursor: pointer;
}

.delete-rsvp-form button:hover,
.delete-rsvp-form button:focus {
  background: #ffe3e3;
}

.admin-site-footer {
  padding: 34px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--navy), #05070b);
  color: var(--text-light);
}

.admin-site-footer h2 {
  margin: 0 0 8px;
  color: var(--text-light);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 4vw, 40px);
}

.admin-site-footer p {
  margin: 6px 0;
  color: rgba(255, 248, 232, 0.82);
}

.admin-site-footer .copyright {
  color: var(--gold);
  font-size: 13px;
}

@media (max-width: 920px) {
  .wedding-section {
    padding: 68px 0;
  }

  .wedding-hero {
    background-attachment: scroll;
  }

  .header-nav {
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .login-nav-link {
    min-height: 38px;
    padding: 8px 13px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
    grid-column: 1 / -1;
    justify-content: stretch;
    justify-items: start;
    align-content: start;
    align-items: stretch;
    gap: 8px;
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #050c19;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
    opacity: 0;
    pointer-events: none;
    text-align: left;
    transform: translateY(-8px);
  }

  .nav-links.is-open {
    max-height: 460px;
    padding: 18px 20px;
    border-color: rgba(196, 154, 58, 0.42);
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 13px 8px;
    border-bottom: 1px solid rgba(255, 248, 232, 0.08);
    text-align: left !important;
  }

  .details-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-crew-grid {
    grid-template-columns: 1fr;
  }

  .featured-crew-card {
    max-width: 100%;
  }

  .crew-card {
    max-width: calc((100% - 20px) / 2);
  }

  .photo-share-layout {
    grid-template-columns: 1fr;
  }

  .rsvp-layout {
    grid-template-columns: 1fr;
  }

  .rsvp-copy {
    position: static;
  }

  .admin-site-nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

  .admin-nav-links {
    justify-content: flex-start;
  }

  .admin-login-page {
    background-attachment: scroll;
  }

  .map-frame {
    height: 390px;
  }
}

@media (max-width: 768px) {
  .wedding-crew-section {
    min-height: auto;
    height: auto;
    overflow: visible;
  }

  .wedding-crew-section,
  .wedding-crew-section .section-heading,
  .wedding-crew-section .featured-crew-grid,
  .wedding-crew-section .crew-grid,
  .wedding-crew-section .crew-card,
  .wedding-crew-section .crew-image,
  .wedding-crew-section .reveal-top,
  .wedding-crew-section .reveal-bottom {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .wedding-crew-section .featured-crew-grid,
  .wedding-crew-section .crew-grid {
    display: grid;
    width: 100%;
    max-width: 380px;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-right: auto;
    margin-left: auto;
  }

  .wedding-crew-section .crew-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .wedding-crew-section .crew-image-frame {
    min-height: 0;
    height: auto;
  }

  .wedding-crew-section .crew-card img,
  .wedding-crew-section .crew-image {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    max-height: none;
    object-fit: cover;
  }
}

@media (max-width: 760px) {
  .wedding-hero {
    background-attachment: scroll;
    min-height: 92svh;
    padding: 80px 16px 58px;
  }

  .wedding-hero::before {
    inset: 16px;
  }

  .hero-meta,
  .hero-actions {
    display: grid;
  }

  .button {
    width: min(320px, 100%);
    margin: 0 auto;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .program-timeline::before {
    left: 28px;
  }

  .timeline-item {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px 14px;
    padding: 18px 18px 18px 12px;
  }

  .timeline-item time {
    grid-column: 2;
    white-space: normal;
  }

  .timeline-marker {
    grid-row: 1 / span 2;
    grid-column: 1;
  }

  .timeline-item h3 {
    grid-column: 2;
  }

  .message-section {
    padding: 68px 0;
  }

  .rsvp-copy {
    text-align: center;
  }

  .rsvp-copy p {
    margin-right: auto;
    margin-left: auto;
  }

  .photo-share-section::before {
    inset: 14px;
  }

  .photo-share-section {
    padding: 82px 0;
  }

  .photo-share-layout {
    gap: 32px;
  }

  .map-frame {
    height: 340px;
  }

  .photo-share-copy {
    padding: 8px;
  }

  .dashboard-header {
    display: grid;
  }

  .dashboard-header,
  .dashboard-section,
  .login-panel {
    padding: 22px;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-filter-form {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    align-items: stretch;
  }

  .filter-actions button,
  .filter-actions a {
    flex: 1;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .wedding-section {
    padding: 56px 0;
  }

  .hero-inner h1 {
    font-size: clamp(66px, 24vw, 104px);
  }

  .hero-inner .hero-kicker {
    margin-bottom: 24px;
  }

  .details-grid,
  .countdown-grid {
    grid-template-columns: 1fr;
  }

  .crew-card {
    flex-basis: 100%;
    max-width: 100%;
  }

  .featured-crew-card .crew-image-frame {
    aspect-ratio: 3 / 4;
  }

  .nav-links {
    gap: 8px;
    justify-content: stretch;
    justify-items: start;
    text-align: left;
  }

  .nav-links a {
    font-size: 12px;
    text-align: left !important;
  }

  .photo-share-card,
  .qr-frame {
    padding: 16px;
  }

  .rsvp-form {
    padding: 22px;
  }

  .rsvp-form button {
    width: 100%;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }

  .login-wrapper {
    width: min(100% - 28px, 420px);
    padding: 48px 0;
  }

  .admin-site-nav {
    gap: 12px;
  }

  .admin-brand {
    font-size: 24px;
  }

  .admin-nav-links {
    display: grid;
    gap: 8px;
  }
}
