/* ==========================================================
   ADRIAVEZA – NOVA POCETNA STRANICA
   Sva pravila vrijede samo unutar elementa .av-home
   ========================================================== */

.av-home {
    --av-primary: #2f5fb3;
    --av-primary-dark: #183f7e;
    --av-primary-light: #e8f2ff;
    --av-background-soft: #f5f9ff;
    --av-border: #c8dbf1;
    --av-text: #293443;
    --av-muted: #5b6878;
    --av-white: #ffffff;
    --av-shadow: 0 12px 32px rgba(24, 63, 126, 0.10);

    position: relative;
    left: 50%;

    width: min(1500px, calc(100vw - 48px));
    max-width: none;

    transform: translateX(-50%);

    color: var(--av-text);
    font-size: 1rem;
    line-height: 1.65;
}

.av-home,
.av-home *,
.av-home *::before,
.av-home *::after {
    box-sizing: border-box;
}

.av-home section {
    scroll-margin-top: 110px;
}

.av-home a:focus-visible {
    outline: 3px solid #f0b400;
    outline-offset: 4px;
}


/* ==========================================================
   HERO
   ========================================================== */

.av-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;

    margin: 1.5rem 0 clamp(3.5rem, 7vw, 6rem);
    padding: clamp(2rem, 5vw, 4.25rem);

    overflow: hidden;

    border: 1px solid var(--av-border);
    border-radius: 24px;

    background:
        radial-gradient(
            circle at 92% 10%,
            rgba(84, 151, 225, 0.23),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f4f9ff 56%,
            #e6f1ff 100%
        );
}

.av-home-hero__content {
    min-width: 0;
}

.av-home-eyebrow,
.av-home-section__eyebrow {
    margin: 0 0 0.65rem;

    color: var(--av-primary);

    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.35;
    text-transform: uppercase;
}

.av-home-hero h1 {
    max-width: 900px;
    margin: 0;

    color: var(--av-primary-dark);

    font-size: clamp(2.1rem, 4vw, 3.65rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-wrap: balance;
}

.av-home-under-construction {
    display: inline-block;

    margin: 1.25rem 0 0;
    padding: 0.6rem 0.9rem;

    border: 1px solid #b7d3f1;
    border-radius: 8px;

    background: rgba(255, 255, 255, 0.82);
    color: #405269;

    font-size: 0.93rem;
    line-height: 1.45;
}

.av-home-lead {
    max-width: 730px;
    margin: 1.4rem 0 0;

    color: var(--av-muted);

    font-size: clamp(1.05rem, 1.6vw, 1.23rem);
    line-height: 1.65;
}

.av-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;

    margin-top: 1.8rem;
}


/* ==========================================================
   GUMBI
   ========================================================== */

.av-home-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;

    padding: 0.75rem 1.2rem;

    border: 2px solid var(--av-primary);
    border-radius: 9px;

    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;

    transition:
        transform 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        box-shadow 160ms ease;
}

.av-home-button:hover {
    transform: translateY(-2px);
    text-decoration: none;
}

.av-home-button--primary {
    background: var(--av-primary);
    color: var(--av-white);
}

.av-home-button--primary:hover {
    border-color: var(--av-primary-dark);
    background: var(--av-primary-dark);
    color: var(--av-white);

    box-shadow: 0 8px 22px rgba(24, 63, 126, 0.18);
}

.av-home-button--secondary {
    background: var(--av-white);
    color: var(--av-primary);
}

.av-home-button--secondary:hover {
    background: var(--av-primary-light);
    color: var(--av-primary-dark);
}


/* ==========================================================
   ZAVRSNI HERO BRAND-VIZUAL
   ========================================================== */

.av-home .av-home-hero__visual--brand {
    position: relative;

    display: flex;
    min-height: 390px;
    align-items: center;
    justify-content: center;

    padding: clamp(1.25rem, 3vw, 2.25rem);
    overflow: hidden;

    border: 1px solid rgba(47, 95, 179, 0.16);
    border-radius: 22px;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.58),
            rgba(255, 255, 255, 0)
        ),
        linear-gradient(
            145deg,
            #f9fbff 0%,
            #edf4ff 55%,
            #e4efff 100%
        );

    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.av-home .av-home-hero__visual--brand::before,
