/* ============================================================
   Kasaya.ph — Global Layout
   Structural layout classes. No colors here.
   ============================================================ */

/* ── Hero layouts ───────────────────────────────────────────── */
.hero-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.hero-split {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
}

/* ── Section layouts ────────────────────────────────────────── */
.section-padded {
    padding: 52px 28px;
}
.section-numbered {
    display: flex;
    gap: 16px;
    padding: 48px 24px;
}
.section-numbered .inv-section-number {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
    width: 44px;
    margin-top: -6px;
    opacity: .12;
}
.section-numbered .inv-section-body {
    flex: 1;
    min-width: 0;
}

/* ── Card layouts ───────────────────────────────────────────── */
.card-bordered {
    border-radius: 4px;
    padding: 20px;
}
.card-accent-top {
    padding: 16px;
}
.card-accent-left {
    padding: 12px 16px;
}

/* ── Grid layouts ───────────────────────────────────────────── */
.inv-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.inv-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}
.inv-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Venue grid ──────────────────────────────────────────────── */
.inv-venue-grid {
    display: flex;
    flex-direction: column; /* ← mobile: stacked one per row */
    width: 100%;
    margin-top: 14px;
}

.inv-venue-card {
    width: 100%; /* ← full width on mobile — not crowded ✓ */
}

/* ── Sponsor grid — stacked on mobile ───────────────────────── */
.inv-sponsor-grid {
    display: flex;
    flex-direction: column; /* ← mobile: one per row */
    width: 100%;
    justify-content: center;
}


/* ── Entourage row ──────────────────────────────────────────── */
.inv-ent-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.inv-ent-half {
    flex: 1;
    min-width: 0;
}

.inv-ent-center {
    flex-shrink: 0;
    padding-top: 28px;
}

/* ── Entourage wrap — centers the two columns ────────────────── */
.inv-entourage-wrap {
    display: flex;
    justify-content: center;
    width: 100%;
}

    /* ── Grid inside — side by side, centered ────────────────────── */
    .inv-entourage-wrap .inv-sponsor-grid {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: flex-start;
    }

    /* ── Each half — left aligned text ──────────────────────────── */
    .inv-entourage-wrap .inv-ent-half {
        min-width: 110px;
        max-width: 200px;
        text-align: left;
    }

    /* ── Member item — dot + name left aligned ───────────────────── */
    .inv-entourage-wrap .inv-member-item {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
    }

/* ── Program list ───────────────────────────────────────────── */
.inv-program-wrap {
    width: 100%; /* ← mobile */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}


.inv-ent-half   { flex: 1; min-width: 0; }
.inv-ent-center { flex-shrink: 0; padding-top: 28px; }

/* ── Program list ───────────────────────────────────────────── */
.inv-program-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.inv-prog-time {
    min-width: 60px;
    text-align: right;
    flex-shrink: 0;
    padding-top: 3px;
}
.inv-prog-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}
.inv-prog-dot  {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 4px;
    border: 2px solid currentColor;
}
.inv-prog-dot-filled { background: currentColor; }
.inv-prog-line {
    width: 1px;
    flex: 1;
    min-height: 20px;
    margin-top: 3px;
}
.inv-prog-body { padding-bottom: 8px; }

/* ── Timeline ───────────────────────────────────────────────── */
.inv-timeline-wrap {
    width: 80%; /* ← mobile */
    margin: 0 auto;
}

.inv-timeline {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
}
.inv-timeline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 5px 0;
    max-width: 320px;
}
.inv-timeline-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0;
    margin-left: -25px;
}

/* ── RSVP form ──────────────────────────────────────────────── */
.inv-rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.inv-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.inv-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* ── Closing ────────────────────────────────────────────────── */
.inv-closing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 32px;
    position: relative;
    overflow: hidden;
}

/* ── Utility ────────────────────────────────────────────────── */
.inv-center    { text-align: center; align-items: center; }
.inv-full      { width: 100%; }
.inv-scroll-x  { overflow-x: auto; scrollbar-width: none; }
.inv-scroll-x::-webkit-scrollbar { display: none; }



/* ── Card layouts ───────────────────────────────────────────── */

/* Style 1 — Bordered: full border box */
.card-bordered {
    border-radius: 8px;
    border: 1px solid var(--t-border);
}

/* Style 2 — Accent Top: colored top bar */
.card-accent-top {
    border-radius: 8px;
    border: 1px solid var(--t-border);
    border-top: 3px solid var(--t-primary);
}

/* Style 3 — Accent Left: colored left bar */
.card-accent-left {
    border-radius: 8px;
    border: 1px solid var(--t-border);
    border-left: 3px solid var(--t-primary);
}

/* Style 4 — Shadow: soft elevation */
.card-shadow {
    border-radius: 8px;
    border: 1px solid var(--t-card-shadow-close);
    box-shadow: 0 12px 40px var(--t-card-shadow), /* main lift */
    0 4px 12px var(--t-card-shadow-close), /* mid layer */
    0 1px 3px rgba(0,0,0,.06), /* tight edge */
    inset 0 1px 0 rgba(255,255,255,.9); /* top inner highlight */
}

