/* =========================================
   HOME - GLOBAL
========================================= */

.home .site-main,
.page-template-home-page .site-main {
    overflow: hidden;
}

.home section,
.page-template-home-page section {
    position: relative;
}

.section-heading {
    margin-bottom: 34px;
}

.section-heading-center {
    text-align: center;
}

.section-heading h2 {
    margin: 0 0 12px;
    color: #111827;
    font-family: "Mark Pro", Arial, sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.08;
}

.section-heading h2 span {
    color: #e00000;
}

.section-heading p {
    max-width: 680px;
    margin: 0;
    color: #8b8b95;
    font-size: 15px;
    line-height: 1.65;
}

.section-heading-center p {
    margin-left: auto;
    margin-right: auto;
}


/* =========================================
   HERO
========================================= */

.hero-section {
    position: relative;

    min-height: 720px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: #050505;
    color: #ffffff;
}


/* HERO BACKGROUND */

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-background img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.hero-background::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.90) 0%,
            rgba(0, 0, 0, 0.68) 34%,
            rgba(0, 0, 0, 0.34) 63%,
            rgba(0, 0, 0, 0.12) 100%
        );
}


/* HERO LAYOUT */

.hero-inner {
    position: relative;
    z-index: 2;

    min-height: 720px;

    padding-top: 100px;
    padding-bottom: 60px;

    display: grid;

    /*
     * Desni deo je namerno značajno veći.
     */
    grid-template-columns: 0.72fr 1.28fr;

    align-items: center;

    gap: 25px;
}


/* =========================================
   HERO LEFT CONTENT
========================================= */

.hero-content {
    position: relative;
    z-index: 10;

    max-width: 470px;
}

.hero-logo {
    display: block;

    width: 205px;
    max-width: 100%;

    height: auto;

    margin-bottom: 20px;
}

.hero-content h1 {
    margin: 0 0 24px;

    color: #ffffff;

    font-family: "Mark Pro", Arial, sans-serif;
    font-size: clamp(54px, 5.5vw, 82px);
    font-weight: 700;
    line-height: 0.98;

    letter-spacing: -2px;
}

.hero-content h1 span {
    color: #e00000;
}

.hero-description {
    max-width: 450px;

    margin: 0 0 28px;

    color: rgba(255, 255, 255, 0.83);

    font-size: 15px;
    line-height: 1.7;
}


/* PRIMARY BUTTON */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 22px;

    border: 0;
    border-radius: 999px;

    background: #e00000;
    color: #ffffff;

    font-family: "Mark Pro", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-primary:hover {
    background: #c90000;
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 10px 25px rgba(224, 0, 0, 0.22);
}


/* =========================================
   HERO RIGHT VISUAL
========================================= */
/* =========================================
   HERO RIGHT VISUAL + ANIMACIJA
========================================= */

