/* ===== RUSTIC — Yoga & Sari ===== */
:root {
  --bark: #3E2C22;
  --bark-deep: #2A1E16;
  --cream: #F7F1E5;
  --cream-dim: #EFE6D3;
  --kraft: #C9A876;
  --kraft-deep: #A9854F;
  --sage: #7D8C6F;
  --sage-deep: #5C6B52;
  --terra: #B5654A;
  --gold: #D4A95C;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Jost', sans-serif;
  background: var(--cream);
  color: var(--bark);
  overflow-x: hidden;
}
body:not(.opened) { overflow: hidden; height: 100vh; }
img { max-width: 100%; }

/* ---------- Kraft paper texture ---------- */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(62,44,34,.045) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none; z-index: 1;
}

/* ---------- COVER ---------- */
#cover {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  transition: transform 1s cubic-bezier(.7,0,.3,1), opacity .8s;
}
#cover.open { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.cover-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  animation: slowZoom 18s ease-in-out infinite alternate;
}
@keyframes slowZoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.cover-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(42,30,22,.55), rgba(42,30,22,.25) 40%, rgba(42,30,22,.78));
}
.cover-inner {
  position: relative; z-index: 3; text-align: center; color: var(--cream);
  padding: 2rem 1.5rem; max-width: 480px;
  animation: coverRise 1.2s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes coverRise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
.cover-eyebrow {
  letter-spacing: .4em; text-transform: uppercase; font-size: .75rem;
  color: var(--kraft); margin-bottom: 1rem; font-weight: 500;
}
.wax-seal {
  width: 74px; height: 74px; margin: 0 auto 1.2rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #C96A4E, #8E3B28 70%);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.2rem;
  color: #F3D9B8; letter-spacing: .1em;
  box-shadow: 0 6px 20px rgba(0,0,0,.4), inset 0 2px 6px rgba(255,255,255,.25), inset 0 -3px 8px rgba(0,0,0,.35);
  border: 3px dashed rgba(243,217,184,.5);
  animation: sealPulse 3s ease-in-out infinite;
}
@keyframes sealPulse { 0%,100% { transform: scale(1) rotate(-4deg); } 50% { transform: scale(1.06) rotate(3deg); } }
.cover-names {
  font-family: 'Great Vibes', cursive; font-weight: 400;
  font-size: clamp(3rem, 13vw, 4.6rem); line-height: 1.1;
  text-shadow: 0 3px 18px rgba(0,0,0,.55);
}
.cover-names span { color: var(--kraft); font-size: .7em; }
.cover-date { margin-top: .8rem; letter-spacing: .22em; text-transform: uppercase; font-size: .85rem; color: var(--cream-dim); }
.cover-guest { margin-top: 1.6rem; font-size: .9rem; opacity: .92; line-height: 1.7; }
.cover-guest strong { font-size: 1.15rem; color: #fff; }
#open-invitation {
  margin-top: 1.6rem; padding: .95rem 2.4rem;
  font-family: 'Jost', sans-serif; font-size: 1rem; font-weight: 600; letter-spacing: .06em;
  color: var(--bark-deep); background: linear-gradient(135deg, var(--kraft), var(--gold));
  border: none; border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 28px rgba(201,168,118,.45);
  animation: btnGlow 2.4s ease-in-out infinite;
}
@keyframes btnGlow {
  0%,100% { box-shadow: 0 8px 24px rgba(201,168,118,.35); transform: scale(1); }
  50% { box-shadow: 0 8px 38px rgba(201,168,118,.7); transform: scale(1.045); }
}

/* String lights */
.string-lights {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; justify-content: space-around; padding: 0 4%;
}
.string-lights span {
  width: 10px; height: 14px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 50% 35%, #FFE9A8, #E8A93D 70%);
  box-shadow: 0 0 14px 4px rgba(255,210,120,.75);
  margin-top: 34px; position: relative;
  animation: sway 3.4s ease-in-out infinite;
}
.string-lights span::before {
  content: ""; position: absolute; top: -36px; left: 50%;
  width: 2px; height: 36px; background: rgba(0,0,0,.5); transform: translateX(-50%);
}
.string-lights span:nth-child(even) { animation-delay: -1.2s; }
.string-lights span:nth-child(3n) { animation-delay: -2.1s; }
@keyframes sway { 0%,100% { transform: rotate(6deg); } 50% { transform: rotate(-6deg); } }

/* Falling petals */
.petals i {
  position: absolute; top: -20px; z-index: 2;
  width: 12px; height: 16px; border-radius: 60% 40% 60% 40%;
  background: rgba(212,169,92,.7);
  animation: fall linear infinite;
}
.petals i:nth-child(1) { left: 8%; animation-duration: 9s; }
.petals i:nth-child(2) { left: 25%; animation-duration: 12s; animation-delay: -4s; }
.petals i:nth-child(3) { left: 45%; animation-duration: 10s; animation-delay: -7s; }
.petals i:nth-child(4) { left: 62%; animation-duration: 13s; animation-delay: -2s; }
.petals i:nth-child(5) { left: 78%; animation-duration: 11s; animation-delay: -9s; }
.petals i:nth-child(6) { left: 92%; animation-duration: 14s; animation-delay: -5s; }
@keyframes fall {
  to { transform: translateY(110vh) rotate(340deg); }
}

/* ---------- MAIN ---------- */
#content { position: relative; z-index: 2; }
.wrap { max-width: 640px; margin: 0 auto; padding: 0 1.4rem; }
section { padding: 4.5rem 0; position: relative; }
.eyebrow {
  text-align: center; letter-spacing: .35em; text-transform: uppercase;
  font-size: .72rem; color: var(--sage-deep); font-weight: 600; margin-bottom: .9rem;
}
.sec-title {
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: clamp(1.7rem, 7vw, 2.4rem); text-align: center; margin-bottom: 2rem;
  color: var(--bark);
}
.twine {
  width: 180px; height: 3px; margin: 1.6rem auto 0;
  background: repeating-linear-gradient(90deg, var(--kraft-deep) 0 8px, transparent 8px 14px);
  border-radius: 2px; position: relative;
}
.twine::before, .twine::after {
  content: "❧"; position: absolute; top: -14px; color: var(--sage-deep); font-size: 1.1rem;
}
.twine::before { left: -24px; } .twine::after { right: -24px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- HERO ---------- */
.hero { min-height: 92vh; display: flex; align-items: center; justify-content: center; padding: 0; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -40px;
  background-size: cover; background-position: center; background-attachment: fixed;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(247,241,229,.88), rgba(247,241,229,.55) 45%, rgba(247,241,229,.92)); }
.hero-inner { position: relative; z-index: 2; text-align: center; padding: 3rem 1.4rem; max-width: 640px; }
.hero-text { font-weight: 300; line-height: 1.8; margin: 1rem 0 1.8rem; font-size: 1.02rem; }
.script-names {
  font-family: 'Great Vibes', cursive; font-weight: 400;
  font-size: clamp(2.8rem, 12vw, 4.2rem); line-height: 1.25; color: var(--bark);
}
.script-names .amp { color: var(--terra); font-size: .75em; }
.hero-date { margin-top: 1rem; letter-spacing: .28em; text-transform: uppercase; font-size: .85rem; color: var(--sage-deep); font-weight: 600; }

/* ---------- SAVE THE DATE ---------- */
.std { background: var(--bark); color: var(--cream); overflow: hidden; }
.std::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201,168,118,.14), transparent 60%);
}
.std .eyebrow { color: var(--kraft); }
.std .sec-title { color: var(--cream); }
.countdown { display: flex; gap: .8rem; justify-content: center; margin: 0 0 2rem; }
.countdown div {
  background: rgba(247,241,229,.07); border: 1px solid rgba(201,168,118,.35);
  border-radius: 14px; padding: 1rem .6rem; min-width: 72px; text-align: center;
  backdrop-filter: blur(2px);
}
.countdown b { display: block; font-family: 'Playfair Display', serif; font-size: 1.9rem; color: var(--gold); }
.countdown span { font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; opacity: .75; }
.btn-ghost {
  display: inline-block; padding: .8rem 1.8rem; border-radius: 999px;
  border: 1.5px solid var(--kraft); color: var(--kraft); text-decoration: none;
  font-weight: 500; letter-spacing: .04em; transition: all .3s;
}
.btn-ghost:hover { background: var(--kraft); color: var(--bark-deep); }

