﻿/* GLOBAL */
body {
    margin: 0;
    font-family: Montserrat, sans-serif;
    color: #222;
    background: #fff;
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 56px;
    box-sizing: border-box;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(6px);
    z-index: 999;
}

.logo {
    height: 30px;
}

/* HAMBURGER BUTTON */
.menu-btn {
    width: 42px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 4px;
}

    .menu-btn span {
        height: 5px;
        background: #E93042;
        border-radius: 3px;
        transition: 0.3s ease;
    }

    /* HAMBURGER ANIMATION (open → X) */
    .menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

/* SIDE MENU */
.side-menu {
    position: fixed;
    right: -260px;
    top: 0;
    width: 260px;
    height: 100vh;
    background: #E93042;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease;
    z-index: 999;
}

    .side-menu.open {
        right: 0;
    }

    .side-menu a {
        color: white;
        text-decoration: none;
        padding: 18px 30px;
        font-size: 20px;
        font-weight: 600;
    }

/* HERO */
/* HERO FULLSCREEN BACKGROUND */
.hero {
    position: relative;
    width: 100%;
    margin-top: 56px;
    aspect-ratio: 16 / 9;
    background-image: url('images/RR_Project_03_A3.webp');
    background-size: 100% 100%;
    background-position: center top;
    background-repeat: no-repeat;
}

/* OVERLAY */
.hero-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    z-index: 2;
}

/* H1 */

.hero-left {
    position: absolute;
    top: 12%;
    left: 3%;
    width: 60%;
}

.hero-left h1 {
    margin: 0;
    font-size: 45px;
    line-height: 1.15;
    color: #024996;
}

/* H2 DESNO */
.hero-right {
    position: absolute;
    top: 8%;
    right: 2%;
    width: 21%;
}

.hero-right h2 {
    margin: 0 0 57px 0;
    font-size: 16px;
    line-height: 1.3;
    text-align: left;
    color: #024996;
    text-shadow: 0 3px 8px rgba(0,0,0,0.4);
}

.hero-right h2 .line1 {
    color: #024996;        /* temno modra */
    font-weight: 600;
}

.hero-right h2 .line2 {
    color: #4A8BD8;        /* svetlejša modra */
    font-weight: 500;
    display: block;
    margin-top: 4px;       /* razmik med vrsticama */
}


/* FOOTER */
.footer {
    text-align: center;
    position: relative;
    z-index: 3;    
    margin-top: 0;
    background: #222;
    color: #fff;
    font-size: 14px;
}
.footer a {
    color: #ffffff;      /* bela barva */
    text-decoration: none;
    font-weight: 600;

}

.footer a:hover {
    color: #cccccc;      /* rahlo svetlejša ob hoverju */
    text-decoration: underline;
}

/* =========================================================
   MOBILE
   RR_Project_02_A4.webp = 1086 x 1448 = 3 : 4
   ========================================================= */
@media (max-width: 768px) {

    .header {
        height: 52px;
        padding: 10px 16px;
        box-sizing: border-box;
    }

    /* HERO – mobilni 3:4 */
    .hero {
        width: 100%;
        margin-top: 52px;
        aspect-ratio: 3 / 4;
        background-image: url('images/RR_Project_02_A4.webp');
        background-size: cover;
        background-position: center top;
        background-repeat: no-repeat;
        position: relative;
    }

    /* OVERLAY */
    .hero-overlay {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    /* H1 – mobilni */
    .hero-left {
        position: absolute;
        top: 14%;
        left: 5%;
        width: 90%;
        text-align: center;
        z-index: 2;
    }

    .hero-left h1 {
        margin: 0;
        font-size: 28px;
        line-height: 1.2;
        color: #024996;
        text-shadow: 0 2px 5px rgba(255,255,255,0.8);
    }

    /* DESNI DEL – mobilni */
    
    .hero-right {
        position: absolute;
        top: 30%;
        left: 44%;        /* bolj desno */
        width: 70%;       /* ožji blok */
        z-index: 2;
        display: flex;
        flex-direction: column;
        gap: 1px;         /* manjši razmik med h2 */
    }

    .hero-right h2 {
        margin: 0;
        font-size: 12px;
        line-height: 1.0;   /* manjši razmik */
        text-align: left;    /* poravnava levo */
        color: #FF0622;
        text-shadow: none;   /* shadow povečuje razmik */
        /*text-shadow: 0 2px 5px rgba(255,255,255,0.85);*/
    }

    /* Dvovrstični layout */
    .hero-right h2 .line1 {
        /*display: block;*/ 
        display: none;     /* ne želimo prikazovati linije 1*/   
        font-weight: 600;
        color: #FF0622;
    }

    .hero-right h2 .line2 {
        display: block;
        margin-top: 2px;     /* manjši razmik med vrsticama */
        font-weight: 700;
        color: #FF0622;
    }

    /* FOOTER */
    .footer {
        font-size: 12px;
        padding: 10px;
    }
}
