/* ==============================================================
   MICKY LAND JASLICE
   GLAVNI STYLE
================================================================= */


/* ==============================================================
   01 — BOJE / VARIABLES
================================================================= */

:root {

    --blue: #0873b9;
    --blue-dark: #075987;

    --turquoise: #42aeb1;
    --green: #08a650;

    --orange: #ff9e43;
    --pink: #e85591;
    --purple: #8553a7;

    --dark: #17344a;
    --text: #536674;

    --white: #ffffff;
    --soft: #f7fbfc;

    --radius: 30px;

    --shadow:
        0 25px 70px rgba(23, 52, 74, .12);

}


/* ==============================================================
   02 — RESET
================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    background: var(--white);

    color: var(--text);

    overflow-x: hidden;

    line-height: 1.7;

}

img {
    display: block;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
}

::selection {
    background: var(--orange);
    color: white;
}


/* ==============================================================
   03 — GLOBALNI ELEMENTI
================================================================= */

.container {

    width: min(1180px, calc(100% - 48px));

    margin-inline: auto;

}

.section {

    padding: 130px 0;

    position: relative;

}

.two-columns {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;

}

.eyebrow {

    display: inline-block;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 3px;

    color: var(--pink);

    margin-bottom: 18px;

}

h1,
h2,
h3 {

    color: var(--dark);

    line-height: 1.1;

}

h2 {

    font-size: clamp(42px, 5vw, 70px);

    letter-spacing: -3px;

    margin-bottom: 35px;

}

h2 span {

    color: var(--blue);

}

p {

    font-size: 17px;

    margin-bottom: 20px;

}

.section-heading {

    width: min(950px, calc(100% - 48px));

    margin: 0 auto 80px;

    text-align: center;

}

.section-description {

    margin-top: -15px;

    opacity: .75;

}


/* ==============================================================
   04 — NAVBAR
================================================================= */

.navbar {

    position: fixed;

    top: 18px;
    left: 50%;

    transform: translateX(-50%);

    width: min(1180px, calc(100% - 36px));

    height: 76px;

    padding: 0 28px;

    display: flex;

    justify-content: space-between;
    align-items: center;

    z-index: 1000;

    border-radius: 22px;

    background:
        rgba(255, 255, 255, .72);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    border:
        1px solid rgba(255, 255, 255, .65);

    transition:
        background .35s ease,
        box-shadow .35s ease,
        top .35s ease;

}

.navbar.scrolled {

    top: 10px;

    background:
        rgba(255, 255, 255, .92);

    box-shadow:
        0 15px 50px rgba(17, 64, 94, .13);

}

.nav-logo img {

    width: 126px;

    max-height: 62px;

    object-fit: contain;

}

.nav-links {

    display: flex;

    align-items: center;

    gap: 38px;

}

.nav-links a {

    position: relative;

    color: var(--dark);

    font-weight: 700;

    font-size: 15px;

}

.nav-links a::after {

    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 3px;

    border-radius: 10px;

    background:
        linear-gradient(
            90deg,
            var(--orange),
            var(--pink)
        );

    transition: width .3s ease;

}

.nav-links a:hover::after {

    width: 100%;

}


/* ==============================================================
   05 — HAMBURGER
================================================================= */

.hamburger {

    display: none;

    width: 45px;
    height: 45px;

    border: 0;

    background: transparent;

    cursor: pointer;

}

.hamburger span {

    display: block;

    width: 26px;
    height: 2px;

    margin: 6px auto;

    border-radius: 10px;

    background: var(--dark);

    transition: .3s;

}


/* ==============================================================
   06 — HERO
================================================================= */

.hero {

    position: relative;

    min-height: 100svh;

    display: flex;

    justify-content: center;
    align-items: center;

    overflow: hidden;

}

.hero-bg {

    position: absolute;

    inset: 0;

    background:
        url("drugarstvo.jpg")
        center center / cover no-repeat;

    animation:
        heroZoom 20s ease-in-out infinite alternate;

}

@keyframes heroZoom {

    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.12);
    }

}

.hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(10, 55, 80, .20),
            rgba(5, 55, 86, .52)
        );

}

.hero-content {

    position: relative;

    z-index: 2;

    width: min(900px, calc(100% - 40px));

    text-align: center;

    color: white;

    padding-top: 70px;

}

.hero-logo {

    width: min(360px, 70vw);

    margin: 0 auto 35px;

    filter:
        drop-shadow(
            0 15px 30px rgba(0, 0, 0, .18)
        );

    animation:
        logoFloat 4.5s ease-in-out infinite;

}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }

}

.hero h1 {

    color: white;

    font-size:
        clamp(45px, 7vw, 85px);

    letter-spacing: -4px;

    text-shadow:
        0 5px 25px rgba(0, 0, 0, .2);

}