/* ---------- COUPLE ---------- */
.couple { background: var(--cream); }
.person { text-align: center; margin-bottom: 1rem; }
.person-photo {
  width: 190px; height: 190px; margin: 0 auto 1.4rem;
  border-radius: 50%; overflow: hidden;
  border: 6px solid #fff; outline: 2px solid var(--kraft);
  box-shadow: 0 14px 34px rgba(62,44,34,.22);
}
.person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.script { font-family: 'Great Vibes', cursive; font-size: 2.4rem; font-weight: 400; color: var(--bark); }
.role { color: var(--terra); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: .75rem; margin: .4rem 0 .8rem; }
.parents { line-height: 1.7; font-weight: 300; }
.addr { font-style: italic; color: #8a7a68; margin-top: .4rem; font-size: .92rem; }
.ig-pill {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: 1rem;
  padding: .5rem 1.2rem; border-radius: 999px; text-decoration: none;
  border: 1.5px solid var(--sage); color: var(--sage-deep); font-weight: 500; font-size: .9rem;
  transition: all .3s;
}
.ig-pill:hover { background: var(--sage); color: #fff; }
.couple-amp {
  text-align: center; font-family: 'Great Vibes', cursive; font-size: 3.4rem;
  color: var(--kraft-deep); margin: 1.2rem 0; line-height: 1;
}

/* ---------- LOVE STORY ---------- */
.story { background: var(--cream-dim); }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--kraft-deep) 0 7px, transparent 7px 13px);
}
.t-item { position: relative; margin-bottom: 2rem; background: #fffdf7; border-radius: 14px; padding: 1.3rem 1.4rem; box-shadow: 0 8px 24px rgba(62,44,34,.1); border: 1px solid rgba(201,168,118,.3); }
.t-dot {
  position: absolute; left: -2rem; top: 1.4rem; width: 18px; height: 18px; border-radius: 50%;
  background: var(--terra); border: 4px solid var(--cream-dim); box-shadow: 0 0 0 2px var(--terra);
}
.t-item h4 { font-family: 'Playfair Display', serif; color: var(--terra); margin-bottom: .5rem; font-size: 1.05rem; }
.t-item p { font-weight: 300; line-height: 1.75; font-size: .95rem; }

/* ---------- ACARA ---------- */
.acara-grid { display: grid; gap: 1.6rem; }
.acara-card {
  background: #fffdf7; border-radius: 18px; overflow: hidden;
  border: 1px solid rgba(201,168,118,.35); box-shadow: 0 12px 32px rgba(62,44,34,.12);
  text-align: center; padding-bottom: 1.8rem;
}
.acara-photo { height: 190px; background-size: cover; background-position: center; }
.acara-card h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin: 1.4rem 0 .6rem; color: var(--bark); }
.acara-date { color: var(--terra); font-weight: 600; letter-spacing: .06em; margin-bottom: .8rem; line-height: 1.7; }
.acara-place { font-weight: 300; line-height: 1.7; margin-bottom: 1.2rem; padding: 0 1.4rem; }

