/**
 * Početna (/ i /en). Koristi zajedničke klase iz izrada-sajta.css (ws-*: dugmad, staklene kartice,
 *    pitanja, "Ključ u ruke", kontakt okvir, pozadine, tamni meni); ovde je samo ono što ima samo početna (hp-*).
 *    Veličine slova su ~10% manje od dizajna, isto kao na /izrada-sajta. Slike: /assets/pocetna/.
 *
 * @format
 */

/* Vrh: centriran tekst i lepeza snimaka sajtova koja prelazi u sledeću sekciju */
.hp-hero {
    position: relative;
    z-index: 2;
    padding: 140px 24px 0;
    color: #fff;
    text-align: center;
}
.hp-hero::before,
.hp-hero::after {
    /* Šara od znaka iz logoa. Jedva se vidi; tamo gde je miš jače zasvetli, kao pod baterijskom lampom
       (::after, položaj miša u --hp-x/--hp-y postavlja skripta na dnu strane). */
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url(/assets/pocetna/sara-logo.webp?v=2) center top / 140px 140px
        repeat;
    pointer-events: none;
}
.hp-hero::before {
    opacity: 0.035;
}
.hp-hero::after {
    background:
        radial-gradient(
            circle 280px at var(--hp-x, 50%) var(--hp-y, 40%),
            rgba(255, 255, 255, 0.06),
            transparent 70%
        ),
        url(/assets/pocetna/sara-logo.webp?v=2) center top / 140px 140px repeat;
    opacity: 0;
    -webkit-mask-image: radial-gradient(
        circle 260px at var(--hp-x, 50%) var(--hp-y, 40%),
        rgba(0, 0, 0, 0.3),
        transparent 75%
    );
    mask-image: radial-gradient(
        circle 260px at var(--hp-x, 50%) var(--hp-y, 40%),
        rgba(0, 0, 0, 0.3),
        transparent 75%
    );
    transition: opacity 0.4s;
}
.hp-hero.is-lit::after {
    opacity: 1;
}
.hp-hero__inner {
    max-width: 980px;
    margin: 0 auto;
}
.hp-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(12, 20, 105, 0.55);
}
.hp-hero__stars {
    display: inline-flex;
    gap: 2px;
}
.hp-hero__stars svg {
    width: 14px;
    height: 14px;
    fill: #f5b623;
}
.website-page main .hp-hero__badge h1 {
    margin: 0;
    color: #fff;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0;
}
.hp-hero__title {
    margin: 24px 0 0;
    color: #fff;
    font-size: clamp(40px, 5.6vw, 79px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.045em;
}
.hp-hero__title .ws-pill-white {
    padding: 0 12px;
}
.website-page main .hp-hero__lead {
    max-width: 720px;
    margin: 26px auto 0;
    color: var(--ws-on-dark);
    font-size: 18px;
    line-height: 1.6;
}
.hp-hero__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
}
.hp-fan {
    position: relative;
    max-width: 1100px;
    aspect-ratio: 1100 / 220;
    margin: 64px auto -40px;
}
.hp-fan__item {
    position: absolute;
    width: 30%;
    padding: 7px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 40px 70px -20px rgba(0, 0, 0, 0.6);
}
.hp-fan__item img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    border-radius: 12px;
    object-fit: cover;
}
.hp-fan__item:nth-child(1) {
    top: 46px;
    left: 0;
    z-index: 1;
    transform: rotate(-7deg);
}
.hp-fan__item:nth-child(2) {
    top: 16px;
    left: 17.5%;
    z-index: 2;
    transform: rotate(-3.5deg);
}
.hp-fan__item:nth-child(3) {
    top: 0;
    left: 35%;
    z-index: 3;
}
.hp-fan__item:nth-child(4) {
    top: 16px;
    left: 52.5%;
    z-index: 2;
    transform: rotate(3.5deg);
}
.hp-fan__item:nth-child(5) {
    top: 46px;
    left: 70%;
    z-index: 1;
    transform: rotate(7deg);
}

