﻿/* =========================
   GLOBAL
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* scale-down цела страница */
    font-size: 14px;
}

body {
    font-family: "Segoe UI", sans-serif;
    background: #ffffff;
    color: #333;
}

/* =========================
   NAVBAR
========================= */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    z-index: 9999;
    transition: .3s;
}

.scrolled .top-nav {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1300px;
    margin: auto;
    width: 100%;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 48px;
    object-fit: contain;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

    .nav-links li a {
        text-decoration: none;
        font-size: 1.05rem;
        font-weight: 600;
        color: #003e80;
        transition: .2s;
    }

        .nav-links li a:hover {
            color: #2c6ff8;
        }

/* burger */
.nav-toggle {
    font-size: 28px;
    display: none;
    cursor: pointer;
}

/* =========================
   HERO
========================= */
.hero {
    position: relative;
    margin-top: 70px; /* под navbar */
    min-height: 70vh; /* наместо огромна фиксна висина */
    background: url('../Content/Images/mojservis1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 70px; /* малку помал padding */
    overflow: hidden;
}

    /* overlay */
    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient( to bottom right, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.25), rgba(255, 255, 255, 0.10) );
        backdrop-filter: blur(2px);
        opacity: 0;
        animation: heroFade 2s ease forwards;
        animation-delay: 0.5s;
    }

@keyframes heroFade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* LEFT TABS */
.hero-tabs {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-tab {
    background: rgba(255,255,255,0.30);
    backdrop-filter: blur(18px);
    padding: 10px 18px;
    border-radius: 18px;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.45);
    transition: all .25s ease;
}

    .hero-tab:hover {
        transform: translateX(6px);
        background: rgba(255,255,255,0.38);
    }

    .hero-tab.active {
        background: rgba(255,255,255,0.65);
        color: #003e80;
    }

/* =========================
   GLASS FORM BOX
========================= */
.glass-form {
    position: absolute;
    top: 50%;
    right: 8%; /* поблиску до десната страна, но не премногу */
    transform: translateY(-50%);
    width: 55%;
    max-width: 820px;
    padding: 26px 28px;
    border-radius: 32px;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.35);
    box-shadow: 0 12px 38px rgba(0,0,0,0.5);
    opacity: 0;
    color: #003e80;
    transition: opacity .55s ease, transform .55s ease;
    z-index: 9;
}

    .glass-form.show-box {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }

/* scrollable content inside box */
.form-scroll {
    max-height: 430px;
    overflow-y: auto;
    padding-right: 10px;
}

    /* scrollbar */
    .form-scroll::-webkit-scrollbar {
        width: 8px;
    }

    .form-scroll::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.18);
        border-radius: 10px;
    }

    .form-scroll::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.55);
        border-radius: 10px;
    }

/* title inside glass box */
.box-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: #0048b8;
}

/* collapsible sections */
.collapse-section {
    margin-top: 18px;
}

.collapse-header {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 0;
    color: #0048b8;
}

.collapse-icon {
    font-size: 1.6rem;
    font-weight: 700;
    margin-right: 10px;
    transition: .25s ease;
}

.collapse-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    font-size: 1rem;
    margin-top: 4px;
    color: #111;
    transition: max-height .35s ease, opacity .35s ease;
}

/* opened */
.collapse-section.open .collapse-content {
    max-height: 500px;
    opacity: 1;
}

.collapse-section.open .collapse-icon {
    transform: rotate(180deg);
}

/* =========================
   BRAND BANNER
========================= */
.brand-banner {
    width: 100%;
    padding: 22px 0;
    background: #f5f7fa;
    border-top: 1px solid rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
    margin-top: 20px;
}

.brand-track {
    display: flex;
    gap: 60px;
    align-items: center;
    animation: brandScroll 24s linear infinite;
}

.brand-banner img {
    height: 42px;
    object-fit: contain;
    filter: grayscale(20%) opacity(0.9);
    transition: 0.3s;
}

    .brand-banner img:hover {
        filter: grayscale(0%) opacity(1);
        transform: scale(1.08);
    }

@keyframes brandScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================
   FOOTER
========================= */
footer {
    background: #1f1f1f;
    color: #e0e0e0;
    padding: 50px 5% 25px 5%;
    margin-top: 20px;
}

.footer-container {
    max-width: 1300px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-logo img {
    height: 80px;
    object-fit: contain;
}

.footer-info,
.footer-hours {
    min-width: 240px;
}

    .footer-info h3,
    .footer-hours h3 {
        color: #ffffff;
        font-size: 1.5rem;
        margin-bottom: 12px;
        font-weight: 600;
    }

    .footer-info p,
    .footer-hours p {
        margin: 6px 0;
        font-size: 1.05rem;
        color: #d0d0d0;
    }

.highlight {
    color: #2c6ff8;
}

/* footer map */
#footerMap {
    width: 100%;
    height: 220px;
    margin: 30px auto 0 auto;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    max-width: 1300px;
}

/* bottom line */
.footer-bottom {
    text-align: center;
    margin-top: 25px;
    font-size: 0.95rem;
    color: #bbbbbb;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 15px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: rgba(255,255,255,0.95);
        flex-direction: column;
        display: none;
        text-align: center;
        padding: 20px 0;
    }

        .nav-links.open {
            display: flex;
        }

        .nav-links li {
            padding: 12px 0;
        }

    .hero {
        flex-direction: column;
        align-items: stretch;
        /* push everything down a bit below the fixed navbar */
        padding: 100px 16px 40px;
    }

    .glass-form {
        position: static; /* no absolute on mobile */
        top: auto;
        right: auto;
        transform: none; /* remove translateY */
        width: 100%;
        max-width: 900px;
        margin: 40px auto 0; /* <<< moves it LOWER */
    }
}

@media (max-width: 600px) {

    .hero-tabs {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
    }

    .hero-tab {
        font-size: 1.05rem;
        padding: 8px 14px;
    }

    .box-title {
        font-size: 1.5rem;
    }

    .footer-info h3,
    .footer-hours h3 {
        font-size: 1.3rem;
    }

    .footer-info p,
    .footer-hours p {
        font-size: 0.95rem;
    }
    .hero {
        padding: 110px 14px 40px; /* even more space on very small screens */
    }

    .glass-form {
        margin-top: 50px; /* extra gap under the tabs */
        padding: 22px 18px; /* slightly smaller padding */
        border-radius: 26px;
    }
}
