/* Pieter & Amanda — Brannan-style wedding site (Afrikaans clone of withjoy.com/pieter-and-amanda) */

:root {
  --bg: #e2dccd;
  --olive: #777150;
  --olive-deep: #5e5840;
  --olive-mid: #6e6848;
  --olive-soft: #9a9378;
  --taupe: #a69475;
  --text: #6a6452;
  --heading: #5c5640;
  --muted: #8a846e;
  --line: rgba(119, 113, 80, 0.32);
  --line-soft: rgba(119, 113, 80, 0.16);
  --card: #ebe6d8;
  --white: #f7f3ea;
  --photo-w: 760px;
  --content-w: 640px;
  --wide-w: 960px;
  --nav-h: 72px;
  --font-script: "Pinyon Script", "Great Vibes", cursive;
  --font-nav: "Raleway", "Helvetica Neue", sans-serif;
  --font-serif: "EB Garamond", "Noto Serif", "Times New Roman", serif;
  --font-sans: "Inter", "Raleway", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 18px;
  line-height: 1.7;
  min-height: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--olive);
  text-decoration-color: rgba(119, 113, 80, 0.45);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--olive-deep);
}

button,
input,
select {
  font-family: inherit;
}

/* ---------- NAV ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
}

body.is-welcome .site-header {
  position: absolute;
  left: 0;
  right: 0;
  background: transparent;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--nav-h);
  padding: 10px 24px 6px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-family: var(--font-nav);
  font-size: 12.5px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--olive);
  text-decoration: none;
  padding: 8px 0 6px;
  display: inline-block;
  border-bottom: 1px solid transparent;
}

.nav-list a:hover {
  color: var(--olive-deep);
}

.nav-list a.is-active {
  border-bottom-color: var(--olive);
}

.menu-toggle {
  display: none;
  position: absolute;
  right: 18px;
  top: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--olive);
  border-radius: 999px;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--olive);
  position: relative;
  margin: 0 auto;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

/* ---------- HERO ---------- */

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  background: #cfc8b4 url("../images/hero.jpg") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-names {
  font-family: var(--font-script);
  font-size: clamp(52px, 7.2vw, 84px);
  font-weight: 400;
  color: var(--olive);
  text-align: center;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0;
  padding: 0 24px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---------- INNER PAGES ---------- */

.page {
  padding: 8px 24px 96px;
}

.page-photo {
  width: min(var(--photo-w), 100%);
  margin: 168px auto 0;
}

.page:not(:has(.page-photo)) .page-title {
  margin-top: 26vh;
}

.page-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
}

.page-photo.is-portrait img {
  aspect-ratio: 3 / 2;
}

.page-photo.is-low img {
  object-position: center 72%;
}

.page-photo.is-travel img {
  object-position: center 40%;
}

.page-title {
  font-family: var(--font-script);
  font-size: clamp(42px, 5.4vw, 58px);
  font-weight: 400;
  color: var(--olive);
  text-align: center;
  margin: 36px 0 28px;
  line-height: 1.15;
}

.page-lead,
.prose {
  width: min(var(--content-w), 100%);
  margin: 0 auto;
  color: var(--text);
}

.page-lead {
  text-align: center;
  margin-bottom: 28px;
}

.prose p {
  margin: 0 0 1.15em;
}

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

/* ---------- Q&A / STORY TIDBITS ---------- */

.qa-list {
  width: min(var(--content-w), 100%);
  margin: 36px auto 0;
}

.qa-item {
  margin: 0 0 32px;
}

.qa-item h3 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 8px;
  line-height: 1.4;
}

.qa-item p {
  margin: 0;
  color: var(--text);
}

/* ---------- SCHEDULE ---------- */

.schedule {
  width: min(700px, 100%);
  margin: 8px auto 0;
}

.day-label {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin: 48px 0 22px;
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0 0 8px 28px;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 18px;
  width: 1px;
  background: var(--line);
}

.event {
  position: relative;
  padding: 0 0 36px;
}

.event::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 7px;
  width: 11px;
  height: 11px;
  border: 1px solid var(--olive);
  border-radius: 50%;
  background: var(--bg);
}

.event-time {
  font-family: var(--font-serif);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive-soft);
  margin: 0 0 6px;
}

.event h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--heading);
  margin: 0 0 8px;
  line-height: 1.25;
}

.dress-code {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 10px;
}

.dress-code svg {
  width: 16px;
  height: 16px;
  stroke: var(--olive-soft);
  fill: none;
  flex: 0 0 auto;
}

.event p {
  margin: 0 0 12px;
}

.event-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  font-family: var(--font-nav);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.event-links a + a::before {
  content: "|";
  display: inline-block;
  margin: 0 12px;
  opacity: 0.55;
}

.event-links a {
  text-decoration: none;
  color: var(--olive-soft);
}

.event-links a:hover {
  color: var(--olive-deep);
}

/* ---------- TRAVEL ---------- */

