/* =========================================================
   OSNOVNO
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #eef1f5;
    color: #0b2d6b;
    overflow-x: hidden;
}

.container {
    width: 92%;
    max-width: 1450px;
    margin: 0 auto;
}


/* =========================================================
   HEADER
========================================================= */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background: #ffffff;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
}

.header-content {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   LOGO
========================================================= */

.logo-box {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    height: 75px;
    width: auto;
    object-fit: contain;
}

.logo-title {
    margin: 0;
    font-size: 26px;
    font-weight: 800;
    color: #0b2d6b;
    letter-spacing: 1px;
}


/* =========================================================
   NAVIGACIJA
========================================================= */

nav {
    display: flex;
    gap: 24px;
}

nav a {
    position: relative;
    text-decoration: none;
    color: #111;
    font-size: 13px;
    font-weight: 700;
    transition: .3s;
}

nav a:hover,
nav a.active {
    color: #0b2d6b;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -18px;
    width: 0;
    height: 3px;
    background: #d71920;
    transition: .3s;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}


/* =========================================================
   HAMBURGER
========================================================= */

.hamburger {
    display: none;

    border: none;
    background: transparent;

    color: #0b2d6b;

    font-size: 26px;

    cursor: pointer;

    padding: 8px;

    align-items: center;
    justify-content: center;
}


/* =========================================================
   DESNA STRANA
========================================================= */

.right-side {
    display: flex;
    align-items: center;
    gap: 25px;
}

.phone {
    display: flex;
    align-items: center;

    font-size: 14px;
    font-weight: 700;

    color: #111;
}

.phone i {
    margin-right: 8px;
}


/* =========================================================
   HEADER BUTTON
========================================================= */

.right-side button {
    height: 48px;

    padding: 0 24px;

    border: none;
    border-radius: 10px;

    background: #d71920;
    color: #fff;

    font-family: 'Montserrat', sans-serif;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: .3s;
}

.right-side button:hover {
    background: #b9151b;
    transform: translateY(-2px);
}

.right-side button i {
    margin-left: 7px;
}


/* =========================================================
   KONTAKT SEKCIJA
========================================================= */

.contact-section {
    position: relative;

    width: 100%;
    min-height: 720px;

    margin-top: 90px;

    overflow: hidden;

    display: flex;
    align-items: center;

    background: #eef1f5;
}


/* =========================================================
   POZADINSKA SLIKA
========================================================= */

.contact-background {
    position: absolute;
    inset: 0;

    background-image: url("images/o-nama-bg.jpg");

    background-size: cover;
    background-position: center center;

    z-index: 0;
}


/* =========================================================
   OVERLAY
========================================================= */

.contact-overlay {
    position: absolute;
    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(238, 241, 245, 1) 0%,
            rgba(238, 241, 245, .90) 12%,
            rgba(238, 241, 245, .45) 27%,
            rgba(7, 31, 78, .42) 41%,
            rgba(7, 31, 78, .68) 54%,
            rgba(7, 31, 78, .86) 68%,
            rgba(7, 31, 78, .95) 82%,
            rgba(7, 31, 78, .98) 100%
        );
}


/* =========================================================
   DEKORACIJE
========================================================= */

.corner-ribbon {
    position: absolute;

    top: 0;
    right: 0;

    width: 0;
    height: 0;

    border-style: solid;
    border-width: 70px 70px 0 0;

    border-color:
        #df1b23
        transparent
        transparent
        transparent;

    opacity: .9;

    z-index: 3;
}

.diagonal-stripe {
    position: absolute;

    width: 190px;
    height: 34px;

    z-index: 2;

    pointer-events: none;
}

.stripe-red {
    background: #df1b23;

    bottom: 40px;
    right: -60px;

    transform: rotate(38deg);
}

.stripe-gray {
    background: rgba(255, 255, 255, .55);

    bottom: 0;
    right: -10px;

    transform: rotate(38deg);
}


