/* =======================================================
   GLOBAL RESET + BASE STYLE
   ======================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #fafafa;
    background-image: radial-gradient(#ddd 1px, transparent 1px);
    background-size: 20px 20px;
    color: #111;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.25s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input, select {
    font-family: inherit;
}

ul, ol {
    list-style: none;
}


/* =======================================================
   VARIJABLE – #111111 PALETA
   ======================================================= */

:root {
    --primary: #111111;
    --primary-dark: #000000;
    --light: #ffffff;
    --light-muted: #f5f5f5;
    --text-main: #111111;
    --text-muted: #666666;
    --nav-bg: rgba(0, 0, 0, 0.75);
    --radius: 10px;
    --transition: 0.25s ease;
    --max-width: 1200px;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}


/* =======================================================
   NAVBAR – FIXED + RESPONSIVE
   ======================================================= */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    z-index: 1000;
    background: var(--nav-bg);
    display: flex;
    align-items: center;
}

.nav-container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
}

.nav-logo img {
    height: 70px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    position: relative;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    padding-bottom: 3px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #ffffff;
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}


/* MOBILE BURGER */

.nav-mobile-icon {
    display: none;
    color: #ffffff;
    font-size: 34px;
    cursor: pointer;
    position: relative;
    z-index: 2000;
}

.nav-mobile-icon i {
    transition: 0.2s linear;
}

/* MOBILE DROPDOWN */

.nav-mobile {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    background: #111111;
    display: flex;
    flex-direction: column;
    padding-top: 100px;
    transition: 0.35s ease;
    z-index: 1500;
}

.nav-mobile a {
    color: #ffffff;
    padding: 14px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    font-size: 18px;
}

.nav-mobile.open {
    right: 0;
}


/* LANGUAGE SWITCHER – skroz desno */
.nav-lang {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-right: 10px;
}

/* stil linkova */
.nav-lang a {
    position: relative;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    padding-bottom: 3px;
    opacity: 0.8;
    transition: 0.25s ease;
}

/* underline efekat kao nav links */
.nav-lang a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: #ffffff;
    transition: var(--transition);
}

.nav-lang a:hover {
    opacity: 1;
}

.nav-lang a:hover::after {
    width: 100%;
}

/* aktivni jezik */
.nav-lang .active {
    opacity: 1;
}

.nav-lang .active::after {
    width: 100%;
}

/* sakriti na mobilu (po tvojoj želji) */
@media(max-width: 900px) {
    .nav-lang {
        display: none;
    }
}

/* MOBILE SHOW/HIDE */

@media (max-width: 900px) {
    .nav-links {
        display: none;
    }
    .nav-mobile-icon {
        display: block;
    }
}

.mobile-lang {
    margin-top: 15px;
    text-align: center;
    color: #fff;
    font-size: 18px;
}
.mobile-lang a {
    color: #fff;
    font-weight: 600;
}

/* WhatsApp dugme */
.nav-whatsapp {
    width: 45px;
    height: 45px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 12px;
    color: white;
    display: none;
    font-size: 24px;
    cursor: pointer;
    transition: 0.25s ease;
    z-index: 2000; 
}

.nav-whatsapp:hover {
    background: #1ebe5a;
    transform: scale(1.05);
}

/* Burger i WhatsApp raspored */
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* PRIKAZ SAMO NA MOBILU */
@media (max-width: 900px) {
    .nav-whatsapp {
        display: flex;
    }
}
/* =======================================================
   HERO
   ======================================================= */

