/* ═══════════════ TOKENS ═══════════════ */
:root {
  --matcha:      #5C7A4E;
  --matcha-dark: #3D5235;
  --matcha-light:#8AAF78;
  --matcha-pale: #EAF1E5;
  --yellow:      #E8C84A;
  --yellow-dark: #C9A82E;
  --yellow-pale: #FDF7DC;
  --cream:       #FAF8F2;
  --ink:         #2C2C2C;
  --ink-soft:    #5a5a5a;
  --white:       #ffffff;

  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Jost', system-ui, sans-serif;

  --radius:      14px;
  --shadow:      0 4px 24px rgba(0,0,0,.10);
  --transition:  .35s cubic-bezier(.4,0,.2,1);
}

/* ═══════════════ RESET ═══════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }


/* music button — fixed, always visible */
.music-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 200;
  background: var(--matcha-dark);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: var(--transition);
}
.music-btn:hover { background: var(--matcha); }
.music-btn.playing { background: var(--yellow); color: var(--matcha-dark); border-color: var(--yellow); }

/* ═══════════════ COVER GATE ═══════════════ */
#cover {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(160deg, var(--matcha-dark) 0%, #2a3d22 55%, #16210f 100%);
  transition: transform .9s cubic-bezier(.76,0,.24,1), opacity .7s ease;
}
#cover.hidden {
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
}
.cover-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%; /* portrait source — keep faces above the text block */
  z-index: 0;
}
/* Dark scrim: the photos have a pale studio backdrop, so the cover type
   needs a strong wash behind it to stay legible. */
.cover-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom,
      rgba(20,30,14,.72) 0%,
      rgba(20,30,14,.44) 32%,
      rgba(20,30,14,.62) 66%,
      rgba(20,30,14,.88) 100%);
}
.cover-content {
  position: relative;
  z-index: 2;
  max-width: 460px;
  width: 100%;
  color: var(--cream);
  animation: fadeUp 1s ease both;
  /* the photo behind has bright areas (dress, signboard) — keep type legible */
  text-shadow: 0 2px 16px rgba(10,18,6,.55);
}
.cover-to {
  font-size: .64rem;
  letter-spacing: .18em;
  color: var(--matcha-light);
  margin-bottom: .5rem;
}
.cover-guest {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 5.5vw, 1.9rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
}
.cover-rule {
  display: block;
  width: 54px;
  height: 1px;
  background: var(--yellow);
  margin: 2.25rem auto;
  opacity: .8;
}
.cover-label {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: .95rem;
  color: var(--matcha-light);
  margin-bottom: .35rem;
}
.cover-names {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 11vw, 4.6rem);
  font-weight: 300;
  line-height: 1.08;
  color: var(--white);
  margin-bottom: .6rem;
}
.cover-names .amp { color: var(--yellow); font-style: italic; font-size: .82em; }
.cover-date {
  font-size: .7rem;
  letter-spacing: .22em;
  color: rgba(255,255,255,.6);
  margin-bottom: 2.5rem;
}
.btn-open {
  background: var(--yellow);
  color: var(--matcha-dark);
  font-family: var(--font-sans);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .15em;
  padding: .9rem 2.6rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(232,200,74,.32);
}
.btn-open:hover {
  background: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,200,74,.42);
}

/* ═══════════════ HERO / UNDANGAN ═══════════════ */
#hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  background: linear-gradient(160deg, var(--matcha-dark) 0%, #2a3d22 60%, #1c2a16 100%);
}
.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom,
    rgba(20,30,14,.82) 0%,
    rgba(20,30,14,.58) 40%,
    rgba(20,30,14,.74) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 520px;
  width: 100%;
  color: var(--cream);
  animation: fadeUp .9s ease both;
  text-shadow: 0 2px 16px rgba(10,18,6,.5);
}
.hero-label {
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .25em;
  color: var(--yellow);
  margin-bottom: .75rem;
}
.hero-names {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 12vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: .5rem;
}
.hero-names .amp { color: var(--yellow); font-style: italic; font-size: .85em; }
.hero-date {
  font-size: .72rem;
  letter-spacing: .2em;
  color: var(--matcha-light);
  margin-bottom: 2.25rem;
}
.hero-invite {
  display: inline-block;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  padding: 1rem 2rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.invite-prefix {
  font-size: .62rem;
  letter-spacing: .18em;
  color: var(--matcha-light);
  margin-bottom: .4rem;
}
.invite-guest {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 4vw, 1.5rem);
  color: var(--white);
  line-height: 1.3;
}
.hero-tagline {
  font-size: .85rem;
  line-height: 1.9;
  color: rgba(255,255,255,.68);
  max-width: 400px;
  margin: 0 auto;
}

