/* ── @font-face for FjordOne ── */
@font-face {
  font-family: "FjordOne-Regular";
  src: url("../fonts/FjordOne-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Header / Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  background: transparent;
  padding: 0.5rem 2rem;
  transition: padding 0.4s ease, background 0.4s ease, backdrop-filter 0.4s ease;
  pointer-events: none;
}

.nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  pointer-events: auto;
  width: 100%;
  position: relative;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.8rem, 2.2vw, 3.5rem);
  min-width: 0;
  overflow: hidden;
}

.nav-links.left  { justify-content: flex-end; }
.nav-links.right { justify-content: flex-start; }


/* Desktop: spread links evenly across their full column in both languages */
@media (min-width: 721px) {
  .nav-links.left  { justify-content: space-between; }
  .nav-links.right { justify-content: space-between; }
}

.nav-links a {
  font-size: .9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, opacity 0.3s ease;
  font-family: var(--font-serif);
  opacity: 0.92;
}

.nav-links a:hover { border-color: var(--accent); opacity: 1; }

.nav-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  padding: 0 5rem;
}

.nav-logo img {
  height: 150px;
  width: auto;
  transition: height 0.4s ease, filter 0.4s ease;
  filter: brightness(100%) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
}

/* Nav shrink */
header.shrink {
  padding: 0.1rem 1rem;
  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.25);
}

header.shrink .nav-logo img {
  height: 70px;
  filter: brightness(90%);
}

@media (min-width: 721px) {
  header.shrink .nav {
    padding-top: 1rem;
  }
}

/* Language toggle — pinned to the very top-right corner */
.lang-toggle {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  pointer-events: auto;
  position: fixed;
  right: 1rem;
  top: 0.6rem;
}

.lang-btn {
  border: 1px solid rgba(255,255,255,0.65);
  background: rgba(0,0,0,0.20);
  color: #fff;
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  text-shadow: 0 2px 6px rgba(0,0,0,0.65);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.lang-btn:hover {
  background: rgba(0,0,0,0.35);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.lang-btn[aria-pressed="true"] {
  background: rgba(184,154,90,0.35);
  border-color: rgba(184,154,90,0.9);
}

/* Hero */
.hero { position: relative; width: 100vw; height: 100vh; overflow: hidden; }

.hero-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.50);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55),
    rgba(0,0,0,0.10) 20%,
    transparent 100%
  );
  pointer-events: none;
}

.hero-text { position: absolute; bottom: 8%; width: 100%; text-align: center; }

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  max-width: min(90%, 620px);
  margin: 0 auto;
}

.hero-title-names {
  font-family: "the-seasons", cursive;
  font-style: italic;
  font-size: clamp(2.8rem, 7vw, 6rem);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.1;
  filter:
    drop-shadow(0 2px 8px rgba(0,0,0,0.8))
    drop-shadow(0 0 2px rgba(255,255,255,0.15));
}

.hero-title-date {
  font-family: "the-seasons", cursive;
  font-style: italic;
  font-size: clamp(1.8rem, 4.5vw, 3.8rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.2;
  filter:
    drop-shadow(0 2px 8px rgba(0,0,0,0.8))
    drop-shadow(0 0 2px rgba(255,255,255,0.15));
}

/* Invitation */
.invitation-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}



/* Invitation text */
.invitation-formal {
  align-self: stretch;
}

.invite-request {
  font-family: var(--font-serif);
  letter-spacing: 0.12em;
  color: rgba(49, 26, 4, 0.92);
  text-align: center;
  width: 100%;
  margin: 0 auto 1.2rem;
  line-height: 1.6;
}

/* Letter-style guest greeting */
.invite-name-line {
  display: block;
  text-align: left;
  font-weight: 600;
}
.invite-body-line {
  display: block;
  text-align: left;
  margin-top: 0.5rem;
  padding-left: 1.5rem;
}

@media (max-width: 720px) {
  .invite-request.invite-request--big {
    text-align: justify !important;
  }
}

@media (min-width: 721px) {
  .invite-request--big {
    width: 60vw;
    margin-left: auto;
    margin-right: auto;
  }
  .invite-body-line {
    text-align: center;
  }
}

/* Countdown */
.countdown-title {
  font-family: "the-seasons", "Georgia", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: 0.06em;
  color: var(--accent-text);
  margin: 0 0 0.6rem;
}

