.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 92svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7rem var(--gutter) 2rem;
  position: relative;
}

.hero__logo {
  display: block;
  width: clamp(280px, 40vw, 480px);
  height: auto;
  margin: 0.75rem auto 0;
}

.hero__portrait {
  position: relative;
  width: clamp(170px, 22vw, 230px);
  aspect-ratio: 4 / 5;
  margin: 0 auto 2rem;
  padding: 8px;
  background: var(--paper);
  outline: 1px solid var(--navy);
  outline-offset: 6px;
  box-shadow: var(--shadow);
}

.hero__chateau {
  position: relative;
  width: clamp(280px, 40vw, 480px);
  margin: 0 auto 1.25rem;
  -webkit-mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, black 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 62% 62% at 50% 50%, black 45%, transparent 100%);
}

.hero__chateau > img:first-child {
  width: 100%;
  height: auto;
  display: block;
}

.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__portrait-fallback {
  display: none;
  position: absolute;
  inset: 8px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  background: var(--paper-alt);
  color: var(--ink-soft);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.6;
}

.hero__portrait.is-empty .hero__portrait-fallback {
  display: flex;
}

.hero__signoff {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--navy);
  margin-top: 1.5rem;
}

.hero__names {
  margin-bottom: 0.3rem;
}

.hero__names em {
  font-style: normal;
  color: var(--gold-deep);
}

/* ---------- Venue showcase ---------- */
.venue-frame {
  max-width: 640px;
  margin: 0 auto 1.8rem;
  padding: 10px;
  background: var(--paper);
  outline: 2px solid var(--navy);
  outline-offset: -2px;
  border: 8px solid var(--paper);
  box-shadow: var(--shadow);
}

.venue-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- Info / detail cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.info-card {
  padding: 2.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.info-card h3 {
  margin-bottom: 0.5rem;
}

.info-card__meta {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.8rem;
  display: block;
}

/* ---------- Map Journey (Schedule) ---------- */
.map-journey {
  position: relative;
  isolation: isolate;
  max-width: 880px;
  margin: 0 auto;
  padding: 1rem 0;
}

.map-journey__path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.map-journey__path-line {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1 10;
}

.map-journey__path-drawn {
  fill: none;
  stroke: var(--gold-deep);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.map-journey__marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 78px;
  height: auto;
  margin-left: -39px;
  margin-top: -26px;
  z-index: 0;
  filter: drop-shadow(0 4px 8px rgba(16, 22, 47, 0.35));
  will-change: transform;
}

.map-journey__marker img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
}

.map-journey__marker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border-radius: 50%;
  border: 1px solid var(--navy);
  opacity: 0.5;
  animation: mapPulse 2.4s ease-out infinite;
}

@keyframes mapPulse {
  0% { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(2.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .map-journey__marker::after { animation: none; display: none; }
}

/* ---------- Day headers ---------- */
.map-journey__day {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
  padding: 0.6rem 1.8rem;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--navy-deep);
  text-align: center;
}

.map-journey__day:first-child { margin-top: 0; }

.map-stop {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  max-width: 560px;
  margin: 0 0 clamp(3.5rem, 8vw, 6rem);
  opacity: 0.4;
  transform: translateY(16px) scale(0.97);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.map-stop:last-child { margin-bottom: 0; }

.map-stop.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.map-stop--left { margin-right: auto; }
.map-stop--right { margin-left: auto; flex-direction: row-reverse; text-align: right; }

.map-stop__frame {
  flex: 0 0 auto;
  width: clamp(110px, 16vw, 168px);
  height: clamp(110px, 16vw, 168px);
  border-radius: 50%;
  overflow: hidden;
  padding: 6px;
  background: var(--paper);
  outline: 1px solid var(--navy);
  outline-offset: 4px;
  box-shadow: var(--shadow);
}

.map-stop__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.map-stop__day {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.3rem;
}

.map-stop__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}

.map-stop__address {
  display: block;
  margin-top: 0.15rem;
}

.map-stop__meta {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}

.map-stop__meta strong {
  font-weight: 600;
  color: var(--ink);
}

.map-stop__desc {
  font-size: 0.86rem;
  color: var(--ink-soft);
  margin-bottom: 0.9rem;
}

.dress-trigger {
  position: relative;
  cursor: help;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--navy);
  text-underline-offset: 3px;
}

