/* =========================================================
   OSNOVNO
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #f5f7fa;
    color: #0b2f68;
}

.container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
}

a {
    text-decoration: none;
    color: inherit;
}


/* =========================================================
   HEADER
========================================================= */

header {
    width: 100%;
    height: 102px;
    background: #ffffff;
    display: flex;
    align-items: center;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.06);
    position: relative;
    z-index: 20;
}

.header-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */

.logo-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 82px;
    height: 82px;
    object-fit: contain;
}

.logo-title {
    color: #143b78;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* NAV */

nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

nav a {
    position: relative;
    text-decoration: none;
    color: #111;
    font-size: 14px;
    font-weight: 700;
    padding: 41px 0 27px;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 20px;
    width: 0;
    height: 3px;
    background: #df1b23;
    transition: 0.3s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a.active {
    color: #143b78;
}

/* DESNA STRANA */

.right-side {
    display: flex;
    align-items: center;
    gap: 28px;
}

.phone {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111;
    font-size: 14px;
    font-weight: 700;
}

.phone i {
    font-size: 17px;
}

/* DUGME */

.offer-btn {
    border: none;
    background: #df1b23;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    padding: 17px 25px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.offer-btn i {
    margin-left: 6px;
}

.offer-btn:hover {
    background: #c9141b;
}

/* HAMBURGER - SKRIVEN NA DESKTOPU */

.hamburger {
    display: none;
}



/* =========================================================
   HERO
========================================================= */

.cert-hero {
    min-height: 390px;
    position: relative;
    background-image: url("images/transport.jpg");
    background-size: 100%;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4, 34, 82, 0.97) 0%,
            rgba(8, 50, 105, 0.86) 38%,
            rgba(7, 53, 109, 0.45) 70%,
            rgba(7, 45, 94, 0.25) 100%
        );
}

.cert-hero-content {
    min-height: 390px;

    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    color: white;
    max-width: 680px;
}

.hero-text > span {
    display: block;

    color: #ffffff;

    font-size: 14px;
    font-weight: 800;

    letter-spacing: 4px;

    margin-bottom: 18px;
}

.hero-text h1 {
    font-size: 54px;
    line-height: 1.08;
    font-weight: 800;

    margin-bottom: 22px;
}

.hero-text p {
    max-width: 580px;

    font-size: 17px;
    line-height: 1.7;

    color: rgba(255, 255, 255, 0.92);
}

.red-line {
    width: 65px;
    height: 4px;

    background: #e31b23;

    margin-top: 25px;
}

.hero-side-text {
    color: rgba(255, 255, 255, 0.9);

    font-size: 15px;
    font-weight: 700;

    letter-spacing: 2px;
    line-height: 1.7;

    text-align: right;

    padding-right: 20px;
}

.hero-side-text div {
    margin-bottom: 22px;
}


/* =========================================================
   CERTIFICATES SECTION
========================================================= */

.certificates {
    padding: 80px 0 70px;

    background: #f5f7fa;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 50px;

    margin-bottom: 45px;
}

.heading-left {
    max-width: 720px;
}

.heading-left > span {
    display: block;

    color: #e31b23;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 3px;

    margin-bottom: 12px;
}

.heading-left h2 {
    font-size: 40px;
    line-height: 1.15;

    color: #0b3675;

    font-weight: 800;

    margin-bottom: 17px;
}

.heading-left p {
    color: #6d7785;

    font-size: 15px;
    line-height: 1.7;
}

.heading-info {
    width: 420px;

    padding: 22px;

    background: #ffffff;

    border: 1px solid #e2e7ed;

    border-radius: 14px;

    display: flex;
    align-items: center;

    gap: 18px;

    box-shadow: 0 8px 25px rgba(0, 30, 70, 0.05);
}