.countdown--elegant {
  display: flex;
  justify-content: center;
  gap: clamp(2.2rem, 5vw, 4.2rem);
  margin: 0 0 0.6rem;
}

.countdown--elegant .count-unit { text-align: center; min-width: 72px; }

.countdown--elegant .count-number { 
  font-size: clamp(3.2rem, 5.5vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(120, 104, 78, 0.85);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  display: inline-block;
  width: 3ch;
  text-align: center;
  white-space: nowrap;
}

.countdown--elegant .count-label {
  margin-top: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(120, 104, 78, 0.7);
}

/* Hero countdown — white on photo */
.countdown--hero {
  position: absolute;
  bottom: 8vh;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: min(960px, 90vw);
  padding: 0 1.5rem;
}

.countdown--hero .count-number {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
}

.countdown--hero .count-label {
  color: rgba(255,255,255,0.75);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

.label {
  text-transform: uppercase;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--accent-dark);
  margin-bottom: 0.35rem;
  font-family: "Cormorant SC", "Cormorant Garamond", "Georgia", serif;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 2.6rem;
  border-radius: 999px;
  border: 1px solid rgba(49, 26, 4, 0.92);
  font-size: 0.75rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  background: transparent;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
  color: rgba(49, 26, 4, 0.92);
  font-family: var(--font-serif);
  cursor: pointer;
}
.btn:hover {
  background: rgba(49, 26, 4, 0.92);
  border-color: rgba(49, 26, 4, 0.92);
  color: #fff;
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
  background: rgba(49, 26, 4, 0.75);
  border-color: rgba(49, 26, 4, 0.75);
  color: #fff;
}

/* =========================================================
   Details strip (ceremony / reception)
   ========================================================= */
.details-strip{
  width: 100%;
  max-width: 1100px;
  margin: 0 auto 2.6rem;
  text-align: center;
}

.details-date{
  font-family: "Cormorant SC", "Cormorant Garamond", "Georgia", serif;
  font-weight: 500;
  font-style: normal;
  font-size: clamp(3rem, 4vw, 4rem);
  letter-spacing: 0.06em;
  text-transform: capitalize;
  color: rgba(49, 26, 4, 0.92);
  margin: 0 0 1.6rem;
}

.details-date sup {
  text-transform: none;
  font-size: 0.45em;
  vertical-align: super;
  line-height: 0;
  letter-spacing: 0;
}

.details-strip-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.4rem, 3vw, 3rem);
  align-items: stretch;
  justify-items: center;
  margin: 0 auto 1.6rem;
}

.details-block{
  width: 100%;
  max-width: 420px;
  text-align: center;

  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}


.details-icon{
  width: auto;          /* ⬅ bigger */
  height: 200px;
  opacity: 0.9;
  margin: 0 auto 1.1rem;
  display: block;
}


.details-block-title{
  font-family: "Cormorant SC", "Cormorant Garamond", "Georgia", serif;
  font-size: 0.95rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(120, 104, 78, 0.85);
  margin-bottom: 0.7rem;
min-height: 1.8em;

}

.details-block-sub{
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(120, 104, 78, 0.70);
  line-height: 1.5;
  margin-bottom: 1rem;
  min-height: 3.6em;
  overflow-wrap: break-word;
  word-break: break-word;
}

.details-pill {
  display: inline-block;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(49, 26, 4, 0.92);
  font-size: 0.72rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(49, 26, 4, 0.92);
  background: transparent;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
  margin-top: auto; /* pushes button to bottom */
}

.details-pill:hover {
  background: rgba(49, 26, 4, 0.92);
  border-color: rgba(49, 26, 4, 0.92);
  color: #fff;
  transform: translateY(-1px);
}

.details-pill:active {
  background: rgba(49, 26, 4, 0.75);
  border-color: rgba(49, 26, 4, 0.75);
  color: #fff;
  transform: translateY(0);
}

.details-pill--accent {
  background: transparent;
  border-color: rgba(49, 26, 4, 0.92);
}

.hotel-rate-note .accent {
  color: rgba(49, 26, 4, 0.92);
}

.hotel-rate-note {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  color: rgba(49, 26, 4, 0.92);
  margin: 0.6rem 0 1rem;
  line-height: 1.5;
}

.hotel-btns {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  margin-top: auto;
}

