/**
 * Kia SUV – Dedicated Page Styles (v2 – SEO & Interactive)
 */

/* ── Scroll Progress Bar ─────────────────────────── */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-accent);
    z-index: 9999;
    transition: width 0.1s linear;
}

/* ── Model Badges ────────────────────────────────── */
.model-badge {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 6px 14px;
    border-radius: 100px;
    background: rgba(5,196,107,0.12);
    color: var(--color-accent);
    margin-bottom: 12px;
}
.model-badge--blue {
    background: rgba(59,130,246,0.12);
    color: #60a5fa;
}
.model-badge--gold {
    background: rgba(234,179,8,0.12);
    color: #facc15;
}

/* ── Image Gallery ───────────────────────────────── */
.split__image--gallery {
    position: relative;
}
.split__image--gallery .gallery-main {
    cursor: zoom-in;
    transition: transform 0.3s ease;
}
.split__image--gallery .gallery-main:hover {
    transform: scale(1.02);
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.gallery-thumb {
    flex: 1;
    min-width: 0;
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    background: rgba(255,255,255,0.04);
    cursor: pointer;
    transition: border-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
    padding: 0;
}
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-thumb:hover {
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}
.gallery-thumb.active {
    border-color: var(--color-accent);
}

/* ── Lightbox ────────────────────────────────────── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__content {
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
    text-align: center;
}

.lightbox__img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
}
.lightbox.active .lightbox__img {
    transform: scale(1);
    animation: lightboxZoomIn 0.3s ease;
}
@keyframes lightboxZoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox__caption {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin-top: 16px;
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 2rem;
    color: #fff;
    background: rgba(255,255,255,0.1);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.lightbox__close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.lightbox__prev,
.lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.lightbox__prev { left: 20px; }
.lightbox__next { right: 20px; }
.lightbox__prev svg,
.lightbox__next svg {
    width: 24px;
    height: 24px;
}
.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-50%) scale(1.1);
}

/* ── Quiz / SUV Selector ─────────────────────────── */
.quiz {
    max-width: 700px;
    margin: 40px auto 0;
}

.quiz__step {
    display: none;
    animation: quizFadeIn 0.4s ease;
}
.quiz__step.active {
    display: block;
}
@keyframes quizFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.quiz__progress {
    height: 4px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    margin-bottom: 28px;
    overflow: hidden;
}
.quiz__progress-bar {
    height: 100%;
    background: var(--color-accent);
    border-radius: 4px;
    transition: width 0.4s ease;
}

.quiz__step-label {
    font-size: 0.875rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 8px;
}

.quiz__question {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 24px;
}

.quiz__options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz__option {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 20px 24px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    color: #fff;
    width: 100%;
}
.quiz__option:hover {
    border-color: var(--color-accent);
    background: rgba(5,196,107,0.06);
    transform: translateX(4px);
}
.quiz__option:active {
    transform: translateX(4px) scale(0.98);
}

.quiz__option-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    color: var(--color-accent);
}
.quiz__option-icon svg {
    width: 100%;
    height: 100%;
}

.quiz__option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.quiz__option-text strong {
    font-size: 1rem;
    font-weight: 700;
}
.quiz__option-text span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

/* Quiz Result */
.quiz__result {
    animation: quizFadeIn 0.5s ease;
}

.quiz__result-card {
    text-align: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 48px 32px;
}

.quiz__result-label {
    font-size: 0.875rem;
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 8px;
}

.quiz__result-model {
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 20px;
}

.quiz__result-img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.quiz__result-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    line-height: 1.6;
    max-width: 540px;
    margin: 0 auto 24px;
}

.quiz__result-specs {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.quiz__result-spec {
    text-align: center;
}
.quiz__result-spec-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-accent);
}
.quiz__result-spec-label {
    display: block;
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}

.quiz__result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Advantages Grid ───────────────────────────── */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.advantage-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 32px 28px;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    position: relative;
    overflow: hidden;
}
.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 20%, rgba(5,196,107,0.06), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.advantage-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-accent);
    background: rgba(5,196,107,0.04);
}
.advantage-card:hover::before {
    opacity: 1;
}