/* Naslov sekcije levo, kratak tekst desno */
.hp-split-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px 64px;
}
.hp-split-head > div {
    flex: 1 1 560px;
    min-width: 0;
}
.website-page main .hp-split-head > p {
    flex: 1 1 340px;
    min-width: 0;
    font-size: 16px;
    line-height: 1.6;
}
.hp-center-head {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.website-page main .hp-center-head p {
    margin: 20px auto 0;
    font-size: 16px;
    line-height: 1.6;
}

/* Usluge: spisak levo, izabrana usluga desno */
.hp-services-section {
    padding-top: 150px;
}
.hp-services {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 28px;
    margin-top: 56px;
}
.hp-services__list {
    display: flex;
    flex: 1 1 340px;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.hp-service-tab {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    min-height: 60px;
    padding: 0 22px;
    border: 1.5px solid var(--ws-line);
    border-radius: 18px;
    background: #fff;
    color: var(--ws-ink);
    font: 600 17px var(--ws-font);
    letter-spacing: -0.01em;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.2s,
        background-color 0.2s;
}
.hp-service-tab:hover {
    border-color: var(--ws-black);
}
.hp-service-tab[aria-selected="true"] {
    border-color: var(--ws-black);
    background: var(--ws-black);
    color: #fff;
}
.hp-service-tab:focus-visible {
    outline: 3px solid #8f9bff;
    outline-offset: 2px;
}
.hp-service-tab__num {
    color: var(--ws-muted);
    font-size: 12.5px;
    font-weight: 700;
}
.hp-service-tab[aria-selected="true"] .hp-service-tab__num {
    color: var(--ws-on-dark-2);
}
.hp-service-tab__name {
    flex: 1;
}
.hp-service {
    display: flex;
    flex: 1.6 1 520px;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(13, 16, 51, 0.07);
    border-radius: 32px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(20, 30, 90, 0.07);
}
.hp-service {
    scroll-margin-top: 80px;
}
.hp-service[hidden] {
    display: none;
}
.hp-service__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    background: linear-gradient(160deg, #f2f3f7, #e9ebf2);
}
.hp-service__body {
    padding: 30px 34px 34px;
}
.hp-service__num {
    color: var(--ws-muted);
    font-size: 12.5px;
    font-weight: 700;
}
.website-page main .hp-service h3 {
    margin-top: 8px;
    color: var(--ws-ink);
    font-size: clamp(25px, 2.5vw, 32px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
}
.website-page main .hp-service p {
    margin-top: 14px;
    font-size: 16px;
    line-height: 1.6;
}
.hp-service .ws-btn {
    min-height: 52px;
    margin-top: 24px;
    font-size: 15px;
}

/* Zašto Studio Herc */
.hp-why .ws-eyebrow {
    color: var(--ws-on-dark-2);
}
.hp-why .ws-h2 {
    max-width: 860px;
    color: #fff;
}
.hp-why__cards {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 56px;
}
.hp-why__card {
    flex: 1 1 300px;
    min-width: 0;
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 24px;
    background: rgba(12, 20, 105, 0.55);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: #fff;
}
.hp-why__card:nth-child(1) {
    transform: rotate(-1.5deg);
}
.hp-why__card:nth-child(2) {
    transform: rotate(1.5deg);
}
.hp-why__card:nth-child(3) {
    transform: rotate(-1deg);
}
.hp-why__card img {
    width: 64px;
    height: 64px;
}
.website-page main .hp-why__card h3 {
    margin-top: 16px;
    color: #fff;
    font-size: 21px;
    letter-spacing: -0.02em;
}
.website-page main .hp-why__card p {
    margin-top: 10px;
    color: var(--ws-on-dark);
    font-size: 15px;
    line-height: 1.55;
}
.hp-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 48px;
    margin: 80px 0 0;
    padding: 0;
    list-style: none;
}
.hp-stats li {
    flex: 1 1 260px;
    min-width: 0;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.hp-stats strong {
    display: block;
    color: #fff;
    font-size: clamp(58px, 6.3vw, 94px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.05em;
}
.hp-stats span {
    display: block;
    margin-top: 12px;
    color: var(--ws-on-dark);
    font-size: 16px;
}

/* Projekti */
.hp-projects {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 56px;
}
.website-page main .hp-project {
    display: block;
    padding: 10px 10px 22px;
    border: 1px solid rgba(13, 16, 51, 0.07);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(20, 30, 90, 0.07);
    color: var(--ws-text);
    text-decoration: none;
    transition: transform 0.35s;
}
.website-page main .hp-project:hover {
    color: var(--ws-text);
    transform: translateY(-6px);
}
.hp-project img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    border-radius: 18px;
    object-fit: cover;
}
.hp-project__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 16px 12px 0;
}
.hp-project__tags span {
    padding: 5px 11px;
    border-radius: 999px;
    background: var(--ws-blue-soft);
    color: var(--ws-blue);
    font-size: 12px;
    font-weight: 700;
}
.hp-project__name {
    display: block;
    margin: 12px 12px 0;
    color: var(--ws-ink);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.hp-project__desc {
    display: block;
    margin: 8px 12px 0;
    font-size: 14px;
    line-height: 1.55;
}
.hp-project__link {
    display: block;
    margin: 14px 12px 0;
    color: var(--ws-blue);
    font-size: 13.5px;
    font-weight: 700;
}

/* Proces */
.hp-process-section {
    padding-bottom: 136px;
    color: var(--ws-on-dark);
}
.hp-process-section .ws-eyebrow {
    color: var(--ws-on-dark);
}
.hp-process-section .ws-h2 {
    color: #fff;
}
.hp-process {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    margin: 64px 0 0;
    padding: 0;
    list-style: none;
}
.hp-process li {
    flex: 1 1 300px;
    min-width: 0;
}
.hp-process li:nth-child(odd) {
    margin-top: 48px;
}
.hp-process__card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    min-height: 290px;
    padding: 30px;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 40px 80px -30px rgba(5, 10, 60, 0.6);
    color: var(--ws-text);
}
.hp-process li:nth-child(1) .hp-process__card {
    transform: rotate(-3deg);
}
.hp-process li:nth-child(2) .hp-process__card {
    transform: rotate(2deg);
}
.hp-process li:nth-child(3) .hp-process__card {
    transform: rotate(-2deg);
}
.hp-process__num {
    color: var(--ws-ink);
    font-size: 83px;
    font-weight: 700;
    line-height: 0.85;
    letter-spacing: -0.05em;
}
.hp-process__card strong {
    display: block;
    color: var(--ws-ink);
    font-size: 21.5px;
    letter-spacing: -0.02em;
}
.hp-process__card span span {
    display: block;
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.55;
}

/* Klijenti: logotipi */
.hp-logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    margin-top: 56px;
}
.hp-logos a {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    padding: 20px;
    border: 1px solid rgba(13, 16, 51, 0.07);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(20, 30, 90, 0.05);
}
.hp-logos img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.8;
    transition:
        filter 0.3s,
        opacity 0.3s;
}
.hp-logos a:hover img,
.hp-logos a:focus-visible img {
    filter: none;
    opacity: 1;
}