.info-icon {
    min-width: 65px;
    height: 65px;

    border-radius: 50%;

    background: #eef4fb;

    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon i {
    font-size: 28px;
    color: #0b3675;
}

.heading-info h3 {
    color: #0b3675;

    font-size: 14px;
    font-weight: 800;

    margin-bottom: 7px;
}

.heading-info p {
    color: #7a8490;

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   CERTIFICATE GRID
========================================================= */

.certificate-grid {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 22px;
}

.certificate-card {
    background: #ffffff;

    border-radius: 13px;

    overflow: hidden;

    border: 1px solid #e3e8ee;

    box-shadow:
        0 8px 25px rgba(0, 30, 70, 0.06);

    transition: 0.3s;

    display: flex;
    flex-direction: column;
}

.certificate-card:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 35px rgba(0, 30, 70, 0.12);
}


/* PDF PREVIEW */

.pdf-preview {
    height: 300px;

    background: #eef1f5;

    position: relative;

    overflow: hidden;

    border-bottom: 1px solid #e2e7ed;
}

.pdf-preview iframe {
    width: 100%;
    height: 100%;

    border: none;

    background: white;
}


/*
   Blago zatamnjenje na hover.
   Ne blokira klik jer pointer-events = none.
*/

.preview-overlay {
    position: absolute;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(6, 43, 91, 0);

    transition: 0.3s;

    pointer-events: none;
}

.preview-overlay i {
    color: white;

    font-size: 42px;

    opacity: 0;

    transform: scale(0.7);

    transition: 0.3s;
}

.certificate-card:hover .preview-overlay {
    background: rgba(6, 43, 91, 0.18);
}

.certificate-card:hover .preview-overlay i {
    opacity: 1;
    transform: scale(1);
}


/* CONTENT */

.certificate-content {
    padding: 22px;

    display: flex;
    flex-direction: column;

    flex: 1;
}

.certificate-number {
    color: #e31b23;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 9px;
}

.certificate-content h3 {
    color: #0b3675;

    font-size: 17px;
    line-height: 1.35;

    font-weight: 800;

    margin-bottom: 10px;
}

.certificate-content p {
    color: #7a8490;

    font-size: 12px;
    line-height: 1.6;

    margin-bottom: 20px;
}

.pdf-btn {
    margin-top: auto;

    width: 100%;

    background: #0b3675;
    color: white;

    padding: 13px 15px;

    border-radius: 7px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    font-size: 11px;
    font-weight: 800;

    transition: 0.3s;
}

.pdf-btn i:last-child {
    font-size: 11px;
}

.pdf-btn:hover {
    background: #e31b23;
}

/* PRIVATNI SERTIFIKATI */

.private-certificates-link {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 35px;
}

.private-certificates-link a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background: #0b3675;
    color: #ffffff;

    padding: 13px 28px;
    border-radius: 7px;

    font-size: 11px;
    font-weight: 800;

    transition: 0.3s;
}

.private-certificates-link a:hover {
    background: #e31b23;
    transform: translateY(-2px);
}

.private-certificates-link a i {
    font-size: 11px;
}


/* =========================================================
   VALUES
========================================================= */

.values {
    padding: 0 0 75px;

    background: #f5f7fa;
}

.values-grid {
    background: white;

    border-radius: 15px;

    border: 1px solid #e1e6ec;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    overflow: hidden;
}

.value {
    padding: 28px 24px;

    display: flex;
    align-items: center;

    gap: 15px;

    border-right: 1px solid #e1e6ec;
}

.value:last-child {
    border-right: none;
}

.value-icon {
    min-width: 55px;
    height: 55px;

    border-radius: 50%;

    background: #edf3fa;

    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon i {
    color: #0b3675;
    font-size: 21px;
}

.value h3 {
    color: #0b3675;

    font-size: 13px;
    font-weight: 800;

    margin-bottom: 5px;
}

.value p {
    color: #7c8691;

    font-size: 10px;
    line-height: 1.5;
}


/* =========================================================
   CTA
========================================================= */

.cert-cta {
    position: relative;

    min-height: 175px;

    background-image:
        url("images/transport.jpg");

    background-size: cover;
    background-position: center 65%;

    overflow: hidden;
}

.cta-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(4, 36, 82, 0.97),
            rgba(6, 52, 106, 0.88)
        );
}

.cta-content {
    min-height: 175px;

    position: relative;
    z-index: 2;

    display: flex;
    align-items: center;

    gap: 25px;
}

