/* ─────────────────────────────────────────────
   MARIAMI BIRTHDAY - style.css
   Mobile-first  |  Breakpoints: 481px, 769px
───────────────────────────────────────────── */

/* ─── FONTS ─── */
@font-face {
  font-family: 'SS GEO Brain Melt';
  src: url('SS GEO Brain Melt.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: block; /* safe only because the loader covers the block period */
}

/* ─── RESET ─── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a, .a {
    text-decoration: none;
}

/* ─── VARIABLES ─── */
:root {
  --pink:       #f4a4be;
  --pink-deep:  #e8789a;
  --pink-pale:  #fde8ef;
  --rose:       #c4607e;
  --rose-soft:  #c4607e;
  --gold:       #d4956a;
}

/* ─── BASE ─── */
/* overflow-x belongs on html alone. On body it also forces overflow-y to
   compute as auto, which turns body into a scroll container that can never
   scroll - the trackpad wheel gesture latches onto that dead scroller. */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}

body {
  font-family: 'SS GEO Brain Melt', serif;
  background-color: var(--pink-pale);
}

/* ─── CUSTOM SCROLLBAR ─── */
::-webkit-scrollbar         { width: 6px; }
::-webkit-scrollbar-track   { background: var(--pink-pale); }
::-webkit-scrollbar-thumb   { background: var(--pink-deep); border-radius: 3px; }
*                            { scrollbar-width: thin; scrollbar-color: var(--pink-deep) var(--pink-pale); }

/* ─── DESKTOP NOTICE (hidden on mobile) ─── */
.desktop-notice {
  display: none;
}

/* ─── BALLOON INTRO LAYER ─── */
#balloon-layer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.8s ease;
}

#balloon-layer.fade-out {
  opacity: 0;
}

.heart-balloon {
  position: absolute;
  bottom: -160px;
  left: var(--b-x, 50%);
  width: var(--b-size, 70px);
  height: calc(var(--b-size, 70px) * 1.5);
  display: block;
  animation: balloon-rise var(--b-dur, 3.2s) ease-in var(--b-delay, 0s) both;
}


@keyframes balloon-rise {
  0%   { transform: translateY(0) rotate(var(--b-tilt, 0deg)); }
  /* --vh, not vh: a keyframe cannot be overridden by the .vh-lock class. */
  100% { transform: translateY(calc(var(--vh) * -100 - 320px)) rotate(var(--b-tilt, 0deg)); }
}

/* ─── INTRO REVEAL ─── */
[data-reveal] {
  opacity: 0;
}

[data-reveal].revealed {
  opacity: 1;
  transition: opacity 0.8s ease;
}

/* ─── SITE WRAP ─── */
.site-wrap {
  position: relative;
}






/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  background-image: url('https://weddsite.b-cdn.net/showcase/birthday-8/bg.png');
  background-size: cover;
  background-position: center top;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* ─── DECORATIVE ELEMENTS (all absolute) ─── */
.deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  display: block;
}

/* Corner flowers */
.flowers-tl {
  top: 0;
  left: 0;
  width: 8rem;
  z-index: 2;
}
.flowers-tr {
  top: 0;
  right: -6%;
  width: 10rem;
  z-index: 2;
}

