/* =====================================================
   PG CARS MNE — Home Page
   ===================================================== */

body { padding-top: 0; }
.site-header { background: rgba(10, 10, 10, 0.4); }
.site-header.scrolled { background: rgba(10, 10, 10, 0.95); }

/* ============= HERO ============= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg);
    isolation: isolate;
    padding: calc(var(--header-h) + 40px) 0 60px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 30%, rgba(232, 98, 26, 0.25), transparent 70%),
        radial-gradient(ellipse 60% 80% at 20% 70%, rgba(232, 98, 26, 0.12), transparent 70%),
        linear-gradient(135deg, #0a0a0a 0%, #131313 50%, #0a0a0a 100%);
    z-index: -3;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(232, 98, 26, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(232, 98, 26, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    z-index: -2;
    animation: gridMove 30s linear infinite;
}

@keyframes gridMove {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

.hero-glow {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(232, 98, 26, 0.18), transparent 60%);
    filter: blur(80px);
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    text-align: left;
}

.hero-tagline {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    color: var(--orange-bright);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-tagline-line {
    width: 40px;
    height: 2px;
    background: var(--orange);
}

.hero-title {
    font-family: 'Bebas Neue', 'Space Grotesk', sans-serif;
    font-size: clamp(3rem, 9vw, 7rem);
    line-height: 0.95;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    color: #fff;
    font-weight: 400;
    text-transform: uppercase;
}

.hero-title-accent {
    background: linear-gradient(135deg, #FF8A3D, #E8621A);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 36px;
    max-width: 620px;
}

.hero-sub strong {
    color: var(--text);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    max-width: 700px;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--orange-bright);
    line-height: 1;
}

.hero-stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 700px) {
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hero-stat {
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }
    .hero-stat-value { font-size: 24px; }
}

.hero-scroll-hint {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid var(--text-dim);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    opacity: 0.5;
}

.hero-scroll-hint span {
    width: 3px;
    height: 8px;
    background: var(--orange-bright);
    border-radius: 2px;
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes scrollDot {
    0%, 100% { transform: translateY(0); opacity: 0; }
    50% { transform: translateY(8px); opacity: 1; }
}

@media (max-width: 640px) {
    .hero-scroll-hint { display: none; }
}

/* ============= SECTION HEADER ============= */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.section-label {
    display: inline-block;
    color: var(--orange-bright);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    line-height: 1.1;
    color: var(--text);
}

.hide-mobile { display: inline-flex; }
@media (max-width: 640px) {
    .hide-mobile { display: none; }
}

.section-cta-mobile {
    display: none;
    text-align: center;
    margin-top: 28px;
}
@media (max-width: 640px) {
    .section-cta-mobile { display: block; }
}

/* ============= FEATURED ============= */
.featured-section {
    padding: 80px 0;
    background: var(--bg);
}

.featured-grid-home {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 900px) {
    .featured-grid-home { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .featured-grid-home { grid-template-columns: 1fr; }
}

/* Re-use car-card from catalog */
.car-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
    position: relative;
}
.car-card:hover {
    border-color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(232, 98, 26, 0.3);
}
.car-card-image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bg-input);
}
.car-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.car-card:hover .car-card-image { transform: scale(1.06); }
.car-card-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 32px;
}
.car-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.car-card-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--orange);
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(232, 98, 26, 0.5);
}
.car-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.car-card-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.6em;
}
.car-card-subtitle { font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }
.car-card-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    margin-bottom: 16px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.car-spec { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); }
.car-spec-icon { color: var(--orange); font-size: 14px; width: 16px; text-align: center; }
.car-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.car-card-price {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--orange-bright);
    line-height: 1;
}
.car-card-price-soft { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.car-card-cta {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition);
}
.car-card:hover .car-card-cta { color: var(--orange-bright); }
.car-card-cta::after {
    content: '→';
    margin-left: 6px;
    transition: transform var(--transition);
    display: inline-block;
}
.car-card:hover .car-card-cta::after { transform: translateX(4px); }

/* ============= ABOUT ============= */
.about-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg), #0F0F0F);
    border-top: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

.about-text p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
}

.about-text p strong { color: var(--text); }

.about-cta {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .about-features { grid-template-columns: 1fr; }
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px 22px;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 14px;
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    background: var(--orange-soft);
    border-radius: 14px;
    color: var(--orange-bright);
}

