/* Site chrome v5 — one professional header and footer on every public page.
   Loaded by v3/base.html after the shared overlays, before page styles.
   The couple pages keep their own header (couple-page-v5.css): the header
   rules skip body.zi-couple-v5. */

/* ───────────────────────── Header (desktop) ───────────────────────── */
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-header {
  transition: background-color .3s ease, box-shadow .3s ease, border-color .3s ease, transform .35s ease;
}
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-header.is-scrolled {
  box-shadow: 0 14px 36px -24px rgba(43, 33, 29, .5);
}
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-brand img { height: 40px; width: auto; }

/* Links: plain text, a fine gold line under the current page. */
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-desktop { gap: 2px; }
html body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-header .zw-nav-desktop > .zw-nav-link,
html body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-header .zw-nav-desktop > .zw-nav-disclosure > summary {
  position: relative; background: transparent !important; box-shadow: none !important; padding: 10px 15px; border-radius: 10px;
  font-size: 14px; font-weight: 500; letter-spacing: .012em; transition: color .2s ease, opacity .2s ease;
}
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-desktop > .zw-nav-link::after {
  content: ''; position: absolute; left: 15px; right: 15px; bottom: 5px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #c79a62, #e6c48f); transform: scaleX(0); transform-origin: left center;
  transition: transform .32s cubic-bezier(.2, .7, .2, 1);
}
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-desktop > .zw-nav-link:hover::after,
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-desktop > .zw-nav-link[aria-current="page"]::after { transform: scaleX(1); }
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-desktop > .zw-nav-link[aria-current="page"] { color: var(--zw-nav-ink); }
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-desktop > .zw-nav-link:hover,
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-desktop > .zw-nav-disclosure > summary:hover { color: var(--zw-nav-copper); }

/* Dropdowns: a light panel, each entry with its line of description. */
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-header .zw-nav-flyout {
  top: calc(100% + 12px); width: 300px; padding: 10px; border-radius: 20px;
  border: 1px solid var(--zw-nav-line); background: var(--zw-nav-panel);
  box-shadow: 0 30px 70px -28px rgba(43, 33, 29, .38); animation: zi-chrome-drop .22s ease both;
}
@keyframes zi-chrome-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-header .zw-nav-flyout .zw-nav-link {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 14px;
  color: var(--zw-nav-ink) !important; background: transparent; font-weight: 600; font-size: 14px;
}
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-header .zw-nav-flyout .zw-nav-link small {
  font-weight: 400; font-size: 12.5px; color: var(--zw-nav-muted); letter-spacing: 0;
}
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-header .zw-nav-flyout .zw-nav-link:hover { background: var(--zw-nav-soft); }

/* Sign in: a quiet text button with its icon. */
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-login {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  color: var(--zw-nav-ink); font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color .2s ease, color .2s ease;
}
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-login::before {
  content: ''; width: 18px; height: 18px; flex: 0 0 18px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center / contain no-repeat;
}
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-login:hover { background: var(--zw-nav-soft); color: var(--zw-nav-copper); }

/* Preferences: a borderless round button. */
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-actions .zw-nav-icon-button {
  width: 42px; height: 42px; min-width: 42px; border-color: transparent; background: transparent; transition: background-color .2s ease;
}
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-actions .zw-nav-icon-button:hover { background: var(--zw-nav-soft); }