.flowers-br {
  bottom: -17%;
  right: 50%;
  left: 50%;
    transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Crown - centered top, floats */
.crown {
  top: 6px;
  left: 50%;
  width: 110px;
  z-index: 3;
  animation: crown-float 8.2s ease-in-out infinite;
}

/* Unicorn - left edge, upper-middle */
.unicorn {
  top: 18%;
  left: -10px;
  width: 122px;
  z-index: 2;
animation: float-bob 8.8s ease-in-out infinite;
}

/* Castle - right edge, upper-middle */
.castle {
top: 15%;
  right: -6px;
  width: 132px;
  z-index: 2;
filter: drop-shadow(0 8px 14px rgba(180, 60, 100, 0.18));
animation: float-bob 8.8s ease-in-out infinite;
}

/* Butterflies - right side */
.butterflies {
  top: 37%;
  right: 8px;
  width: 66px;
  z-index: 2;
  animation: float-bob 3.8s ease-in-out infinite;
}

/* Vine - left side, lower-middle */
.vine-left {
  top: 40%;
  left: -3%;
  width: 7rem;
  z-index: 1;
animation: float-bob 12.8s ease-in-out infinite;
}

/* Floating deco - right side, lower-middle */
.deco-right {
  top: 38%;
  right: -4%;
  width: 62px;
  z-index: 1;
}

/* Wand - lower-left */
.wand {
  bottom: 22%;
  left: 4%;
  width: 80px;
  z-index: 2;
  transform: rotate(-12deg);
  transform-origin: bottom center;
  animation: wand-sway 4s ease-in-out infinite;
}

/* Balloons - lower-right */
.balloons {
  bottom: 18%;
  right: -6%;
  width: 92px;
  z-index: 2;
  animation: float-bob 4.2s ease-in-out infinite 0.6s;
}

/* ─── HERO MAIN CONTENT ─── */
.hero-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 92px;
  padding-bottom: 118px;
  padding-left: 16px;
  padding-right: 16px;
}

/* Photo + number wrapper - floats together */
.hero-float {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 20rem;
  animation: float-cloud 10s ease-in-out infinite;
  margin-right: 1.3rem;
}

.mariami-photo {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Balloon-style "5" */
.candle{
    width: 10rem;
    height: auto;
    object-fit: contain;
    margin-top: -10%;
    z-index: 10;
    animation: float-cloud 12s ease-in-out infinite;
}

/* Name */
.hero-name {
  font-family: 'SS GEO Brain Melt', serif;
  font-weight: 900;
  font-size: 36px;
  color: var(--rose);
  letter-spacing: 7px;

  text-align: center;
animation: float-cloud 12s ease-in-out infinite;
}

.kids-dream{
    width: 6rem;
    animation: float-cloud 12s ease-in-out infinite;

}
.kids-dream img{
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Invite line */
.hero-invite {
  font-family: 'SS GEO Brain Melt', serif;
  font-weight: 400;
  font-size: 14px;
  color: var(--rose-soft);
  margin-top: 10px;
  letter-spacing: 0.5px;
  text-align: center;
animation: float-cloud 12s ease-in-out infinite;
}

/* Date */
.hero-date {
  font-family: 'SS GEO Brain Melt', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--rose);
  margin-top: 0px;
  letter-spacing: 4px;
  text-align: center;
animation: float-cloud 12s ease-in-out infinite;
}
.hero-time {
  font-family: 'SS GEO Brain Melt', serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--rose);
  margin-top: 8px;
  letter-spacing: 4px;
  text-align: center;
animation: float-cloud 12s ease-in-out infinite;
}
.hero-address {
  font-size: 14px;
color: var(--rose) !;
animation: float-cloud 12s ease-in-out infinite;
margin-top: 3px;
    letter-spacing: 4px;
    text-align: center;
    font-family: 'SS GEO Brain Melt', serif;

}

/* ─── SPARKLES ─── */
.sparkles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  pointer-events: none;
}

.sparkle::before {
  content: '✦';
  color: var(--spark-color, var(--pink));
  font-size: inherit;
  display: block;
  animation: sparkle-pulse var(--spark-dur, 2s) ease-in-out infinite var(--spark-delay, 0s);
}

/* ─── KEYFRAMES ─── */
@keyframes crown-float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(-4px); }
}

@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-9px); }
}

@keyframes float-cloud {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-11px); }
}

@keyframes wand-sway {
  0%, 100% { transform: rotate(-12deg); }
  50%       { transform: rotate(-4deg); }
}

@keyframes flutter {
  0%, 100% { transform: translateY(0) scale(1); }
  40%       { transform: translateY(-7px) scale(1.05); }
  70%       { transform: translateY(-3px) scale(0.97); }
}

@keyframes sparkle-pulse {
  0%, 100% { opacity: 0;   transform: scale(0.2) rotate(0deg);   }
  50%       { opacity: 0.9; transform: scale(1)   rotate(180deg); }
}



