:root {
  --nav-height: 84px;
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

a { color: inherit; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-height);
  background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0));
  pointer-events: none;
}

.navbar .nav-inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 3rem);
  width: 100%;
  padding: 0 1rem;
}

.navbar .brand {
  position: absolute;
  left: clamp(1rem, 4vw, 2.5rem);
  font-size: 1.1rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
}

.nav-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  border-bottom: 1px solid rgba(255,255,255,0.8);
}

.nav-toggle {
  display: none;
  position: absolute;
  right: clamp(1rem, 4vw, 2.5rem);
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  pointer-events: auto;
  line-height: 1;
}

@media (max-width: 720px) {
  .navbar .nav-inner {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    flex-direction: column;
    justify-content: center;
    gap: 2.25rem;
    background: rgba(0,0,0,0.88);
    backdrop-filter: blur(6px);
  }
  .navbar .nav-inner.open { display: flex; }
  .navbar .nav-inner .brand { display: none; }
  .nav-toggle { display: block; }
  .nav-link { font-size: 1.3rem; }
}

/* ---------- Full-bleed photo sections ---------- */
.photo-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

.photo-section img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, center);
  z-index: 0;
}

.photo-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.05) 45%, rgba(0,0,0,0.15) 100%);
  z-index: 1;
}

.photo-section .caption {
  position: relative;
  z-index: 2;
  padding: 0 clamp(1.5rem, 6vw, 5rem) clamp(3rem, 8vh, 6rem);
  max-width: 900px;
}

.photo-section.center-content {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.photo-section.center-content .caption {
  padding-bottom: 0;
}

/* Hero */
.hero .caption {
  padding-bottom: clamp(3.5rem, 10vh, 7rem);
}

.hero-mobile { display: none; }

@media (max-width: 720px) {
  .hero-desktop { display: none; }
  .hero-mobile { display: block; }
}

.eyebrow {
  display: block;
  font-size: 0.85rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.9;
}

.names {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  font-size: clamp(3rem, 11vw, 7.5rem);
  line-height: 1;
  margin: 0;
  letter-spacing: 0.02em;
}

.names .amp {
  display: inline-block;
  font-style: italic;
  opacity: 0.85;
  margin: 0 0.15em;
}

.date-line {
  margin-top: 1rem;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 500;
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

.section-text {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 640px;
}

.center-content .section-text {
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-block;
  margin-top: 1.75rem;
  padding: 0.9rem 2.4rem;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  background: #fff;
  color: #000;
}

/* Scroll cue on hero */
.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.6);
  overflow: hidden;
}

.scroll-cue::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ---------- Simple content pages (RSVP / Schedule / Stuff to Know) ---------- */
.page-wrap {
  min-height: 100vh;
  padding: calc(var(--nav-height) + 3rem) clamp(1.5rem, 6vw, 5rem) 5rem;
  max-width: 860px;
  margin: 0 auto;
}

.page-header {
  text-align: center;
  margin-bottom: 3rem;
}

.page-header .eyebrow { opacity: 0.7; }

.page-header h1 {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 500;
  margin: 0.25rem 0;
}

.divider {
  width: 60px;
  height: 1px;
  background: rgba(255,255,255,0.4);
  margin: 1.5rem auto;
}

.info-block {
  margin-bottom: 3rem;
}

