/* Event Integration (eventintegration.sitey.pk), 1 Oct 2026.
   The page takes the colours of the room you pick: blue and white for a welcome baby, purple night for a bride to be,
   marigold for mayoun, blush for nikkah, black and gold for a birthday, red for a surprise. The opening walks you
   through their own door (their TikTok clip, frame by frame with the scroll). */
@property --bg { syntax: '<color>'; inherits: true; initial-value: #e9f1fb; }
@property --ink { syntax: '<color>'; inherits: true; initial-value: #0d2340; }
@property --soft { syntax: '<color>'; inherits: true; initial-value: #47607e; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #1f6fd1; }
@property --glow { syntax: '<color>'; inherits: true; initial-value: #6fb4ff; }
@property --card { syntax: '<color>'; inherits: true; initial-value: #ffffff; }
@property --line { syntax: '<color>'; inherits: true; initial-value: #c9d9ee; }
@property --neon { syntax: '<color>'; inherits: true; initial-value: #1f6fd1; }

:root {
  --bg: #e9f1fb; --ink: #0d2340; --soft: #47607e; --accent: #1f6fd1; --glow: #6fb4ff; --card: #ffffff; --line: #c9d9ee; --neon: #1f6fd1;
  --on-accent: #ffffff;
  --wa: #25d366;
  --display: 'Gloock', 'Times New Roman', serif;
  --script: 'Yellowtail', 'Brush Script MT', cursive;
  --text: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
  transition: --bg .7s ease, --ink .7s ease, --soft .7s ease, --accent .7s ease, --glow .7s ease, --card .7s ease, --line .7s ease, --neon .7s ease;
}
/* one room per occasion */
:root[data-occ="bride"] { --bg: #170d22; --ink: #f6eefc; --soft: #c8b6dc; --accent: #a35cff; --glow: #ff7ad9; --card: #23142f; --line: #3d2854; --neon: #ffe6fb; }
:root[data-occ="mayoun"] { --bg: #fff1bd; --ink: #3a2403; --soft: #6b4f1c; --accent: #c97a00; --glow: #ffc21a; --card: #fff9e6; --line: #ecd27e; --neon: #b56d00; }
:root[data-occ="nikkah"] { --bg: #f7edf0; --ink: #3b1f2b; --soft: #7a5463; --accent: #b4466c; --glow: #ffb3c8; --card: #fffafb; --line: #e9d0d8; --neon: #b4466c; }
:root[data-occ="birthday"] { --bg: #100e0b; --ink: #f7efdc; --soft: #c9bb96; --accent: #d6ae45; --glow: #ffd36b; --card: #1c1913; --line: #3a3324; --neon: #fff1c9; --on-accent: #100e0b; }
:root[data-occ="surprise"] { --bg: #2b070d; --ink: #fff0f1; --soft: #e6b8bf; --accent: #ff2d4f; --glow: #ff8fa1; --card: #3b0d16; --line: #5a1a26; --neon: #ffe3e7; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--text); }
[lang="ur"] body { font-family: 'Noto Nastaliq Urdu', var(--text); font-size: 17px; line-height: 2.2; }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2 { margin: 0; font-family: var(--display); font-weight: 400; letter-spacing: -.01em; text-wrap: balance; }
[lang="ur"] h1, [lang="ur"] h2 { font-family: 'Noto Nastaliq Urdu', serif; font-weight: 700; letter-spacing: 0; line-height: 1.9; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.wa { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* the bar on top: the name, the other language, WhatsApp */
.top { position: fixed; z-index: 20; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--gutter); pointer-events: none; }
.top > * { pointer-events: auto; }
.brand { display: grid; line-height: 1.1; text-decoration: none; padding: 8px 14px 8px; border-radius: 14px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand b { font: 400 21px/1.1 var(--display); white-space: nowrap; }
.brand span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
[lang="ur"] .brand span { letter-spacing: 0; font-size: 13px; line-height: 1.8; }
.top__end { display: flex; align-items: center; gap: 10px; }
.lang { display: grid; place-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); text-decoration: none; font-weight: 600; }
.lang[lang="ur"] { font-family: 'Noto Nastaliq Urdu', serif; font-size: 15px; }
.wa-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45); }
.wa-btn .wa { width: 26px; height: 26px; }

/* the opening: their own door, opened by the scroll */
.door { position: relative; height: 320vh; }
.door__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.door__blur { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); max-width: none; object-fit: cover; filter: blur(28px) saturate(1.2); opacity: 0; }
.door__arch { position: absolute; left: 0; top: 0; width: 300px; height: 530px; overflow: hidden; border-radius: 999px 999px 0 0; background: #0d2340; box-shadow: 0 40px 80px -40px rgba(13, 35, 64, .55), 0 0 0 10px var(--card); will-change: transform, width, height; }
.door__view { width: 100%; height: 100%; object-fit: cover; }
.door__words { position: absolute; inset-inline-start: var(--gutter); top: 50%; width: min(520px, 42vw); transform: translateY(-50%); display: grid; gap: 18px; }
.door__words h1 { font-size: clamp(3rem, 1.6rem + 5vw, 6.4rem); line-height: .95; }
[lang="ur"] .door__words h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.6rem); line-height: 1.8; }
.door__words p { font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); color: var(--soft); max-width: 40ch; }
.door__hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--soft); white-space: nowrap; }
[lang="ur"] .door__hint { letter-spacing: 0; text-transform: none; font-size: 14px; }
.door__hint span { width: 1.5px; height: 34px; background: linear-gradient(var(--soft), transparent); transform-origin: top; animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
.door__caption { position: absolute; inset-inline-start: var(--gutter); bottom: 28px; max-width: calc(100% - 2 * var(--gutter)); padding: 10px 16px; border-radius: 12px; background: rgba(13, 35, 64, .72); color: #fff; font-size: 14px; font-weight: 500; opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.door__caption.is-on { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .door { height: 260vh; }
  .door__words { inset-inline: var(--gutter); top: 84px; width: auto; transform: none; gap: 8px; }
  .door__words h1 { font-size: clamp(2.5rem, 11vw, 3.4rem); }
  [lang="ur"] .door__words h1 { font-size: clamp(2rem, 9vw, 2.8rem); line-height: 1.9; }
  .door__words p { font-size: 15px; }
  .door__hint { bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .door { height: auto; }
  .door__stage { position: relative; }
  .door__hint { display: none; }
  .door__hint span { animation: none; }
}

/* their numbers on TikTok, each with what it counts */
.figs { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 44px); }
.figs__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
.fig { display: grid; gap: 4px; padding-top: 16px; border-top: 2px solid var(--ink); }
.fig b { font: 400 clamp(2.6rem, 1.6rem + 3.6vw, 4.6rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.fig span { color: var(--soft); font-size: 15px; }
.figs__src { margin-top: 18px; font-size: 14px; color: var(--soft); }
.figs__src a { text-underline-offset: 3px; }
@media (max-width: 640px) { .figs__row { grid-template-columns: minmax(0, 1fr); gap: 18px; } .fig { grid-template-columns: auto minmax(0, 1fr); align-items: baseline; column-gap: 16px; } .fig b { font-size: 2.6rem; } }

/* what are we celebrating: the chips change the whole page, the sign glows like their neon signs */
.occ { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.occ h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { min-height: 46px; padding: 0 20px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-weight: 600; cursor: pointer; transition: background .3s, border-color .3s, color .3s; }
.chip:hover { border-color: var(--accent); }
.chip[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
[lang="ur"] .chip { font-size: 15px; padding-block: 4px; }
.sign { display: grid; gap: 10px; margin-top: clamp(28px, 4vw, 44px); }
.sign__name { font: 400 clamp(3.2rem, 2rem + 5.4vw, 6.6rem)/1.05 var(--script); color: var(--neon); text-shadow: 0 0 4px var(--glow), 0 0 16px var(--glow), 0 0 42px color-mix(in srgb, var(--glow) 70%, transparent); transition: opacity .25s; }
:root[data-occ="baby"] .sign__name, :root[data-occ="mayoun"] .sign__name, :root[data-occ="nikkah"] .sign__name { text-shadow: 0 0 18px color-mix(in srgb, var(--glow) 65%, transparent), 0 0 44px color-mix(in srgb, var(--glow) 45%, transparent); }
[lang="ur"] .sign__name { font: 700 clamp(2.2rem, 1.4rem + 3.4vw, 4rem)/2 'Noto Nastaliq Urdu', serif; }
.sign__name.is-out { opacity: 0; }
.sign__line { max-width: 56ch; font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); color: var(--soft); }
.sign__price { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1.5px dashed var(--accent); font-weight: 600; }
.sign__price[hidden] { display: none; }

/* the reel: their clips for that occasion, playing silently while in view; a tap plays one with sound */
.reel { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 21vw, 240px); justify-content: center; gap: clamp(12px, 1.6vw, 20px); margin-top: clamp(26px, 3.4vw, 40px); padding: 6px var(--gutter) 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reel::-webkit-scrollbar { display: none; }
.clip { position: relative; display: grid; gap: 10px; padding: 0; border: 0; background: none; text-align: start; cursor: pointer; scroll-snap-align: center; animation: rise .5s ease both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.clip__film { position: relative; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 18px; background: var(--card); box-shadow: 0 24px 40px -26px rgba(0, 0, 0, .6); }
.clip__film img, .clip__film video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip__film video { opacity: 0; transition: opacity .4s; }
.clip__film video.is-on { opacity: 1; }
.clip__play { position: absolute; inset-inline-end: 10px; bottom: 10px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; transition: transform .25s; }
.clip__play svg { width: 16px; height: 16px; fill: currentColor; margin-inline-start: 2px; }
[dir="rtl"] .clip__play svg { transform: scaleX(-1); margin-inline: 0 2px; }
.clip:hover .clip__play { transform: scale(1.1); }
.clip__name { font-weight: 600; line-height: 1.3; }
[lang="ur"] .clip__name { font-size: 15px; line-height: 1.9; }
.clip__meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 13.5px; color: var(--soft); font-variant-numeric: tabular-nums; }
.clip__meta b { color: var(--accent); font-weight: 700; }
@media (max-width: 760px) { .reel { grid-auto-columns: 62vw; justify-content: start; } }
@media (prefers-reduced-motion: reduce) { .clip { animation: none; } }

/* extras: tap to add to the slip */
.extras { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.extras h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); }
.extras__p { margin-top: 8px; color: var(--soft); }
.extras__row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.extra { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 22px 0 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); font-size: 17px; font-weight: 600; cursor: pointer; transition: border-color .25s, transform .25s; }
[dir="rtl"] .extra { padding: 0 16px 0 22px; }
.extra:hover { border-color: var(--accent); }
.extra__tick { position: relative; width: 24px; height: 24px; border: 2px solid var(--line); border-radius: 7px; transition: background .2s, border-color .2s; }
.extra[aria-pressed="true"] { border-color: var(--accent); }
.extra[aria-pressed="true"] .extra__tick { background: var(--accent); border-color: var(--accent); }
.extra[aria-pressed="true"] .extra__tick::after { content: ''; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid var(--on-accent); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* the booking slip */
.book { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.book__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.book__words { display: grid; gap: 14px; position: sticky; top: 96px; }
.book__words h2 { font-size: clamp(2.2rem, 1.4rem + 3vw, 4rem); line-height: 1; }
[lang="ur"] .book__words h2 { line-height: 1.9; }
.book__words p { color: var(--soft); max-width: 38ch; }
.book__call a { font-weight: 700; color: var(--ink); }
.slip { position: relative; display: grid; gap: 16px; padding: clamp(22px, 3vw, 34px); border-radius: 22px; background: var(--card); color: var(--ink); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .55);
  -webkit-mask: radial-gradient(circle 14px at 0 64px, transparent 98%, #000) , radial-gradient(circle 14px at 100% 64px, transparent 98%, #000); -webkit-mask-composite: source-in; mask: radial-gradient(circle 14px at 0 64px, transparent 98%, #000) intersect, radial-gradient(circle 14px at 100% 64px, transparent 98%, #000); }
.slip__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 18px; margin-bottom: 4px; border-bottom: 2px dashed var(--line); font: 400 1.5rem/1.2 var(--display); }
[lang="ur"] .slip__head { font: 700 1.25rem/2 'Noto Nastaliq Urdu', serif; }
.slip__head span { font: 600 12px var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.slip__two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.field { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field > span, .field > legend { padding: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
[lang="ur"] .field > span, [lang="ur"] .field > legend { letter-spacing: 0; font-size: 14px; }
.field input[type="text"], .field input[type="date"], .field select { width: 100%; min-height: 50px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--ink); font-size: 16px; color-scheme: light dark; }
.field input:focus, .field select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 600; transition: background .2s, border-color .2s, color .2s; }
.seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.send { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; margin-top: 6px; border: 0; border-radius: 999px; background: var(--wa); color: #fff; font-size: 17px; font-weight: 700; cursor: pointer; box-shadow: 0 16px 30px -16px rgba(37, 211, 102, .8); transition: transform .2s; }
.send:hover { transform: translateY(-2px); }
@media (max-width: 860px) { .book__grid { grid-template-columns: minmax(0, 1fr); } .book__words { position: static; } }
@media (max-width: 420px) { .slip__two { grid-template-columns: minmax(0, 1fr); } }

/* footer */
.foot { padding: 40px 0 56px; border-top: 1px solid var(--line); font-size: 15px; color: var(--soft); }
.foot__grid { display: grid; gap: 8px; }
.foot__tag { font: 400 clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem)/1.2 var(--display); color: var(--ink); margin-bottom: 8px; }
[lang="ur"] .foot__tag { font: 700 1.6rem/2 'Noto Nastaliq Urdu', serif; }
.foot a { text-underline-offset: 3px; }
.foot__by { margin-top: 10px; font-size: 13.5px; }

/* one clip with its sound */
.watch { width: min(420px, 92vw); padding: 0; border: 0; border-radius: 20px; background: #000; color: #fff; overflow: hidden; }
.watch::backdrop { background: rgba(0, 0, 0, .78); }
.watch video { width: 100%; max-height: 78vh; aspect-ratio: 9 / 16; background: #000; }
.watch__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; font-size: 15px; }
.watch__bar a { color: #fff; font-weight: 600; }
.watch__bar button { min-height: 40px; padding: 0 16px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; background: none; color: #fff; cursor: pointer; }

/* phones: the six occasions in one row you can swipe, instead of four rows of chips */
@media (max-width: 640px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .slip__head span { display: none; }
}