/* Bottom flowers - lives in site-wrap, bleeds across hero/program boundary */
.flowers-br-bleed {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    pointer-events: none;
    user-select: none;
    z-index: 10;
    top: -8%;
}

/* ─── PROGRAM SECTION ─── */
.program {
  position: relative;
  overflow-y: visible;
  overflow-x: clip;
  background-image: url('https://weddsite.b-cdn.net/showcase/birthday-8/bg.png');
  background-size: cover;
  background-position: center center;
  padding-top: 8rem;
  padding-bottom: 200px; /* space for carriage at bottom */
}

/* Shared deco rule for program section */
.prog-deco {
  position: absolute;
  pointer-events: none;
  user-select: none;
  display: block;
}

/* Butterflies - top-left corner */
.prog-butterflies {
  top: 7rem;
  right: 10px;
  width: 72px;
  z-index: 2;
animation: float-bob 12.8s ease-in-out infinite;
}

/* Wand - top-right, angled */
.prog-wand {
top: 6rem;
  left: 12px;
  width: 68px;
  z-index: 2;
  transform: rotate(22deg);
  transform-origin: bottom center;
  animation: wand-sway 5s ease-in-out infinite;
}

/* Balloons - left side, mid-section */
.prog-balloons {
  bottom: 10%;
  left: -14px;
  width: 82px;
  z-index: 2;
  animation: float-bob 5s ease-in-out infinite 0.4s;
}

/* Vine decorations - lower left & right */
.prog-vine-l {
    top: 30%;
    left: -3%;
    width: 7rem;
    z-index: 1;
    animation: float-bob 12.8s ease-in-out infinite;
}
.prog-vine-r {
  top: 47%;
  right: -6%;
  width: 78px;
  z-index: 1;
  animation: float-bob 10s ease-in-out infinite 1s;
}

/* Carriage - bottom center */
.prog-carriage {
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 88%;
  max-width: 340px;
  z-index: 2;
}

.prog-flower-bl{
    bottom: 0;
        left: 0;
    width:8rem;
    z-index: 12;
}
.prog-flower-br{
    bottom: 0;
    right: 0;
    width:8rem;
    z-index: 12;
}

/* ─── PROGRAM INNER ─── */
.program-inner {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-left: 20px;
  padding-right: 20px;
}

.program-title {
  font-family: 'SS GEO Brain Melt', serif;
  font-size: 22px;
  color: var(--rose);
  letter-spacing: 5px;
  text-align: center;
  margin-bottom: 36px;
}

/* ─── PROGRAM LIST ─── */
.program-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
}

.prog-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 10px 2px;
  background: none;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.2s ease;
animation: float-bob 12.8s ease-in-out infinite;
}

.prog-item:active {
  transform: scale(0.97);
}

.prog-item--rev {
  flex-direction: row-reverse;
}

.prog-img {
  width: 8rem;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(180, 60, 100, 0.15));
}

/* Fairies are wider - give them more room */
.prog-img--fairies {
  width: 100px;
  height: auto;
object-fit: contain;
}
.prog-img--paint {
  width: 100px;
}

.prog-label {
  font-family: 'SS GEO Brain Melt', serif;
  font-size: 18px;
  color: var(--rose);
  letter-spacing: 1px;
  line-height: 1.4;
  flex: 1;
  text-align: center;
  text-shadow: 0 1px 6px rgba(255,255,255,0.7);
}

/* ─── FOOTER ─── */
.site-footer {
  background-color: var(--rose);
  padding: 10px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  opacity: 0.3;
  transition: opacity 0.3s ease;
}

.footer-credit:hover {
  opacity: 1;
}

.footer-logo {
  width: 42px;
  height: auto;
  display: block;
}

.footer-credit span {
  font-family: 'SS GEO Brain Melt', serif;
  font-size: 13px;
  color: white;
  letter-spacing: 1px;
}