.info-block h2 {
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.info-block p {
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 400;
  opacity: 0.92;
}

.schedule-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.schedule-item:last-child { border-bottom: none; }

.schedule-time {
  flex: 0 0 auto;
  width: 110px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.schedule-details h2 {
  font-size: 1.3rem;
  margin: 0 0 0.35rem;
  font-weight: 500;
}

.schedule-details p {
  margin: 0;
  opacity: 0.85;
  line-height: 1.55;
}

/* RSVP form */
.rsvp-form {
  display: grid;
  gap: 1.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field label {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}

.field input,
.field select,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  font-family: inherit;
  font-size: 1.1rem;
  padding: 0.6rem 0.1rem;
  outline: none;
}

.field textarea { resize: vertical; min-height: 90px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-bottom-color: #fff;
}

.field select option { color: #000; }

.rsvp-form .btn {
  justify-self: start;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.form-note {
  text-align: center;
  opacity: 0.7;
  font-size: 0.95rem;
  margin-top: -0.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #000;
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
  opacity: 0.6;
}

/* ---------- Photo bands, rows, gallery ---------- */
.photo-band {
  background: #000;
  line-height: 0;
}

.photo-band img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-band-crop img {
  aspect-ratio: 16 / 9;
  max-height: 90vh;
  object-fit: cover;
  object-position: var(--focus, center);
}

.photo-strip {
  background: #000;
  padding: clamp(0.5rem, 1.5vw, 1rem) clamp(0.5rem, 1.5vw, 1rem);
}

.photo-row {
  display: flex;
  gap: clamp(0.5rem, 1.5vw, 1rem);
  max-width: 1500px;
  margin: 0 auto;
}

.photo-row figure {
  margin: 0;
  min-width: 0;
  line-height: 0;
}

.photo-row img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .photo-row { flex-direction: column; }
  .photo-row figure { flex: none !important; }
}

.gallery-header {
  padding: calc(var(--nav-height) + 3rem) 1.5rem 2.5rem;
  text-align: center;
}

.gallery img { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.94);
  cursor: zoom-out;
}

.lightbox[hidden] { display: none; }

.lightbox img {
  max-width: 96vw;
  max-height: 96vh;
  object-fit: contain;
}

.photo-section.top-content {
  align-items: flex-start;
  justify-content: center;
  text-align: center;
}

.photo-section.top-content .caption {
  padding: calc(var(--nav-height) + 1.5rem) 1.5rem 0;
}

/* ---------- Mobile polish ---------- */
.photo-section .caption { text-shadow: 0 1px 14px rgba(0,0,0,0.55); }

@media (max-width: 720px) {
  .photo-section::after {
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.3) 100%);
  }
  .photo-section.top-content::after {
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 45%, rgba(0,0,0,0.3) 100%);
  }
  .photo-strip { padding: 0.5rem; }
  .photo-row { gap: 0.5rem; }
  .schedule-item { gap: 1rem; }
  .schedule-time { width: 92px; }
  .btn { padding: 0.95rem 2rem; }
}

.nav-toggle { padding: 0.5rem; min-width: 44px; min-height: 44px; }
.lightbox img { touch-action: manipulation; }

/* ---------- Cat cursor (desktop only) ---------- */
html.cat-cursor,
html.cat-cursor * { cursor: none !important; }

.cat-cursor-el {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  will-change: transform;
}

.cat-cursor-el.visible { opacity: 1; }

.cat-cursor-el img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  transition: transform 0.12s ease;
}

.cat-cursor-el.pop img { transform: scale(0.8); }

/* ---------- Push notification modals ---------- */
html.modal-open { overflow: hidden; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0,0,0,0.78);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal[hidden] { display: none; }

.modal-card {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  background: #0d0d0d;
  border: 1px solid rgba(255,255,255,0.2);
  padding: clamp(1.5rem, 5vw, 2.5rem);
}

.modal-card.modal-small { max-width: 460px; text-align: center; }

.modal-card h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 500;
  padding-right: 2rem;
}

.modal-small h2 { padding-right: 0; }

.modal-card p { font-size: 1.1rem; line-height: 1.6; opacity: 0.92; margin: 0 0 1rem; }

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.modal-actions .btn {
  margin-top: 0.5rem;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  min-height: 48px;
}

.modal-actions .btn:disabled { opacity: 0.5; cursor: default; }

.link-btn {
  background: none;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  opacity: 0.75;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.75rem;
  min-height: 44px;
}

.btn-push { background: transparent; font-family: inherit; cursor: pointer; }

.ps-status { text-align: center; min-height: 1.5em; margin-top: 1rem; font-size: 1rem; }
.ps-status.ok { color: #9be7a9; }
.ps-status.err { color: #ff9a92; }

.hint { font-size: 0.95rem; opacity: 0.75; }

.install-steps { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; gap: 2rem; }

.install-step {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 1.25rem;
  align-items: center;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.install-step:last-child { border-bottom: none; padding-bottom: 0; }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #fff;
  border-radius: 50%;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step-text h3 { margin: 0 0 0.4rem; font-size: 1.35rem; font-weight: 500; }
.step-text p { margin: 0; font-size: 1.05rem; }

.step-art { width: 100%; max-width: 190px; height: auto; justify-self: center; }

@media (max-width: 560px) {
  .install-step { grid-template-columns: 1fr; }
  .step-art { max-width: 200px; }
}

[hidden] { display: none !important; }