.av-home .av-home-hero__visual--brand::after {
    display: none !important;
    width: 0 !important;
    height: 0 !important;

    content: none !important;
    background: none !important;
}

.av-home .av-home-brand-panel {
    position: relative;
    z-index: 2;

    display: flex;
    width: 100%;
    max-width: 720px;
    min-height: 280px;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    background: transparent;
    box-shadow: none;
}

.av-home .av-home-brand-logo {
    display: block;

    width: 100%;
    max-width: 680px;
    height: auto;

    border: 1px solid rgba(47, 95, 179, 0.13);
    border-radius: 16px;

    background: #ffffff;

    box-shadow:
        0 16px 38px rgba(24, 63, 126, 0.11),
        0 3px 10px rgba(24, 63, 126, 0.05);

    object-fit: contain;
}

.av-home .av-home-brand-features {
    display: grid;
    grid-template-columns: repeat(4, 58px);
    gap: 0.8rem;
    justify-content: center;

    margin-top: 1.25rem;
}

.av-home .av-home-brand-feature {
    display: inline-flex;

    width: 58px;
    height: 58px;

    align-items: center;
    justify-content: center;

    border: 1px solid rgba(47, 95, 179, 0.16);
    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #edf4ff
        );

    color: var(--av-primary);

    box-shadow:
        0 7px 18px rgba(24, 63, 126, 0.08);
}

