/* ASVA: sliders, galleries, promotions, videos, restaurant order, animated pages, per-page themes. Loaded after site.css */

/* ---------- photo slider (hero + page banners) ---------- */
.slides, .slides .slide { position: absolute; inset: 0; }
.slides .slide { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.slides .slide.on { opacity: 1; }
.slides.fit-contain .slide { background-size: contain; background-repeat: no-repeat; background-color: #062f40; }
.slides.fx-zoom .slide.on { animation: kenburns 9s ease-out forwards; }
.slides::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,47,64,.5), rgba(6,47,64,.75)); }
.dots { position: absolute; left: 0; right: 0; bottom: 100px; z-index: 3; display: flex; justify-content: center; gap: .6rem; }
.dot { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: transparent; cursor: pointer; transition: .25s; }
.dot.on { background: #fff; transform: scale(1.25); }
.page-hero { position: relative; overflow: hidden; }
.page-hero.has-slides { display: grid; align-items: center; padding: 5rem 0; }
.page-hero.has-slides .dots { bottom: 16px; }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.12); } }

/* ---------- reveal on scroll ---------- */
.js .will-reveal { opacity: 0; }
.js .will-reveal.in { opacity: 1; animation: rise .75s cubic-bezier(.2, .7, .2, 1) var(--d, 0s) backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
.checks.stagger li { padding: .1rem 0; }
.pulse { display: inline-block; animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.05); } }

