* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: radial-gradient(circle at top, #161623 0, #050509 45%, #020207 100%);
    color: #e4e4e4;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* Buttons */

.btn {
    padding: 12px 22px;
    border-radius: 12px;
    display: inline-block;
    transition: 0.25s ease;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
}

.btn.primary {
    background: linear-gradient(135deg, #ffcc00, #ff9100);
    color: #000;
    box-shadow: 0 0 18px rgba(255, 204, 0, 0.35);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 204, 0, 0.4);
}

.btn.big {
    padding: 14px 26px;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 0 26px rgba(255, 204, 0, 0.45);
}

/* === HERO BUTTONS LAYOUT === */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* Zajednički stil za Viber / WhatsApp dugmad */
.contact-btn {
    min-width: 160px;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: 0.25s ease;
}

/* VIBER – purple neon */
.viber-btn {
    border-color: #bb86fc;
    box-shadow:
        0 0 8px rgba(187, 134, 252, 0.8),
        0 0 18px rgba(187, 134, 252, 0.35) inset;
}

.viber-btn:hover {
    box-shadow:
        0 0 12px rgba(187, 134, 252, 1),
        0 0 24px rgba(187, 134, 252, 0.6) inset;
    transform: translateY(-2px);
}

/* WHATSAPP – green neon */
.whatsapp-btn {
    border-color: #25d366;
    box-shadow:
        0 0 8px rgba(37, 211, 102, 0.8),
        0 0 18px rgba(37, 211, 102, 0.35) inset;
}

.whatsapp-btn:hover {
    box-shadow:
        0 0 12px rgba(37, 211, 102, 1),
        0 0 24px rgba(37, 211, 102, 0.6) inset;
    transform: translateY(-2px);
}

/* Ripple efekat za oba */
.contact-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(255,255,255,0.35) 0, transparent 60%);
    opacity: 0;
    transform: scale(0.2);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.contact-btn:active::after {
    opacity: 1;
    transform: scale(1);
}

/* Navbar */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px);
    background: linear-gradient(90deg, rgba(5, 5, 10, 0.92), rgba(5, 5, 10, 0.75));
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffcc00;
    letter-spacing: 0.04em;
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
}

.nav-links a {
    font-size: 0.92rem;
    opacity: 0.85;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    opacity: 1;
    border-bottom-color: rgba(255, 204, 0, 0.7);
}

.nav-links a.active {
    color: #ffffff;
    border-bottom-color: #ffcc00;
    opacity: 1;
}