/* =========================================================
   WATERMARK
========================================================= */

.railimpex-watermark {
    position: absolute;

    bottom: 20px;
    right: 0;

    z-index: 2;

    transform-origin: right bottom;
    transform: rotate(90deg);

    font-size: 90px;
    font-weight: 800;

    letter-spacing: 4px;

    color: rgba(255, 255, 255, .07);

    white-space: nowrap;

    pointer-events: none;
    user-select: none;
}


/* =========================================================
   KONTAKT KONTEJNER
========================================================= */

.contact-container {
    position: relative;

    z-index: 5;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 40px;
}


/* =========================================================
   FORMA
========================================================= */

.contact-form-box {
    width: 100%;
    max-width: 850px;

    background: #ffffff;

    border-radius: 22px;

    padding: 34px;

    margin: 45px 0;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, .18);
}


/* =========================================================
   HEADER FORME
========================================================= */

.form-header span {
    display: block;

    color: #df1b23;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 8px;
}

.form-header h1 {
    color: #0b2d6b;

    font-size: 28px;
    line-height: 1.2;

    font-weight: 800;

    margin-bottom: 8px;
}

.form-header p {
    color: #777;

    font-size: 13px;
    line-height: 1.6;

    margin-bottom: 25px;
}


/* =========================================================
   FORM ROW
========================================================= */

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}


/* =========================================================
   FORM GROUP
========================================================= */

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;

    color: #18324d;

    font-size: 12px;
    font-weight: 700;

    margin-bottom: 7px;
}


/* =========================================================
   INPUT
========================================================= */

.input-box {
    height: 48px;

    display: flex;
    align-items: center;

    padding: 0 14px;

    background: #f8f9fb;

    border: 1px solid #e1e5eb;

    border-radius: 8px;

    transition: .3s;
}

.input-box i {
    width: 24px;

    color: #7b8794;

    font-size: 14px;
}

.input-box input,
.input-box select {
    width: 100%;
    height: 100%;

    border: none;
    outline: none;

    background: transparent;

    font-family: 'Montserrat', sans-serif;

    font-size: 12px;

    color: #333;
}

.input-box input::placeholder {
    color: #9ba4af;
}

.input-box:focus-within {
    border-color: #0b2d6b;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(11, 45, 107, .06);
}

.input-box select {
    cursor: pointer;
}


/* =========================================================
   TEXTAREA
========================================================= */

.textarea-box {
    min-height: 120px;

    display: flex;
    align-items: flex-start;

    padding: 13px 14px;

    background: #f8f9fb;

    border: 1px solid #e1e5eb;

    border-radius: 8px;

    transition: .3s;
}

.textarea-box i {
    width: 24px;

    color: #7b8794;

    font-size: 14px;

    margin-top: 3px;
}

.textarea-box textarea {
    width: 100%;

    min-height: 90px;

    resize: vertical;

    border: none;
    outline: none;

    background: transparent;

    font-family: 'Montserrat', sans-serif;

    font-size: 12px;

    line-height: 1.6;

    color: #333;
}

.textarea-box textarea::placeholder {
    color: #9ba4af;
}

.textarea-box:focus-within {
    border-color: #0b2d6b;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(11, 45, 107, .06);
}


/* =========================================================
   CHARACTER COUNT
========================================================= */

.character-count {
    text-align: right;

    color: #9ba4af;

    font-size: 10px;

    margin-top: 4px;
}


/* =========================================================
   SUBMIT
========================================================= */

.contact-submit {
    width: 100%;
    height: 50px;

    border: none;
    border-radius: 8px;

    background: #df1b23;

    color: #ffffff;

    font-family: 'Montserrat', sans-serif;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: .3s;
}

.contact-submit i {
    margin-left: 8px;
}

.contact-submit:hover {
    background: #b9151b;

    transform: translateY(-2px);

    box-shadow:
        0 8px 18px rgba(215, 25, 32, .20);
}


