/* =========================================================
   1. HoReCa — "Četiri staze, jedna dostava"
   Koncept: ponuda sosova kao mapa ski staza.
   ========================================================= */
.horeca {
    /* originalna podloga teme */
    --snow: #faf7f2;
    --panel: #FFFFFF;
    --ink: #241A14;
    --ash: #86796D;
    --hair: rgba(36, 26, 20, .14);
    --gold: #B48A2A;

    /* aktivna staza (JS menja) */
    --accent: #1E3A28;
    --ring: #1E3A28;

    --ease: cubic-bezier(.22, .61, .36, 1);
    --spring: cubic-bezier(.34, 1.4, .48, 1);

    position: relative;
    isolation: isolate;
    padding: 104px 0 108px;
    background-color: var(--snow);
    color: var(--ink);
    overflow: hidden;
}

.horeca *,
.horeca *::before,
.horeca *::after {
    box-sizing: border-box;
}

/* ---------------------------------------------------------
   Zaglavlje
   --------------------------------------------------------- */
.horeca__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 30px;
    padding-bottom: 34px;
    margin-bottom: 46px;
    border-bottom: 1px solid var(--hair);
}

.horeca__eyebrow {
    display: block;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3em;
    text-transform: uppercase;
    color: var(--ash);
    margin-bottom: 18px;
}

.horeca__title {
    font-family: "Bodoni Moda", Georgia, serif;
    font-weight: 500;
    font-size: clamp(38px, 4.6vw, 64px);
    line-height: .98;
    letter-spacing: -.01em;
    margin: 0 0 18px;
    color: var(--ink);
}

.horeca__title em {
    font-style: italic;
    color: var(--ink);
}

.horeca__lede {
    max-width: 46ch;
    margin: 0;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 19px;
    line-height: 1.5;
    color: var(--ash);
}

.horeca__seal {
    flex: 0 0 auto;
    text-align: right;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ash);
    border-right: 2px solid var(--gold);
    padding-right: 14px;
}

.horeca__seal b {
    display: block;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .18em;
    color: var(--ink);
}

/* ---------------------------------------------------------
   Tabla: staze | scena | specifikacija
   --------------------------------------------------------- */
.horeca__board {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr) 340px;
    gap: 0;
    align-items: stretch;
}

/* ---------- 1) rail sa stazama (signature) ---------- */
.hz-rail {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 4px 34px 4px 0;
}

.hz-rail__line {
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--hair);
}

.hz-rail__run {
    position: absolute;
    left: -1px;
    width: 4px;
    height: 0;
    top: 0;
    background: var(--accent);
    transition: transform .55s var(--spring), height .55s var(--spring), background-color .5s var(--ease);
}

.hz-run {
    position: relative;
    flex: 1 1 0;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 18px 10px 18px 22px;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
    color: inherit;
    transition: padding-left .45s var(--ease), opacity .35s var(--ease);
}

.hz-run + .hz-run {
    border-top: 1px solid var(--hair);
}

.hz-run__mark {
    display: block;
    width: 34px;
    height: 34px;
    opacity: .55;
    transform: scale(.88);
    transition: opacity .4s var(--ease), transform .5s var(--spring);
}

.hz-run__mark svg {
    display: block;
    width: 100%;
    height: 100%;
}

.hz-run__name {
    display: block;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--ash);
    transition: color .35s var(--ease), font-weight .2s linear;
}

.hz-run__grade {
    display: block;
    margin-top: 3px;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .13em;
    text-transform: uppercase;
    white-space: nowrap;
    color: rgba(134, 121, 109, .85);
    transition: color .35s var(--ease);
}

.hz-run:hover .hz-run__mark,
.hz-run:focus-visible .hz-run__mark {
    opacity: .9;
    transform: scale(1);
}

.hz-run:hover .hz-run__name {
    color: var(--ink);
}

.hz-run.is-active {
    padding-left: 30px;
}

.hz-run.is-active .hz-run__mark {
    opacity: 1;
    transform: scale(1);
}

.hz-run.is-active .hz-run__name {
    color: var(--ink);
    font-weight: 600;
}