.phone-btn {
    background: linear-gradient(135deg, #ffcc00, #ff9100);
    padding: 9px 16px;
    border-radius: 20px;
    color: #000;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Hamburger */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: #ffffff;
    border-radius: 999px;
}

/* Mobile menu */

.mobile-menu {
    display: none;
    flex-direction: column;
    background: #07070c;
    padding: 14px 20px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu a {
    padding: 9px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu .phone-btn {
    margin-top: 8px;
    text-align: center;
}

/* Hero */

.hero {
    padding: 90px 20px 60px;
    text-align: center;
}

.hero-autoplac {
    background: radial-gradient(circle at top, #1a1430 0, #070712 45%, #020207 100%);
}

.hero-content {
    max-width: 640px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 1.9rem;
    color: #ffcc00;
    margin-bottom: 12px;
}

.hero p {
    font-size: 0.98rem;
    opacity: 0.9;
}

.hero-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-info {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    opacity: 0.8;
}

/* Sections */

section {
    max-width: 1200px;
    margin: 0 auto;
}

/* Why us */

.why-us {
    padding: 40px 20px;
    text-align: center;
}

.why-us h2 {
    margin-bottom: 22px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.card {
    background: radial-gradient(circle at top left, rgba(255, 204, 0, 0.15), rgba(8, 8, 16, 0.95));
    border-radius: 16px;
    padding: 18px 18px 20px;
    box-shadow: 0 0 26px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Services */

.services {
    padding: 40px 20px 10px;
}

.services h2 {
    text-align: center;
    margin-bottom: 20px;
}

.service-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.service-text p {
    margin-bottom: 10px;
    font-size: 0.96rem;
    opacity: 0.9;
}

.service-text ul {
    padding-left: 18px;
    font-size: 0.93rem;
}

.service-text li {
    margin-bottom: 6px;
}

.service-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.service-card {
    background: #101017;
    border-radius: 14px;
    padding: 16px 18px 18px;
    border-left: 3px solid #ffcc00;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.08);
}

/* Stats */

.stats {
    max-width: 100%;
    margin-top: 40px;
    padding: 28px 20px 30px;
    background: linear-gradient(90deg, #050509, #11121b, #050509);
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 120px;
}

.stat-item h3 {
    font-size: 1.7rem;
    color: #ffcc00;
}

.stat-item p {
    font-size: 0.86rem;
    opacity: 0.85;
}

/* Gallery */

.gallery {
    padding: 40px 20px;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 22px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.gallery-card {
    background: #101018;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 0 22px rgba(0, 0, 0, 0.7);
}

.gallery-card img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.gallery-card:hover img {
    transform: scale(1.06);
}

.gallery-card figcaption,
.gallery-card p {
    padding: 10px 12px 12px;
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Cars */

.cars-grid .car-card {
    display: flex;
    flex-direction: column;
}

.car-info {
    padding: 11px 12px 13px;
}

.car-info h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.car-price {
    margin-top: 4px;
    font-weight: 700;
    color: #ffcc00;
}

/* Filters */

.filters {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px 10px;
}

.filter-bar {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-bar select {
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(5, 5, 10, 0.9);
    color: #e4e4e4;
    font-size: 0.9rem;
}

/* CTA */

.cta {
    max-width: 100%;
    margin-top: 10px;
    padding: 45px 20px 48px;
    text-align: center;
    background: linear-gradient(135deg, #ffcc00, #ff9100);
    color: #000;
}

.cta h2 {
    margin-bottom: 8px;
}

.cta p {
    opacity: 0.9;
}

.cta-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Contact */

.contact {
    padding: 40px 20px 60px;
}

.contact h2 {
    text-align: center;
    margin-bottom: 22px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
}

.contact-info {
    font-size: 0.95rem;
}

.contact-info p {
    margin-bottom: 6px;
}

.contact-form {
    margin-top: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 11px;
    margin-bottom: 10px;
    border-radius: 10px;
    border: 1px solid #2c2c3a;
    background: rgba(10, 10, 16, 0.95);
    color: #ffffff;
    font-size: 0.9rem;
}

.contact-form textarea {
    min-height: 110px;
    resize: vertical;
}

.map iframe {
    width: 100%;
    height: 260px;
    border: 0;
    border-radius: 14px;
}

/* Footer */

.footer {
    max-width: 100%;
    padding: 26px 20px 28px;
    text-align: center;
    background: #050509;
    font-size: 0.85rem;
    opacity: 0.92;
}

/* Responsive */

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
    .hamburger {
        display: none;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .service-layout {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr);
        align-items: flex-start;
    }
    .contact-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
        align-items: flex-start;
    }
    .map iframe {
        height: 320px;
    }
}

@media (max-width: 767px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .hero {
        padding-top: 80px;
    }
    .mobile-menu.open {
        display: flex;
    }
}


/* === SUBPAGE + BREADCRUMB STYLES === */

.subpage-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 4rem 1.5rem 3rem;
    overflow: hidden;
}

.subpage-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0.75), rgba(0,0,0,0.95)),
        url("images/hero-tow.png") center center / cover no-repeat;
    transform: scale(1.05);
    filter: saturate(1.2);
    z-index: 1;
}

.subpage-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.25;
    mix-blend-mode: screen;
    z-index: 0;
}

.subpage-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 880px;
}

.subpage-hero .kicker {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #ffc857;
    margin-bottom: 0.75rem;
}

.subpage-hero h1 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin-bottom: 1rem;
}

.subpage-hero p.lead {
    font-size: 1rem;
    color: #e5e5e5;
    max-width: 680px;
    margin: 0 auto 1.75rem;
}

.subpage-hero .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.breadcrumb-wrap {
    background: radial-gradient(circle at top left, #151515, #050509);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.breadcrumb {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    color: #bbbbbb;
}

.breadcrumb a {
    color: #ffc857;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    opacity: 0.6;
}

.section-subpage {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-subpage h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.section-subpage h3 {
    font-size: 1.1rem;
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
}

.section-subpage ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.section-subpage ul li {
    margin-bottom: 0.35rem;
}

.section-subpage .pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.section-subpage .pill {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.08);
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
    background: rgba(255,255,255,0.02);
}

.map-section {
    background: #050509;
    border-top: 1px solid rgba(255,255,255,0.04);
}

.map-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 3.5rem;
}

.map-inner iframe {
    width: 100%;
    border: 0;
    border-radius: 1rem;
    min-height: 260px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.6);
}

.map-links {
    margin-top: 0.9rem;
    font-size: 0.9rem;
}

.map-links a {
    color: #ffc857;
    text-decoration: none;
}

.map-links a:hover {
    text-decoration: underline;
}

/* === MOBILE TWEAKS ZA HERO VIDEO === */
@media (max-width: 768px) {
    .subpage-hero {
        min-height: 320px;
        padding: 3.25rem 1.25rem 2.5rem;
    }

    /* Na telefonu koristimo samo statičnu sliku, bez videa */
    .subpage-hero-video {
        display: none;
    }

    .subpage-hero::before {
        opacity: 1;
    }

    .subpage-hero p.lead {
        font-size: 0.95rem;
    }
}

/* === FORCE RESET ZA NAŠA GLASS DUGMAD === */
.viber-btn,
.whatsapp-btn {
    background: transparent !important;
    border-width: 2px !important;
    border-style: solid !important;
    border-radius: 14px !important;
    padding: 0.75rem 1.4rem !important;
    font-weight: 600 !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 140px;
    text-align: center;
    transition: 0.25s ease !important;
}

/* === SITE SEARCH BLOK === */
.site-search {
    padding: 3rem 1rem 4rem;
    background: linear-gradient(180deg, #0a0f1c 0%, #0d1626 100%);
    color: #e9eef5;
}

.site-search-inner {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.site-search h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.site-search p {
    max-width: 720px;
    margin: 0 auto 1.5rem;
    line-height: 1.6;
    color: #cdd6e2;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.search-form input[type="text"] {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid #33415c;
    min-width: 260px;
    max-width: 360px;
    background: #101a2c;
    color: #e9eef5;
}

.search-form input[type="text"]::placeholder {
    color: #9fb2d1;
}

.search-form .btn.primary {
    padding: 0.85rem 1.3rem;
}

@media (max-width: 640px) {
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-form .btn.primary {
        width: 100%;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* === HOWTO PAGE === */
.guide {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
    color: #101010;
}

.guide h2 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.howto-steps {
    list-style: decimal inside;
    display: grid;
    gap: 0.85rem;
    background: #f5f8fc;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #e1e8f3;
}

.howto-steps li {
    line-height: 1.6;
}

.howto-steps strong {
    display: block;
    margin-bottom: 0.35rem;
}

.howto-extra {
    background: #0f1a2d;
    color: #e4ebf6;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #1e2d46;
}

.howto-extra h3 {
    margin-top: 0;
}

.howto-extra ul {
    padding-left: 1.25rem;
    margin-bottom: 0;
}