/* ==========================================================================
   LAYE PRO — shared design layer (public site + customer portal)
   Loaded after every page stylesheet so brand tokens stay consistent.
   ========================================================================== */

:root {
    /* Brand */
    --lp-brand: #f4512c;
    --lp-brand-600: #e2421f;
    --lp-brand-700: #c73717;
    --lp-brand-300: #ff8a5c;
    --lp-brand-50: #fff1ec;
    --lp-brand-100: #ffe2d7;
    --lp-grad: linear-gradient(100deg, #f4472a 0%, #ff7140 100%);
    --lp-grad-soft: linear-gradient(135deg, #fff4ef 0%, #ffe9e0 100%);

    /* Neutrals */
    --lp-ink: #111114;
    --lp-ink-2: #18181c;
    --lp-ink-3: #232329;
    --lp-text: #16161a;
    --lp-text-2: #4a4a55;
    --lp-muted: #80808c;
    --lp-line: #ecebe8;
    --lp-line-2: #e2e0dc;
    --lp-bg: #f7f6f4;
    --lp-surface: #ffffff;

    --lp-success: #16a34a;
    --lp-warning: #d97706;
    --lp-danger: #dc2626;

    --lp-radius-sm: 10px;
    --lp-radius: 14px;
    --lp-radius-lg: 20px;
    --lp-radius-xl: 28px;

    --lp-shadow-sm: 0 1px 2px rgba(17, 17, 20, .05), 0 1px 1px rgba(17, 17, 20, .03);
    --lp-shadow: 0 6px 20px -8px rgba(17, 17, 20, .14), 0 2px 6px rgba(17, 17, 20, .04);
    --lp-shadow-lg: 0 24px 48px -20px rgba(17, 17, 20, .28);
    --lp-shadow-brand: 0 10px 24px -10px rgba(244, 81, 44, .65);

    --lp-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --lp-display: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif;
    --lp-header-h: 72px;

    /* Map legacy variables used by existing page stylesheets onto the new brand */
    --primary: #f4512c;
    --primary-dark: #e2421f;
    --primary-light: #ff7140;
    --primary-rgb: 244, 81, 44;
}

/* --------------------------------------------------------------------------
   Base (public pages only)
   -------------------------------------------------------------------------- */
body.lp-public { -webkit-font-smoothing: antialiased; }
.lp-header, .lp-mobile-menu, .lp-footer { font-family: var(--lp-font); }

/* Light canvas only on the pages redesigned with LAYE Pro. Other public pages
   (FAQ, contact, organizers, login…) keep their own (dark) page styles. */
body.lp-page-home,
body.lp-page-events,
body.lp-page-event,
body.lp-page-checkout {
    font-family: var(--lp-font);
    color: var(--lp-text);
    background: var(--lp-bg);
}

.lp-page-home h1, .lp-page-home h2, .lp-page-home h3,
.lp-page-events h1, .lp-page-events h2, .lp-page-events h3,
.lp-page-event h1, .lp-page-event h2, .lp-page-event h3,
.lp-footer h4,
.lp-display { font-family: var(--lp-display); letter-spacing: -0.02em; }

.lp-public .container { max-width: 1320px; padding-left: 24px; padding-right: 24px; }

@media (max-width: 640px) {
    .lp-public .container { padding-left: 16px; padding-right: 16px; }
}

[hidden] { display: none !important; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
    font: 600 15px/1 var(--lp-font); text-decoration: none; white-space: nowrap; cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.lp-btn:active { transform: translateY(1px); }
.lp-btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.lp-btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }
.lp-btn-block { width: 100%; }
.lp-btn-primary { background: var(--lp-grad); color: #fff; box-shadow: var(--lp-shadow-brand); }
.lp-btn-primary:hover { filter: brightness(1.05); box-shadow: 0 14px 28px -10px rgba(244, 81, 44, .75); color: #fff; }
.lp-btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .22); background: transparent; }
.lp-btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .4); color: #fff; }
.lp-btn-outline { color: var(--lp-text); border-color: var(--lp-line-2); background: #fff; }
.lp-btn-outline:hover { border-color: var(--lp-text); color: var(--lp-text); }
.lp-btn-white { background: #fff; color: var(--lp-text); }
.lp-btn-white:hover { background: #fff5f1; color: var(--lp-brand-600); }
.lp-btn-soft { background: var(--lp-brand-50); color: var(--lp-brand-600); }
.lp-btn-soft:hover { background: var(--lp-brand-100); }

/* Existing buttons used across legacy public pages */
.lp-public .btn-primary,
.lp-public .btn.btn-primary {
    background: var(--lp-grad) !important;
    border-color: transparent !important;
    color: #fff !important;
    box-shadow: var(--lp-shadow-brand);
}

.lp-icon-btn {
    width: 42px; height: 42px; border-radius: 999px; border: 0; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    background: transparent; color: rgba(255, 255, 255, .85); font-size: 17px;
    transition: background .2s ease, color .2s ease;
}
.lp-icon-btn:hover { background: rgba(255, 255, 255, .09); color: #fff; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.lp-header.header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    height: var(--lp-header-h);
    background: rgba(17, 17, 20, .96);
    -webkit-backdrop-filter: saturate(160%) blur(18px);
    backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.lp-header.header.scrolled { background: rgba(17, 17, 20, .985); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .7); }

.lp-nav { height: 100%; display: flex; align-items: center; gap: 28px; }
.lp-logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.lp-logo-img { height: 36px; width: auto; display: block; }

.lp-nav-menu { display: flex; align-items: center; gap: 4px; margin: 0 auto 0 12px; padding: 0; list-style: none; }
.lp-nav-link {
    display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px;
    border-radius: 12px; color: rgba(255, 255, 255, .78); font: 500 14.5px/1 var(--lp-font);
    text-decoration: none; transition: background .2s ease, color .2s ease;
}
.lp-nav-link i { font-size: 14px; opacity: .9; }
.lp-nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.lp-nav-link.is-active { color: #ff8a5c; background: rgba(244, 81, 44, .14); }

.lp-nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.lp-nav-sep { width: 1px; height: 22px; background: rgba(255, 255, 255, .14); margin: 0 4px; }
.lp-header .mobile-toggle { display: none; }

@media (max-width: 1080px) {
    .lp-nav-link { padding: 0 11px; }
    .lp-nav-link i { display: none; }
}
@media (max-width: 920px) {
    .lp-nav-menu, .lp-nav-sep, .lp-hide-sm { display: none !important; }
    .lp-header .mobile-toggle { display: inline-flex; }
    .lp-logo-img { height: 32px; }
}

/* Mobile drawer */
.lp-mobile-menu.mobile-menu {
    position: fixed; inset: 0; z-index: 1001; padding: 18px 20px 28px;
    background: var(--lp-ink); color: #fff; display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .3s ease;
}
.lp-mobile-menu.mobile-menu.active { transform: translateX(0); }
.lp-mobile-menu .mobile-menu-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.lp-mobile-menu .mobile-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.lp-mobile-menu .mobile-nav a {
    display: flex; align-items: center; gap: 14px; padding: 15px 16px; border-radius: 14px; border: 0;
    color: rgba(255, 255, 255, .86); font: 600 17px/1.2 var(--lp-font); text-decoration: none;
}
.lp-mobile-menu .mobile-nav a i { width: 20px; color: rgba(255, 255, 255, .5); }
.lp-mobile-menu .mobile-nav a.is-active { background: rgba(244, 81, 44, .14); color: #ff8a5c; }
.lp-mobile-menu .mobile-nav a.is-active i { color: #ff8a5c; }
.lp-mobile-menu .mobile-auth { display: grid; gap: 10px; padding-top: 18px; }
.lp-mobile-menu .lp-btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .22); }

/* --------------------------------------------------------------------------
   Search modal (opened from the header search icon)
   -------------------------------------------------------------------------- */
.lp-public .search-modal .search-modal-content { border-radius: var(--lp-radius-lg); }
.lp-public .search-modal .search-icon-wrapper { background: var(--lp-grad); color: #fff; }
.lp-public .search-modal .category-chip input:checked + span { background: var(--lp-brand); border-color: var(--lp-brand); color: #fff; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.lp-footer { background: var(--lp-ink); color: rgba(255, 255, 255, .62); padding: 64px 0 0; font-size: 14.5px; }
.lp-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) 1.3fr; gap: 40px; padding-bottom: 48px; }
.lp-footer-brand p { margin: 18px 0 22px; line-height: 1.6; color: rgba(255, 255, 255, .72); }
.lp-footer-social { display: flex; gap: 10px; }
.lp-footer-social a {
    width: 38px; height: 38px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; transition: background .2s ease;
}
.lp-footer-social a:hover { background: var(--lp-brand); }
.lp-footer-col h4 { color: #fff; font: 700 15px/1.2 var(--lp-display); margin: 6px 0 18px; }
.lp-footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lp-footer-col a { color: rgba(255, 255, 255, .62); text-decoration: none; transition: color .2s ease; }
.lp-footer-col a:hover { color: #fff; }
.lp-pay-icons { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-pay-icons i {
    font-size: 26px; color: #fff; background: rgba(255, 255, 255, .07); border-radius: 8px;
    width: 52px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
}
.lp-footer-note { margin-top: 14px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.lp-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08); padding: 22px 0 28px;
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px;
}
.lp-footer-bottom p { margin: 0; }
.lp-footer-made i { color: var(--lp-brand); }

@media (max-width: 1024px) {
    .lp-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .lp-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .lp-footer { padding-top: 44px; }
    .lp-footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; }
    .lp-footer-pay { grid-column: 1 / -1; }
}

/* --------------------------------------------------------------------------
   Shared section + card primitives (home, catalogue, dashboard)
   -------------------------------------------------------------------------- */
.lp-section { padding: 44px 0; }
@media (max-width: 640px) { .lp-section { padding: 30px 0; } .lp-section-head { margin-bottom: 16px; } .lp-section-head p { font-size: 14px; } }
.lp-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.lp-section-head h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; color: var(--lp-text); margin: 0 0 6px; }
.lp-section-head p { margin: 0; color: var(--lp-muted); font-size: 15px; }
.lp-link {
    display: inline-flex; align-items: center; gap: 8px; color: var(--lp-brand-600);
    font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap;
}
.lp-link:hover { color: var(--lp-brand-700); }
.lp-link i { font-size: 12px; transition: transform .2s ease; }
.lp-link:hover i { transform: translateX(3px); }

/* Event card */
.lp-ecard {
    position: relative; display: flex; flex-direction: column; background: var(--lp-surface);
    border-radius: var(--lp-radius); overflow: hidden; border: 1px solid var(--lp-line);
    box-shadow: var(--lp-shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.lp-ecard:hover { transform: translateY(-4px); box-shadow: var(--lp-shadow); }
.lp-ecard-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--lp-ink-3); overflow: hidden; }
.lp-ecard-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.lp-ecard:hover .lp-ecard-media img { transform: scale(1.04); }
.lp-ecard-media.is-placeholder { display: flex; align-items: center; justify-content: center; background: var(--lp-grad); color: rgba(255, 255, 255, .85); font-size: 34px; }
.lp-date {
    position: absolute; top: 12px; left: 12px; z-index: 2; min-width: 50px; padding: 7px 8px 6px;
    background: #fff; border-radius: 12px; text-align: center; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .45);
    display: flex; flex-direction: column; line-height: 1;
}
.lp-date strong { font: 800 20px/1 var(--lp-display); color: var(--lp-brand-600); }
.lp-date span { font: 700 10.5px/1 var(--lp-font); color: var(--lp-brand-600); text-transform: uppercase; margin-top: 4px; letter-spacing: .04em; }
.lp-ecard-tag {
    position: absolute; top: 12px; right: 12px; z-index: 2; padding: 6px 10px; border-radius: 999px;
    background: rgba(17, 17, 20, .62); color: #fff; font: 600 11.5px/1 var(--lp-font);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.lp-ecard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.lp-ecard-title { font: 700 15.5px/1.3 var(--lp-display); color: var(--lp-text); margin: 0; }
.lp-ecard-title a { color: inherit; text-decoration: none; }
.lp-ecard-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.lp-ecard-loc { display: flex; gap: 7px; align-items: flex-start; color: var(--lp-muted); font-size: 13px; line-height: 1.4; margin: 0; }
.lp-ecard-loc i { color: var(--lp-brand); margin-top: 2px; font-size: 12px; }
.lp-ecard-price { margin: auto 0 0; padding-top: 4px; font-size: 13px; color: var(--lp-text-2); }
.lp-ecard-price strong { color: var(--lp-text); font-weight: 800; font-size: 14.5px; }

.lp-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.lp-skeleton {
    border-radius: var(--lp-radius); min-height: 270px;
    background: linear-gradient(100deg, #efedea 30%, #f7f6f4 50%, #efedea 70%) 0 0 / 300% 100%;
    animation: lpShimmer 1.4s linear infinite;
}
@keyframes lpShimmer { to { background-position: -150% 0; } }

.lp-empty { padding: 36px; text-align: center; border: 1px dashed var(--lp-line-2); border-radius: var(--lp-radius); color: var(--lp-muted); background: #fff; }

@media (prefers-reduced-motion: reduce) {
    .lp-ecard, .lp-ecard-media img, .lp-btn { transition: none; }
    .lp-skeleton { animation: none; }
}

/* --------------------------------------------------------------------------
   Shared hero bits + category chips (home & catalogue)
   -------------------------------------------------------------------------- */
/* ---------- Category chips ---------- */
.h-cats { padding: 26px 0 0; }
.h-cats-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; scroll-snap-type: x proximity; }
.h-cats-row::-webkit-scrollbar { display: none; }
.h-cat {
    flex: 1 0 auto; scroll-snap-align: start; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px; padding: 0 22px; border-radius: 999px; background: #fff; border: 1px solid var(--lp-line);
    color: var(--lp-text); font-weight: 600; font-size: 14.5px; text-decoration: none; white-space: nowrap;
    box-shadow: var(--lp-shadow-sm); transition: all .2s ease;
}
.h-cat i { color: var(--lp-brand); font-size: 16px; transition: color .2s ease; }
.h-cat:hover { background: var(--lp-grad); border-color: transparent; color: #fff; box-shadow: var(--lp-shadow-brand); transform: translateY(-1px); }
.h-cat:hover i { color: #fff; }
.h-cat-all { background: var(--lp-ink); color: #fff; border-color: var(--lp-ink); }
.h-cat-all i { color: #fff; }

.h-hero-kicker {
    display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px;
    background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12);
    font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .86);
}
.h-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff7140; box-shadow: 0 0 0 4px rgba(255, 113, 64, .25); }
.h-search-icon {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--lp-brand-50); color: var(--lp-brand-600); font-size: 15px;
}
.h-cat.is-active { background: var(--lp-grad); border-color: transparent; color: #fff; box-shadow: var(--lp-shadow-brand); }
.h-cat.is-active i { color: #fff; }
button.h-cat { font-family: var(--lp-font); cursor: pointer; }

/* --------------------------------------------------------------------------
   Scroll reveal (assets/js/laye-reveal.js)
   -------------------------------------------------------------------------- */
.lp-reveal-ready .lp-reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity .7s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms),
        transform .7s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms);
}
.lp-reveal-ready .lp-reveal.is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .lp-reveal-ready .lp-reveal { opacity: 1; transform: none; transition: none; }
}