.hotel-btns .details-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.6rem;
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
  border-color: rgba(49, 26, 4, 0.92);
  color: rgba(49, 26, 4, 0.92);
  box-sizing: border-box;
  line-height: 1;
}

.hotel-btns .details-pill:hover {
  background: rgba(49, 26, 4, 0.92);
  border-color: rgba(49, 26, 4, 0.92);
  color: #fff;
}

/* Registry */
.registry-lead {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2.4rem;
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(42, 33, 22, 0.88);
}

.registry-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.registry-card {
  flex: 0 0 auto;
  width: clamp(240px, 45%, 360px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.6rem;
  border: 1px solid rgba(184,154,90,0.22);
  border-radius: 16px;
  background: rgba(255,255,255,0.7);
  gap: 0.8rem;
}

@media (max-width: 720px) {
  .registry-card {
    width: 90vw;
  }
}

.registry-card-icon {
  font-size: 2rem;
  line-height: 1;
}

.registry-card-title {
  font-family: "Cormorant SC", "Cormorant Garamond", "Georgia", serif;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.registry-card p {
  font-size: 0.88rem;
  line-height: 1.75;
  color: rgba(42, 33, 22, 0.88);
  flex: 1;
}

.registry-btn {
  margin-top: auto;
}

.registry-btn-group {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
  flex-wrap: wrap;
}

.registry-btn-group .registry-btn {
  margin-top: 0;
  flex: 1;
  text-align: center;
}

.registry-btn--secondary {
  background: transparent;
  border: 1px solid currentColor;
  opacity: 0.85;
}


.registry-coming-soon {
  display: inline-block;
  margin-top: auto;
  padding: 0.45em 1.2em;
  border: 1px solid currentColor;
  border-radius: 2em;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.45;
  pointer-events: none;
  align-self: center;
}

@media (max-width: 720px) {
  .registry-grid { grid-template-columns: 1fr; }
}

/* FAQ */
.paper-card--travel h2 {
  margin-bottom: 5rem;
}

.faq {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.faq-item {
  border-bottom: 1px solid rgba(184,154,90,0.18);
  padding-bottom: 1.6rem;
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.faq-item .label {
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-family: var(--font-serif);
  font-weight: normal;
  color: rgba(49, 26, 4, 0.92);
}

.faq-item p {
  font-size: 0.92rem;
  line-height: 1.8;
  color: rgba(42, 33, 22, 0.90);
  overflow-wrap: break-word;
}

.details-dress-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  margin-top: 3rem;
}

.details-dress {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(120, 104, 78, 0.70);
  margin-top: 0;
}

/* Mobile */
@media (max-width: 720px){
  .details-strip-grid{
    grid-template-columns: 1fr;
  }
  .details-icon{
    width: auto;
  }
}

/* ── RSVP 3-step flow ── */
.rsvp-step { width: 100%; }

.rsvp-code-label {
  display: block;
  text-align: center;
}

.rsvp-code-prompt {
  text-align: center;
  font-size: 0.88rem;
  color: rgba(42, 33, 22, 0.82);
  margin-bottom: 1.4rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  font-family: var(--font-serif);
}

.rsvp-welcome {
  text-align: center;
  font-family: "the-seasons", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: rgba(49, 26, 4, 0.92);
  margin-top: 1.8rem;
  margin-bottom: 1.8rem;
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.rsvp-fieldset {
  border: 1px solid rgba(184, 154, 90, 0.28);
  border-radius: 10px;
  padding: 1rem 1.2rem 1.1rem;
  margin-bottom: 1.1rem;
}

.rsvp-fieldset legend {
  font-size: 0.72rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-family: var(--font-serif);
  padding: 0 0.4rem;
}

.rsvp-radio-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  margin-top: 0.7rem;
  cursor: pointer;
  color: var(--text);
  font-family: var(--font-serif);
}

.rsvp-radio-label input[type="radio"] {
  accent-color: var(--accent);
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  cursor: pointer;
}

.rsvp-message--error  { color: #b83232; font-size: 0.84rem; margin-top: 0.6rem; }
.rsvp-message--notice { color: rgba(120, 104, 78, 0.8); font-size: 0.84rem; margin-top: 0.6rem; }
.rsvp-message--success {
  text-align: center;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--accent-dark);
  font-family: var(--font-serif);
  padding: 1.2rem 0;
}

/* ── Family RSVP member rows ─────────────────────────────── */
.rsvp-family-title {
  font-size: 0.72rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent-dark);
  font-family: var(--font-serif);
  margin-bottom: 0.8rem;
}

.rsvp-member-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(184, 154, 90, 0.15);
}

.rsvp-member-row:last-child { border-bottom: none; }

.rsvp-member-row--wrap { flex-wrap: wrap; }

.rsvp-plusone-name-wrap {
  width: 100%;
  padding: 0.5rem 0 0.25rem;
}

.rsvp-plusone-name-input {
  width: 100%;
  padding: 0.55rem 0.9rem;
  border: 1px solid rgba(184, 154, 90, 0.4);
  border-radius: 6px;
  font-size: 0.88rem;
  font-family: var(--font-serif);
  background: rgba(255,255,255,0.7);
  color: var(--text);
  transition: border-color 0.2s;
}

.rsvp-plusone-name-input:focus {
  outline: none;
  border-color: var(--accent-dark);
}

.rsvp-plusone-name-input::placeholder { color: rgba(42,33,22,0.45); }

.rsvp-member-name {
  flex: 1;
  font-size: 0.9rem;
  font-family: "the-seasons", Georgia, serif;
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  min-width: 120px;
}

.rsvp-member-radios {
  display: flex;
  gap: 1.2rem;
}

/* Code input: large, centered, monospaced */
#rsvp-code {
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-family: "Courier New", Courier, monospace;
  max-width: 220px;
  display: block;
  margin: 0 auto 1.1rem;
}