/* =========================================================
   SECURITY
========================================================= */

.form-security {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 7px;

    color: #777;

    font-size: 10px;

    margin-top: 14px;
}

.form-security i {
    color: #0b2d6b;
}


/* =========================================================
   TEKST DESNO
========================================================= */

.intro-text {
    flex: 1;

    max-width: 460px;

    display: flex;

    flex-direction: column;
    justify-content: space-between;

    padding: 65px 0;

    color: #ffffff;
}

.intro-heading {
    font-size: 32px;

    font-weight: 800;

    line-height: 1.35;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.intro-tagline {
    font-size: 19px;

    font-weight: 800;

    line-height: 1.4;

    text-transform: uppercase;

    letter-spacing: .5px;
}

.intro-underline {
    width: 65px;
    height: 4px;

    background: #df1b23;

    margin-top: 18px;
}


/* =========================================================
   CTA
========================================================= */

.cta {
    margin-top: 35px;
    margin-bottom: 35px;
    padding: 0;

    background: #eef1f5;
}

.cta-wrapper {
    position: relative;

    overflow: hidden;

    display: flex;

    align-items: center;

    gap: 34px;

    padding: 30px 45px;

    border-radius: 20px;

    background:
        linear-gradient(
            rgba(15, 31, 58, .82),
            rgba(15, 31, 58, .82)
        ),
        url("images/o-nama-bg.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


/* =========================================================
   CTA TRAKE
========================================================= */

.cta-wrapper::before,
.cta-wrapper::after {
    content: "";

    position: absolute;

    width: 90px;
    height: 20px;

    background: #df1b23;

    z-index: 0;
}

.cta-wrapper::before {
    bottom: -6px;
    left: -20px;

    transform: rotate(-10deg);
}

.cta-wrapper::after {
    bottom: -6px;
    right: -20px;

    transform: rotate(10deg);
}


/* =========================================================
   CTA ELEMENTI
========================================================= */

.cta-icon,
.cta-text,
.cta-btn {
    position: relative;

    z-index: 1;
}


/* =========================================================
   CTA IKONA
========================================================= */

.cta-icon {
    flex-shrink: 0;

    width: 74px;
    height: 74px;

    border-radius: 50%;

    border: 2px solid #df1b23;

    display: flex;

    align-items: center;
    justify-content: center;
}

.cta-icon i {
    color: #df1b23;

    font-size: 26px;
}


/* =========================================================
   CTA TEKST
========================================================= */

.cta-text {
    flex: 1;
}

.cta-text h2 {
    color: #ffffff;

    font-size: 26px;

    font-weight: 800;

    margin-bottom: 8px;
}

.cta-text h2::after {
    content: "";

    display: block;

    width: 55px;
    height: 3px;

    background: #df1b23;

    margin-top: 10px;

    border-radius: 20px;
}

.cta-text p {
    color: rgba(255, 255, 255, .75);

    font-size: 14px;

    line-height: 1.6;

    max-width: 520px;
}


/* =========================================================
   CTA BUTTON
========================================================= */

.cta-btn {
    flex-shrink: 0;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    border: none;

    background: #df1b23;

    color: #ffffff;

    font-family: 'Montserrat', sans-serif;

    font-size: 13px;

    font-weight: 700;

    padding: 16px 28px;

    border-radius: 10px;

    white-space: nowrap;

    cursor: pointer;

    transition: .3s;
}

.cta-btn:hover {
    background: #b9151b;

    transform: translateY(-2px);
}

.cta-btn i {
    font-size: 12px;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    margin-top: 0;

    background:
        linear-gradient(
            135deg,
            #16314d 0%,
            #0f2338 100%
        );

    color: #ffffff;

    overflow: hidden;
}

.footer-grid {
    display: grid;

    grid-template-columns:
        1.4fr
        1fr
        1.2fr;

    gap: 40px;

    padding: 35px 0 28px;

    align-items: start;
}

.footer-brand {
    display: flex;

    align-items: center;

    gap: 16px;
}

.footer-logo {
    width: 75px;
    height: 75px;

    display: block;

    object-fit: contain;
}

.footer-brand h2 {
    margin: 0;

    color: #ffffff;

    font-size: 26px;

    font-weight: 800;

    letter-spacing: 1px;
}

.company-box p {
    max-width: 300px;

    color: #d6dde6;

    line-height: 1.7;

    font-size: 14px;

    margin-top: 18px;
}

.footer-box h3 {
    position: relative;

    display: inline-block;

    color: #ffffff;

    font-size: 17px;

    font-weight: 700;

    margin-bottom: 20px;
}

.footer-box h3::after {
    content: "";

    display: block;

    width: 45px;
    height: 3px;

    background: #d71920;

    margin-top: 10px;

    border-radius: 20px;
}

.footer-box a {
    display: block;

    width: fit-content;

    text-decoration: none;

    color: #d6dde6;

    margin-bottom: 12px;

    font-size: 14px;

    transition: .3s;
}

.footer-box a:hover {
    color: #ffffff;

    padding-left: 6px;
}

.footer-box p {
    color: #d6dde6;

    font-size: 14px;

    line-height: 1.8;

    margin-bottom: 12px;
}

.footer-box p i {
    width: 24px;

    margin-right: 8px;

    color: #d71920;
}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.footer-bottom-content {
    min-height: 70px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    color: #9eaab6;

    font-size: 13px;
}

.footer-legal {
    display: flex;

    align-items: center;

    gap: 12px;
}

.footer-legal a {
    display: inline;

    margin: 0;

    color: #b9c4d0;

    font-size: 13px;

    text-decoration: none;

    transition: .3s;
}

.footer-legal a:hover {
    color: #ffffff;

    padding-left: 0;
}

.footer-legal span {
    color: #778797;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    nav {
        gap: 16px;
    }

    .right-side {
        gap: 15px;
    }

    .phone {
        font-size: 12px;
    }

    .contact-form-box {
        max-width: 760px;
    }

    .intro-heading {
        font-size: 27px;
    }

    .footer-grid {
        gap: 30px;
    }
}


/* =========================================================
   TABLET / HAMBURGER
========================================================= */

@media (max-width: 900px) {

    header {
        height: 90px;
        padding: 0;
    }

    .header-content {
        height: 90px;
        flex-wrap: nowrap;
        gap: 0;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    nav {
        display: none;

        position: absolute;

        top: 90px;
        left: 0;

        width: 100%;

        background: #ffffff;

        flex-direction: column;

        align-items: center;

        gap: 0;

        padding: 10px 0 15px;

        box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
    }

    nav.active {
        display: flex;
    }

    nav a {
        width: 100%;

        text-align: center;

        padding: 14px 0;

        font-size: 13px;
    }

    nav a::after {
        display: none;
    }

    .right-side {
        display: none;
    }

    .contact-section {
        margin-top: 90px;

        min-height: auto;

        padding: 60px 0;
    }

    .contact-container {
        flex-direction: column;

        justify-content: center;

        gap: 40px;
    }

    .contact-form-box {
        max-width: 760px;

        margin: 0;
    }

    .intro-text {
        max-width: 760px;

        width: 100%;

        padding: 0;

        order: -1;
    }

    .railimpex-watermark,
    .diagonal-stripe,
    .corner-ribbon {
        display: none;
    }

    .cta-wrapper {
        flex-wrap: wrap;

        padding: 34px;
    }

    .cta-btn {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns:
            1.4fr
            1fr
            1fr;

        gap: 25px;
    }
}


/* =========================================================
   MOBILNA VERZIJA
========================================================= */

@media (max-width: 650px) {

    .container {
        width: 92%;
    }


    /* =====================================================
       HEADER
    ===================================================== */

    header {
        height: 90px;
    }

    .header-content {
        height: 90px;
    }

    .logo {
        width: 65px;
        height: 65px;
    }

    .logo-title {
        font-size: 22px;
    }

    .hamburger {
        display: flex;

        font-size: 25px;

        padding: 8px;
    }


    /* =====================================================
       NAV
    ===================================================== */

    nav {
        top: 90px;
    }


    /* =====================================================
       KONTAKT SEKCIJA
    ===================================================== */

    .contact-section {

        margin-top: 90px;

        min-height: auto;

        padding: 0;

        display: block;

        background: #eef1f5;
    }

    .contact-background {
        display: none !important;
    }

    .contact-overlay {
        display: none !important;
    }

    .corner-ribbon,
    .diagonal-stripe,
    .railimpex-watermark {
        display: none !important;
    }


    /* =====================================================
       KONTAKT KONTEJNER
    ===================================================== */

    .contact-container {

        width: 100%;

        display: block;

        margin: 0;

        padding: 0;
    }


    /* =====================================================
       SKLANJAMO DESNI TEKST
    ===================================================== */

    .intro-text {
        display: none !important;
    }


    /* =====================================================
       FORMA ODMAH ISPOD HEADERA
    ===================================================== */

    .contact-form-box {

        width: 100%;

        max-width: none;

        margin: 0;

        padding: 30px 20px;

        border-radius: 0;

        box-shadow: none;

        background: #ffffff;
    }


    /* =====================================================
       HEADER FORME
    ===================================================== */

    .form-header span {
        font-size: 11px;

        letter-spacing: 2px;

        margin-bottom: 8px;
    }

    .form-header h1 {
        font-size: 24px;

        line-height: 1.2;

        margin-bottom: 8px;
    }

    .form-header p {
        font-size: 13px;

        line-height: 1.6;

        margin-bottom: 22px;
    }


    /* =====================================================
       FORM ROW
    ===================================================== */

    .form-row {

        grid-template-columns: 1fr;

        gap: 0;
    }


    /* =====================================================
       INPUTI
    ===================================================== */

    .form-group {
        margin-bottom: 16px;
    }

    .input-box {
        height: 48px;
    }


    /* =====================================================
       TEXTAREA
    ===================================================== */

    .textarea-box {
        min-height: 120px;
    }


    /* =====================================================
       SUBMIT
    ===================================================== */

    .contact-submit {
        height: 50px;
    }


    /* =====================================================
       CTA
       BELI RAZMAK PRE FOOTERA
    ===================================================== */

    .cta {

        margin-top: 0;

        margin-bottom: 20px;

        padding: 0;

        background: #eef1f5;
    }

    .cta-wrapper {

        padding: 30px 20px;

        border-radius: 0;

        gap: 20px;
    }

    .cta-icon {
        width: 60px;
        height: 60px;
    }

    .cta-icon i {
        font-size: 22px;
    }

    .cta-text h2 {
        font-size: 21px;
    }


    /* =====================================================
       FOOTER
    ===================================================== */

    .footer-grid {

        grid-template-columns: 1fr;

        gap: 30px;

        padding: 40px 0;
    }

    .company-box p {
        max-width: 400px;
    }

    .footer-bottom-content {

        min-height: auto;

        padding: 18px 0;

        flex-direction: column;

        justify-content: center;

        text-align: center;

        gap: 12px;
    }
}


/* =========================================================
   MALI TELEFONI
========================================================= */

@media (max-width: 450px) {

    .logo-title {
        font-size: 20px;
    }

    .hamburger {
        font-size: 24px;
    }

    .form-header h1 {
        font-size: 23px;
    }

    .cta-text h2 {
        font-size: 19px;
    }

    .cta-text p {
        font-size: 13px;
    }

    .footer-brand {
        gap: 12px;
    }

    .footer-logo {
        width: 65px;
        height: 65px;
    }

    .footer-brand h2 {
        font-size: 22px;
    }
}