/* ============================================================
   ivs-actionbar: sticky bottom action bar (komponen.md, ivs-actionbar).
   The tour V5 bar (tour-v5.css, .tv5-actionbar*) lifted into a shared
   component with the same look and motion: a compact square ink box,
   flush to the bottom edge, centred; summary | phone | email | CTA.
   .ivs-ab is the transparent full-width positioner the JS toggles
   (.is-tucked slides it down); only .ivs-ab-row is visible.
   ============================================================ */

.ivs-ab {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    justify-content: center;
    pointer-events: none;               /* only the box catches clicks */
    transition: transform .55s cubic-bezier(.16, .84, .28, 1), visibility 0s;
}
/* Tucked away = also out of the tab order: visibility flips after the slide
   so the bar is not focusable while off screen. */
.ivs-ab.is-tucked { transform: translateY(100%); visibility: hidden; transition-delay: 0s, .55s; }

.ivs-ab-row {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    max-width: calc(100vw - 40px);
    padding: .75rem .8rem .75rem 1.6rem;
    background: var(--v5-ink, #201f1d);
    color: #f3f1ec;
    border-radius: 0;                   /* square */
    box-sizing: border-box;
}
@media (min-width: 64rem) { .ivs-ab-row { gap: 1.8rem; } }

.ivs-ab-summary {
    position: relative;
    margin: 0;
    font-family: var(--v5-font-body, Georgia, serif);
    font-size: .9rem;
    line-height: 1.35;
    color: #f3f1ec;
    min-width: 0;
}
@media (min-width: 40rem) { .ivs-ab-summary { font-size: 1rem; } }
/* Thin divider between the summary and the contact/CTA cluster. */
.ivs-ab-summary::after {
    content: "";
    position: absolute;
    right: -.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, .18);
}
@media (max-width: 40rem) { .ivs-ab-summary::after { display: none; } }
.ivs-ab-strong { font-weight: 700; color: #fff; }
.ivs-ab-muted { color: #b8b2a6; }
/* On the smallest screens the summary keeps its strong half only. */
@media (max-width: 30rem) { .ivs-ab-muted { display: none; } }

.ivs-ab-contact { display: flex; align-items: center; gap: .75rem; flex: 0 0 auto; }
@media (min-width: 40rem) { .ivs-ab-contact { gap: 1.25rem; } }
.ivs-ab .ivs-ab-link {
    display: none;
    align-items: center;
    gap: .5rem;
    font-family: var(--v5-font-label, sans-serif);
    font-size: .86rem;
    color: #cfc9bd;
    text-decoration: none;
}
@media (hover: hover) { .ivs-ab .ivs-ab-link:hover { color: #fff; } }
@media (min-width: 48rem) { .ivs-ab .ivs-ab-link--phone { display: inline-flex; } }
@media (min-width: 64rem) { .ivs-ab .ivs-ab-link--email { display: inline-flex; } }
.ivs-ab-icon { color: var(--v5-olive-300, #a9b58f); }
.ivs-ab-link-text { display: none; }
@media (min-width: 64rem) { .ivs-ab-link-text--phone { display: inline; } }
@media (min-width: 80rem) { .ivs-ab-link-text--email { display: inline; } }

.ivs-ab .ivs-ab-cta {
    white-space: nowrap;
    padding: .625rem 1.25rem;
    font-size: .74rem;
    letter-spacing: .1em;
    color: #fff;
}
@media (min-width: 40rem) { .ivs-ab .ivs-ab-cta { padding-inline: 1.5rem; } }

/* Summary and contact drift up in sequence as the bar reveals. */
.ivs-ab-item {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.2, .6, .2, 1);
}
.ivs-ab:not(.is-tucked) .ivs-ab-item { opacity: 1; transform: none; }
.ivs-ab:not(.is-tucked) .ivs-ab-item:nth-child(1) { transition-delay: .12s; }
.ivs-ab:not(.is-tucked) .ivs-ab-item:nth-child(2) { transition-delay: .2s; }

/* Optional short CTA label: the full one until the screen gets narrow. */
.ivs-ab-cta-short { display: none; }

/* Phone: the bar spans the width, the summary stays on one line (ellipsis
   if it must) and the CTA keeps its full size. */
@media (max-width: 40rem) {
    .ivs-ab-row { width: calc(100vw - 20px); max-width: none; justify-content: space-between; gap: .8rem; padding: .6rem .6rem .6rem 1rem; }
    .ivs-ab-summary { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 30rem) {
    .ivs-ab-cta-full { display: none; }
    .ivs-ab-cta-short { display: inline; }
}

/* The floating call/menu buttons (ivs-fab, phones) step up over the bar,
   as they do over the tour bar. */
@media (max-width: 767px) {
    body:has(.ivs-ab) { --ivs-fab-clear: 56px; }
}

@media (prefers-reduced-motion: reduce) {
    .ivs-ab, .ivs-ab-item { transition: none; }
}