/* RSVP Form */
.rsvp-form {
  max-width: 440px;
  width: 100%;
  margin: 1.8rem auto 0;
  text-align: left;
}

.rsvp-form label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
  color: var(--accent-dark);
  font-family: var(--font-serif);
}

/* Required field asterisk */
.rsvp-form .required-mark {
  color: #b83232;
  margin-left: 0.25em;
  font-style: normal;
  font-size: 0.8rem;
  line-height: 1;
}

/* Screen-reader-only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  margin-bottom: 1.1rem;
  border-radius: 8px;
  border: 1px solid rgba(184,154,90,0.3);
  background: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-family: var(--font-serif);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rsvp-form input:focus,
.rsvp-form select:focus,
.rsvp-form textarea:focus {
  border-color: rgba(184,154,90,0.7);
  box-shadow: 0 0 0 3px rgba(184,154,90,0.12);
}

.rsvp-form textarea { resize: vertical; }

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

.rsvp-message {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 0.8rem;
  color: var(--accent-dark);
}


/* ── Envelope animation ── */
.envelope-scene {
  position: relative;
  width: min(360px, 92vw);
  margin: -1rem auto 3rem;
}

/* Invitation: sits in normal flow and sets the container height */
.env-letter {
  position: relative;
  width: 100%;
  z-index: 1;
  opacity: 0;
}

.env-letter {
  transition: opacity 1.7s ease;
}

.env-body {
  transition: transform 1.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.5s ease;
}

.envelope-scene.is-open .env-letter {
  opacity: 1;
}

.env-letter img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.22);
}

/* Envelope body: absolutely on top, aligned to top of scene */
.env-body {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: none;
  z-index: 3;
}

.env-body-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 3px;
}

/* Envelope slides DOWN after opening, revealing the invitation */
.envelope-scene.is-shrunk .env-body {
  transform: translateY(100%);
  opacity: 0;
}

/* ── Rates image modal ── */
.rates-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rates-modal[hidden] { display: none; }

.rates-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  cursor: pointer;
}

.rates-modal-box {
  position: relative;
  max-width: min(92vw, 780px);
  max-height: 90vh;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

#dresscode-modal .rates-modal-box {
  background-color: #faf4e3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noise)' opacity='0.18'/%3E%3C/svg%3E");
  box-shadow:
    0 20px 60px rgba(0,0,0,0.5),
    inset 0 0 80px rgba(180,150,100,0.12);
}

@media (min-width: 768px) {
  #dresscode-modal .rates-modal-box {
    max-width: min(90vw, 1100px);
  }
}

.rates-modal-box img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 90vh;
  object-fit: contain;
}

.rates-modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  background: rgba(0,0,0,0.55);
  border: none;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 1;
}

.rates-modal-close:hover { background: rgba(0,0,0,0.8); }