.hz-run.is-active .hz-run__grade {
    color: var(--run);
}

.hz-run:focus {
    outline: none;
}

.hz-run:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: -4px;
}

/* ---------- 2) scena sa kurirom ---------- */
.hz-stage {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    background: var(--panel);
    border: 1px solid var(--hair);
    border-radius: 3px;
}

/* konture — mapa staza ispod svega */
.hz-stage__map {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 1;
    pointer-events: none;
}

.hz-stage__map svg {
    width: 100%;
    height: 100%;
}

/* brush krug u boji linije, iza kurira */
.hz-stage__discs {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hz-disc {
    position: absolute;
    left: 50%;
    top: 46%;
    width: 71%;
    max-width: 470px;
    height: auto;
    transform: translate(-50%, -50%) scale(.92) rotate(-3deg);
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s var(--ease), transform .8s var(--spring), visibility 0s linear .5s;
}

.hz-disc.is-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1) rotate(0deg);
    transition: opacity .45s var(--ease), transform .9s var(--spring), visibility 0s linear 0s;
}

/* padina na kojoj kurir stoji */
.hz-stage__slope {
    position: absolute;
    left: -4%;
    right: -4%;
    bottom: -2px;
    z-index: 2;
    height: 140px;
    pointer-events: none;
}

.hz-stage__slope svg {
    width: 100%;
    height: 100%;
}

.hz-stage__figures {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.hz-fig {
    position: absolute;
    left: 50%;
    bottom: 22px;
    width: auto;
    max-width: 82%;
    height: calc(100% - 104px);
    object-fit: contain;
    object-position: bottom center;
    transform: translate(-50%, 16px);
    opacity: 0;
    visibility: hidden;
    filter: drop-shadow(0 26px 30px rgba(36, 26, 20, .16));
    transition: opacity .5s var(--ease), transform .7s var(--ease), visibility 0s linear .5s;
}

.hz-fig.is-active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
    transition: opacity .5s var(--ease) .06s, transform .8s var(--ease) .06s, visibility 0s linear 0s;
}

/* oznaka staze u uglu scene */
.hz-stage__tag {
    position: absolute;
    z-index: 4;
    left: 24px;
    top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    height: 30px;
    padding: 0 14px 0 10px;
    background: var(--accent);
    color: #fff;
    border-radius: 2px;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    transition: background-color .5s var(--ease);
}

.hz-stage__tag svg {
    width: 13px;
    height: 13px;
}

/* ---------- 3) panel sa specifikacijom ---------- */
.hz-panel {
    position: relative;
    padding: 6px 0 6px 40px;
    display: flex;
    flex-direction: column;
}

.hz-doc {
    display: none;
    flex-direction: column;
    flex: 1 1 auto;
}

.hz-doc.is-active {
    display: flex;
    animation: hz-in .55s var(--ease) both;
}

@keyframes hz-in {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.hz-doc__badge {
    display: block;
    width: 82px;
    height: 42px;
    margin-bottom: 20px;
}

.hz-doc__badge img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}

.hz-doc__name {
    font-family: "Bodoni Moda", Georgia, serif;
    font-weight: 500;
    font-size: 32px;
    line-height: 1.1;
    margin: 0 0 8px;
    color: var(--ink);
}

.hz-doc__tag {
    display: block;
    font-family: "Bodoni Moda", Georgia, serif;
    font-style: italic;
    font-size: 16px;
    line-height: 1.4;
    color: var(--ash);
    margin-bottom: 28px;
}

.hz-spec {
    margin: 0 0 30px;
    padding: 0;
    border-top: 1px solid var(--hair);
}

.hz-spec__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
    border-bottom: 1px solid var(--hair);
}

.hz-spec dt {
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--ash);
    margin: 0;
}

.hz-spec dd {
    margin: 0;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.hz-actions {
    margin-top: auto;
    padding-top: 6px;
}

.hz-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    height: 52px;
    padding: 0 26px;
    border-radius: 2px;
    background: var(--accent);
    color: #fff;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    box-shadow: inset 0 -3px 0 var(--ring);
    transition: background-color .5s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}

