:root {
  --bg: #f8fbff;
  --surface: rgba(255,255,255,0.82);
  --surface-strong: #ffffff;
  --text: #10243b;
  --muted: #5f7186;
  --line: rgba(28, 74, 130, 0.14);
  --blue: #2c6bb5;
  --blue-deep: #163d72;
  --blue-soft: #e9f2ff;
  --accent: #4d8fe0;
  --shadow: 0 18px 40px rgba(22, 61, 114, 0.12);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(77,143,224,0.10), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    linear-gradient(45deg, var(--blue) 25%, transparent 25%),
    linear-gradient(-45deg, var(--blue) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--blue) 75%),
    linear-gradient(-45deg, transparent 75%, var(--blue) 75%);
  background-size: 28px 28px;
  background-position: 0 0, 0 14px, 14px -14px, -14px 0;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; position: relative; z-index: 1; }
.page-shell { padding-top: 92px; }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,0.78);
  border-bottom: 1px solid rgba(28, 74, 130, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-mark {
  font-size: 0.75rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 700;
}
.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-links a {
  padding: 12px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  transition: 0.25s ease;
}
.nav-links a.active,
.nav-links a:hover {
  color: var(--blue-deep);
  background: rgba(77,143,224,0.10);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 11px 13px;
  font-size: 1.1rem;
}

.mobile-panel {
  display: none;
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(100% + 10px);
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(28, 74, 130, 0.12);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 12px;
}
.mobile-panel.open { display: grid; gap: 6px; }
.mobile-panel a {
  padding: 14px 14px;
  border-radius: 14px;
  font-weight: 600;
  color: var(--text);
}
.mobile-panel a.active,
.mobile-panel a:hover { background: rgba(77,143,224,0.10); color: var(--blue-deep); }

.hero {
  padding: 56px 0 34px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(77,143,224,0.10);
  color: var(--blue-deep);
  border: 1px solid rgba(77,143,224,0.14);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
  margin: 16px 0 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  line-height: 1.05;
  font-size: clamp(2.6rem, 6vw, 5.1rem);
}
.hero p,
.page-hero p { color: var(--muted); font-size: 1.06rem; max-width: 62ch; }

.hero-actions,
.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-deep) 100%);
  box-shadow: 0 14px 26px rgba(22, 61, 114, 0.22);
}
.button.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--blue-deep);
}
.button:hover { transform: translateY(-2px); }

.card, .glass-card {
  background: var(--surface);
  border: 1px solid rgba(28,74,130,0.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card { padding: 26px; }
.glass-card { padding: 0; overflow: hidden; }

.hero-visual {
  position: relative;
}
.hero-stack {
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  gap: 16px;
}
.hero-stack .main-photo {
  min-height: 520px;
  object-fit: cover;
  width: 100%;
}
.hero-stack .side-column {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
}
.hero-stack .side-column img:first-child {
  min-height: 300px;
  object-fit: cover;
  width: 100%;
}
.info-float {
  padding: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(28,74,130,0.10);
  border-radius: 22px;
}
.info-float strong { display: block; font-size: 1.05rem; margin-bottom: 8px; }
.info-float span { color: var(--muted); display: block; }

section {
  padding: 30px 0;
}
.section-heading {
  margin-bottom: 24px;
}
.section-heading .eyebrow {
  display: inline-block;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
}
.section-heading h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 10px 0 10px;
  line-height: 1.1;
}
.section-heading p { color: var(--muted); max-width: 65ch; }

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 20px;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.kpi {
  padding: 22px;
  background: linear-gradient(180deg, #fff 0%, rgba(233,242,255,0.75) 100%);
  border: 1px solid rgba(77,143,224,0.14);
  border-radius: var(--radius-sm);
}
.kpi strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2rem;
  color: var(--blue-deep);
}
.kpi span { color: var(--muted); }

.photo-panel img,
.full-height-photo { height: 100%; width: 100%; object-fit: cover; }
.photo-panel { overflow: hidden; min-height: 380px; }
.timeline { display: grid; gap: 16px; }
.timeline-item {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(28,74,130,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(233,242,255,0.65));
}
.timeline-item .meta { color: var(--blue); font-weight: 700; font-size: 0.92rem; }
.timeline-item h3 { margin: 8px 0 8px; font-size: 1.2rem; }
.timeline-item p { margin: 0; color: var(--muted); }

.event-card {
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(233,242,255,0.60));
  border: 1px solid rgba(28,74,130,0.10);
  box-shadow: var(--shadow);
}
.event-card h3 { margin-top: 0; margin-bottom: 10px; font-family: "Playfair Display", Georgia, serif; font-size: 1.55rem; }
.event-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.event-card li + li { margin-top: 6px; }

.note-box {
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(77,143,224,0.18);
  box-shadow: var(--shadow);
}
.note-box p:last-child, .card p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }

.rsvp-box {
  padding: 28px;
  background: linear-gradient(135deg, rgba(44,107,181,0.96), rgba(22,61,114,0.96));
  color: #fff;
  border-radius: 28px;
  box-shadow: 0 18px 34px rgba(22,61,114,0.24);
}
.rsvp-box p { color: rgba(255,255,255,0.82); }
.rsvp-box .button.secondary { border-color: rgba(255,255,255,0.28); color: #fff; background: rgba(255,255,255,0.10); }

.details-list { display: grid; gap: 14px; }
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.16);
}
.detail-row:last-child { border-bottom: none; padding-bottom: 0; }
.detail-row span:last-child { text-align: right; }

.page-hero {
  padding: 50px 0 12px;
}

.split-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.cta-banner {
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(233,242,255,0.78));
  border: 1px solid rgba(28,74,130,0.10);
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 34px 0 46px;
  color: var(--muted);
}
.footer-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid rgba(28,74,130,0.10);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid,
  .split-hero,
  .grid-3,
  .grid-4,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .hero-stack { grid-template-columns: 1fr; }
  .hero-stack .main-photo { min-height: 420px; }
  .hero-stack .side-column { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
}

@media (max-width: 760px) {
  .page-shell { padding-top: 84px; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { padding-top: 24px; }
  .hero-stack .side-column { grid-template-columns: 1fr; }
  .hero-stack .side-column img:first-child { min-height: 240px; }
  .hero-stack .main-photo { min-height: 360px; }
  .card, .event-card, .note-box, .cta-banner { padding: 22px; }
  .section-heading h2 { font-size: clamp(1.8rem, 7vw, 2.5rem); }
  .hero h1, .page-hero h1 { font-size: clamp(2.4rem, 10vw, 4rem); }
  .detail-row { flex-direction: column; }
  .detail-row span:last-child { text-align: left; }
}