/* ═══════════════ NAV ═══════════════ */
#navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: .85rem 1rem;
  background: rgba(250,248,242,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(92,122,78,.12);
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
#navbar a {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  color: var(--ink-soft);
  transition: color .2s;
}
#navbar a:hover { color: var(--matcha); }

/* ═══════════════ PHOTO BANDS ═══════════════ */
/* Full-bleed photo breaks between content sections — these carry the page. */
.photo-band {
  position: relative;
  height: 62vh;
  min-height: 320px;
  max-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-band img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.photo-band-scrim {
  position: absolute;
  inset: 0;
  /* darkest through the middle, where the overlaid line sits */
  background: linear-gradient(to bottom,
    rgba(20,30,14,.34) 0%,
    rgba(20,30,14,.62) 48%,
    rgba(20,30,14,.46) 100%);
}
.photo-band-text {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.05rem, 3.4vw, 1.5rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--white);
  text-align: center;
  max-width: 480px;
  padding: 0 2rem;
  text-shadow: 0 2px 18px rgba(10,18,6,.7);
}

/* ═══════════════ SECTIONS ═══════════════ */
.section {
  padding: 7rem 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}
.section-alt {
  max-width: 100%;
  background: var(--matcha-pale);
}
.section-alt > * { max-width: 900px; margin-left: auto; margin-right: auto; }

.section-label {
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .25em;
  color: var(--matcha);
  text-align: center;
  margin-bottom: .5rem;
}
.section-intro {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 2.05;
  text-align: center;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 4rem;
}
.section-intro em { color: var(--matcha-dark); }
.section-sub {
  text-align: center;
  font-size: .88rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.divider-leaf {
  text-align: center;
  color: var(--matcha-light);
  font-size: 1.4rem;
  margin-bottom: 2rem;
}

/* ═══════════════ COUPLE ═══════════════ */
.couple-cards {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.person-card {
  text-align: center;
  flex: 1;
  min-width: 200px;
  max-width: 260px;
}
.person-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1.25rem;
  border: 4px solid var(--yellow);
  background: var(--matcha-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}
.person-photo.no-img::before { content: '👤'; font-size: 4rem; }
.person-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.person-name {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--matcha-dark);
  margin-bottom: .25rem;
}
.person-nick {
  font-size: .78rem;
  color: var(--matcha-light);
  letter-spacing: .1em;
  margin-bottom: .75rem;
}
.person-parents {
  font-size: .83rem;
  color: var(--ink-soft);
  line-height: 1.7;
}

.amp-center {
  font-family: var(--font-serif);
  font-size: 5rem;
  color: var(--yellow);
  font-style: italic;
  line-height: 1;
  padding: 0 1rem;
  flex-shrink: 0;
}

/* ═══════════════ COUNTDOWN ═══════════════ */
#countdown { text-align: center; padding: 4rem 1.5rem; }
.countdown-date {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 5.5vw, 2.4rem);
  font-weight: 400;
  color: var(--matcha-dark);
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--yellow);
}
.countdown-time {
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--matcha);
  margin-top: .7rem;
  margin-bottom: 2rem;
}
.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.countdown-item {
  background: var(--white);
  border: 1px solid rgba(92,122,78,.15);
  border-radius: var(--radius);
  padding: 1.25rem 1.75rem;
  min-width: 80px;
  box-shadow: var(--shadow);
}
.countdown-item span {
  display: block;
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--matcha-dark);
  line-height: 1;
}
.countdown-item label {
  display: block;
  font-size: .62rem;
  letter-spacing: .15em;
  color: var(--ink-soft);
  margin-top: .3rem;
}

/* ═══════════════ EVENT ═══════════════ */
.event-cards {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}
.event-card {
  background: var(--white);
  border: 1px solid rgba(92,122,78,.15);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  flex: 1;
  min-width: 260px;
  max-width: 360px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.event-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.event-icon { font-size: 2rem; margin-bottom: 1rem; }
.event-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  color: var(--matcha-dark);
  font-weight: 400;
  margin-bottom: .85rem;
}
.event-day {
  font-weight: 500;
  font-size: .88rem;
  color: var(--ink);
  margin-bottom: .2rem;
}
.event-time {
  font-size: .82rem;
  color: var(--matcha);
  margin-bottom: 1rem;
}
.event-venue {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: .25rem;
}
.event-address {
  font-size: .78rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.btn-map {
  display: inline-block;
  border: 1.5px solid var(--matcha);
  color: var(--matcha);
  font-size: .72rem;
  letter-spacing: .12em;
  padding: .6rem 1.5rem;
  border-radius: 50px;
  transition: var(--transition);
}
.btn-map:hover { background: var(--matcha); color: var(--white); }

/* ═══════════════ GALLERY ═══════════════ */
/* 5 photos: 1 tall (left) + 4 regular = fills a 3×2 grid exactly */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: .5rem;
  margin-top: 1rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--matcha-pale), #d4e8ca);
}
/* placeholder shown until the photo file exists */
.gallery-item::before {
  content: '📷';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--matcha-light);
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item img {
  position: relative;
  z-index: 1;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%; /* portrait sources — keep faces in frame */
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }

/* ═══════════════ WISHES ═══════════════ */
.wish-form {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}
.wish-form input,
.wish-form textarea {
  padding: .85rem 1.1rem;
  border: 1.5px solid rgba(92,122,78,.25);
  border-radius: 10px;
  font-family: var(--font-sans);
  font-size: .88rem;
  background: var(--white);
  color: var(--ink);
  outline: none;
  transition: border-color .2s;
  resize: none;
}
.wish-form input:focus,
.wish-form textarea:focus { border-color: var(--matcha); }

.btn-submit {
  background: var(--matcha);
  color: var(--white);
  border: none;
  padding: .85rem 2rem;
  border-radius: 50px;
  font-size: .8rem;
  letter-spacing: .12em;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-sans);
}
.btn-submit:hover { background: var(--matcha-dark); transform: translateY(-2px); }

.wish-list {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.wish-item {
  display: flex;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.wish-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--matcha);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  flex-shrink: 0;
  font-size: .9rem;
}
.wish-empty {
  text-align: center;
  font-size: .84rem;
  color: var(--ink-soft);
  padding: 1.5rem 0;
}
.wish-body strong { font-size: .88rem; display: block; margin-bottom: .2rem; color: var(--matcha-dark); }
.wish-body p { font-size: .82rem; color: var(--ink-soft); line-height: 1.6; }

/* ═══════════════ GIFT ═══════════════ */
.gift-cards {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1rem;
}
.gift-card {
  background: var(--white);
  border: 1px solid rgba(92,122,78,.15);
  border-radius: var(--radius);
  padding: 2rem;
  min-width: 230px;
  text-align: center;
  box-shadow: var(--shadow);
}
.gift-bank {
  font-size: .65rem;
  letter-spacing: .2em;
  color: var(--matcha);
  margin-bottom: .5rem;
}
.gift-number {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--ink);
  letter-spacing: .08em;
  margin-bottom: .25rem;
}
.gift-holder {
  font-size: .78rem;
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}
.btn-copy {
  border: 1.5px solid var(--matcha);
  color: var(--matcha);
  background: none;
  font-size: .72rem;
  letter-spacing: .1em;
  padding: .5rem 1.25rem;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: var(--transition);
}
.btn-copy:hover, .btn-copy.copied { background: var(--matcha); color: var(--white); }

/* ═══════════════ CLOSING ═══════════════ */
#closing {
  background: linear-gradient(160deg, var(--matcha-dark), #2a3d22);
  max-width: 100%;
  text-align: center;
  color: var(--white);
  padding: 5rem 2rem;
}
.closing-inner { max-width: 520px; margin: 0 auto; }
#closing .divider-leaf { color: var(--yellow); }
.closing-names {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 4rem);
  font-weight: 300;
  color: var(--yellow);
  margin-bottom: 1.25rem;
}
.closing-msg {
  font-size: .9rem;
  line-height: 1.9;
  color: rgba(255,255,255,.75);
  margin-bottom: 1.5rem;
}
.closing-tag {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--matcha-light);
}

footer {
  background: var(--matcha-dark);
  text-align: center;
  padding: 1.25rem;
  font-size: .72rem;
  color: rgba(255,255,255,.4);
  letter-spacing: .08em;
}

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
[data-aos] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .65s ease, transform .65s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}
[data-aos][data-aos-delay="100"] { transition-delay: .1s; }
[data-aos="fade-right"] { transform: translateX(-32px); }
[data-aos="fade-right"].aos-animate { transform: none; }
[data-aos="fade-left"] { transform: translateX(32px); }
[data-aos="fade-left"].aos-animate { transform: none; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 640px) {
  #navbar { gap: 1.1rem; }
  #navbar a { font-size: .65rem; }
  .couple-cards { gap: 1.5rem; }
  .amp-center { font-size: 3.5rem; width: 100%; text-align: center; padding: 0; }
  /* 2 cols: tall in col1 rows1-2, then 2 stacked, then a full row — no gaps */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
}