.feature-card h3 {
    font-size: 17px;
    margin-bottom: 6px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* ============= IMPORT SECTION ============= */
.import-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    isolation: isolate;
}

.import-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(232, 98, 26, 0.15), transparent 60%),
        linear-gradient(135deg, #0a0a0a, #1a0d05);
    z-index: -1;
}

.import-content {
    max-width: 700px;
}

.import-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    margin-bottom: 18px;
    color: var(--text);
}

.import-content p {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.import-content p strong { color: var(--text); }

.import-checklist {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 600px) {
    .import-checklist { grid-template-columns: 1fr; }
}

.import-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 14px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.import-checklist li::before {
    content: '✓';
    color: var(--orange-bright);
    font-weight: 700;
    font-size: 16px;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

/* ============= LOCATION SECTION ============= */
.location-section {
    padding: 80px 0 100px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}
.location-section::before {
    content: '';
    position: absolute;
    top: -200px; right: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(232,98,26,0.08), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
}

.location-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 50px;
    align-items: center;
    position: relative;
}

@media (max-width: 900px) {
    .location-grid { grid-template-columns: 1fr; gap: 32px; }
}

.location-lead {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
    margin: 12px 0 28px;
}
.location-lead strong { color: var(--text); }

.location-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.location-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.location-item:hover {
    border-color: var(--border-orange);
    transform: translateX(4px);
}
.location-item-icon {
    width: 44px; height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange-soft);
    border-radius: 12px;
    font-size: 20px;
    flex-shrink: 0;
}
.location-item div:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}
.location-item strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
}
.location-item span {
    color: var(--text-muted);
    font-size: 14px;
}

.location-cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    color: #fff !important;
    text-decoration: none;
    transition: all var(--transition);
}
.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
}
.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}
.btn-viber {
    background: linear-gradient(135deg, #7360F2, #5A3FBF);
}
.btn-viber:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(115, 96, 242, 0.4);
}

.location-map {
    position: relative;
}
.location-map-frame {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-orange);
    box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(232,98,26,0.2);
    filter: grayscale(0.4) contrast(1.05) brightness(0.85);
    transition: filter .4s ease, transform .4s ease;
    background: var(--bg-card);
}
.location-map-frame:hover {
    filter: grayscale(0) contrast(1) brightness(0.95);
    transform: translateY(-4px);
}
.location-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
}

/* ============= POBOLJSANE ANIMACIJE (samo home) ============= */

/* Feature card sjajni hover efekat */
.feature-card {
    position: relative;
    overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232,98,26,0.1), transparent);
    transition: left .6s ease;
    pointer-events: none;
}
.feature-card:hover::before { left: 100%; }

/* Hero title slide-up on load */
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.hero-tagline { animation: heroFadeUp .7s ease both .1s; }
.hero-title { animation: heroFadeUp .8s ease both .25s; }
.hero-sub { animation: heroFadeUp .8s ease both .4s; }
.hero-actions { animation: heroFadeUp .8s ease both .55s; }
.hero-stats { animation: heroFadeUp .8s ease both .7s; }

/* Floating ikonica auta u back-u (suptilno) */
.hero::after {
    content: '';
    position: absolute;
    right: -100px;
    bottom: -100px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232,98,26,0.06), transparent 60%);
    filter: blur(40px);
    animation: floatGlow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}
@keyframes floatGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-40px, -30px); }
}

/* Car card image zoom + tilt */
.car-card {
    transition: all .35s cubic-bezier(.22,.61,.36,1);
}
.car-card:hover {
    transform: translateY(-6px);
}

/* Featured badge gentle pulse */
.car-card-featured {
    animation: badgePulse 2.5s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(232, 98, 26, 0.5); }
    50% { box-shadow: 0 4px 20px rgba(232, 98, 26, 0.85); }
}

/* ============= ŠVAJCARSKA ZASTAVA ============= */
.swiss-flag {
    display: inline-block;
    width: 1.3em;
    height: 1.3em;
    background: #D52B1E;
    border-radius: 3px;
    position: relative;
    vertical-align: middle;
    flex-shrink: 0;
}
.swiss-flag::before,
.swiss-flag::after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 1px;
}
.swiss-flag::before {
    width: 55%;
    height: 20%;
    top: 40%;
    left: 22.5%;
}
.swiss-flag::after {
    width: 20%;
    height: 55%;
    top: 22.5%;
    left: 40%;
}