.hero h1 span {

    color: #fff;

}

.hero-content p {

    margin: 25px 0 35px;

    font-size: clamp(17px, 2vw, 22px);

    font-weight: 500;

}

.hero-button,
.primary-button {

    display: inline-flex;

    justify-content: center;
    align-items: center;

    min-height: 58px;

    padding: 0 32px;

    border-radius: 100px;

    background:
        linear-gradient(
            135deg,
            var(--orange),
            var(--pink)
        );

    color: white;

    font-weight: 800;

    box-shadow:
        0 15px 35px rgba(232, 85, 145, .3);

    transition:
        transform .3s ease,
        box-shadow .3s ease;

}

.hero-button:hover,
.primary-button:hover {

    transform: translateY(-4px);

    box-shadow:
        0 20px 45px rgba(232, 85, 145, .4);

}


/* SCROLL */

.scroll-indicator {

    position: absolute;

    z-index: 3;

    bottom: 35px;

    left: 50%;

    transform: translateX(-50%);

    width: 30px;
    height: 50px;

    border:
        2px solid rgba(255, 255, 255, .7);

    border-radius: 20px;

}

.scroll-indicator span {

    position: absolute;

    top: 10px;
    left: 50%;

    width: 5px;
    height: 5px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: white;

    animation:
        scrollDot 2s infinite;

}

@keyframes scrollDot {

    0% {
        opacity: 0;
        transform:
            translate(-50%, 0);
    }

    30% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform:
            translate(-50%, 20px);
    }

}


/* ==============================================================
   07 — O NAMA
================================================================= */

.about {

    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(255, 158, 67, .09),
            transparent 30%
        ),
        white;

}

.about-text p {

    max-width: 590px;

}

.about-text p:first-of-type {

    font-size: 21px;

    color: var(--dark);

    font-weight: 600;

}


/* ==============================================================
   08 — SLIDESHOW
================================================================= */

.slideshow {

    position: relative;

    height: 650px;

    overflow: hidden;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

}

.slide {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;

    transform: scale(1.05);

    transition:
        opacity 1.3s ease,
        transform 6s ease;

}

.slide.active {

    opacity: 1;

    transform: scale(1);

}

.slide-counter {

    position: absolute;

    z-index: 10;

    bottom: 25px;
    right: 25px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding: 9px 15px;

    border-radius: 100px;

    background:
        rgba(255, 255, 255, .85);

    backdrop-filter: blur(10px);

    color: var(--dark);

    font-size: 12px;

    font-weight: 800;

}

.counter-line {

    width: 28px;
    height: 1px;

    background: var(--dark);

}


/* ==============================================================
   09 — PROGRAM
================================================================= */

.program-intro {

    background: var(--soft);

}

.program-slideshow {

    height: 590px;

}

.program-text {

    padding: 30px;

}

.program-text .lead {

    font-size: 26px;

    font-weight: 700;

    line-height: 1.45;

    color: var(--dark);

}


/* ==============================================================
   10 — ŠTA JE UKLJUČENO
================================================================= */

.included {

    overflow: hidden;

}

.cards-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

}

.feature-card {

    position: relative;

    min-height: 310px;

    padding: 35px;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    overflow: hidden;

    border-radius: 26px;

    background: white;

    border:
        1px solid #e9eff2;

    transition:
        transform .4s ease,
        box-shadow .4s ease;

}

.feature-card::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(5, 44, 67, .12),
            rgba(5, 44, 67, .90)
        ),
        var(--card-bg)
        center / cover;

    opacity: 0;

    transform: scale(1.08);

    transition:
        opacity .45s ease,
        transform .8s ease;

}

.feature-card:hover {

    transform: translateY(-8px);

    box-shadow: var(--shadow);

}

.feature-card:hover::before {

    opacity: 1;

    transform: scale(1);

}

.feature-card > * {

    position: relative;

    z-index: 2;

}

.feature-number {

    position: absolute;

    top: 25px;
    right: 27px;

    font-size: 13px;

    font-weight: 900;

    opacity: .35;

}

.check {

    width: 45px;
    height: 45px;

    display: grid;

    place-items: center;

    margin-bottom: 25px;

    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            var(--orange),
            var(--pink)
        );

    color: white;

    font-size: 20px;

    font-weight: 900;

}

.feature-card h3 {

    font-size: 22px;

    margin-bottom: 10px;

    transition: color .4s;

}

.feature-card p {

    max-height: 0;

    margin: 0;

    opacity: 0;

    overflow: hidden;

    font-size: 15px;

    transform: translateY(20px);

    transition:
        opacity .4s ease,
        transform .4s ease,
        max-height .4s ease,
        margin .4s ease;

}

