html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: 
        linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.85)),
        url('/uploads/pozadina/bg-cars.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* HEADER */
.site-header {
    background: transparent;
    padding: 25px;
    padding-bottom: 40px;
    text-align: center;
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    margin-bottom: 20px;
}

.logo img {
    max-width: 150px;
    margin-bottom: 20px;
}

.nav-wrapper {
    position: relative;
}

/* DESKTOP NAV */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.main-nav a {
    color: #ccc;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: 0.2s ease;
    position: relative;
}

/* underline animacija */
.main-nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -6px;
    background: #22c55e;
    transition: 0.3s ease;
}

.main-nav a:hover {
    color: #fff;
}

.main-nav a:hover::after {
    width: 100%;
}

/* HAMBURGER */
.menu-toggle {
    display: none;
    margin-bottom: 20px;
    font-size: 28px;
    color: #fff;
    cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

    .main-nav {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 16px;
        margin-top: 18px;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-10px);
        transition: max-height 0.35s ease, opacity 0.3s ease, transform 0.3s ease;
    }

    .main-nav.active {
        max-height: 300px;
        opacity: 1;
        transform: translateY(0);
    }

    .menu-toggle {
        display: block;
        position: absolute;
        right: 12px;
        top: -5px;
        font-size: 28px;
        color: #fff;
        cursor: pointer;
        z-index: 1001;
    }
}

.cars-section {
    padding: 80px 5%;
}

/* PRAVI GRID */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(280px, 360px));
    justify-content: center;
    gap: 30px;
}

/* Responsive */
@media (max-width: 1100px) {
    .cars-grid {
        grid-template-columns: repeat(2, minmax(280px, 360px));
    }
}

@media (max-width: 700px) {
    .cars-grid {
        grid-template-columns: minmax(280px, 360px);
    }
}

@media (max-width: 768px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-nav {
        justify-content: center;
    }
}

.car-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
    transition: 0.25s ease;
    display: flex;
    flex-direction: column;
    border: 2px solid #000;
}

.car-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.car-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.car-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.car-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.car-title {
    font-size: 18px;
    font-weight: 700;
}

.car-title a {
    text-decoration: none;
    color: #111;
}

.car-year {
    background: #eef2ff;
    color: #3730a3;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.car-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    font-size: 14px;
    color: #555;
}

.spec {
    background: #f9fafb;
    padding: 8px 10px;
    border-radius: 10px;
}

.spec strong {
    display: block;
    font-size: 15px;
    color: black;
}

.car-price-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.car-price {
    font-size: 24px;
    font-weight: 800;
    color: #22c55e;
}

.car-btn {
    background: #22c55e;
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.car-btn:hover {
    background: #16a34a;
}

/* FOOTER */

.site-footer {
    background: transparent;
    backdrop-filter: blur(8px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    padding: 25px 5%;
    margin-top: 60px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    text-align: center;
}

.footer-left {
    font-size: 14px;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s ease;
}

.footer-nav a:hover {
    color: #22c55e;
}