/* ============ Fonts ============ */
@font-face {
  font-family: "SHK Dzeragir";
  src: url("../fonts/SHK_Dzeragir.otf") format("opentype");
  font-display: swap;
}

/* ============ Base ============ */
:root {
  --ivory: #faf7f2;
  --cream: #f3ede3;
  --ink: #3d3733;
  --ink-soft: #6e6660;
  --gold: #b08d57;
  --gold-light: #d4bb94;
  --blush: #c9a9a6;

  --font-serif: "SHK Dzeragir", "Noto Serif Armenian", Georgia, serif;
  --font-sans: "SHK Dzeragir", "Noto Sans Armenian", "Helvetica Neue", sans-serif;
  --font-script: "SHK Dzeragir", "Noto Serif Armenian", Georgia, serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

section {
  padding: 5.5rem 1.5rem;
}

.section-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  text-align: center;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

/* ============ Hero ============ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  position: relative;
  padding: 14vh 1.5rem 2rem;
  background:
    linear-gradient(rgba(250, 247, 242, 0.82), rgba(250, 247, 242, 0.72) 55%, rgba(250, 247, 242, 0.9)),
    url("../img/photo-4452.jpg") center 70% / cover no-repeat,
    var(--ivory);
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.hero-names {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(3rem, 10vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: 0.04em;
}

/* names in one line, «և» pinned to the exact horizontal center —
   the same vertical axis as the heart in the divider below */
.hero-inner {
  width: 100%;
}

.hero-names {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: baseline;
  width: 100%;
}

@media (max-width: 480px) {
  .hero-names {
    font-size: clamp(2.3rem, 12vw, 3rem);
  }
}

.hero-names .name-left {
  text-align: right;
}

.hero-names .name-right {
  text-align: left;
}

.hero-names .amp {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 0.45em;
  color: var(--gold);
  margin: 0 0.35em;
}

.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.75rem auto;
  max-width: 280px;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--gold-light);
}

.divider-icon {
  width: 18px;
  height: 18px;
  fill: var(--gold);
  flex-shrink: 0;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  color: var(--ink-soft);
}

.hero-date {
  margin-top: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  color: var(--ink);
}

/* ============ Buttons ============ */
.btn {
  display: inline-block;
  margin-top: 2.25rem;
  padding: 0.85rem 2.75rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  background: var(--gold);
  color: #fff;
}

.btn-solid {
  background: var(--gold);
  color: #fff;
}

.btn-solid:hover {
  background: #9a7a49;
  border-color: #9a7a49;
}

/* ============ Scroll hint ============ */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.chevron {
  display: block;
  width: 14px;
  height: 14px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg);
  animation: bob 2s infinite ease-in-out;
}

@keyframes bob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); }
  50% { transform: rotate(45deg) translate(4px, 4px); }
}

/* ============ Countdown ============ */
.countdown {
  background: var(--cream);
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 5vw, 3rem);
  flex-wrap: wrap;
}

.count-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.count-num {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 4rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  /* handwritten glyphs overhang their box — reserve space so each
     tick repaints cleanly and the layout doesn't jitter */
  display: inline-block;
  min-width: 1.9em;
  padding: 0 0.25em;
  text-align: center;
}

.count-label {
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--ink-soft);
}

/* ============ Story ============ */
.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 1020px;
  margin: 0 auto;
}

.story-copy {
  text-align: center;
}

.story-photos {
  display: flex;
  justify-content: center;
}

.snap-solo {
  width: 78%;
  max-width: 380px;
  transform: rotate(1.8deg);
}

.snap {
  background: #fff;
  padding: 10px 10px 14px;
  box-shadow: 0 12px 32px rgba(61, 55, 51, 0.18);
}

.snap img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 820px) {
  .story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .snap-solo {
    width: 82%;
  }
}

.story-text {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink-soft);
}

.story-signature {
  margin-top: 1.75rem;
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--gold);
}

/* ============ Moments (photo collage) ============ */
.moments {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(212, 187, 148, 0.14), transparent 55%),
    radial-gradient(ellipse at 10% 85%, rgba(201, 169, 166, 0.12), transparent 55%),
    var(--ivory);
}

.moments-sub {
  text-align: center;
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold);
  margin: -2rem 0 3rem;
}

.collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* two photos merged on one album page */
.c-duo {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* wide finale across the bottom */
.c-wide {
  grid-column: 1 / -1;
}

@media (max-width: 640px) {
  .collage {
    grid-template-columns: 1fr;
  }
}

.c-item {
  margin: 0;
  background: #fff;
  padding: 10px 10px 14px;
  box-shadow: 0 10px 28px rgba(61, 55, 51, 0.14);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.c-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* gentle, alternating tilt — snapshots laid on a table */
.c-item:nth-child(4n + 1) { transform: rotate(-1.3deg); }
.c-item:nth-child(4n + 2) { transform: rotate(1.1deg); }
.c-item:nth-child(4n + 3) { transform: rotate(-0.7deg); }
.c-item:nth-child(4n + 4) { transform: rotate(1.6deg); }

.c-item:hover {
  transform: rotate(0deg) scale(1.02);
  box-shadow: 0 16px 40px rgba(61, 55, 51, 0.22);
}

/* fade-in as they scroll into view */
.reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity 0.9s ease, translate 0.9s ease,
    transform 0.35s ease, box-shadow 0.35s ease;
}

.reveal.visible {
  opacity: 1;
  translate: 0 0;
}

/* ============ Quote break ============ */
.quote-break {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url("../img/photo-4465.jpg") center 65% / cover no-repeat;
}

.quote-break::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(30, 28, 26, 0.28);
}

.quote-break blockquote {
  position: relative;
  padding: 0 1.5rem;
  text-align: center;
}

.quote-break p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 3.5vw, 2.1rem);
  color: #f5f1ea;
  letter-spacing: 0.03em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

/* ============ Details ============ */
.details {
  background: var(--cream);
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.detail-card {
  background: var(--ivory);
  padding: 2.5rem 1.75rem;
  text-align: center;
  border: 1px solid rgba(176, 141, 87, 0.2);
}

.detail-icon {
  width: 28px;
  height: 28px;
  fill: var(--gold);
  margin-bottom: 1rem;
}

.detail-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.detail-muted {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.map-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.45rem 1.4rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  transition: background 0.25s ease, color 0.25s ease;
}

.map-link:hover {
  background: var(--gold);
  color: #fff;
}

/* ============ RSVP ============ */
.rsvp-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
  max-width: 1020px;
  margin: 0 auto;
}

.rsvp-photo {
  margin: 0;
  background: #fff;
  padding: 10px 10px 14px;
  box-shadow: 0 12px 32px rgba(61, 55, 51, 0.18);
  transform: rotate(-1.8deg);
  justify-self: center;
  max-width: 380px;
}

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

@media (max-width: 820px) {
  .rsvp-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .rsvp-photo {
    max-width: 300px;
  }
}

.rsvp-note {
  text-align: center;
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  margin: -1.5rem 0 2.5rem;
}

.rsvp-form {
  text-align: left;
}

.form-row {
  margin-bottom: 1.5rem;
}

.form-row > label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.optional {
  text-transform: none;
  letter-spacing: normal;
  opacity: 0.7;
}

input[type="text"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(176, 141, 87, 0.35);
  background: #fff;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
  border-radius: 0;
  appearance: none;
}

input[type="text"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
}

textarea {
  resize: vertical;
}

.radio-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.radio-pill {
  cursor: pointer;
}

.radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-pill span {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border: 1px solid rgba(176, 141, 87, 0.35);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.radio-pill input:checked + span {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}

.rsvp .btn-solid {
  width: 100%;
  margin-top: 0.5rem;
}

.form-status {
  text-align: center;
  margin-top: 1rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--gold);
  min-height: 1.5em;
}

/* ============ Music toggle ============ */
.music-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: var(--ivory);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(61, 55, 51, 0.15);
  transition: background 0.25s ease, transform 0.2s ease;
}

.music-toggle:hover {
  transform: scale(1.06);
}

.music-toggle .icon-play {
  width: 22px;
  height: 22px;
  fill: var(--gold);
}

/* equalizer bars — shown while playing */
.music-toggle .eq {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}

.music-toggle .eq span {
  width: 3px;
  background: #fff;
  border-radius: 2px;
  animation: eq-bounce 1s infinite ease-in-out;
}

.music-toggle .eq span:nth-child(1) { height: 60%; animation-delay: 0s; }
.music-toggle .eq span:nth-child(2) { height: 100%; animation-delay: 0.2s; }
.music-toggle .eq span:nth-child(3) { height: 75%; animation-delay: 0.4s; }

@keyframes eq-bounce {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}

.music-toggle.playing {
  background: var(--gold);
}

.music-toggle.playing .icon-play {
  display: none;
}

.music-toggle.playing .eq {
  display: flex;
}

/* keep the YouTube iframe alive but invisible */
.yt-hidden {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

/* ============ Footer ============ */
.footer {
  position: relative;
  background:
    linear-gradient(rgba(38, 34, 31, 0.88), rgba(38, 34, 31, 0.88)),
    url("../img/photo-4439.jpg") center 30% / cover no-repeat,
    var(--ink);
  color: var(--ivory);
  text-align: center;
  padding: 4.5rem 1.5rem;
}

.footer-names {
  font-family: var(--font-script);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--gold-light);
}

.footer-date {
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.footer-tag {
  margin-top: 1rem;
  font-size: 0.8rem;
  opacity: 0.6;
}