.dress-trigger:hover,
.dress-trigger:focus-visible {
  color: var(--gold-deep);
  text-decoration-color: var(--gold-deep);
}

.dress-popover {
  position: absolute;
  z-index: 20;
  width: min(300px, 84vw);
  padding: 1.4rem 1.6rem;
  background: var(--paper);
  border: 1px solid var(--navy);
  box-shadow: var(--shadow);
  text-align: left;
}

.dress-popover[hidden] { display: none; }

.dress-popover h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.6rem;
}

.dress-popover p {
  font-size: 0.85rem;
  margin: 0 0 0.5rem;
}

.dress-popover p:last-child { margin-bottom: 0; }

.dress-popover__close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  width: 24px;
  height: 24px;
  border: none;
  background: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--ink-soft);
  cursor: pointer;
}

.dress-popover__close:hover { color: var(--ink); }

.map-stop__actions {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-stop--right .map-stop__actions { justify-content: flex-end; }

.map-stop__actions a {
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  white-space: nowrap;
}

.map-stop__actions a:hover { color: var(--gold-deep); }

@media (max-width: 640px) {
  /* The road gets its own narrow lane down the left edge on small screens —
     there's no spare "gutter" beside centred content to route it through
     without crossing text, so stops shift right to make room instead. */
  .map-journey__path {
    width: 34px;
    left: 0;
  }

  .map-journey__day {
    margin-left: 46px;
    margin-right: 0;
  }

  .map-stop,
  .map-stop--left,
  .map-stop--right {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-left: 46px;
    margin-right: 0;
    max-width: none;
    width: calc(100% - 46px);
  }
  .map-stop--right .map-stop__actions,
  .map-stop__actions {
    justify-content: flex-start;
  }
}

/* ---------- FAQ Accordion ---------- */
.accordion {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.accordion__item {
  border-bottom: 1px solid var(--line);
}

.accordion__question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
}

.accordion__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  background: var(--navy);
  top: 50%;
  left: 50%;
  transition: transform 0.35s var(--ease);
}

.accordion__icon::before { width: 14px; height: 1px; transform: translate(-50%, -50%); }
.accordion__icon::after { width: 1px; height: 14px; transform: translate(-50%, -50%); }

.accordion__item[data-open="true"] .accordion__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion__answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.45s var(--ease);
}

.accordion__answer p {
  padding-bottom: 1.6rem;
  margin: 0;
}

/* ---------- Wedding party ---------- */
.party-card {
  text-align: center;
}

.party-card__photo {
  aspect-ratio: 4 / 5;
  background: var(--paper-alt);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.party-card h3 {
  margin-bottom: 0.15rem;
  font-size: 1.35rem;
}

.party-card__role {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ---------- Trip / itinerary cards ---------- */
.trip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.trip-card {
  background: var(--paper);
  border: 1px solid var(--line);
}

.trip-card__photo {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.trip-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}

.trip-card:hover .trip-card__photo img {
  transform: scale(1.05);
}

.trip-card__body {
  padding: 1.6rem 1.8rem 1.8rem;
}

.trip-card__duration {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 0.5rem;
}

.trip-card__title {
  margin-bottom: 0.25rem;
  font-size: 1.5rem;
}

.trip-card__note {
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: var(--navy);
  margin-bottom: 0.8rem;
}

.trip-card__desc {
  font-size: 0.92rem;
  margin-bottom: 0;
}

/* ---------- Placeholder notice ---------- */
.placeholder-note {
  border: 1px dashed var(--line-strong);
  padding: 1.4rem 1.6rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-top: 2rem;
}

/* ---------- Divider ornament ---------- */
.divider {
  display: flex;
  justify-content: center;
  color: var(--navy);
  margin: 0 auto;
  width: 56px;
}