.feature-card:hover h3,
.feature-card:hover p,
.feature-card:hover .feature-number {

    color: white;

}

.feature-card:hover p {

    max-height: 130px;

    margin-top: 8px;

    opacity: 1;

    transform: translateY(0);

}


/* ==============================================================
   11 — PROSTOR
================================================================= */

.space-section {

    background:
        linear-gradient(
            135deg,
            #f8fcfd,
            #fff7f0
        );

}

.image-zoom {

    height: 620px;

    border-radius: var(--radius);

    overflow: hidden;

    box-shadow: var(--shadow);

}

.image-zoom img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 1.2s cubic-bezier(.2, .7, .2, 1);

}

.image-zoom:hover img {

    transform: scale(1.09);

}


/* ==============================================================
   12 — UPIS
================================================================= */

.enrollment {

    background: var(--dark);

}

.enrollment .section-heading h2 {

    color: white;

}

.enrollment .section-heading h2 span {

    color: var(--orange);

}

.enrollment-lead {

    color:
        rgba(255, 255, 255, .72);

    font-size: 19px;

}

.enrollment-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 25px;

}

.enrollment-card {

    position: relative;

    min-height: 330px;

    padding: 40px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    justify-content: flex-end;

    border-radius: 28px;

    background:
        rgba(255, 255, 255, .08);

    border:
        1px solid rgba(255, 255, 255, .13);

    color: white;

}

.enrollment-card::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(5, 40, 60, .15),
            rgba(5, 40, 60, .93)
        ),
        var(--enroll-bg)
        center / cover;

    opacity: .25;

    transition:
        opacity .5s ease,
        transform .8s ease;

}

.enrollment-card:hover::before {

    opacity: .85;

    transform: scale(1.06);

}

.enrollment-card > * {

    position: relative;

    z-index: 2;

}

.enrollment-card h3 {

    color: white;

    font-size: 27px;

    margin-bottom: 10px;

}

.enrollment-card p {

    max-height: 0;

    opacity: 0;

    overflow: hidden;

    margin: 0;

    transform: translateY(20px);

    transition: .4s;

}

.enrollment-card:hover p {

    max-height: 100px;

    opacity: 1;

    transform: translateY(0);

}

.step {

    position: absolute;

    z-index: 2;

    top: 30px;
    right: 30px;

    font-size: 55px;

    font-weight: 900;

    color:
        rgba(255, 255, 255, .14);

}

.enrollment-cta {

    margin-top: 70px;

    text-align: center;

}

.enrollment-cta p {

    color: white;

    font-size: 24px;

    font-weight: 700;

}


/* ==============================================================
   13 — KONTAKT
================================================================= */

.contact {

    background: white;

}

.contact-grid {

    display: grid;

    grid-template-columns:
        .85fr 1.15fr;

    gap: 70px;

    align-items: stretch;

}

.contact-info h2 {

    margin-bottom: 45px;

}

.contact-list {

    margin-bottom: 40px;

}

.contact-list div {

    padding: 17px 0;

    display: grid;

    grid-template-columns:
        120px 1fr;

    gap: 15px;

    border-bottom:
        1px solid #e6edef;

}

.contact-list span {

    font-size: 13px;

    text-transform: uppercase;

    letter-spacing: 1px;

    opacity: .65;

}

.contact-list strong,
.contact-list a {

    color: var(--dark);

    font-weight: 700;

}

.contact-list a:hover {

    color: var(--blue);

}

.whatsapp-button {

    display: inline-flex;

    justify-content: center;
    align-items: center;

    padding: 17px 26px;

    border-radius: 100px;

    background: #25D366;

    color: white;

    font-weight: 800;

    transition:
        transform .3s ease,
        box-shadow .3s ease;

}

.whatsapp-button:hover {

    transform: translateY(-4px);

    box-shadow:
        0 15px 35px rgba(37, 211, 102, .3);

}

.map-wrapper {

    min-height: 620px;

    overflow: hidden;

    border-radius: var(--radius);

    box-shadow: var(--shadow);

}

.map-wrapper iframe {

    width: 100%;
    height: 100%;

    min-height: 620px;

    border: 0;

}


/* ==============================================================
   14 — FOOTER
================================================================= */

.footer {

    padding: 28px 0;

    background: #102b3e;

    color:
        rgba(255, 255, 255, .75);

}

.footer-inner {

    width:
        min(1180px, calc(100% - 48px));

    margin: auto;

    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 30px;

}

.footer p {

    margin: 0;

    font-size: 14px;

}

.footer strong {

    color: white;

}

.footer-actions {

    display: flex;

    align-items: center;

    gap: 20px;

}

.footer-actions a {

    color: white;

    font-weight: 700;

}