/* ── Focus-visible indicators (keyboard navigation) ─────────────
   All interactive elements get a visible outline when focused via
   keyboard. Outline uses the accent gold so it feels on-brand.
   ─────────────────────────────────────────────────────────────── */
.btn:focus-visible,
.details-pill:focus-visible,
.lang-btn:focus-visible,
.nav-links a:focus-visible,
.nav-mobile-menu a:focus-visible,
.story-toggle-btn:focus-visible,
.zelle-copy-btn:focus-visible,
.payment-option-btn:focus-visible,
.payment-close-link:focus-visible,
.registry-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav-hamburger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.rates-modal-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.dresscode-disclaimer {
  margin: 12px 16px 16px;
  font-size: 0.82rem;
  color: #6b5b3e;
  text-align: center;
  line-height: 1.5;
  font-style: italic;
}

/* Flip cards act as interactive buttons — show focus ring */
.flip-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 8px;
}

/* RSVP radio labels */
.rsvp-radio-label:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}


/* ── Formal invitation text ── */
.invitation-formal {
  text-align: center;
  max-width: 460px;
  margin: 0 auto 2.6rem;
}

.invitation-formal--simple {
  max-width: 100%;
}

.invite-together {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(100, 82, 50, 0.82);
  margin-bottom: 1.4rem;
  font-family: var(--font-serif);
}

.invite-names {
  font-family: "the-seasons", "Georgia", serif;
  font-style: italic;
  font-size: clamp(3.2rem, 7vw, 5.5rem);
  font-weight: 400;
  color: rgba(90, 72, 42, 0.9);
  line-height: 1.05;
  margin-bottom: 1.1rem;
  letter-spacing: 0.02em;
}

.invite-request {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: rgba(49, 26, 4, 0.92);
  line-height: 1.9;
  margin-bottom: 1.6rem;
  font-style: italic;
  font-family: var(--font-serif);
}

.invite-divider {
  font-size: 1.1rem;
  color: rgba(184, 154, 90, 0.5);
  margin-bottom: 1.6rem;
  letter-spacing: 0.3em;
}

.invite-day {
  font-family: "the-seasons", "Georgia", serif;
  font-style: italic;
  font-size: clamp(1.4rem, 3.2vw, 2rem);
  color: rgba(120, 104, 78, 0.82);
  margin-bottom: 0.85rem;
  letter-spacing: 0.03em;
}

.invite-venue-line {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(100, 82, 50, 0.82);
  margin-bottom: 0.3rem;
  font-family: var(--font-serif);
}

/* ── Registry SVG icon ── */
.registry-card-icon svg {
  width: 2.6rem;
  height: 2rem;
  color: var(--accent);
  display: block;
  margin: 0 auto;
}

/* ── FAQ accordion ── */
.faq-item .label {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 0.1rem;
  user-select: none;
}

.faq-item .label::after {
  content: "+";
  font-size: 1rem;
  color: var(--accent);
  font-style: normal;
  letter-spacing: 0;
  font-family: var(--font-serif);
  flex-shrink: 0;
  margin-left: 1rem;
  transition: transform 0.25s ease;
  line-height: 1;
}

.faq-item.is-open .label::after {
  content: "−";
}

.faq-item p {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  transition: max-height 0.42s ease, margin-top 0.28s ease;
}

.faq-item.is-open p {
  max-height: 600px;
  margin-top: 0.65rem;
}

.faq-item .faq-img-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s ease, margin-top 0.28s ease;
  margin-top: 0;
}

.faq-item.is-open .faq-img-wrap {
  max-height: 600px;
  margin-top: 0.65rem;
}

/* ── Venue label spacing (replaces <br>) ── */
.venue-label-gap {
  margin-top: 1.6rem;
}

/* =========================================================
   ✦ Delight — animations run for everyone.
     Users with prefers-reduced-motion: reduce will see
     instant state changes (the base.css global reset
     collapses durations to 0.01ms) rather than no effect.
   ========================================================= */

