/* Katie & Daniel — wedding site */
:root {
  --ivory: #faf7f1;
  --cream: #f2ecdf;
  --gold: #b08d57;
  --gold-deep: #96753f;
  --sage: #7d8b74;
  --ink: #3b352c;
  --soft: #8a8177;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', -apple-system, 'Segoe UI', sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--ivory);
  color: var(--ink);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

.eyebrow {
  font-size: .78rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}
.rule { margin: 1.1rem auto; width: 120px; }
.rule span { display: block; height: 1px; background: var(--gold); position: relative; }
.rule span::after {
  content: '❦'; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -58%);
  background: var(--ivory); padding: 0 .6em;
  color: var(--gold); font-size: .9rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  animation: heroDrift 24s ease-in-out infinite alternate;
}
@keyframes heroDrift { from { transform: scale(1.04); } to { transform: scale(1.12); } }
.hero-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(30,26,20,.42), rgba(30,26,20,.18) 40%, rgba(30,26,20,.55));
}
.hero-inner { position: relative; z-index: 2; padding: 2rem 1.5rem; max-width: 900px; }
.hero .eyebrow { color: #e8d9bd; }
.names {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 10vw, 6.5rem);
  line-height: 1.05;
  margin: .6rem 0 .2rem;
  text-shadow: 0 2px 30px rgba(0,0,0,.35);
}
.names .amp { font-style: italic; font-weight: 400; color: #e8d9bd; }
.hero .rule span { background: rgba(232,217,189,.7); }
.hero .rule span::after { background: transparent; color: #e8d9bd; }
.hero-sub {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: #f3e9d4;
  margin-top: .4rem;
}
.play-btn {
  margin-top: 2.2rem;
  background: none; border: none; color: #fff;
  display: inline-flex; flex-direction: column; align-items: center; gap: .9rem;
}
.play-ring {
  width: 84px; height: 84px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.85);
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s, background .3s;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(2px);
}
.play-btn:hover .play-ring { transform: scale(1.08); background: rgba(255,255,255,.18); }
.play-tri {
  width: 0; height: 0; margin-left: 6px;
  border-left: 22px solid #fff;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}
.play-label { font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; }
.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-size: 1.4rem; text-decoration: none;
  animation: bob 2.4s ease-in-out infinite; z-index: 2;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,8px); } }

/* ---------- Details ---------- */
.details {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem 4rem;
  padding: 3.2rem 1.5rem;
  background: var(--cream);
  text-align: center;
}
.detail { display: flex; flex-direction: column; gap: .3rem; }
.detail-label { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.detail-value { font-family: var(--serif); font-size: 1.5rem; }

/* ---------- Sections ---------- */
section { padding: 4.5rem 1.5rem; }
.gallery-section, .contact-section { text-align: center; max-width: 1280px; margin: 0 auto; }
h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem); margin-top: .5rem;
}

/* ---------- Gallery ---------- */
.filters {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .6rem; margin: 2rem 0 2.4rem;
}
.filters button {
  border: 1px solid #d8cdb8;
  background: transparent;
  padding: .5rem 1.15rem;
  border-radius: 999px;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--soft);
  transition: all .25s;
}
.filters button:hover { border-color: var(--gold); color: var(--gold-deep); }
.filters button.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.masonry { columns: 3; column-gap: 14px; text-align: left; }
.m-item {
  break-inside: avoid; margin-bottom: 14px; border-radius: 6px; overflow: hidden;
  background: var(--cream); position: relative; cursor: zoom-in;
}
.m-item img { width: 100%; height: auto; transition: transform .5s ease; }
.m-item:hover img { transform: scale(1.03); }
.load-more-wrap { margin-top: 2.4rem; }
.btn-ghost {
  border: 1px solid var(--gold); background: transparent; color: var(--gold-deep);
  padding: .8rem 2.4rem; border-radius: 999px;
  font-size: .82rem; letter-spacing: .22em; text-transform: uppercase;
  transition: all .25s;
}
.btn-ghost:hover { background: var(--gold); color: #fff; }

/* ---------- Film CTA ---------- */
.film-cta {
  text-align: center;
  background: linear-gradient(135deg, #3b352c, #57503f);
  color: #f3e9d4;
}
.film-cta p { margin: .8rem 0 1.8rem; color: #d8cdb8; font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.btn-gold {
  background: var(--gold); color: #fff; border: none;
  padding: .95rem 2.8rem; border-radius: 999px;
  font-size: .85rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 400;
  transition: background .25s, transform .25s;
}
.btn-gold:hover { background: var(--gold-deep); transform: translateY(-1px); }

/* ---------- Contact ---------- */
.contact-section { max-width: 640px; }
#contactForm { margin-top: 2.2rem; text-align: left; }
.field { margin-bottom: 1.3rem; }
.field label {
  display: block; font-size: .75rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--soft); margin-bottom: .45rem;
}
.field input, .field textarea {
  width: 100%; padding: .85rem 1rem;
  border: 1px solid #d8cdb8; border-radius: 8px;
  background: #fff; font-family: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-error { color: #a33b2e; min-height: 1.6em; font-size: .92rem; margin-bottom: .6rem; }
.form-success { margin-top: 2.2rem; padding: 2.4rem; background: var(--cream); border-radius: 12px; }
.form-success h3 { font-family: var(--serif); font-size: 1.8rem; font-weight: 500; }

/* ---------- Footer ---------- */
footer {
  text-align: center; padding: 3rem 1.5rem 3.4rem;
  background: var(--ink); color: #d8cdb8;
}
.foot-names { font-family: var(--serif); font-size: 2rem; }
.foot-date { font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; margin-top: .5rem; color: #a89a80; }

/* ---------- Video modal ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,17,12,.88); }
.modal-box { position: relative; width: min(960px, 100%); }
.modal-close {
  position: absolute; top: -46px; right: 0;
  background: none; border: none; color: #fff; font-size: 2.2rem; line-height: 1;
}
.video-wrap { position: relative; padding-top: 56.25%; background: #000; border-radius: 8px; overflow: hidden; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 70; }
.lightbox[hidden] { display: none; }
.lb-backdrop { position: absolute; inset: 0; background: rgba(20,17,12,.93); }
.lb-figure {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 3.4rem 4.2rem 2rem;
  pointer-events: none;
}
.lb-figure img {
  max-width: 100%; max-height: calc(100vh - 9rem);
  border-radius: 6px; box-shadow: 0 20px 80px rgba(0,0,0,.5);
  pointer-events: auto;
}
.lb-figure figcaption { color: #d8cdb8; margin-top: .9rem; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; z-index: 2;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25);
  color: #fff; border-radius: 50%;
  width: 52px; height: 52px; font-size: 1.7rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 18px; right: 20px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) { .masonry { columns: 2; } }
@media (max-width: 560px) {
  .masonry { columns: 2; column-gap: 8px; }
  .m-item { margin-bottom: 8px; }
  .lb-figure { padding: 3rem 1rem 1.6rem; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
  .lb-prev, .lb-next { width: 42px; height: 42px; }
  section { padding: 3.2rem 1rem; }
}