/* Style 5 — Flat: no border, just background contrast */
.card-flat {
    border-radius: 8px;
    border: none;
}

/* Style 6 — Pill: very rounded corners */
.card-pill {
    border-radius: 16px;
    border: 1px solid var(--t-border);
}

/* Style 7 — Ghost: transparent background, dashed border */
.card-ghost {
    border-radius: 8px;
    border: 1.5px dashed var(--t-border);
    background: transparent !important;
}

/* ── Card background — all card styles use this ─────────────── */
.card-bordered,
.card-accent-top,
.card-accent-left,
.card-shadow,
.card-flat,
.card-pill {
    background: var(--t-card-bg) !important;
}

/* ── Gallery wrap ────────────────────────────────────────────── */
.inv-gallery-wrap {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.inv-gallery-label {
    text-align: center;
    letter-spacing: .18em;
    text-transform: uppercase;
}

/* ── Scroll hint ─────────────────────────────────────────────── */
.inv-gallery-hint {
    text-align: center;
    font-family: 'Jost', sans-serif;
    font-size: 9px;
    letter-spacing: .14em;
    color: var(--t-body-text);
    opacity: .35;
}

/* ── Gallery container ───────────────────────────────────────── */
.inv-gallery-container {
    position: relative;
    width: 100%;
}

/* ── Scroll track ────────────────────────────────────────────── */
.inv-gallery-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 20px 80px; /* ← side padding so active is centered */
    scroll-behavior: smooth;
    align-items: center; /* ← vertically center all items */
}

    .inv-gallery-scroll::-webkit-scrollbar {
        display: none;
    }

/* ── Each item ───────────────────────────────────────────────── */
.inv-gallery-item {
    flex-shrink: 0;
    width: 200px;
    height: 260px;
    border-radius: 6px;
    overflow: hidden;
    scroll-snap-align: center; /* ← snap to center ✓ */
    position: relative;
    cursor: pointer;
    /* ── Default — smaller and dimmed ────────────────────────── */
    transform: scale(0.85);
    opacity: 0.6;
    filter: brightness(0.85);
    /* ── Smooth transition ───────────────────────────────────── */
    transition: transform .4s cubic-bezier(.25, 1, .5, 1), opacity .4s ease, filter .4s ease, box-shadow .4s ease;
}

    /* ── Active center item — via JS class ───────────────────────── */
    .inv-gallery-item.is-active {
        transform: scale(1);
        opacity: 1;
        filter: brightness(1);
        box-shadow: 0 12px 36px rgba(0,0,0,.20), 0 4px 12px rgba(0,0,0,.12);
    }

/* ── Image fills frame ───────────────────────────────────────── */
.inv-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* ── Arrows — desktop only ───────────────────────────────────── */
.inv-gallery-arrow {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--t-border);
    background: var(--t-body-bg);
    color: var(--t-body-text);
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

    .inv-gallery-arrow:hover {
        background: var(--t-primary);
        color: #fff;
        border-color: var(--t-primary);
    }

.inv-gallery-arrow-left {
    left: -16px;
}

.inv-gallery-arrow-right {
    right: -16px;
}

/* ── Countdown ───────────────────────────────────────────────── */
.inv-countdown-grid {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    flex-wrap: nowrap;
    width: 100%;
}

.inv-countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.inv-countdown-num {
    font-size: 32px;
    line-height: 1;
    font-weight: 300;
}

.inv-countdown-label {
    font-size: 8px !important;
    letter-spacing: .1em;
    text-transform: uppercase;
    opacity: .65;
    text-align: center;
}

.inv-countdown-sep {
    font-size: 28px;
    font-weight: 300;
    opacity: .4;
    padding-top: 2px; /* ← align with numbers ✓ */
    flex-shrink: 0;
    align-self: flex-start;
}

/* ── Big venue box ───────────────────────────────────────────── */
.inv-venue-big-box {
    padding: 0;
    overflow: hidden;
    border-radius: 12px;
}

.inv-venue-big-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 18px;
}

.inv-venue-big-icon {
    font-size: 24px;
    flex-shrink: 0;
    margin-top: 2px;
}

.inv-venue-big-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.inv-venue-big-divider {
    height: 1px;
    margin: 0 18px;
}

.inv-venue-big-icon {
    flex-shrink: 0;
    width: 58px;
    height: 58px;
    margin-top: 2px;
    border-radius: 50%;
    border: 1.5px solid var(--t-border);
    background: var(--t-primary);
    opacity: 0.40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1px;
}

    .inv-venue-icon-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

@media (min-width: 768px) {
    .inv-timeline-wrap {
        width: 60%; /* ← desktop */
    }

    .inv-program-wrap {
        width: 80%;
    }

    .inv-venue-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* ← side by side on desktop ✓ */
    }

    .inv-sponsor-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }


    .inv-entourage-wrap {
        width: 100%;
        margin: 0 auto;
    }

    .inv-gallery-item {
        width: 240px;
        height: 300px;
    }

    .inv-gallery-arrow {
        display: flex;
    }
    /* hide mobile hint on desktop */
    .inv-gallery-hint {
        display: none;
    }
}