.av-home .av-home-brand-feature svg {
    display: block;

    width: 27px;
    height: 27px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================
   OPCE SEKCIJE
   ========================================================== */

.av-home-section {
    margin: 0 0 clamp(3.5rem, 7vw, 6rem);
}

.av-home-section--soft {
    padding: clamp(1.5rem, 4vw, 3rem);

    border: 1px solid var(--av-border);
    border-radius: 20px;

    background: var(--av-background-soft);
}

.av-home-section__header {
    max-width: 790px;
    margin-bottom: 1.8rem;
}

.av-home-section__header h2,
.av-home-trust h2,
.av-home-partners h2 {
    margin: 0;

    color: var(--av-primary-dark);

    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.18;
    text-wrap: balance;
}

.av-home-section__header > p:last-child,
.av-home-trust__content > p:last-child,
.av-home-partners__content > p:last-child {
    margin: 0.85rem 0 0;

    color: var(--av-muted);

    font-size: 1.05rem;
}


/* ==========================================================
   BLOK POVJERENJA
   ========================================================== */

.av-home-trust {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: space-between;

    margin: 0 0 clamp(3.5rem, 7vw, 5.5rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);

    border-left: 5px solid var(--av-primary);
    border-radius: 0 16px 16px 0;

    background: #f5f8fc;
}

.av-home-trust__content {
    max-width: 830px;
}

.av-home-trust .av-home-button {
    flex: 0 0 auto;
}


/* ==========================================================
   PARTNER BLOK
   ========================================================== */

.av-home-partners {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 2rem;
    align-items: center;

    margin: 0 0 clamp(3rem, 6vw, 5rem);
    padding: clamp(1.5rem, 4vw, 2.5rem);

    border: 1px solid var(--av-border);
    border-radius: 17px;

    background: var(--av-primary-light);
}

.av-home-partners__content {
    min-width: 0;
}

.av-home-partners__actions {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}


/* ==========================================================
   SIROKI I ULTRASIROKI EKRANI
   ========================================================== */

@media (min-width: 1400px) {

    .av-home {
        width: min(1500px, calc(100vw - 64px));
    }

    .av-home-hero {
        grid-template-columns:
            minmax(0, 1.12fr)
            minmax(420px, 0.88fr);

        gap: clamp(3rem, 5vw, 6rem);

        padding: 4rem 4.5rem;
    }

    .av-home-hero__content {
        max-width: 850px;
    }

    .av-home-hero h1 {
        font-size: clamp(3rem, 3.4vw, 4.15rem);
    }

    .av-home .av-home-hero__visual--brand {
        min-height: 430px;
    }

    .av-home .av-home-brand-logo {
        max-width: 700px;
    }

    .av-home .av-home-brand-features {
        grid-template-columns: repeat(4, 62px);
        gap: 0.9rem;
    }

    .av-home .av-home-brand-feature {
        width: 62px;
        height: 62px;
    }

    .av-home-section__header {
        max-width: 900px;
    }

    .av-home-section--soft,
    .av-home-trust,
    .av-home-partners {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}


/* ==========================================================
   SREDNJI DESKTOP I MANJI LAPTOPI
   ========================================================== */

@media (max-width: 1399px) {

    .av-home {
        width: min(1280px, calc(100vw - 40px));
    }
}


/* ==========================================================
   TABLET I UZI DESKTOP
   ========================================================== */

@media (max-width: 1100px) {

    .av-home {
        width: calc(100vw - 32px);
    }

    .av-home-hero {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.75fr);
        gap: 2.5rem;
    }

    .av-home-partners {
        grid-template-columns: 1fr;
    }

    .av-home-partners__actions {
        max-width: 520px;
    }
}


/* ==========================================================
   MOBITEL I MANJI TABLET
   ========================================================== */

@media (max-width: 767px) {

    .av-home {
        width: calc(100vw - 24px);

        font-size: 0.98rem;
    }

    .av-home-hero {
        grid-template-columns: 1fr;
        gap: 2rem;

        margin-top: 0.75rem;
        padding: 1.3rem;

        border-radius: 17px;
    }

    .av-home-hero h1 {
        font-size: clamp(1.85rem, 9vw, 2.65rem);
    }

    .av-home-actions {
        flex-direction: column;
    }

    .av-home-button {
        width: 100%;
    }

    .av-home .av-home-hero__visual--brand {
        min-height: 0;
        padding: 1rem;
    }

    .av-home .av-home-brand-panel {
        min-height: 0;
    }

    .av-home .av-home-brand-logo {
        max-width: 100%;
        border-radius: 11px;
    }

    .av-home .av-home-brand-features {
        grid-template-columns: repeat(4, 46px);
        gap: 0.55rem;

        margin-top: 0.9rem;
    }

    .av-home .av-home-brand-feature {
        width: 46px;
        height: 46px;

        border-radius: 13px;
    }

    .av-home .av-home-brand-feature svg {
        width: 22px;
        height: 22px;
    }

    .av-home-section--soft {
        padding: 1.2rem;

        border-radius: 15px;
    }

    .av-home-trust {
        flex-direction: column;
        align-items: stretch;
    }

    .av-home-partners {
        padding: 1.3rem;
    }

    .av-home-partners__actions {
        max-width: none;
    }
}


/* ==========================================================
   VRLO MALI MOBITELI
   ========================================================== */

@media (max-width: 420px) {

    .av-home {
        width: calc(100vw - 18px);
    }

    .av-home-hero {
        padding: 1.05rem;
    }

    .av-home-hero h1 {
        font-size: 1.78rem;
    }

    .av-home .av-home-brand-features {
        grid-template-columns: repeat(4, 42px);
        gap: 0.4rem;
    }

    .av-home .av-home-brand-feature {
        width: 42px;
        height: 42px;
    }
}


/* ==========================================================
   SMANJENE ANIMACIJE
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .av-home *,
    .av-home *::before,
    .av-home *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Font Awesome ikone unutar završnog hero-vizuala */

.av-home .av-home-brand-feature > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-size: 1.35rem;
    line-height: 1;
}

@media (min-width: 1400px) {
    .av-home .av-home-brand-feature > span {
        font-size: 1.45rem;
    }
}

@media (max-width: 767px) {
    .av-home .av-home-brand-feature > span {
        font-size: 1.1rem;
    }
}