@keyframes delight-fade-up {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes delight-nav-enter {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: none; }
}
@keyframes delight-second-tick {
  0%  { opacity: 0.55; transform: scaleY(0.9); }
  14% { opacity: 1;    transform: none; }
  100%{ opacity: 1;    transform: none; }
}
@keyframes delight-rings-pulse {
  0%  { transform: scale(1); }
  40% { transform: scale(1.22); }
  100%{ transform: scale(1); }
}
@keyframes delight-heartbeat {
  0%  { transform: scale(1); }
  16% { transform: scale(1.34); }
  32% { transform: scale(1.06); }
  48% { transform: scale(1.24); }
  80% { transform: scale(1); }
}
@keyframes delight-cta-glow {
  0%, 100% { box-shadow: 0 0 0 0   rgba(184, 154, 90, 0);    }
  50%       { box-shadow: 0 0 0 9px rgba(184, 154, 90, 0.20); }
}
@keyframes delight-ornament-bloom {
  from { opacity: 0; transform: scale(0.3)  rotate(-20deg); }
  60%  { opacity: 1; transform: scale(1.12) rotate( 5deg);  }
  to   { opacity: 1; transform: scale(1)    rotate( 0deg);  }
}
@keyframes delight-breathe {
  0%, 100% { opacity: 0.30; }
  50%       { opacity: 0.65; }
}

/* ── Nav entrance ── */
header { animation: delight-nav-enter 0.9s cubic-bezier(0.25, 1, 0.5, 1) both; }

/* ── Hero countdown entrance ── */
.countdown--hero {
  animation: delight-fade-up 1.6s cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: 0.6s;
}

/* ── Countdown seconds — subtle optical tick ── */
#hero-cd-seconds { animation: delight-second-tick 1s linear infinite; }

/* ── Section card scroll-reveal ──
   Cards start invisible; JS adds .is-visible via
   IntersectionObserver when each enters the viewport.    */
.paper-card {
  opacity: 0;
  transform: scale(0.97);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.25, 1, 0.5, 1);
}
.paper-card.is-visible {
  opacity: 1;
  transform: scale(1);
}

/* Stagger ceremony / reception blocks and registry cards */
.paper-card.is-visible .details-block {
  animation: delight-fade-up 0.7s cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: calc(0.40s + var(--stagger-i, 0) * 0.15s);
}
.paper-card.is-visible .registry-card {
  animation: delight-fade-up 0.7s cubic-bezier(0.25, 1, 0.5, 1) both;
  animation-delay: calc(0.35s + var(--stagger-i, 0) * 0.15s);
}

/* ── Details venue icons — float up on hover ── */
.details-icon {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}
.details-block:hover .details-icon {
  transform: translateY(-7px);
  opacity: 1;
}

/* ── Registry SVG icon hover animations ── */
.registry-card-icon svg { transform-origin: center; }

/* Wedding rings: gentle scale pulse */
.registry-card:first-child:hover .registry-card-icon svg {
  animation: delight-rings-pulse 0.55s ease;
}
/* Heart: two-beat heartbeat */
.registry-card:last-child:hover .registry-card-icon svg {
  animation: delight-heartbeat 0.72s ease;
}

/* ── Invitation CTA — above the envelope layers, gentle glow after open ── */
.section--invitation .btn {
  position: relative;
  z-index: 10;
  animation: delight-cta-glow 3.5s ease-in-out 3.5s infinite;
}
.section--invitation .btn:hover {
  animation-play-state: paused;
}

/* ── RSVP confirmation ornament ── */
.rsvp-confirm-ornament {
  font-size: 1.6rem;
  color: var(--accent);
  text-align: center;
  display: block;
  margin-bottom: 0.8rem;
  opacity: 0;
}
.rsvp-confirm-ornament.is-blooming {
  animation: delight-ornament-bloom 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* ── Footer monogram hover spin ── */
.footer-monogram {
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
  cursor: default;
}
.footer-monogram:hover {
  transform: rotate(360deg) scale(1.12);
  opacity: 0.75;
}

/* ── Footer ornament breathe ── */
.footer-ornament {
  animation: delight-breathe 4.5s ease-in-out 2s infinite;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 3rem 1rem 3.5rem;
  background: transparent;
}

.footer-monogram {
  height: 54px;
  width: auto;
  display: block;
  margin: 0 auto 0.9rem;
  filter: brightness(0) invert(1);
  opacity: 0.55;
}

.footer-ornament {
  font-size: 0.8rem;
  color: rgba(247, 244, 238, 0.3);
  letter-spacing: 0.6em;
  margin: 0 auto 1rem;
}

footer span[data-bind="footer"] {
  display: block;
  font-size: 0.70rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.48);
  font-family: var(--font-serif);
}