/* ---------- GALERI ---------- */
.galeri { background: var(--bark-deep); }
.galeri .eyebrow { color: var(--kraft); }
.galeri .sec-title { color: var(--cream); }
.gal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.gal-grid figure {
  border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 1;
  border: 3px solid rgba(201,168,118,.25); transition: transform .35s, border-color .35s;
}
.gal-grid figure:hover { transform: scale(1.04) rotate(1deg); border-color: var(--kraft); }
.gal-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- RSVP ---------- */
.rsvp { background: var(--cream); }
#rsvp-form { display: flex; flex-direction: column; gap: .9rem; max-width: 440px; margin: 0 auto; }
#rsvp-form input, #rsvp-form select, #wish-form input, #wish-form textarea {
  padding: .9rem 1.1rem; border-radius: 12px; border: 1.5px solid #d8c9ac;
  font-family: inherit; font-size: 1rem; background: #fffdf7; color: var(--bark);
}
#rsvp-form input:focus, #wish-form input:focus, #wish-form textarea:focus { outline: 2px solid var(--kraft); border-color: var(--kraft); }
#rsvp-form button, #wish-form button[type="submit"] {
  padding: 1rem; border: none; border-radius: 999px; cursor: pointer;
  background: linear-gradient(135deg, var(--sage-deep), var(--sage));
  color: #fff; font-family: inherit; font-size: 1rem; font-weight: 600; letter-spacing: .05em;
  box-shadow: 0 8px 24px rgba(92,107,82,.4); transition: transform .25s;
}
#rsvp-form button:hover, #wish-form button[type="submit"]:hover { transform: translateY(-2px); }
#rsvp-thanks { text-align: center; margin-top: 1.2rem; font-size: 1.05rem; }