/* The main action: an ink pill with a gold hairline. */
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-cta {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px;
  background: #2b211d; color: #fff; border: 1px solid rgba(199, 154, 98, .55);
  font-size: 13.5px; font-weight: 600; letter-spacing: .01em; text-decoration: none !important;
  box-shadow: 0 12px 26px -16px rgba(43, 33, 29, .7); transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-cta::after { content: '→'; font-weight: 400; transition: transform .2s ease; }
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-cta:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 16px 30px -16px rgba(43, 33, 29, .8); }
body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-cta:hover::after { transform: translateX(3px); }
[data-zi-theme="dark"] body[data-wedding-navigation="vnext"]:not(.zi-couple-v5) .zw-nav-cta { background: #f4e9da; color: #2b211d; border-color: #f4e9da; }

/* Over a photo (home, before scrolling): everything reads in light. */
body[data-public-header="image"]:not(.zi-couple-v5) .zw-nav-header:not(.is-scrolled) .zw-nav-login,
body[data-public-header="image"]:not(.zi-couple-v5) .zw-nav-header:not(.is-scrolled) .zw-nav-icon-button { color: #fff; }
body[data-public-header="image"]:not(.zi-couple-v5) .zw-nav-header:not(.is-scrolled) .zw-nav-login:hover,
body[data-public-header="image"]:not(.zi-couple-v5) .zw-nav-header:not(.is-scrolled) .zw-nav-icon-button:hover { background: rgba(255, 255, 255, .14); color: #fff; }
body[data-public-header="image"]:not(.zi-couple-v5) .zw-nav-header:not(.is-scrolled) .zw-nav-desktop > .zw-nav-link[aria-current="page"] { color: #fff; }
body[data-public-header="image"]:not(.zi-couple-v5) .zw-nav-header:not(.is-scrolled) .zw-nav-cta {
  background: #fffaf3; color: #38271e; border-color: #fffaf3; box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .7);
}

/* ───────────────────────── Footer ───────────────────────── */
.v3-footer.zi-footer-v5 { position: relative; overflow: hidden; color: #f7ede4; }
.zi-footer-v5 .footer-cta {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  padding-top: clamp(80px, 9vw, 120px); padding-bottom: clamp(50px, 6vw, 72px);
}
.zi-footer-v5 .footer-cta h2 {
  margin: 14px 0 0; font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(40px, 5vw, 76px); line-height: 1; letter-spacing: -.015em; color: #fbf3e9;
}
.zi-footer-v5 .footer-cta h2 em { color: #e3bd84; font-style: italic; }
.zi-footer-v5 .footer-kicker { font-size: 11px; letter-spacing: .3em; color: #c79a62; }
.zi-f5-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; flex-shrink: 0; }
.zi-footer-v5 .footer-cta-button { min-height: 58px; border-radius: 999px; }
.zi-f5-ghost {
  display: inline-flex; align-items: center; min-height: 58px; padding: 0 26px; border-radius: 999px;
  border: 1px solid rgba(247, 237, 228, .28); color: #f7ede4; text-decoration: none; font-size: 14px; font-weight: 500;
  transition: background-color .2s ease, border-color .2s ease;
}
.zi-f5-ghost:hover { background: rgba(247, 237, 228, .08); border-color: rgba(247, 237, 228, .5); color: #fff; }

.zi-footer-v5 .footer-grid {
  display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 40px; align-items: start;
  padding-top: 64px; padding-bottom: 56px;
}
.zi-footer-v5 .footer-brand-block { display: flex; flex-direction: column; align-items: flex-start; gap: 0; max-width: 320px; }
.zi-f5-brand { display: inline-block; margin-bottom: 20px; }
.zi-f5-logo { display: block !important; width: 190px; height: auto; opacity: .95; }
.zi-footer-v5 .footer-brand-block p { margin: 0; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 20px; line-height: 1.4; color: rgba(247, 237, 228, .86); }
.zi-footer-v5 .footer-signature { margin-top: 10px; font-family: 'Great Vibes', cursive; font-size: 26px; color: #e3bd84; }
.zi-f5-mail { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; color: rgba(247, 237, 228, .82); font-size: 13px; text-decoration: none; }
.zi-f5-mail:hover { color: #fff; }
.zi-f5-mail .zi-icon, .zi-f5-prefs .zi-icon { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.zi-footer-v5 .footer-column > b { display: block; font-size: 11px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: #c79a62; }
.zi-footer-v5 .footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 13px; margin-top: 20px; }
.zi-footer-v5 .footer-links a { position: relative; color: rgba(247, 237, 228, .78); font-size: 14px; text-decoration: none; transition: color .2s ease; }
.zi-footer-v5 .footer-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: #e3bd84; transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.zi-footer-v5 .footer-links a:hover { color: #fff; }
.zi-footer-v5 .footer-links a:hover::after { transform: scaleX(1); }

.zi-footer-v5 .footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding-top: 24px; padding-bottom: 30px; border-top: 1px solid rgba(247, 237, 228, .12);
  font-size: 12px; letter-spacing: .04em; color: rgba(247, 237, 228, .6);
}
.zi-f5-motto { letter-spacing: .3em; font-size: 10.5px; }
.zi-f5-prefs {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(247, 237, 228, .22); background: transparent; color: rgba(247, 237, 228, .86); font: inherit; font-size: 12.5px;
  transition: background-color .2s ease;
}
.zi-f5-prefs:hover { background: rgba(247, 237, 228, .08); color: #fff; }

/* The app in the stores: one card between the closing invitation and the
   links — the store icon, a line, and the two badges (store_badges.html). */
.zi-footer-v5 .zi-f5-apps { position: relative; z-index: 2; padding-top: 0; padding-bottom: 0; }
.zi-f5-apps-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 28px;
  padding: 28px 32px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(247, 237, 228, .085), rgba(247, 237, 228, .025));
  border: 1px solid rgba(247, 237, 228, .14);
}
.zi-f5-apps-icon {
  display: block; width: 76px; height: 76px; border-radius: 19px; background: #fff;
  box-shadow: 0 18px 34px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(247, 237, 228, .18);
}
.zi-f5-apps-copy h3 {
  margin: 10px 0 0; font-family: 'Cormorant Garamond', serif; font-weight: 500;
  font-size: clamp(28px, 3vw, 40px); line-height: 1.05; letter-spacing: -.01em; color: #fbf3e9;
}
.zi-f5-apps-copy h3 em { color: #e3bd84; font-style: italic; }
.zi-f5-apps-copy p { margin: 10px 0 0; max-width: 540px; font-size: 14px; line-height: 1.6; color: rgba(247, 237, 228, .74); }
.zi-f5-stores { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.zi-store-badge {
  display: inline-flex; align-items: center; gap: 11px; min-width: 176px; height: 58px; padding: 0 20px 0 16px;
  border-radius: 14px; background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(247, 237, 228, .4);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.zi-store-badge:hover { color: #fff; transform: translateY(-2px); border-color: rgba(227, 189, 132, .85); box-shadow: 0 18px 30px -18px rgba(0, 0, 0, .95); }
.zi-store-badge:focus-visible { outline: 2px solid #e3bd84; outline-offset: 3px; }
.zi-store-logo { flex: none; width: 25px; height: 28px; }
.zi-store-logo-apple { color: #fff; }
.zi-store-badge span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.12; }
.zi-store-badge small { font-size: 11px; letter-spacing: .02em; color: rgba(255, 255, 255, .86); }
.zi-store-badge b {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'DM Sans', Roboto, sans-serif;
  font-size: 19px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) { .zi-store-badge, .zi-store-badge:hover { transition: none; transform: none; } }

@media (max-width: 1100px) {
  .zi-footer-v5 .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
  .zi-footer-v5 .footer-brand-block { grid-column: 1 / -1; max-width: none; }
  .zi-f5-apps-card { grid-template-columns: auto minmax(0, 1fr); }
  .zi-f5-stores { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 760px) {
  .zi-footer-v5 .footer-cta, .zi-footer-v5 .footer-grid, .zi-footer-v5 .footer-bottom, .zi-footer-v5 .footer-divider, .zi-footer-v5 .zi-f5-apps {
    width: auto !important; max-width: none !important; margin-inline: 0 !important; padding-left: 22px !important; padding-right: 22px !important;
  }
  .zi-footer-v5 .footer-cta { flex-direction: column; align-items: stretch; gap: 26px; padding-top: 64px; padding-bottom: 40px; }
  .zi-footer-v5 .footer-cta h2 { font-size: clamp(36px, 10vw, 46px); }
  .zi-f5-cta-actions { flex-direction: column; align-items: stretch; }
  .zi-footer-v5 .footer-cta-button, .zi-f5-ghost { width: 100%; justify-content: space-between; }
  .zi-f5-ghost { justify-content: center; }
  .zi-footer-v5 .footer-grid { padding-top: 40px; padding-bottom: 36px; }
  .zi-f5-apps-card { grid-template-columns: auto minmax(0, 1fr); gap: 16px 16px; padding: 22px 20px; border-radius: 24px; }
  .zi-f5-apps-icon { width: 58px; height: 58px; border-radius: 15px; align-self: start; }
  .zi-f5-apps-copy h3 { margin-top: 6px; font-size: 28px; }
  .zi-f5-apps-copy p { font-size: 13.5px; }
  .zi-f5-stores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .zi-store-badge { min-width: 0; height: 54px; padding: 0 10px; gap: 8px; justify-content: center; }
  .zi-store-logo { width: 21px; height: 24px; }
  .zi-store-badge small { font-size: 9.5px; }
  .zi-store-badge b { font-size: 15.5px; }
  .zi-footer-v5 .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
}

/* ───────────────────────── Loading screen ─────────────────────────
   Same markup and timing (navigation-transition-v4245.js writes the label
   into <small>); a warmer, finished look: a porcelain medallion with a
   turning gold ring, the name in Cormorant, a fine sweeping line. */
html:is(.zi-loader-boot, .zi-navigation-loading) .page-loader {
  gap: 18px !important;
  background: radial-gradient(900px 520px at 50% 42%, rgba(255, 250, 243, .99) 0%, rgba(247, 238, 228, .99) 58%, rgba(239, 226, 212, .99) 100%) !important;
}
html[data-zi-theme="dark"]:is(.zi-loader-boot, .zi-navigation-loading) .page-loader {
  background: radial-gradient(900px 520px at 50% 42%, rgba(36, 28, 23, .99) 0%, rgba(24, 18, 15, .99) 60%, rgba(17, 13, 11, .99) 100%) !important;
}
.page-loader .loader-mark {
  position: relative; width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center;
  font-family: 'Cormorant Garamond', serif !important; font-size: 42px !important; font-weight: 500; line-height: 1;
  color: #8a533b !important; background: #fffdf9;
  box-shadow: 0 22px 44px -26px rgba(64, 38, 22, .55), inset 0 0 0 1px rgba(199, 154, 98, .25);
}
html[data-zi-theme="dark"] .page-loader .loader-mark { background: #241c17; color: #e6c48f !important; box-shadow: 0 22px 44px -26px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(230, 196, 143, .22); }
.page-loader .loader-mark::before {
  content: ''; position: absolute; inset: -7px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(199, 154, 98, 0) 0deg, rgba(199, 154, 98, .15) 120deg, #c79a62 320deg, rgba(199, 154, 98, 0) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px));
  animation: zi-loader-spin 1.15s linear infinite;
}
html:is(.zi-loader-boot, .zi-navigation-loading) .page-loader .loader-mark { animation: zi-loader-breathe 1.6s ease-in-out infinite alternate !important; }
.page-loader .loader-copy {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-family: 'Cormorant Garamond', serif; font-size: 24px; letter-spacing: .2em; color: #2b211d;
}
html[data-zi-theme="dark"] .page-loader .loader-copy { color: #f4e9da !important; }
.page-loader .loader-copy small { font-family: 'DM Sans', sans-serif; font-size: 9.5px; letter-spacing: .4em; color: #a5826a; }
.page-loader .loader-progress { width: 150px !important; height: 2px; border-radius: 2px; overflow: hidden; background: rgba(199, 154, 98, .18) !important; }
.page-loader .loader-progress span { display: block; height: 100%; background: linear-gradient(90deg, rgba(199, 154, 98, 0), #c79a62, rgba(199, 154, 98, 0)) !important; }
@keyframes zi-loader-spin { to { transform: rotate(1turn); } }
@keyframes zi-loader-breathe { from { transform: scale(.97); } to { transform: scale(1.03); } }
@media (max-width: 370px) {
  .zi-f5-stores { grid-template-columns: 1fr; }
  .zi-store-badge { justify-content: flex-start; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-loader .loader-mark::before, html:is(.zi-loader-boot, .zi-navigation-loading) .page-loader .loader-mark { animation: none !important; }
}

/* The couple page as a preview, inside the creation: only the page itself,
 * never the site's header, bars or footer around it. */
body[data-zi-preview] .site-header,
body[data-zi-preview] .zw-nav-header,
body[data-zi-preview] .zw-nav-bottom,
body[data-zi-preview] [data-bottom-nav],
body[data-zi-preview] .zi-bottom-nav,
body[data-zi-preview] .v3-footer,
body[data-zi-preview] .zi-footer-v5,
body[data-zi-preview] .page-loader { display: none !important; }
body[data-zi-preview] { padding-bottom: 0 !important; }