/* ---------- gallery + lightbox ---------- */
.gallery .g-main { position: relative; }
.gallery .g-main img { cursor: zoom-in; transition: opacity .25s, transform .4s; }
.gallery .g-main img.swap { opacity: 0; transform: scale(1.03); }
.g-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: .2s; z-index: 2; }
.g-nav:hover { background: var(--coral); }
.g-nav.prev { left: 12px; } .g-nav.next { right: 12px; }
.g-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: .8rem; padding: .2rem .65rem; border-radius: 999px; }
.g-thumbs { display: flex; gap: .55rem; margin-top: .6rem; overflow-x: auto; padding-bottom: .3rem; }
.g-thumb { flex: 0 0 88px; height: 62px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; opacity: .65; transition: .2s; background: none; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-thumb.on, .g-thumb:hover { opacity: 1; border-color: var(--coral); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.92); display: grid; place-items: center; animation: fadein .25s; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lightbox .lb-close { position: absolute; top: 14px; right: 18px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; }
@keyframes fadein { from { opacity: 0; } }

/* ---------- promotion boxes ---------- */
.promo-section { padding: 2.2rem 0 0; }
.promo-wrap { display: flex; flex-wrap: wrap; gap: 1.1rem; justify-content: center; align-items: stretch; }
.promo { position: relative; display: flex; align-items: center; gap: 1.2rem; border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.promo:hover { transform: translateY(-4px) rotate(-.4deg); }
.promo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.22) 50%, transparent 65%); transform: translateX(-120%); animation: shine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 55%, 100% { transform: translateX(120%); } }
.promo-badge { flex: none; font-weight: 800; font-family: 'Playfair Display', serif; border-radius: 50%; display: grid; place-items: center; }
.promo-body { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.promo-title { font-family: 'Playfair Display', serif; line-height: 1.2; }
.promo-text { opacity: .92; }
.promo-cta { flex: none; border: 2px solid; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.promo-small { padding: .8rem 1.1rem; flex: 0 1 340px; }
.promo-small .promo-badge { width: 46px; height: 46px; font-size: 1rem; }
.promo-small .promo-title { font-size: 1.02rem; } .promo-small .promo-text { font-size: .84rem; } .promo-small .promo-cta { display: none; }
.promo-medium { padding: 1.2rem 1.5rem; flex: 1 1 440px; max-width: 640px; }
.promo-medium .promo-badge { width: 66px; height: 66px; font-size: 1.35rem; }
.promo-medium .promo-title { font-size: 1.35rem; } .promo-medium .promo-cta { padding: .45rem 1rem; font-size: .9rem; }
.promo-large { padding: 2rem 2.4rem; flex: 1 1 100%; }
.promo-large .promo-badge { width: 96px; height: 96px; font-size: 2rem; }
.promo-large .promo-title { font-size: clamp(1.5rem, 3.2vw, 2.3rem); } .promo-large .promo-text { font-size: 1.05rem; } .promo-large .promo-cta { padding: .7rem 1.5rem; }
.summary .promo-line { color: var(--ok); font-weight: 600; }

/* ---------- video boxes ---------- */
.video-section { padding-top: 3rem; }
.videos { margin-top: 1rem; }
.video-box { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--white); border: 1px solid var(--line); }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-box figcaption { padding: 1rem 1.3rem 1.2rem; }
.video-box figcaption h3 { margin: 0 0 .3rem; font-size: 1.15rem; }
.video-box figcaption p { margin: 0; color: var(--muted); font-size: .94rem; }
/* homepage ad area: two columns (a customer's ad | ASVA's ad), one centred column when only one side is filled */
/* picture-only ad: show the whole poster at its own proportions (not cropped to 16:9) */
.video-frame.is-image { aspect-ratio: auto; background: transparent; }
.video-frame.is-image img { display: block; width: 100%; height: auto; }
.video-frame.is-image a { display: block; }
.ad-col { display: grid; gap: 1.2rem; align-content: start; min-width: 0; }
.videos.single { max-width: 860px; margin-left: auto; margin-right: auto; }
.ad-badge { position: absolute; top: .7rem; left: .7rem; z-index: 2; padding: .2rem .65rem; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }

/* ---------- restaurant ---------- */
.fav-section { overflow: hidden; }
.carousel { position: relative; margin-top: 1.6rem; }
.c-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: .4rem .2rem 1rem; }
.c-track::-webkit-scrollbar { display: none; }
.fav-card { flex: 0 0 min(280px, 72vw); scroll-snap-align: start; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: var(--shadow); background: #000; transition: transform .35s; }
.fav-card:hover { transform: translateY(-6px); }
.fav-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .6s; }
.fav-card:hover img { transform: scale(1.08); }
.fav-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.2rem 1rem .9rem; background: linear-gradient(0deg, rgba(0,0,0,.82), transparent); color: #fff; display: flex; justify-content: space-between; align-items: flex-end; gap: .6rem; }
.fav-info h3 { color: #fff; font-size: 1.05rem; margin: 0; }
.fav-info .price { color: #ffd9a8; }
.c-nav { position: absolute; top: 45%; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); font-size: 1.7rem; line-height: 1; cursor: pointer; z-index: 2; color: var(--deep); }
.c-nav.prev { left: -8px; } .c-nav.next { right: -8px; }
.chips { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1.2rem 0 1.6rem; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: .45rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; color: var(--muted); text-transform: capitalize; transition: .2s; }
.chip:hover { transform: translateY(-2px); }
.chip.on { background: var(--coral); border-color: var(--coral); color: #fff; }
.menu-cat { transition: opacity .35s; }
.menu-cat.is-hidden { display: none; }
.menu-cat h3 { text-transform: capitalize; }
.dish-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.dish { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .25s, box-shadow .25s, border-color .25s; }
.dish:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dish.picked { border-color: var(--coral); box-shadow: 0 0 0 2px rgba(242,98,63,.25); }
.dish-img { overflow: hidden; aspect-ratio: 16 / 10; }
.dish-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.dish:hover .dish-img img { transform: scale(1.1); }
.dish-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.dish-head { display: flex; justify-content: space-between; gap: .6rem; align-items: baseline; }
.dish-head h4 { margin: 0; font-size: 1rem; }
.dish p { margin: 0; color: var(--muted); font-size: .88rem; }
.stepper { margin-top: auto; padding-top: .5rem; display: inline-flex; align-items: center; gap: .2rem; align-self: flex-start; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 1.2rem; line-height: 1; cursor: pointer; color: var(--ink); transition: .15s; }
.stepper button:hover { background: var(--coral); border-color: var(--coral); color: #fff; }
.stepper output { min-width: 2rem; text-align: center; font-weight: 700; }
.stepper output.bump { animation: bump .3s; }
@keyframes bump { 50% { transform: scale(1.5); color: var(--coral); } }
.order-box label { margin-bottom: .4rem; }
.order-list { list-style: none; margin: 0 0 .6rem; padding: 0; font-size: .92rem; }
.order-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px dashed var(--line); animation: rise .3s; }

/* ---------- animated event pages ---------- */
.fx-page { background: linear-gradient(135deg, var(--ocean), var(--deep)); }
.fx-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 1; }
.fx-layer span { position: absolute; display: block; }
.fx-party { background: linear-gradient(120deg, #3b0a63, #b4107a, #f2623f, #2a0a6b); background-size: 300% 300%; animation: gradshift 10s ease infinite; }
.fx-party .fx-layer::before, .fx-party .fx-layer::after { content: ''; position: absolute; top: -20%; width: 28%; height: 150%; background: linear-gradient(180deg, rgba(255,255,255,.35), transparent 70%); filter: blur(14px); transform-origin: top center; animation: beam 5s ease-in-out infinite alternate; }
.fx-party .fx-layer::before { left: 12%; } .fx-party .fx-layer::after { right: 12%; animation-delay: -2.5s; animation-direction: alternate-reverse; }
.fx-party .fx-layer span { bottom: -40px; color: rgba(255,255,255,.75); animation: floatup linear infinite; text-shadow: 0 0 12px #fff; }
.equalizer { display: flex; align-items: flex-end; gap: 5px; height: 54px; margin-top: 1.4rem; }
.equalizer i { width: 8px; height: 100%; background: linear-gradient(180deg, #ffd9a8, #f2623f); border-radius: 3px; transform-origin: bottom; animation: eq .9s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -.13s); }
.fx-cinema { background: linear-gradient(180deg, #050816, #14123a 60%, #2b1d4d); background-size: 100% 200%; animation: gradshift 18s ease infinite; }
.fx-cinema .fx-layer span { border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; animation: twinkle ease-in-out infinite; opacity: 0; }
.fx-cinema .fx-layer::after { content: '🎬'; position: absolute; right: 8%; bottom: 14%; font-size: 3rem; opacity: .3; animation: pulse 3s ease-in-out infinite; }
.fx-waves { background: linear-gradient(180deg, #0b4f6c, #1d8fa8); }
.fx-waves .fx-layer::before, .fx-waves .fx-layer::after { content: ''; position: absolute; left: -50%; bottom: -12px; width: 200%; height: 90px; background: radial-gradient(ellipse at 50% 100%, rgba(255,255,255,.28) 0 55%, transparent 56%) 0 0 / 120px 90px repeat-x; animation: wave 9s linear infinite; }
.fx-waves .fx-layer::after { bottom: -26px; opacity: .55; animation-duration: 14s; animation-direction: reverse; }
.fx-sparkle { background: linear-gradient(135deg, #6a1b3a, #c9a45c 120%); background-size: 200% 200%; animation: gradshift 12s ease infinite; }
.fx-sparkle .fx-layer span { top: -24px; opacity: .9; animation: confetti linear infinite; }
@keyframes gradshift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes beam { from { transform: rotate(-22deg); } to { transform: rotate(22deg); } }
@keyframes floatup { from { transform: translateY(0) rotate(0); opacity: 0; } 15% { opacity: 1; } to { transform: translateY(-110vh) rotate(40deg); opacity: 0; } }
@keyframes eq { from { transform: scaleY(.12); } to { transform: scaleY(1); } }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes wave { to { transform: translateX(120px); } }
@keyframes confetti { to { transform: translateY(75vh) rotate(540deg); opacity: 0; } }

/* ---------- page themes (set per page in the admin) ---------- */
body.custom-bg .hero::after { display: none; }
body.custom-bg .section.alt { background: transparent; }
body.theme-dark { --ink: #fff; --muted: #cfd6da; --line: rgba(255,255,255,.2); --sand: rgba(0,0,0,.35); --sand-2: rgba(0,0,0,.45); --ocean: #5cc3d9; --shadow: 0 10px 30px rgba(0,0,0,.5); }
body.theme-dark h1, body.theme-dark h2, body.theme-dark h3, body.theme-dark h4, body.theme-dark .logo, body.theme-dark .burger, body.theme-dark .summary strong { color: #fff; }
body.theme-dark a { color: #8fd8ea; }
body.theme-dark .btn, body.theme-dark .promo, body.theme-dark .fav-info a { color: #fff; }
body.theme-dark .btn.outline { color: #fff; border-color: #fff; }
body.theme-dark .header, body.theme-dark .nav { background: rgba(0,0,0,.88); }
body.theme-dark .nav a, body.theme-dark .lang a { color: #fff; }
body.theme-dark .nav a.active, body.theme-dark .nav a:hover { color: var(--coral); }
body.theme-dark .card, body.theme-dark .panel, body.theme-dark .dish, body.theme-dark .video-box, body.theme-dark .tabs button, body.theme-dark .chip, body.theme-dark .stepper button { background: rgba(0,0,0,.5); color: #fff; }
body.theme-dark .tabs button.on, body.theme-dark .chip.on { background: var(--coral); }
body.theme-dark input, body.theme-dark select, body.theme-dark textarea { background: rgba(0,0,0,.55); color: #fff; border-color: rgba(255,255,255,.3); }
body.theme-dark .summary, body.theme-dark .tag { background: rgba(255,255,255,.1); color: #fff; }
body.theme-dark .alert.ok { background: #0f2a1d; color: #8fe0b5; border-color: #1f5c40; }
body.theme-dark .alert.bad { background: #2e1512; color: #ffb4aa; border-color: #6b2a22; }
body.theme-dark .c-nav { background: #000; color: #fff; }

@media (max-width: 760px) {
    .dots { bottom: 62px; }
    .page-hero.has-slides { padding: 3rem 0; }
    .page-hero.has-slides .dots { bottom: 10px; }
    .dish-grid { grid-template-columns: 1fr; }
    .promo { flex-wrap: wrap; }
    .promo-large { padding: 1.4rem; } .promo-large .promo-badge { width: 70px; height: 70px; font-size: 1.5rem; }
    .promo-cta { display: none; }
    .c-nav { display: none; }
    .g-thumb { flex-basis: 70px; height: 50px; }
    .equalizer { height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
    .promo::after, .pulse, .equalizer i, .fx-layer span, .fx-party, .fx-cinema, .fx-sparkle, .slides.fx-zoom .slide.on { animation: none !important; }
    .js .will-reveal { opacity: 1; }
}

/* "Payer via PayPal": blue button + the account email with a copy button */
.paypal-open { margin: .9rem 0 0; display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .5rem; border: 1px solid #cfe0ee; border-radius: 14px; background: #f1f7fc; color: #1b2b3a; }
.paypal-open.center { justify-content: center; }
.paypal-open .pp-btn { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1rem; border-radius: 9px; background: #0b6bb5; color: #fff; font-weight: 600; line-height: 1.15; text-decoration: none; transition: background .2s; }
.paypal-open .pp-btn:hover { background: #09538d; color: #fff; }
.paypal-open .pp-logo { width: 1.15rem; height: 1.15rem; flex: none; }
.paypal-open .pp-ext { width: .95rem; height: .95rem; flex: none; opacity: .85; }
.paypal-open .pp-mail { flex: 1 1 8rem; min-width: 0; text-align: center; font-size: .92rem; font-weight: 500; overflow-wrap: anywhere; }
.paypal-open .pp-copy { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #0b6bb5; cursor: pointer; }
.paypal-open .pp-copy:hover { background: rgba(11,107,181,.12); }
.paypal-open .pp-copy svg { width: 1.05rem; height: 1.05rem; }
.paypal-open .pp-copy.copied { color: #1a8f4c; }
body.theme-dark .paypal-open { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
body.theme-dark .paypal-open .pp-copy { color: #fff; }