.hero-visual {
    position: relative;
    width: 118%;
    min-height: 575px;
    margin-left: -7%;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* CENTRAL PHONE */

.hero-main-visual {
    position: relative;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    animation: heroCenterIn 0.7s ease-out both;
}

.hero-main-phone {
    display: block;
    width: 340px;
    max-width: none;
    height: auto;

    filter:
        drop-shadow(0 20px 35px rgba(0, 0, 0, 0.28));
}

.hero-main-video {
    display: block;
    width: 340px;
    max-width: none;
    height: auto;

    border-radius: 42px;

    filter:
        drop-shadow(0 20px 35px rgba(0, 0, 0, 0.28));
}


/* SIDE IMAGES */

.hero-side {
    position: absolute;

    top: 50%;
    left: 50%;

    z-index: 2;

    pointer-events: none;

    opacity: 0;
}

.hero-side img {
    display: block;

    width: 400px;
    max-width: none;
    height: auto;

    filter:
        drop-shadow(0 18px 30px rgba(0, 0, 0, 0.24));
}


/* LEFT IMAGE */

.hero-side-left {
    transform:
        translate(-50%, -50%)
        scale(0.82);

    animation:
        heroLeftOut 0.85s
        cubic-bezier(0.22, 1, 0.36, 1)
        0.65s
        forwards;
}


/* RIGHT IMAGE */

.hero-side-right {
    transform:
        translate(-50%, -50%)
        scale(0.82);

    animation:
        heroRightOut 0.85s
        cubic-bezier(0.22, 1, 0.36, 1)
        1.05s
        forwards;
}


/* KEYFRAMES */

@keyframes heroCenterIn {

    0% {
        opacity: 0;

        transform:
            translateY(20px)
            scale(0.92);
    }

    100% {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


@keyframes heroLeftOut {

    0% {
        opacity: 0;

        transform:
            translate(-50%, -50%)
            scale(0.82);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 1;

        transform:
            translate(-140%, -50%)
            rotate(-8deg)
            scale(1);
    }
}


@keyframes heroRightOut {

    0% {
        opacity: 0;

        transform:
            translate(-50%, -50%)
            scale(0.82);
    }

    20% {
        opacity: 1;
    }

    100% {
        opacity: 1;

        transform:
            translate(40%, -50%)
            rotate(8deg)
            scale(1);
    }
}

/* =========================================
   HERO SCROLL ARROW
========================================= */

.hero-scroll {
    position: absolute;

    left: 50%;
    bottom: 24px;

    z-index: 10;

    width: 46px;
    height: 46px;

    transform: translateX(-50%);
}

.hero-scroll::before,
.hero-scroll::after {
    content: "";

    position: absolute;
    left: 50%;

    width: 18px;
    height: 18px;

    border-right: 4px solid #e00000;
    border-bottom: 4px solid #e00000;

    transform:
        translateX(-50%)
        rotate(45deg);
}

.hero-scroll::before {
    top: 2px;
}

.hero-scroll::after {
    top: 13px;
}


/* =========================================
   SERVICES
========================================= */

.services-section {
    padding: 85px 0 35px;

    background: #ffffff;
}

.services-grid {
    display: grid;

    gap: 26px;
}

.services-grid-top {
    grid-template-columns: repeat(3, 1fr);

    max-width: 820px;

    margin: 0 auto 26px;
}

.services-grid-bottom {
    grid-template-columns: repeat(4, 1fr);
}

.service-card {
    min-height: 185px;

    padding: 24px;

    border: 1px solid #ececec;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 7px 20px rgba(0, 0, 0, 0.04);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.service-card:hover {
    transform: translateY(-4px);

    border-color: rgba(224, 0, 0, 0.18);

    box-shadow:
        0 14px 30px rgba(0, 0, 0, 0.07);
}

.service-icon {
    width: 42px;
    height: 42px;

    margin-bottom: 18px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    display: block;

    max-width: 100%;
    max-height: 100%;
}

.service-card h3 {
    margin: 0 0 10px;

    color: #161922;

    font-size: 16px;
    font-weight: 700;
}

.service-card p {
    margin: 0;

    color: #999aa2;

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================
   SPEED SECTION
========================================= */

.speed-section {
    padding: 65px 0 70px;

    background: #ffffff;
}

.speed-container {
    display: grid;

    grid-template-columns: 1fr 340px;

    align-items: center;

    gap: 80px;
}

.speed-content {
    max-width: 720px;
}

.speed-tabs {
    display: flex;

    flex-direction: column;

    gap: 12px;
}

.speed-tab {
    width: 100%;
    min-height: 54px;

    padding: 12px 18px;

    display: flex;
    align-items: flex-start;

    gap: 12px;

    border: 0;
    border-radius: 10px;

    background: #f6f6f6;

    color: #252833;

    text-align: left;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.speed-tab:hover {
    transform: translateX(4px);
}

.speed-tab.active {
    background: #3a3939;

    color: #ffffff;

    box-shadow:
        inset 0 0 0 1px #e00000;
}

.speed-tab-icon {
    flex: 0 0 24px;

    width: 24px;
    height: 24px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.7);

    color: #c9c9c9;

    font-size: 10px;
    font-weight: 700;
}

.speed-tab.active .speed-tab-icon {
    background: rgba(255, 255, 255, 0.12);

    color: #ffffff;
}

.speed-tab-content {
    display: flex;

    flex-direction: column;

    gap: 3px;
}

.speed-tab-content strong {
    font-size: 13px;
    font-weight: 700;
}

.speed-tab-content small {
    display: none;

    color: rgba(255, 255, 255, 0.78);

    font-size: 11px;
    line-height: 1.45;
}

.speed-tab.active .speed-tab-content small {
    display: block;
}

.speed-phone {
    display: flex;
    align-items: center;
    justify-content: center;
}

.speed-phone img {
    display: block;

    width: 100%;
    max-width: 310px;

    height: auto;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.speed-phone img.changing {
    opacity: 0;

    transform: translateY(10px);
}


/* =========================================
   STEPS
========================================= */

.steps-section {
    padding: 25px 0 70px;

    background: #ffffff;
}

.steps-grid {
    position: relative;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 30px;

    padding: 30px 0 10px;

    border-top: 1px solid #e8e8e8;
    border-bottom: 1px solid #e8e8e8;
}

.step-item {
    text-align: center;
}

.step-number {
    width: 46px;
    height: 46px;

    margin: 0 auto 18px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(224, 0, 0, 0.18);
    border-radius: 12px;

    color: #e00000;

    font-size: 13px;
    font-weight: 700;
}

.step-item h3 {
    margin: 0 0 10px;

    color: #1f2430;

    font-size: 14px;
    font-weight: 700;
}

.step-item p {
    margin: 0;

    color: #9899a0;

    font-size: 12px;
    line-height: 1.65;
}


/* =========================================
   DOWNLOAD CTA
========================================= */

.download-section {
    margin-top: 55px;

    background:
        linear-gradient(
            110deg,
            #d50000 0%,
            #8a0000 100%
        );

    color: #ffffff;
}

.download-inner {
    padding: 85px 20px;

    text-align: center;
}

.download-inner h2 {
    margin: 0 0 14px;

    color: #ffffff;

    font-size: clamp(34px, 4vw, 52px);
    font-weight: 700;
}

.download-inner > p {
    margin: 0 0 26px;

    color: rgba(255, 255, 255, 0.78);

    font-size: 14px;
}

.download-buttons {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 14px;

    margin-bottom: 24px;
}

.store-button {
    display: inline-block;
}

.store-button img {
    display: block;

    height: 48px;
    width: auto;
}

.download-benefits {
    display: flex;
    justify-content: center;

    flex-wrap: wrap;

    gap: 24px;

    color: rgba(255, 255, 255, 0.74);

    font-size: 12px;
}


/* =========================================
   NEWSLETTER
========================================= */

.newsletter-section {
    padding: 55px 0;

    background:
        linear-gradient(
            90deg,
            #fff7f7 0%,
            #ffffff 50%,
            #fff7f7 100%
        );
}

.newsletter-inner {
    max-width: 760px;

    text-align: center;
}

.newsletter-label {
    display: inline-flex;

    margin-bottom: 12px;

    padding: 4px 10px;

    border: 1px solid rgba(224, 0, 0, 0.15);
    border-radius: 999px;

    color: #e00000;

    background: #ffffff;

    font-size: 10px;
}

.newsletter-inner h2 {
    margin: 0 0 12px;

    color: #161922;

    font-size: 36px;
    font-weight: 700;
}

.newsletter-inner h2 span {
    color: #e00000;
}

.newsletter-inner > p {
    max-width: 620px;

    margin: 0 auto 24px;

    color: #999aa1;

    font-size: 13px;
    line-height: 1.6;
}

.newsletter-form {
    max-width: 520px;

    margin: 0 auto 12px;

    display: flex;
    align-items: center;

    gap: 10px;
}

.newsletter-form input {
    flex: 1;

    min-width: 0;
    height: 46px;

    padding: 0 18px;

    border: 1px solid #ececec;
    border-radius: 999px;

    outline: none;

    color: #222222;

    background: #ffffff;

    font-family: inherit;
    font-size: 13px;
}

.newsletter-form input:focus {
    border-color: rgba(224, 0, 0, 0.45);
}

.newsletter-form button {
    border: 0;

    cursor: pointer;
}

.newsletter-inner small {
    color: #bbbcc1;

    font-size: 10px;
}


/* =========================================
   TESTIMONIALS
========================================= */

.testimonials-section {
    padding: 60px 0 75px;

    background: #f8f8f8;
}

.testimonials-grid {
    max-width: 760px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 24px;
}

.testimonial-card {
    padding: 22px;

    border: 1px solid #ececec;
    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.035);
}

.testimonial-stars {
    margin-bottom: 10px;

    color: #e00000;

    font-size: 13px;

    letter-spacing: 1px;
}

.testimonial-card blockquote {
    margin: 0 0 18px;

    color: #5b5d65;

    font-size: 13px;
    font-style: italic;
    line-height: 1.55;
}

.testimonial-user {
    display: flex;
    align-items: center;

    gap: 10px;
}

.testimonial-avatar {
    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #9f0000;

    color: #ffffff;

    font-size: 11px;
    font-weight: 700;
}

.testimonial-user div {
    display: flex;

    flex-direction: column;
}

.testimonial-user strong {
    color: #292b32;

    font-size: 12px;
}

.testimonial-user div span {
    color: #aaaaaa;

    font-size: 10px;
}


/* =========================================
   DESKTOP <= 1200
========================================= */

@media (max-width: 1200px) {

    .hero-inner {
        grid-template-columns: 0.8fr 1.2fr;

        gap: 15px;
    }

    .hero-visual {
        width: 110%;

        margin-left: -3%;
    }

    .hero-main-phone,
    .hero-main-video {
        width: 285px;
    }

    .hero-side img {
        width: 340px;
    }

    .hero-side-left {
        left: -20px;
    }

    .hero-side-right {
        right: -25px;
    }
}


/* =========================================
   TABLET <= 1024
========================================= */

@media (max-width: 1024px) {

    .hero-inner {
        grid-template-columns: 0.9fr 1.1fr;

        gap: 10px;
    }

    .hero-content h1 {
        font-size: 58px;
    }

    .hero-logo {
        width: 185px;
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-visual {
        width: 110%;
        min-height: 510px;

        margin-left: -4%;
    }

    .hero-main-phone,
    .hero-main-video {
        width: 255px;
    }

    .hero-side img {
        width: 300px;
    }

    .hero-side-left {
        left: -10px;
    }

    .hero-side-right {
        right: -15px;
    }


    .services-grid-bottom {
        grid-template-columns: repeat(2, 1fr);
    }


    .speed-container {
        grid-template-columns: 1fr 300px;

        gap: 40px;
    }
}


/* =========================================
   MOBILE / TABLET <= 768
========================================= */

@media (max-width: 768px) {

    /* HERO */

    .hero-section {
        min-height: auto;
    }

    .hero-background::after {
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, 0.86) 0%,
                rgba(0, 0, 0, 0.70) 45%,
                rgba(0, 0, 0, 0.38) 100%
            );
    }

    .hero-inner {
        min-height: auto;

        padding-top: 115px;
        padding-bottom: 75px;

        grid-template-columns: 1fr;

        gap: 25px;

        text-align: center;
    }

    .hero-content {
        max-width: 560px;

        margin: 0 auto;
    }

    .hero-logo {
        width: 190px;

        margin-left: auto;
        margin-right: auto;
    }

    .hero-content h1 {
        font-size: 56px;
    }

    .hero-description {
        max-width: 460px;

        margin-left: auto;
        margin-right: auto;
    }

    .hero-visual {
        width: 110%;
        min-height: 470px;

        margin: 5px 0 0 -5%;
    }

    .hero-main-phone,
    .hero-main-video {
        width: 260px;
    }

    .hero-side img {
        width: 295px;
    }

    .hero-side-left {
        left: 3%;
    }

    .hero-side-right {
        right: 3%;
    }


    /* SERVICES */

    .services-grid-top,
    .services-grid-bottom {
        grid-template-columns: 1fr;

        max-width: 100%;
    }


    /* SPEED */

    .speed-container {
        grid-template-columns: 1fr;
    }

    .speed-phone {
        order: -1;
    }

    .speed-phone img {
        max-width: 260px;
    }


    /* STEPS */

    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }


    /* DOWNLOAD */

    .download-buttons {
        flex-direction: column;
    }


    /* NEWSLETTER */

    .newsletter-form {
        flex-direction: column;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }


    /* TESTIMONIALS */

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   MOBILE <= 600
========================================= */

@media (max-width: 600px) {

    .hero-inner {
        padding-top: 105px;
        padding-bottom: 65px;
    }

    .hero-logo {
        width: 175px;
    }

    .hero-content h1 {
        font-size: 48px;

        letter-spacing: -1.5px;
    }

    .hero-description {
        max-width: 340px;

        font-size: 14px;
    }

    /*
     * Na telefonu namerno puštamo
     * bočne slike malo van viewporta.
     */

    .hero-visual {
        width: 125%;
        min-height: 390px;

        margin-left: -12.5%;
    }

    .hero-main-phone,
    .hero-main-video {
        width: 220px;
    }

    .hero-side img {
        width: 235px;
    }

    .hero-side-left {
        left: -15px;
    }

    .hero-side-right {
        right: -15px;
    }

    .hero-scroll {
        bottom: 12px;
    }
}


/* =========================================
   SMALL MOBILE <= 480
========================================= */

@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 44px;
    }

    .hero-logo {
        width: 165px;
    }

    .hero-description {
        font-size: 13px;
        line-height: 1.65;
    }

    .hero-visual {
        width: 135%;
        min-height: 350px;

        margin-left: -17.5%;
    }

    .hero-main-phone,
    .hero-main-video {
        width: 195px;
    }

    .hero-side img {
        width: 205px;
    }

    .hero-side-left {
        left: -10px;
    }

    .hero-side-right {
        right: -10px;
    }


    .section-heading h2 {
        font-size: 30px;
    }


    .steps-grid {
        grid-template-columns: 1fr;
    }


    .download-inner {
        padding: 65px 16px;
    }

    .store-button img {
        height: 44px;
    }


    .newsletter-inner h2 {
        font-size: 30px;
    }
}