/* Pitanja se nastavljaju na klijente, ista siva pozadina */
.hp-faq-section {
    padding-top: 0;
}

/* Kontakt: prečice levo, forma desno */
.hp-contact {
    align-items: flex-start;
}
.website-page main .hp-contact h2 .ws-pill-white {
    padding: 0 12px;
}
.hp-contact__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}
.website-page main .hp-contact__links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    background: rgba(12, 20, 105, 0.55);
    color: #fff;
    text-decoration: none;
    transition: border-color 0.2s;
}
.website-page main .hp-contact__links a:hover {
    border-color: #fff;
    color: #fff;
}
.hp-contact__links strong {
    display: block;
    font-size: 15.5px;
}
.hp-contact__links small {
    display: block;
    color: var(--ws-on-dark);
    font-size: 13.5px;
}
.hp-contact .ws-quiz {
    flex: 1.2 1 460px;
    padding: 32px;
}
.hp-contact .ws-form textarea {
    min-height: 150px;
}
.hp-contact .ws-form button {
    justify-self: start;
    width: auto;
}

@media (max-width: 640px) {
    .hp-hero {
        padding: 120px 16px 0;
    }
    .hp-hero__actions .ws-btn {
        width: 100%;
    }
    .hp-fan {
        margin: 40px -6px -24px;
    }
    .hp-fan__item {
        padding: 4px;
        border-radius: 10px;
    }
    .hp-fan__item img {
        border-radius: 7px;
    }
    .hp-services-section {
        padding-top: 110px;
    }
    .hp-service-tab {
        min-height: 52px;
        padding: 0 16px;
        font-size: 15.5px;
    }
    .hp-service__body {
        padding: 22px 20px 24px;
    }
    .hp-service .ws-btn {
        width: 100%;
    }
    .hp-why__card {
        transform: none !important;
    }
    /* Projekti na telefonu: niz koji se prevlači u stranu, umesto osam kartica jedna ispod druge */
    .hp-projects {
        display: flex;
        gap: 14px;
        margin: 40px -16px 0;
        padding: 0 16px 24px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 16px;
        -webkit-overflow-scrolling: touch;
    }
    .website-page main .hp-project {
        flex: 0 0 80%;
        scroll-snap-align: start;
    }
    .website-page main .hp-project:hover {
        transform: none;
    }
    .hp-stats {
        margin-top: 56px;
    }
    .hp-process li:nth-child(odd) {
        margin-top: 0;
    }
    .hp-process__card {
        min-height: 0;
        gap: 28px;
        transform: none !important;
    }
    .hp-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }
    .hp-logos a {
        padding: 10px;
        border-radius: 14px;
    }
    .hp-contact .ws-quiz {
        padding: 22px 18px;
    }
    .hp-contact .ws-form button {
        width: 100%;
    }
}