.hz-cta svg {
    width: 18px;
    height: 10px;
    transition: transform .35s var(--ease);
}

.hz-cta:hover,
.hz-cta:focus-visible {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: inset 0 -3px 0 var(--ring), 0 16px 28px -16px rgba(36, 26, 20, .6);
}

.hz-cta:hover svg {
    transform: translateX(5px);
}

.hz-quiet {
    display: inline-block;
    margin-top: 16px;
    font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ash);
    border-bottom: 1px solid var(--hair);
    padding-bottom: 3px;
    transition: color .3s var(--ease), border-color .3s var(--ease);
}

.hz-quiet:hover {
    color: var(--ink);
    border-color: var(--ink);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 1199px) {
    .horeca__board {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 0 34px;
    }

    .hz-rail {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 0 0 26px;
        margin-bottom: 32px;
        border-bottom: 1px solid var(--hair);
    }

    .hz-rail__line {
        left: 0;
        right: 0;
        top: auto;
        bottom: 0;
        width: auto;
        height: 2px;
    }

    .hz-rail__run {
        left: 0;
        top: auto;
        bottom: -1px;
        width: 0;
        height: 4px;
        transition: transform .55s var(--spring), width .55s var(--spring), background-color .5s var(--ease);
    }

    .hz-run {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 4px 14px 4px 0;
        align-items: start;
    }

    .hz-run {
        flex: 0 1 auto;
    }

    .hz-run + .hz-run {
        border-top: 0;
        border-left: 1px solid var(--hair);
        padding-left: 20px;
    }

    .hz-run.is-active {
        padding-left: 0;
    }

    .hz-run + .hz-run.is-active {
        padding-left: 20px;
    }

    .hz-panel {
        padding-left: 0;
    }

    .hz-stage {
        min-height: 460px;
    }
}

@media (max-width: 767px) {
    .horeca {
        padding: 72px 0 76px;
    }

    .horeca__head {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        margin-bottom: 34px;
    }

    .horeca__seal {
        text-align: left;
        border-right: 0;
        border-left: 2px solid var(--gold);
        padding-right: 0;
        padding-left: 14px;
    }

    .horeca__board {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .hz-rail {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding-bottom: 0;
        margin-bottom: 28px;
        border-bottom: 0;
    }

    .hz-rail__line {
        display: none;
    }

    .hz-rail__run {
        display: none;
    }

    .hz-run {
        grid-template-columns: 26px minmax(0, 1fr);
        align-items: center;
        gap: 14px;
        min-height: 62px;
        padding: 12px 14px;
        border: 1px solid var(--hair);
        border-radius: 2px;
        background: rgba(255, 255, 255, .6);
        transition: background-color .35s var(--ease), border-color .35s var(--ease);
    }

    .hz-run + .hz-run {
        border-left: 1px solid var(--hair);
        padding-left: 14px;
    }

    .hz-run + .hz-run.is-active {
        padding-left: 14px;
    }

    .hz-run.is-active {
        padding-left: 14px;
        background: #fff;
        border-color: var(--run);
    }

    .hz-run__mark {
        width: 26px;
        height: 26px;
    }

    .hz-run__name {
        font-size: 18px;
    }

    .hz-run__grade {
        font-size: 10.5px;
        letter-spacing: .12em;
        white-space: normal;
    }

    .hz-stage {
        min-height: 400px;
        margin-bottom: 30px;
    }

    .hz-fig {
        max-width: 92%;
    }

    .hz-disc {
        width: 82%;
        top: 46%;
    }

    .hz-doc__name {
        font-size: 27px;
    }

    .hz-cta {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .horeca *,
    .horeca *::before,
    .horeca *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}

/* =========================================================
   2. Points of Sale — slick carousel
   ========================================================= */
.pos-section {
    position: relative;
}

.pos-section.bg-grey {
    background: var(--paper);
}

.pos-carousel {
    position: relative;
    margin: 0 -15px;
    opacity: 0;
    transition: opacity .4s var(--ease);
}

.pos-carousel.slick-initialized {
    opacity: 1;
}

.pos-carousel .slick-track {
    display: flex !important;
    padding: 10px 0 34px;
}

.pos-carousel .slick-slide {
    height: inherit !important;
    padding: 0 15px;
}

.pos-carousel .slick-slide > div {
    height: 100%;
}

.pos-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.pos-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px -24px rgba(36, 26, 20, .38);
}

.pos-thumb {
    position: relative;
    overflow: hidden;
    /* placeholder ratio 800x560 */
    aspect-ratio: 10 / 7;
    background: #f2ece1;
}

.pos-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.1s var(--ease);
}