.hero {
    position: relative;
    width: 100%;
    min-height: 85vh;
    background: url("../images/hero-bg.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    padding-top: 110px; /* nav height */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search-card {
    margin-left: auto;
    margin-right: auto;
}

.hero-content {
    text-align: center;
    color: #ffffff;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

.hero-content h1 {
    font-size: 58px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 22px;
    color: #eaeaea;
}


/* HERO BOXES */

.hero-boxes {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    max-width: var(--max-width);
    margin: 35px auto 0 auto;
}

.hero-box {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 18px 12px;
    text-align: center;
    border: 1px solid #e2e2e2;
}

.hero-box i {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--primary);
}

.hero-box h3 {
    font-size: 15px;
}


/* =======================================================
   SEARCH CARD
   ======================================================= */

.search-card {
    margin: 35px auto 0 auto;
    max-width: var(--max-width);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    padding: 22px 24px 26px 24px;
}

.search-tabs {
    display: flex;
    justify-content: center;
    gap: 45px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e5e5e5;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 0;
    cursor: pointer;
    color: var(--text-muted);
}

.tab-btn.active {
    color: var(--primary);
    position: relative;
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
}

.tab-content {
    display: none !important;
}

.tab-content.active {
    display: grid !important;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-field label {
    font-size: 12px;
    color: var(--text-muted);
}

.search-field select,
.search-field input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid #dcdcdc;
    background: var(--light-muted);
    font-size: 15px;
}

.search-field select:focus,
.search-field input:focus {
    border-color: var(--primary);
    background: #ffffff;
}

.search-submit {
    align-self: flex-end;
}

.search-btn {
    width: 100%;
    padding: 12px 16px;
    border-radius: 999px;
    border: none;
    background: var(--primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.search-btn:hover {
    background: var(--primary-dark);
}


/* =======================================================
   RESPONSIVE FIX – MOBILE WITHOUT SCROLL
   ======================================================= */

@media (max-width: 1024px) {
    .hero-content h1 { font-size: 44px; }
    .hero-boxes {
        grid-template-columns: repeat(2, 1fr);
    }
    .search-form {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding-bottom: 40px;
    }
    .hero-content h1 { font-size: 36px; }
    .hero-content p { font-size: 18px; }
    .search-form {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    html, body {
        overflow-x: hidden !important;
        max-width: 100%;
    }

    .hero-content h1 { font-size: 30px; }
    .hero-content p { font-size: 16px; }

    .hero-boxes {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .search-submit {
        grid-column: span 1;
    }

    .search-btn {
        margin-top: 5px;
    }
}


.marquee-section {
    overflow: hidden;
    white-space: nowrap;
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
}

.marquee-track {
    display: inline-block;
    animation: marquee 15s linear infinite;
}

.marquee-track span {
    color: white;
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 2px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.hero {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.marquee-section {
    margin-top: 0;
}


/* =======================================================
   CARS GRID
   ======================================================= */
/* ========== CAR LIST ========== */

.cars-section {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    text-align: center;
    font-weight: 700;
    margin-bottom: 40px;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 30px;
}

.car-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: 0.3s;
    border: 1px solid #eee;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.car-img {
    width: 100%;
    height: 210px;
    overflow: hidden;
}

.car-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-info {
    padding: 20px;
}

.car-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.car-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    margin-bottom: 16px;
}

.car-details p {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.car-price {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #111;
}

.car-btn {
    display: block;
    background: #111;
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 10px;
    font-weight: 600;
    transition: 0.3s;
}

.car-btn:hover {
    background: #000;
}


/* Responsive */
@media (max-width: 1100px) {
    .cars-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .cars-grid {
        grid-template-columns: 1fr;
    }
}


.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.pg-btn {
    padding: 8px 14px;
    background: #ebebeb;
    color: #111;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.25s;
}

.pg-btn:hover {
    background: #b3b4b4;
}

.pg-btn.active {
    background: #1d1d1d;
    color: white;
}

.pg-dots {
    padding: 8px 14px;
    color: #666;
}

/* SECTION WRAPPER */
.steps-section {
    padding: 60px 0 120px;
    background: #e6e6e6;
    text-align: center;
}

.steps-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 50px;
    color: #1a1a1a;
}

/* FLEX WRAPPER */
.steps-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

/* INDIVIDUAL BOX */
.step-box {
    position: relative;
    background: #141414;
    padding: 50px 20px 40px;
    width: 32%;
    min-height: 230px;
    border-radius: 8px;
    color: white;
    text-align: center;
}

.step-first {
    background: #141414;
    transition: 0.2s ease;
}

.step-first:hover {
    background: #1678e9;
}


/* Step 2 color */
.step-blue {
    background: #141414;
    transition: 0.2s ease;
}

.step-blue:hover {
    background: #e22d2d;
}

/* Step 3 color */
.step-green {
    background: #141414;
}

.step-green:hover {
    background: #35ca5f;
}

/* Number circle */
.step-number {
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: #0F2B44;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Title */
.step-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.3;
}

/* Icons */
.step-box i {
    font-size: 40px;
    margin-top: 10px;
}

.steps-cta {
    text-align: center;
    margin-top: 40px;
}

.shine-btn {
    position: relative;
    display: inline-block;
    padding: 14px 32px;
    background: #111;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: 0.3s ease;
}

.shine-btn:hover {
    background: #000;
    transform: translateY(-2px);
}

/* Shine element (na početku skriven van dugmeta) */
.shine-btn .shine {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60px;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.45),
        transparent
    );
    transform: skewX(-20deg);
    opacity: 0;
    transition: 0s;
}

/* Shine animacija se pokreće SAMO na hover */
.shine-btn:hover .shine {
    animation: shine-move 0.85s ease-out forwards;
    opacity: 1;
}

@keyframes shine-move {
    0%   { left: -100%; }
    100% { left: 140%; }
}

/* MOBILE */
@media (max-width: 768px) {
    .step-box {
        width: 100%;
    }
}

/* BANNER VIDEO/IMAGE */
.footer-banner img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

/* FOOTER MAIN */
.footer {
    background: #0f0f0f;
    color: #fff;
    padding: 60px 0 35px;
    margin-top: 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

/* COLUMNS */
.footer-col {
    width: 30%;
    min-width: 260px;
}

/* LOGO */
.footer-logo {
    width: 130px;
    margin-bottom: 20px;
}

/* TEXT */
.footer-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #ebebeb;
}

/* HEADINGS */
.footer-col h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
}

/* CONTACT LINKS */
.footer-col p {
    font-size: 15px;
    margin: 7px 0;
    color: #ebebeb;
}

.footer-col a {
    color: #ffffff;
    text-decoration: none;
}

.footer-col a:hover {
    text-decoration: underline;
}

/* ICON IN CONTACT */
.footer-col p i {
    font-size: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

/* SOCIAL ICONS */
.socials {
    margin-top: 15px;
}

.socials a {
    font-size: 28px;
    margin-right: 15px;
    color: #ffffff;
    transition: 0.3s;
}

.socials a:hover {
    color: #cccccc;
    text-decoration: none;
}

/* IMPRESSUM LINK */
.impresum-link {
    color: #A7C7FF;
    font-weight: 600;
}

.impresum-link:hover {
    text-decoration: underline;
}

/* BOTTOM BAR */
.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(206, 206, 206, 0.37);
    font-size: 14px;
    color: #ffffff;
}

.footer-bottom a {
    color: #ffffff;
}

.footer-bottom a:hover {
    text-decoration: none;
    color: #ffffff;
}

/* MOBILE */
@media (max-width: 768px) {
    .footer-col {
        width: 100%;
    }
    .footer-banner img {
        height: 180px;
    }
}


/* COOKIE BANNER */
.cookie-banner {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 650px;

    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    padding: 18px 22px;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;

    font-size: 15px;
    color: #222;
    z-index: 5000;

    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
    transition: all 0.4s ease;
}

.cookie-banner.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.cookie-text a {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: underline;
}

.cookie-btn {
    background: #141414;
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    transition: 0.25s ease;
}

.cookie-btn:hover {
    background: #1f1f1f;
}

/* MOBILE */
@media (max-width: 600px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }

    .cookie-btn {
        width: 100%;
        margin-top: 10px;
    }
}