/* ===== BACKGROUND ===== */
html {
    overflow-x: hidden;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    overflow-x: hidden;
    max-width: 100%;
}

/* ===== TOPBAR ===== */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    display: flex;
    gap: 20px;
    align-items: center;

    padding: 12px 20px;
    background: transparent;
    backdrop-filter: blur(10px);

    z-index: 1000;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.img_topbar {
    padding-left: 50px;
    width: 100%;
    max-width: 350px;
    height: auto;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.topbar header a:hover .img_topbar {
    opacity: 0.8;
}

/* Topbar Phone */
.topbar-phone {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: auto;
    padding: 10px 26px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    background: #0142c8;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.topbar-phone:hover {
    background: #012a9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Topbar Contact Button */
.contact-btn {
    padding: 10px 26px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    background: #0142c8;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
}

.contact-btn:hover {
    background: #012a9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Menu Icon */
.menu-icon {
    font-size: 30px;
    cursor: pointer;
    color: black;
    display: block;
}

/* ===== SIDE NAVIGATION ===== */
.overlay {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: 0.5s;
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1001;
    top: 0;
    right: 0;
    background: linear-gradient(170deg, #012a9e 0%, #091660 100%);
    overflow-x: hidden;
    overflow-y: auto;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-top: 0;
    box-shadow: -6px 0 40px rgba(0, 0, 0, 0.3);
}

/* Nav header area */
.sidenav::before {
    content: 'ÚTIVINNA';
    display: block;
    padding: 28px 36px 24px;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.sidenav a {
    padding: 17px 36px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.82);
    display: block;
    transition: all 0.2s ease;
    letter-spacing: 0.4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    white-space: nowrap;
}

.sidenav a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding-left: 46px;
}

/* "Hafa samband" CTA link */
.sidenav a[href*="quote"] {
    margin: 24px 28px 0;
    padding: 14px 24px;
    background: white;
    color: #012a9e;
    border-radius: 8px;
    font-weight: 700;
    border-bottom: none;
    text-align: center;
    letter-spacing: 0.3px;
    transition: background 0.2s, transform 0.2s;
}

.sidenav a[href*="quote"]:hover {
    background: #f0f4ff;
    color: #012a9e;
    padding-left: 24px;
    transform: translateY(-1px);
}

.sidenav .closebtn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 26px;
    color: rgba(255, 255, 255, 0.6);
    padding: 6px 10px;
    border-bottom: none;
    border-radius: 6px;
    line-height: 1;
    transition: all 0.2s;
    white-space: nowrap;
}

.sidenav .closebtn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    padding-left: 10px;
    transform: none;
}

/* Sidenav phone link */
.sidenav-phone-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

@media screen and (max-width: 768px) {
    .topbar-phone {
        display: none;
    }
    .contact-btn {
        padding: 7px 12px;
        font-size: 0.8rem;
        margin-right: 4px;
        margin-left: auto;
    }
    .img_topbar {
        padding-left: 0;
        max-width: 160px;
    }
}

@media screen and (max-width: 414px) {
    .contact-btn {
        display: none;
    }
    .menu-icon {
        margin-left: auto;
    }
}