.cta-icon {
    width: 68px;
    height: 68px;

    min-width: 68px;

    border-radius: 50%;

    background: rgba(255, 255, 255, 0.14);

    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-icon i {
    color: white;
    font-size: 27px;
}

.cta-text {
    flex: 1;
}

.cta-text h2 {
    color: white;

    font-size: 25px;
    font-weight: 800;

    margin-bottom: 7px;
}

.cta-text p {
    color: rgba(255, 255, 255, 0.8);

    font-size: 13px;
}

.cta-btn {
    background: #e31b23;
    color: white;

    padding: 17px 25px;

    border-radius: 7px;

    font-size: 12px;
    font-weight: 800;

    display: flex;
    align-items: center;
    gap: 12px;

    transition: 0.3s;
}

.cta-btn:hover {
    background: #c9141b;
    transform: translateY(-2px);
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    margin-top: 18px;

    background: linear-gradient(135deg, #16314d 0%, #0f2338 100%);

    color: #fff;

    overflow: hidden;
}

.footer-grid {
    padding: 35px 0 28px;

    display: grid;

    grid-template-columns: 1.4fr 1fr 1.2fr;

    gap: 40px;

    align-items: flex-start;
}

.footer-brand {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-bottom: 15px;
}

.footer-logo {
    width: 75px;
    height: 75px;

    object-fit: contain;
}

.footer-brand h2 {
    font-size: 25px;
    font-weight: 800;
}

.footer-box > p {
    color: #d0d8e2;

    font-size: 14px;
    line-height: 1.7;

    max-width: 350px;
}

.footer-box h3 {
    font-size: 14px;

    margin-bottom: 20px;

    position: relative;

    padding-bottom: 12px;
}

.footer-box h3::after {
    content: "";

    position: absolute;

    bottom: 0;
    left: 0;

    width: 55px;
    height: 3px;

    background: #e31b23;
}

.footer-box a {
    display: block;

    color: #d0d8e2;

    font-size: 13px;

    margin-bottom: 13px;

    transition: 0.3s;
}

.footer-box a:hover {
    color: white;
}

.footer-box p {
    color: #d0d8e2;

    font-size: 13px;

    margin-bottom: 15px;
}

.footer-box p i {
    width: 25px;

    color: #e31b23;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom-content {
    min-height: 60px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #b9c4d0;

    font-size: 12px;
}

.footer-bottom-content div {
    display: flex;
    gap: 12px;
}

.footer-bottom-content a:hover {
    color: white;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {

    nav {
        gap: 18px;
    }

    .right-side {
        gap: 15px;
    }

    .phone {
        font-size: 13px;
    }

    .offer-btn {
        padding: 17px 20px;
    }

    .certificate-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .value:nth-child(2) {
        border-right: none;
    }

    .value:nth-child(-n+2) {
        border-bottom: 1px solid #e1e6ec;
    }
}


@media (max-width: 900px) {

    header {
        height: auto;
        padding: 12px 0;
    }

    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }

    nav {
        order: 3;
        width: 100%;
        height: 50px;

        justify-content: center;

        gap: 20px;
    }

    nav a {
        height: 50px;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-side-text {
        display: none;
    }

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .heading-info {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 650px) {

    .container {
        width: 92%;
    }

    .logo {
        width: 70px;
        height: 70px;
    }

    .logo-title {
        font-size: 23px;
    }

    .right-side {
        display: none;
    }

    nav {
        overflow-x: auto;
        justify-content: flex-start;
    }

    nav a {
        white-space: nowrap;
        font-size: 12px;
    }

    .cert-hero {
        min-height: 330px;
    }

    .cert-hero-content {
        min-height: 330px;
    }

    .hero-text h1 {
        font-size: 34px;
    }

    .hero-text p {
        font-size: 14px;
    }

   .certificates {
    padding: 20px 0 55px;
}

    .heading-left h2 {
        font-size: 31px;
    }

    .certificate-grid {
        grid-template-columns: 1fr;
    }

    .pdf-preview {
        height: 350px;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .value {
        border-right: none;
        border-bottom: 1px solid #e1e6ec;
    }

    .value:last-child {
        border-bottom: none;
    }

    .cta-content {
        padding: 30px 0;

        flex-wrap: wrap;
    }

    .cta-text {
        min-width: calc(100% - 100px);
    }

    .cta-btn {
        margin-left: 93px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-bottom-content {
        flex-direction: column;
        justify-content: center;

        gap: 10px;

        padding: 15px 0;
    }
    /* =========================================================
   MOBILNA VERZIJA
========================================================= */

.hamburger {
    display: none;
}


@media (max-width: 650px) {

    /* HAMBURGER */

    .hamburger {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 45px;
        height: 45px;

        border: none;
        background: transparent;

        color: #0b3675;
        font-size: 25px;

        cursor: pointer;
    }


    /* SAKRIJ DESKTOP NAVIGACIJU */

    nav#main-nav {
        display: none;
    }

    nav#main-nav.active {
    display: flex;

    position: absolute;

    top: 100%;
    left: 0;

    width: 100%;

    height: auto;
    overflow: visible;

    flex-direction: column;
    align-items: center;

    gap: 0;

    padding: 10px 0;

    background: #ffffff;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);

    z-index: 100;
}

    nav#main-nav.active a {
        width: 100%;
        text-align: center;

        padding: 14px 0;

        font-size: 13px;
    }

    nav#main-nav.active a::after {
        display: none;
    }


    /* =====================================================
       HERO - MOBILNI
    ===================================================== */

    .cert-hero {
        min-height: 0;

        background: #f5f7fa;

        position: relative;

        padding: 0;
    }


    /* SLIKA VOZA NA VRHU */

    .cert-hero::before {
        content: "";

        display: block;

        width: 100%;
        height: 180px;

        background-image: url("images/transport.jpg");
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
    }


    /* SKLANJAMO PLAVI OVERLAY */

    .hero-overlay {
        display: none;
    }


    /* TEKST ISPOD SLIKE */

    .cert-hero-content {
    display: none;
}


    .hero-text {
    max-width: 100%;
    color: #0b3675;
    display: none;
}


    .hero-text > span {
        color: #e31b23;

        font-size: 13px;

        letter-spacing: 4px;

        margin-bottom: 15px;
    }


    .hero-text h1 {
        color: #0b3675;

        font-size: 34px;

        line-height: 1.12;

        margin-bottom: 0;
    }


    /* SKLANJAMO OPIS NA TELEFONU */

    .hero-text p {
        display: none;
    }


    /* SKLANJAMO CRVENU LINIJU */

    .hero-text .red-line {
        display: none;
    }

}

}
