/* Destination Wedding Inspo — site shell: fonts, reset, header, footer,
   cookie banner. Each page's own look lives in css/pages/<page>.css. */

@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/playfair-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/fonts/playfair-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/static/fonts/inter-latin.woff2") format("woff2");
}
/* The legacy pages fall back to Montserrat in a few places: draw it as Inter. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/static/fonts/inter-latin.woff2") format("woff2");
}

:root {
  --ink: #1a1a1a;
  --navy: #253a58;
  --gold: #c4861a;
  --cream: #fffcf9;
  --sand: #f5f0ea;
  --linen: #f8f5f0;
  --peach: #fef5ed;
  --taupe: #7a7571;
  --line: #e0dedd;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1150px;
  --header-h: 100px;
}

/* ---------- reset (the one the page designs were built on) ---------- */
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small,
strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li,
fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, figure, figcaption, footer, header, nav, section, main {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  vertical-align: baseline;
  background: transparent;
}
*, *::before, *::after { box-sizing: border-box; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
table { border-collapse: collapse; border-spacing: 0; }
img { vertical-align: bottom; max-width: 100%; height: auto; }
main { display: block; }
/* 100vw includes the scrollbar: clip the few pixels a full-bleed band adds,
   without a horizontal scrollbar ("clip", unlike "hidden", keeps sticky). */
.site-main { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.site-wrap {
  max-width: var(--wrap);
  margin: 0 auto;
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow 0.3s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(26, 26, 26, 0.06), 0 6px 24px rgba(26, 26, 26, 0.04); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
  padding: 0 20px;
}
.logo { display: block; flex-shrink: 0; line-height: 0; }
.logo img { width: 170px; height: auto; }

.site-nav ul { display: flex; justify-content: flex-end; gap: 5px; }
.site-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90px;
  height: 38px;
  padding: 0 6px;
  border: 1px solid #d9d4cf;
  border-radius: 19px;
  background: #fff;
  color: var(--navy);
  font-family: var(--serif);
  font-size: 13.3px;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.site-nav a:hover { background: var(--peach); border-color: #e9cdb4; }
.site-nav a[aria-current="page"] { background: var(--peach); border-color: #e9cdb4; color: #434343; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid #d9d4cf;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  margin-left: -9px;
  background: var(--navy);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  content: "";
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1149.9px) {
  :root { --header-h: 76px; }
  .logo img { width: 140px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background: var(--cream);
    border-top: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(26, 26, 26, 0.08);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; gap: 0; padding: 12px 20px 24px; }
  .site-nav a {
    justify-content: flex-start;
    width: auto;
    height: auto;
    padding: 16px 4px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    font-size: 20px;
  }
  .site-nav a:hover, .site-nav a[aria-current="page"] { background: transparent; color: var(--gold); }
}

/* ---------- page content (legacy X5 cells) ---------- */
.site-main { display: block; min-height: 50vh; }
.x5-cell {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  /* Contains floats without clipping: the pages' full-bleed bands (width:
     100vw; margin-left: calc(-50vw + 50%)) must reach past the cell, or wide
     screens cut their images and captions. */
  display: flow-root;
}
.x5-row {
  display: grid;
  grid-template-columns: var(--cols, 1fr 1fr);
  max-width: var(--wrap);
  margin: 0 auto;
}
.x5-row > .x5-cell { max-width: none; margin: 0; }
.x5-cell > img { display: block; width: 100%; height: auto; }
@media (max-width: 719.9px) {
  .x5-row { grid-template-columns: 1fr; }
}
@media (max-width: 479.9px) {
  .x5-cell { padding: 20px 0; }
}

/* ---------- message pages (thank you, 404) ---------- */
.msg {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 24px 140px;
  text-align: center;
}
.msg-eyebrow {
  display: block;
  margin-bottom: 22px;
  color: #888;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
}
.msg h1 {
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 400;
  line-height: 1.15;
}
.msg p {
  margin: 0 auto 44px;
  max-width: 560px;
  color: #555;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.8;
}
.msg-btn, .legal-btn {
  display: inline-block;
  padding: 17px 42px;
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 11px;
  letter-spacing: 3px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.msg-btn:hover, .legal-btn:hover { background: var(--ink); color: #fff; }

/* ---------- legal pages ---------- */
.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 90px 24px 110px;
  color: #444;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.8;
}
.legal-eyebrow {
  display: block;
  margin-bottom: 18px;
  color: #888;
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
}
.legal h1 {
  margin-bottom: 18px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 400;
  line-height: 1.15;
}
.legal .legal-updated { margin-bottom: 48px; color: #888; font-size: 13px; }
.legal h2 {
  margin: 52px 0 16px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
}
.legal h3 { margin: 28px 0 8px; color: var(--ink); font-size: 15px; font-weight: 500; }
.legal p, .legal ul { margin-bottom: 16px; }
.legal ul { padding-left: 20px; list-style: disc; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--navy); }
.legal strong { color: var(--ink); font-weight: 500; }
.legal table { width: 100%; margin: 12px 0 24px; font-size: 14px; }
.legal th, .legal td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th { color: var(--ink); font-weight: 500; }
@media (max-width: 599.9px) {
  /* Narrow screens: the table scrolls sideways instead of overflowing. */
  .legal table { display: block; overflow-x: auto; font-size: 13px; }
  .legal th, .legal td { min-width: 120px; }
}
.legal-lang { margin-top: 70px; padding: 32px; background: var(--linen); }
.legal-lang h2 { margin-top: 0; padding-top: 0; border-top: 0; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 0;
  padding: 80px 20px 40px;
  background: var(--taupe);
  border-top: 1px solid #948f8c;
  color: #f5f5f5;
  font-family: var(--sans);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-name {
  margin-bottom: 20px;
  color: #fff;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 1px;
  line-height: 1.3;
}
.footer-brand p:not(.footer-name) { max-width: 250px; color: #fff; font-size: 14px; line-height: 1.6; }
.footer-title {
  margin-bottom: 25px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.footer-col li { margin-bottom: 12px; }
.footer-col a {
  color: #fff;
  font-size: 14px;
  font-weight: 300;
  text-decoration: none;
  transition: opacity 0.3s;
}
.footer-col a:hover { opacity: 0.6; }
.footer-cta p:not(.footer-title) { margin-bottom: 20px; color: #fff; font-size: 14px; line-height: 1.5; }
.footer-link-bold {
  display: inline-block;
  margin-bottom: 12px;
  padding-bottom: 5px;
  border-bottom: 1px solid #fff;
  color: #fff;
  font-family: var(--serif);
  font-size: 18px;
  font-style: italic;
  text-decoration: none;
  transition: opacity 0.3s;
}
.footer-link-bold:hover { opacity: 0.7; }
.footer-emails { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.footer-emails a {
  color: #fff;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.5px;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: opacity 0.3s;
}
.footer-emails a:hover { opacity: 0.6; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 40px;
  border-top: 1px solid #948f8c;
  color: #fff;
  font-size: 11px;
  letter-spacing: 1px;
  line-height: 1.6;
  text-transform: uppercase;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-links a, .link-button {
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.3s;
}
.footer-links a:hover, .link-button:hover { opacity: 0.6; }
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 50px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p:not(.footer-name) { margin: 0 auto; }
  .footer-emails { align-items: center; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

/* ---------- cookie banner ---------- */
#cc-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.45);
}
#cc-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9999;
  padding: 32px 6%;
  background: var(--ink);
  color: #f5f5f5;
  font-size: 13px;
  line-height: 1.7;
  animation: cc-up 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes cc-up { from { transform: translateY(100%); } to { transform: none; } }
.cc-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.cc-title { display: block; margin-bottom: 10px; color: #fff; font-family: var(--serif); font-size: 18px; }
.cc-texts p:not(.cc-title) { margin: 0 0 6px; color: #bbb; font-size: 13px; font-weight: 300; }
.cc-texts a { color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(196, 134, 26, 0.4); }
.cc-texts a:hover { border-color: var(--gold); }
.cc-lang-toggle { display: flex; gap: 8px; margin-bottom: 14px; }
.cc-lang-btn {
  padding: 4px 12px;
  border: 1px solid #444;
  background: transparent;
  color: #888;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
}
.cc-lang-btn.active { border-color: var(--gold); color: var(--gold); }
.cc-buttons { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }
.cc-btn {
  padding: 14px 28px;
  border: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.cc-btn-accept { background: var(--gold); color: #fff; }
.cc-btn-accept:hover { background: #a87016; }
.cc-btn-necessary { border: 1px solid #555; background: transparent; color: #ddd; }
.cc-btn-necessary:hover { border-color: #bbb; color: #fff; }
.cc-btn-settings {
  padding: 8px;
  border: 0;
  background: transparent;
  color: #999;
  font-size: 10px;
  letter-spacing: 2px;
  text-decoration: underline;
  text-transform: uppercase;
  cursor: pointer;
}
.cc-btn-settings:hover { color: #ddd; }
#cc-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cc-modal-box {
  position: relative;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 48px 44px;
  background: var(--ink);
  color: #f5f5f5;
  line-height: 1.7;
}
.cc-modal-title { margin-bottom: 24px; color: #fff; font-family: var(--serif); font-size: 24px; }
.cc-modal-box > p { margin-bottom: 28px; color: #aaa; font-size: 13px; font-weight: 300; }
.cc-category { padding: 20px 0; border-top: 1px solid #333; }
.cc-category:last-of-type { border-bottom: 1px solid #333; }
.cc-cat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cc-cat-header strong { color: #fff; font-size: 14px; font-weight: 500; }
.cc-category p { color: #999; font-size: 12px; line-height: 1.6; }
.cc-toggle { position: relative; flex-shrink: 0; width: 44px; height: 24px; }
.cc-toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-slider { position: absolute; inset: 0; border-radius: 24px; background: #333; pointer-events: none; transition: background 0.3s; }
.cc-slider::before {
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #888;
  transition: transform 0.3s, background 0.3s;
  content: "";
}
.cc-toggle input:checked + .cc-slider { background: var(--gold); }
.cc-toggle input:checked + .cc-slider::before { transform: translateX(20px); background: #fff; }
.cc-toggle input:focus-visible + .cc-slider { outline: 2px solid var(--gold); outline-offset: 2px; }
.cc-toggle input:disabled { cursor: not-allowed; }
.cc-toggle input:disabled:checked + .cc-slider { background: #555; }
.cc-toggle input:disabled:checked + .cc-slider::before { background: #aaa; }
.cc-modal-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.cc-modal-btns .cc-btn { flex: 1; min-width: 140px; }
.cc-close {
  position: absolute;
  top: 16px; right: 20px;
  border: 0;
  background: none;
  color: #888;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.cc-close:hover { color: #fff; }
#cc-reopen {
  position: fixed;
  left: 24px; bottom: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid #333;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
}
#cc-reopen:hover { background: var(--gold); color: #fff; }
@media (max-width: 768px) {
  #cc-banner { padding: 28px 5%; }
  .cc-inner { grid-template-columns: 1fr; gap: 24px; }
  .cc-buttons { flex-direction: row; flex-wrap: wrap; }
  .cc-btn { flex: 1; min-width: 140px; }
  .cc-modal-box { padding: 32px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, #cc-banner, #cc-reopen, #cc-modal, #cc-overlay { display: none !important; }
}
.link-inline {
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