.pos-card:hover .pos-thumb img {
    transform: scale(1.06);
}

.pos-thumb .pos-badge {
    position: absolute;
    left: 16px;
    top: 16px;
    z-index: 2;
    height: 30px;
    line-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--burgundy);
    color: #fff;
    font-family: "Rubik", sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.pos-thumb .pos-rating {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 2;
    height: 30px;
    line-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--ink);
    font-family: "Rubik", sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.pos-thumb .pos-rating i {
    color: var(--gold);
    margin-right: 4px;
    vertical-align: -1px;
}

.pos-thumb .pos-rating small {
    color: var(--smoke);
    font-size: 11px;
    margin-left: 3px;
}

.pos-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 26px 26px 28px;
}

.pos-content h3 {
    font-size: 22px;
    line-height: 1.25;
    margin: 0 0 4px;
}

.pos-content h3 a {
    color: var(--ink);
}

.pos-content h3 a:hover {
    color: var(--burgundy);
}

.pos-content .pos-kind {
    display: block;
    font-family: "Bodoni Moda", Georgia, serif;
    font-style: italic;
    font-size: 14px;
    color: var(--smoke);
    margin-bottom: 14px;
}

.pos-content > p {
    font-size: 14px;
    line-height: 1.65;
    color: #5d5248;
    margin-bottom: 18px;
}

.pos-meta {
    margin: 0 0 20px;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    list-style: none;
}

.pos-meta li {
    position: relative;
    padding-left: 26px;
    margin: 0 0 8px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #5d5248;
}

.pos-meta li:last-child {
    margin-bottom: 0;
}

.pos-meta li i {
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 16px;
    color: var(--burgundy);
}

.pos-meta li a {
    color: inherit;
}

.pos-meta li a:hover {
    color: var(--burgundy);
}

.pos-content .pos-link {
    margin-top: auto;
    align-self: flex-start;
    font-family: "Rubik", sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--burgundy);
}

.pos-content .pos-link i {
    margin-left: 6px;
    transition: transform .3s var(--ease);
    display: inline-block;
    vertical-align: -2px;
}

.pos-content .pos-link:hover i {
    transform: translateX(5px);
}

/* ---- slick controls ---- */
.pos-carousel .slick-arrow {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    line-height: 42px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}

.pos-carousel .slick-arrow {
    box-shadow: 0 10px 22px -12px rgba(36, 26, 20, .5);
}

.pos-carousel .slick-arrow:hover {
    background: var(--burgundy);
    border-color: var(--burgundy);
    color: #fff;
}

/* kad ima manje stavki nego vidljivih slajdova, slick ih onemogući */
.pos-carousel .slick-arrow.slick-disabled {
    opacity: 0;
    pointer-events: none;
}

.pos-carousel .slick-dots li:only-child {
    display: none;
}

.pos-carousel .slick-prev {
    left: -18px;
}

.pos-carousel .slick-next {
    right: -18px;
}

.pos-carousel .slick-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: center;
}

.pos-carousel .slick-dots li {
    display: inline-block;
    margin: 0 5px;
}

.pos-carousel .slick-dots li button {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(36, 26, 20, .22);
    font-size: 0;
    cursor: pointer;
    transition: background-color .3s var(--ease), transform .3s var(--ease);
}

.pos-carousel .slick-dots li.slick-active button {
    background: var(--burgundy);
    transform: scale(1.35);
}

@media (max-width: 1199px) {
    .pos-carousel .slick-prev {
        left: -10px;
    }

    .pos-carousel .slick-next {
        right: -10px;
    }
}

@media (max-width: 991px) {
    .pos-carousel .slick-track {
        padding-bottom: 26px;
    }
}