.travel-list {
  width: min(var(--wide-w), 100%);
  margin: 12px auto 0;
}

.travel-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(280px, 1.15fr);
  gap: 28px 48px;
  padding: 28px 0 36px;
  align-items: start;
}

.travel-label {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.travel-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  color: var(--olive);
  margin-top: 2px;
}

.travel-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.4;
}

.travel-label h3 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--heading);
  margin: 0;
  line-height: 1.25;
}

.travel-body {
  font-size: 17px;
}

.travel-body p {
  margin: 0 0 12px;
}

.meta-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 16px;
}

.meta-line svg {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  flex: 0 0 auto;
  stroke: var(--olive-soft);
  fill: none;
}

.offer-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: transparent;
}

.offer-card header {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--olive-deep);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.offer-card .offer-inner {
  padding: 18px 20px 20px;
  text-align: center;
}

.offer-card p {
  margin: 0 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 28px;
  cursor: pointer;
  border: 1px solid var(--olive);
  color: var(--olive);
  background: transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: rgba(119, 113, 80, 0.08);
  color: var(--olive-deep);
}

.btn-solid {
  background: var(--taupe);
  border-color: var(--taupe);
  color: #f7f3ea;
}

.btn-solid:hover {
  background: #948466;
  border-color: #948466;
  color: #fff;
}

.btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  flex: 0 0 auto;
}

.offer-brands {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}

.bullet-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bullet-list li {
  position: relative;
  padding: 5px 0 5px 22px;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--olive);
  border-radius: 50%;
}

.shuttle-block + .shuttle-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ---------- ACCOMMODATION ---------- */

.accom {
  width: min(560px, 100%);
  margin: 0 auto;
  text-align: center;
}

.countdown-kicker {
  font-family: var(--font-nav);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin: 28px 0 6px;
}

.countdown-value {
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive-deep);
  margin: 0 0 22px;
}

.accom-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 8px;
}

.accom-actions .hint {
  margin: 0 0 12px;
  color: var(--text);
}

/* ---------- WEDDING PARTY ---------- */

.vip-grid {
  width: min(980px, 100%);
  margin: 48px auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 32px;
}

.vip-card {
  text-align: center;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

.vip-card img {
  width: 168px;
  height: 168px;
  object-fit: cover;
  border-radius: 50%;
  margin: 0 auto 18px;
  filter: saturate(0.92);
}

.vip-card h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--heading);
  margin: 0 0 4px;
}

.vip-card .role {
  font-size: 16px;
  color: var(--muted);
}

.vip-card:hover h3 {
  color: var(--olive);
}

/* ---------- MOMENTS ---------- */

.moments-box {
  width: min(560px, 100%);
  margin: 8px auto 0;
  text-align: center;
}

.moments-box p {
  margin: 0 0 18px;
}

.moments-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}

/* ---------- MODAL ---------- */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(62, 57, 42, 0.46);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 24px;
}

.modal.is-open {
  display: flex;
}

.modal-card {
  background: var(--bg);
  max-width: 520px;
  width: 100%;
  padding: 28px 28px 32px;
  position: relative;
  max-height: min(88vh, 720px);
  overflow: auto;
}

.modal-card img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin: 8px auto 16px;
}

.modal-card h3 {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 28px;
  margin: 0 0 4px;
  color: var(--heading);
}

.modal-card .role {
  text-align: center;
  color: var(--muted);
  margin: 0 0 16px;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: none;
  font-size: 28px;
  line-height: 1;
  color: var(--olive);
  cursor: pointer;
}

/* ---------- FOOTER ---------- */

.site-footer {
  text-align: center;
  padding: 8px 24px 40px;
  font-family: var(--font-script);
  font-size: 22px;
  color: var(--olive);
}

body.is-welcome .site-footer {
  display: none;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 860px) {
  .travel-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 0 28px;
  }

  .vip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }
}

@media (max-width: 720px) {
  .menu-toggle {
    display: block;
  }

  .nav-wrap {
    justify-content: flex-start;
    padding-left: 18px;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 64px;
    left: 12px;
    right: 12px;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 16px;
    border: 1px solid var(--line-soft);
    box-shadow: 0 12px 30px rgba(90, 80, 50, 0.12);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    padding: 12px 20px;
    border-bottom: 0;
  }

  .nav-list a.is-active {
    background: rgba(119, 113, 80, 0.08);
  }

  body.is-welcome .nav-list {
    background: var(--bg);
  }

  .hero-names {
    font-size: 48px;
  }

  .page {
    padding: 0 18px 72px;
  }

  .page-photo {
    margin-top: 28px;
  }

  .event h3,
  .travel-label h3,
  .vip-card h3 {
    font-size: 24px;
  }

  .vip-grid {
    grid-template-columns: 1fr;
  }

  .vip-card img {
    width: 148px;
    height: 148px;
  }
}

@media (max-width: 480px) {
  .hero-names {
    font-size: 40px;
  }
}