/* ---------- GIFT ---------- */
.gift { background: var(--cream-dim); text-align: center; }
.gift-desc { font-weight: 300; line-height: 1.8; max-width: 480px; margin: 0 auto 2rem; }
.gift-card {
  max-width: 420px; margin: 0 auto; background: linear-gradient(135deg, #1a3a5c, #0f2540);
  color: #fff; border-radius: 18px; padding: 1.8rem 1.5rem;
  box-shadow: 0 16px 40px rgba(15,37,64,.35); position: relative; overflow: hidden;
}
.gift-card::before {
  content: ""; position: absolute; top: -60px; right: -60px; width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(201,168,118,.25), transparent 70%);
}
.bank-logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #fff; margin-bottom: .8rem; }
.bank-name { font-weight: 500; letter-spacing: .05em; margin-bottom: .4rem; }
.bank-num { font-family: 'Playfair Display', serif; font-size: 1.7rem; letter-spacing: .12em; margin-bottom: 1.2rem; }
.copy {
  padding: .7rem 1.6rem; border-radius: 999px; border: 1.5px solid var(--kraft);
  background: transparent; color: var(--kraft); font-family: inherit; font-weight: 600; cursor: pointer;
  transition: all .3s;
}
.copy:hover { background: var(--kraft); color: #0f2540; }

/* ---------- WISHES ---------- */
.wishes { background: var(--cream); }
#wish-form { display: flex; flex-direction: column; gap: .9rem; max-width: 520px; margin: 0 auto 2.5rem; }
.voice-row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
#voice-btn {
  padding: .7rem 1.3rem; border-radius: 999px; border: 1.5px dashed var(--terra);
  background: transparent; color: var(--terra); font-family: inherit; font-weight: 600; cursor: pointer;
}
#voice-btn.recording { background: var(--terra); color: #fff; border-style: solid; animation: recPulse 1s infinite; }
@keyframes recPulse { 50% { opacity: .6; } }
#voice-status { font-size: .85rem; color: #8a7a68; }
#voice-preview { width: 100%; }
#wishes-list { display: flex; flex-direction: column; gap: 1rem; max-width: 520px; margin: 0 auto; }
.wish {
  background: #fffdf7; border: 1px solid rgba(201,168,118,.35); border-radius: 14px;
  padding: 1.1rem 1.3rem; box-shadow: 0 6px 18px rgba(62,44,34,.08);
  transform: rotate(-.4deg);
}
.wish:nth-child(even) { transform: rotate(.4deg); }
.wish b { color: var(--terra); font-size: .95rem; }
.wish p { margin-top: .4rem; font-weight: 300; line-height: 1.7; font-size: .95rem; }
.wish audio { width: 100%; margin-top: .6rem; }
.wish time { font-size: .75rem; color: #a08e76; }

/* ---------- ORDER CTA ---------- */
.order-cta { background: var(--bark); color: var(--cream); text-align: center; overflow: hidden; }
.order-cta::before {
  content: "❧"; position: absolute; font-size: 16rem; opacity: .05;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.maple-logo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin-bottom: 1.2rem; border: 3px solid var(--kraft); box-shadow: 0 0 30px rgba(201,168,118,.4); }
.order-cta h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; margin-bottom: .8rem; }
.order-cta p { font-weight: 300; line-height: 1.8; max-width: 440px; margin: 0 auto 1.6rem; }
.btn-order {
  display: inline-block; padding: 1rem 2.4rem; border-radius: 999px; text-decoration: none;
  background: linear-gradient(135deg, var(--kraft), var(--gold)); color: var(--bark-deep);
  font-weight: 700; letter-spacing: .04em; box-shadow: 0 10px 30px rgba(201,168,118,.45);
  animation: btnGlow 2.6s ease-in-out infinite;
}

footer { background: var(--bark-deep); color: #bfae94; text-align: center; padding: 2rem 1rem; font-size: .9rem; }
.foot-brand { margin-top: .4rem; font-size: .8rem; opacity: .7; }

/* ---------- LIGHTBOX ---------- */
#lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(20,12,8,.94);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
#lightbox[hidden] { display: none; }
#lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 10px; border: 4px solid var(--kraft); }
#lb-close {
  position: absolute; top: 1rem; right: 1.2rem; color: #fff; font-size: 1.8rem;
  cursor: pointer; background: rgba(0,0,0,.4); width: 44px; height: 44px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* ---------- MUSIC ---------- */
#music-toggle {
  position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 90;
  width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--kraft);
  background: rgba(42,30,22,.85); color: var(--kraft); font-size: 1.3rem; cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,.3); backdrop-filter: blur(4px);
  display: none;
}
body.opened #music-toggle { display: block; }
#music-toggle.off { opacity: .45; }

@media (min-width: 700px) {
  .acara-grid { grid-template-columns: 1fr 1fr; }
  .gal-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