.advantage-card__icon {
    width: 36px;
    height: 36px;
    color: var(--color-accent);
    margin-bottom: 14px;
    position: relative;
}
.advantage-card__icon svg {
    width: 100%;
    height: 100%;
}

.advantage-card__number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 16px;
    letter-spacing: 0.1em;
    position: relative;
}

.advantage-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    position: relative;
}

.advantage-card__text {
    font-size: 0.92rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.6;
    margin: 0;
    position: relative;
}

/* ── Compare Tabs ────────────────────────────────── */
.compare-tabs {
    display: flex;
    gap: 8px;
    margin-top: 32px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.compare-tab {
    padding: 10px 20px;
    border-radius: 100px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}
.compare-tab:hover {
    border-color: rgba(255,255,255,0.2);
    color: #fff;
}
.compare-tab.active {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #000;
}

/* ── Comparison Table ──────────────────────────── */
.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 14px 20px;
    text-align: left;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.2s ease, opacity 0.3s ease;
}

.comparison-table thead th {
    background: rgba(255,255,255,0.04);
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
    white-space: nowrap;
}

.comparison-table tbody td {
    color: rgba(255,255,255,0.7);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover td {
    background: rgba(255,255,255,0.03);
}

.comparison-table__col.dimmed {
    opacity: 0.2;
}

.highlight-best {
    color: var(--color-accent) !important;
}

/* ── FAQ Accordion ───────────────────────────────── */
.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.faq-item:hover {
    border-color: rgba(255,255,255,0.12);
}
.faq-item.open {
    border-color: var(--color-accent);
    background: rgba(5,196,107,0.03);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: color 0.2s ease;
}
.faq-question:hover {
    color: var(--color-accent);
}

.faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: rgba(255,255,255,0.4);
    transition: transform 0.3s ease, color 0.3s ease;
}
.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: var(--color-accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 20px;
    margin: 0;
    font-size: 0.94rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
}

/* ── Nav Buttons (Quick Links) ─────────────────── */
.nav-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.nav-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 32px 20px;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.nav-button:hover {
    transform: translateY(-4px);
    border-color: var(--color-accent);
    background: rgba(5,196,107,0.04);
}

.nav-button__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    color: var(--color-accent);
}
.nav-button__icon svg {
    width: 100%;
    height: 100%;
}

.nav-button__label {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.nav-button__desc {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
}

/* ── CTA Section ───────────────────────────────── */
.section--cta {
    text-align: center;
}

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

.cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.cta__trust {
    display: flex;
    gap: 32px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}
.cta__trust span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.45);
    position: relative;
    padding-left: 18px;
}
.cta__trust span::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

/* ── Back to Top ─────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-accent);
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: #fff;
    transform: translateY(-2px);
}
.back-to-top svg {
    width: 22px;
    height: 22px;
}

/* ── Scroll Animations ─────────────────────────── */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 900px) {
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .nav-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    .quiz__question {
        font-size: 1.2rem;
    }
    .quiz__result-model {
        font-size: 1.4rem;
    }
}

@media (max-width: 600px) {
    .advantages-grid {
        grid-template-columns: 1fr;
    }
    .nav-buttons {
        grid-template-columns: 1fr;
    }
    .advantage-card {
        padding: 24px 20px;
    }
    .comparison-table th,
    .comparison-table td {
        padding: 10px 14px;
        font-size: 0.85rem;
    }
    .gallery-thumbs {
        gap: 6px;
    }
    .quiz__option {
        padding: 16px 18px;
    }
    .quiz__question {
        font-size: 1.1rem;
    }
    .quiz__result-card {
        padding: 32px 20px;
    }
    .quiz__result-specs {
        gap: 20px;
    }
    .faq-question {
        padding: 16px 18px;
        font-size: 0.92rem;
    }
    .faq-answer p {
        padding: 0 18px 16px;
        font-size: 0.88rem;
    }
    .compare-tabs {
        gap: 6px;
    }
    .compare-tab {
        padding: 8px 14px;
        font-size: 0.82rem;
    }
    .lightbox__prev { left: 8px; }
    .lightbox__next { right: 8px; }
    .lightbox__close { top: 12px; right: 12px; }
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 42px;
        height: 42px;
    }
}
