:root {
  --cream: #f5efe4;
  --ivory: #fffaf2;
  --wine: #5d1023;
  --wine-dark: #2b0710;
  --gold: #c7a46b;
  --sage: #72806a;
  --ink: #241b18;
  --muted: #75675e;
  --line: rgba(93, 16, 35, 0.14);
  --shadow: 0 24px 60px rgba(43, 7, 16, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.65;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  color: var(--ivory);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled,
.site-header.menu-active {
  padding: 13px 20px;
  background: rgba(43, 7, 16, 0.92);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 0;
}

.brand span {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.brand small {
  color: rgba(255, 250, 242, 0.76);
  font-size: 0.67rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.menu-toggle {
  position: relative;
  z-index: 22;
  display: grid;
  gap: 5px;
  width: 44px;
  height: 44px;
  place-content: center;
  border: 1px solid rgba(255, 250, 242, 0.35);
  border-radius: 50%;
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-menu {
  position: fixed;
  inset: 0;
  z-index: 21;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
  padding: 90px 24px;
  background: rgba(43, 7, 16, 0.97);
  color: var(--ivory);
  transform: translateY(-100%);
  transition: transform 0.35s ease;
}

.main-menu.is-open {
  transform: translateY(0);
}

.main-menu a {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  padding: 120px 20px 58px;
  color: var(--ivory);
  overflow: hidden;
  background:
    linear-gradient(rgba(43, 7, 16, 0.16), rgba(43, 7, 16, 0.72)),
    url("https://images.unsplash.com/photo-1464366400600-7168b8af9bc3?auto=format&fit=crop&w=1800&q=88") center/cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 20%, rgba(199, 164, 107, 0.24), transparent 35%),
    linear-gradient(90deg, rgba(43, 7, 16, 0.62), rgba(43, 7, 16, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: "Playfair Display", "Cormorant Garamond", serif;
  line-height: 1.02;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(3.1rem, 16vw, 7.6rem);
  letter-spacing: 0;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 10vw, 4.6rem);
}

h3 {
  margin-bottom: 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  line-height: 1.15;
}

.hero-subtitle {
  max-width: 580px;
  margin: 0 auto 28px;
  color: rgba(255, 250, 242, 0.9);
  font-size: 1.05rem;
}

.hero-actions,
.upload-panel {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.91rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--ivory);
  background: var(--wine);
  box-shadow: 0 14px 32px rgba(93, 16, 35, 0.28);
}

.btn-secondary {
  color: var(--ivory);
  border-color: rgba(255, 250, 242, 0.46);
  background: rgba(255, 250, 242, 0.12);
  backdrop-filter: blur(12px);
}

.btn-whatsapp {
  color: #102f22;
  background: #d7f5df;
  box-shadow: 0 14px 32px rgba(39, 121, 70, 0.16);
}

.section-pad {
  padding: 82px 20px;
}

section[id] {
  scroll-margin-top: 86px;
}

.section-inner {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.intro {
  background: var(--cream);
}

.intro-grid,
.story-layout,
.messages-layout,
.location-layout {
  display: grid;
  gap: 28px;
}

.intro-copy p,
.story-copy p,
.location-copy p,
.upload-panel p {
  color: var(--muted);
  font-size: 1rem;
}

.intro-card {
  min-height: 220px;
  display: grid;
  align-items: end;
  padding: 28px;
  border: 1px solid rgba(199, 164, 107, 0.36);
  border-radius: 8px;
  color: var(--ivory);
  background:
    linear-gradient(rgba(43, 7, 16, 0.2), rgba(43, 7, 16, 0.74)),
    url("https://images.unsplash.com/photo-1511285560929-80b456fea0bc?auto=format&fit=crop&w=900&q=84") center/cover;
  box-shadow: var(--shadow);
}

.intro-card span {
  max-width: 280px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  line-height: 1.05;
}

.story {
  background: var(--ivory);
}

.story-image,
.location-image {
  min-height: 380px;
  border-radius: 8px;
  background: center/cover;
  box-shadow: var(--shadow);
}

.story-image {
  background-image:
    linear-gradient(rgba(43, 7, 16, 0.06), rgba(43, 7, 16, 0.2)),
    url("https://images.unsplash.com/photo-1523438885200-e635ba2c371e?auto=format&fit=crop&w=1100&q=86");
}

.story-copy,
.location-copy {
  align-self: center;
}

.program,
.videos,
.closing {
  color: var(--ivory);
  background: var(--wine-dark);
}

.section-heading {
  max-width: 700px;
  margin-bottom: 34px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item,
.video-card,
.message-list article,
.memory-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 242, 0.72);
  box-shadow: 0 14px 40px rgba(43, 7, 16, 0.08);
}

.program .timeline-item,
.videos .video-card {
  border-color: rgba(255, 250, 242, 0.16);
  background: rgba(255, 250, 242, 0.07);
  box-shadow: none;
}

.timeline-item {
  padding: 22px;
}

.timeline-item time {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 800;
}

.timeline-item p,
.video-card p {
  color: rgba(255, 250, 242, 0.72);
}

.gallery {
  background: linear-gradient(180deg, var(--ivory), var(--cream));
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.gallery-item {
  min-height: 184px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--cream);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1.2;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.video-grid {
  display: grid;
  gap: 16px;
}

.video-card {
  min-height: 210px;
  display: grid;
  align-content: end;
  padding: 24px;
}

.video-card span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 42px;
  border: 1px solid rgba(199, 164, 107, 0.45);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 800;
}

.messages {
  background: var(--cream);
}

.message-list {
  display: grid;
  gap: 14px;
}

.message-list article {
  padding: 20px;
}

.message-list p {
  color: var(--muted);
}

.message-list strong {
  color: var(--wine);
}

.memory-form {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: var(--ivory);
}

.memory-form label {
  color: var(--wine);
  font-weight: 800;
}

.memory-form input,
.memory-form textarea {
  width: 100%;
  border: 1px solid rgba(93, 16, 35, 0.16);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fffdf8;
  outline: none;
}

.memory-form input:focus,
.memory-form textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(199, 164, 107, 0.16);
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--sage);
  font-size: 0.9rem;
  font-weight: 700;
}

.upload {
  background: var(--ivory);
}

.upload-panel {
  align-items: center;
  justify-content: space-between;
  padding: 30px;
  border-radius: 8px;
  color: var(--ivory);
  background:
    linear-gradient(135deg, rgba(93, 16, 35, 0.94), rgba(43, 7, 16, 0.9)),
    url("https://images.unsplash.com/photo-1494955870715-979ca4f13bf0?auto=format&fit=crop&w=1100&q=84") center/cover;
  box-shadow: var(--shadow);
}

.upload-panel h2 {
  font-size: clamp(2rem, 8vw, 3.4rem);
}

.upload-panel p {
  color: rgba(255, 250, 242, 0.78);
}

.location {
  background: var(--ivory);
}

.location-image {
  background-image:
    linear-gradient(rgba(43, 7, 16, 0.04), rgba(43, 7, 16, 0.16)),
    url("https://images.unsplash.com/photo-1506377247377-2a5b3b417ebb?auto=format&fit=crop&w=1100&q=86");
}

.location .btn-secondary {
  color: var(--wine);
  border-color: rgba(93, 16, 35, 0.2);
  background: rgba(93, 16, 35, 0.06);
}

.closing {
  text-align: center;
}

.closing-content p {
  margin-bottom: 18px;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.4rem, 10vw, 5rem);
  line-height: 1.05;
}

.closing-content strong {
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(20, 6, 9, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-height: 82vh;
  width: min(1100px, 100%);
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 250, 242, 0.35);
  border-radius: 50%;
  color: var(--ivory);
  background: rgba(255, 250, 242, 0.08);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 720px) {
  .site-header {
    padding: 24px 42px;
  }

  .site-header.scrolled,
  .site-header.menu-active {
    padding: 16px 42px;
  }

  .menu-toggle {
    display: none;
  }

  .main-menu {
    position: static;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0;
    background: transparent;
    transform: none;
  }

  .main-menu a {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .hero {
    min-height: 94vh;
    padding: 140px 42px 86px;
  }

  .section-pad {
    padding: 112px 42px;
  }

  .intro-grid,
  .story-layout,
  .messages-layout,
  .location-layout {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 56px;
  }

  .timeline {
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
  }

  .timeline-item {
    border-radius: 0;
    border-right-width: 0;
  }

  .timeline-item:first-child {
    border-radius: 8px 0 0 8px;
  }

  .timeline-item:last-child {
    border-right-width: 1px;
    border-radius: 0 8px 8px 0;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .gallery-item:nth-child(1),
  .gallery-item:nth-child(4) {
    grid-row: span 2;
  }

  .video-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .upload-panel {
    padding: 44px;
  }
}

@media (min-width: 1040px) {
  .story-image,
  .location-image {
    min-height: 540px;
  }

  .intro-card {
    min-height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