/* ─── PROGRAM MODALS ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background-color: rgba(180, 80, 110, 0.38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  position: relative;
  background: linear-gradient(160deg, #fff5f8 0%, #fce8ef 100%);
  border-radius: 28px;
  padding: 36px 28px 32px;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 48px rgba(180, 60, 100, 0.22);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  opacity: 0;
}

.modal-overlay.active .modal-box {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 20px;
  color: var(--rose-soft);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.modal-img {
  width: 110px;
  height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(180, 60, 100, 0.18));
}

.modal-title {
  font-family: 'SS GEO Brain Melt', serif;
  font-size: 20px;
  color: var(--rose);
  letter-spacing: 2px;
  text-align: center;
}

.modal-body {
  font-family: 'SS GEO Brain Melt', serif;
  font-size: 14px;
  color: var(--rose-soft);
  text-align: center;
  line-height: 1.7;
  letter-spacing: 0.5px;
}

/* ─── PROGRAM 481px+ ─── */
@media (min-width: 481px) {
  .prog-butterflies { width: 68px; }
  .prog-wand        { width: 80px; }
  .prog-balloons    { width: 96px; }
  .prog-vine-l      { width: 74px; }
  .prog-vine-r      { width: 68px; }
  .prog-carriage    { max-width: 400px; }
  .prog-img         { width: 90px; height: 90px; }
  .prog-img--fairies { width: 108px; height: 90px; }
  .prog-label       { font-size: 19px; }
  .program-title    { font-size: 26px; }
}

/* ─── 481px+ ─── */
@media (min-width: 481px) {
  .flowers-tl   { width: 162px; }
  .flowers-tr   { width: 138px; }
  .flowers-bl   { width: 166px; }
  .flowers-br   { width: 148px; }
  .crown        { width: 148px; }
  .unicorn      { width: 150px; }
  .castle       { width: 160px; }
  .butterflies  { width: 76px; top: 36%; }
  .vine-left    { width: 60px; }
  .deco-right   { width: 70px; }
  .wand         { width: 92px; }
  .balloons     { width: 106px; }
  .mariami-photo { width: 68%; max-width: 340px; }
  .age-number   { font-size: 130px; }
  .hero-name    { font-size: 40px; }
  .hero-invite  { font-size: 15px; }
  .hero-date    { font-size: 20px; }
}

/* ─── 769px+ (desktop → show notice, hide site) ─── */
@media (min-width: 769px) {
  .desktop-notice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    background-color: var(--pink-pale);
    z-index: 9999;
    gap: 20px;
  }

  .desktop-notice__logo {
    width: 52px;
    opacity: 0.8;
  }

  .desktop-notice p {
    font-family: 'SS GEO Brain Melt', serif;
    font-size: 18px;
    color: var(--rose-soft);
    text-align: center;
    padding: 0 32px;
  }

  .site-wrap {
    display: none;
  }
}


/* ===========================================================================
   Viewport pin, intro scroll lock + loading screen
   ---------------------------------------------------------------------------
   --vh is written by the inline script in <head> off visualViewport and re-pinned
   by script.js for the first 6s only, so an in-app browser's sliding nav bar
   cannot resize the hero. The 100vh/100svh floors on .hero stay as the no-JS
   fallback and MUST come before the .vh-lock rule below.

   The balloon intro holds the page with a JS gesture trap (script.js), never
   overflow: hidden on the document, which freezes Chrome iOS's viewport short.
   =========================================================================== */

:root {
  --vh: 1vh;
}

.vh-lock .hero {
  min-height: calc(var(--vh) * 100);
}

html.is-locked,
html.is-locked body {
  overscroll-behavior: none;
  touch-action: none;
}

/* The balloons must not rise unseen behind the spinner. */
.is-loading body *:not(.loader):not(.loader__spinner) {
  animation-play-state: paused !important;
}

.loader {
  position: fixed;
  inset: 0;
  /* Out-ranks the balloon layer (200) and the desktop notice (9999). */
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--pink-pale);
  opacity: 1;
  transition: opacity 0.55s ease;
}

.loader.is-hidden {
  opacity: 0;
}

.loader.is-gone {
  display: none;
}

.loader__spinner {
  display: block;
  width: 40px;
  height: 40px;
  border: 2px solid rgba(232, 120, 154, 0.25);
  border-top-color: var(--pink-deep);
  border-radius: 50%;
  animation: loader-spin 0.9s linear infinite;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}