.back-top {

    width: 50px;
    height: 50px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--blue);
    color: white;

    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 9999;

    box-shadow: 0 6px 20px rgba(0, 0, 0, .20);

    transition:
        background .3s,
        transform .3s;
}


/* ==============================================================
   15 — SCROLL REVEAL ANIMACIJE
================================================================= */

.reveal,
.reveal-left,
.reveal-right {

    opacity: 0;

    transition:
        opacity .9s ease,
        transform .9s cubic-bezier(.2, .7, .2, 1);

}

.reveal {

    transform:
        translateY(60px)
        scale(.97);

}

.reveal-left {

    transform:
        translateX(-70px);

}

.reveal-right {

    transform:
        translateX(70px);

}

.reveal.visible,
.reveal-left.visible,
.reveal-right.visible {

    opacity: 1;

    transform:
        translate(0, 0)
        scale(1);

}


/* ==============================================================
   16 — TABLET
================================================================= */

@media (max-width: 950px) {

    .section {

        padding: 95px 0;

    }

    .two-columns,
    .contact-grid {

        grid-template-columns: 1fr;

        gap: 50px;

    }

    .cards-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }

    .slideshow,
    .program-slideshow,
    .image-zoom {

        height: 570px;

    }

    .contact-info {

        order: 1;

    }

    .map-wrapper {

        order: 2;

    }

}


/* ==============================================================
   17 — MOBILNI / HAMBURGER
================================================================= */

@media (max-width: 760px) {

    .navbar {

        height: 68px;

        padding: 0 17px;

        border-radius: 18px;

    }

    .nav-logo img {

        width: 100px;

    }

    .hamburger {

        display: block;

        position: relative;

        z-index: 1100;

    }

    .nav-links {

        position: fixed;

        top: 0;
        right: -110%;

        width: min(340px, 90vw);
        height: 100vh;

        padding: 130px 40px 40px;

        flex-direction: column;

        align-items: flex-start;

        gap: 30px;

        background:
            rgba(255, 255, 255, .97);

        backdrop-filter: blur(20px);

        box-shadow:
            -20px 0 60px rgba(0, 0, 0, .12);

        transition:
            right .45s cubic-bezier(.2, .7, .2, 1);

    }

    .nav-links.active {

        right: 0;

    }

    .nav-links a {

        font-size: 26px;

    }

    .hamburger.active span:nth-child(1) {

        transform:
            translateY(8px)
            rotate(45deg);

    }

    .hamburger.active span:nth-child(2) {

        opacity: 0;

    }

    .hamburger.active span:nth-child(3) {

        transform:
            translateY(-8px)
            rotate(-45deg);

    }


    /* HERO */

    .hero h1 {

        letter-spacing: -2px;

    }

    .hero-logo {

        width: min(280px, 70vw);

    }


    /* LAYOUT */

    .container {

        width:
            min(100% - 30px, 1180px);

    }

    .section-heading {

        width:
            min(100% - 30px, 950px);

        margin-bottom: 50px;

    }

    h2 {

        letter-spacing: -2px;

    }

    .cards-grid,
    .enrollment-grid {

        grid-template-columns: 1fr;

    }

    .feature-card {

        min-height: 280px;

    }


    /*
    Na telefonu nema hover-a,
    zato odmah prikazujemo opis kartice.
    */

    .feature-card p,
    .enrollment-card p {

        max-height: 150px;

        opacity: 1;

        transform: none;

        margin-top: 10px;

    }

    .feature-card::before {

        opacity: .08;

    }

    .slideshow,
    .program-slideshow,
    .image-zoom {

        height: 480px;

    }

    .map-wrapper,
    .map-wrapper iframe {

        min-height: 450px;

    }

    .contact-list div {

        grid-template-columns: 1fr;

        gap: 4px;

    }

    .footer-inner {

        flex-direction: column;

        text-align: center;

    }

}


/* ==============================================================
   18 — MALI TELEFONI
================================================================= */

@media (max-width: 480px) {

    .section {

        padding: 80px 0;

    }

    .hero h1 {

        font-size: 43px;

    }

    .hero-content p {

        font-size: 16px;

    }

    h2 {

        font-size: 39px;

    }

    .slideshow,
    .program-slideshow,
    .image-zoom {

        height: 420px;

    }

    .feature-card,
    .enrollment-card {

        padding: 28px;

    }

}


/* ==============================================================
   19 — ACCESSIBILITY
================================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;

    }

}

/* =============================================================
   MOBILE - SPREČAVA POMERANJE SAJTA LEVO/DESNO
============================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 768px) {

    .reveal-left,
    .reveal-right {
        transform: translateY(30px);
    }

    .reveal-left.visible,
    .reveal-right.visible {
        transform: translateY(0);
    }
}