/* Explain: Styles for animations, transitions, scroll progress, and interactive elements like accordions and carousels. */
/* ===== Motion, transitions & new section styles ===== */

/* --- Scroll progress bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 70;
    height: 3px;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 0 12px rgba(225, 29, 56, 0.75);
    transition: width 0.12s linear;
}

/* --- Back to top --- */
.back-top {
    position: fixed;
    inset-inline-end: 1.25rem;
    bottom: 6.5rem;
    z-index: 46;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border: 0;
    border-radius: 999px;
    background: var(--primary-color);
    color: #ffffff;
    cursor: pointer;
    box-shadow: var(--shadow-button);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.9);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease, background 0.3s ease;
}

@media (min-width: 768px) {
    .back-top {
        bottom: 1.5rem;
    }
}

.back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-top:hover {
    background: var(--accent-color);
    transform: translateY(-3px) scale(1.05);
}

.kicker-center {
    display: flex;
    justify-content: center;
}

/* --- Nav dropdowns --- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown .nav-caret {
    color: var(--accent-color);
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-caret,
.nav-dropdown.is-open .nav-caret {
    transform: rotate(180deg);
}

.nav-menu {
    position: absolute;
    left: 50%;
    top: 100%;
    z-index: 50;
    margin-top: 0.6rem;
    min-width: 13rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.97);
    padding: 0.5rem;
    box-shadow: 0 24px 60px rgba(19, 19, 22, 0.16);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.nav-menu::before {
    position: absolute;
    top: -0.7rem;
    right: 0;
    left: 0;
    height: 0.7rem;
    content: "";
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown.is-open .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-menu a {
    display: block;
    border-radius: 0.85rem;
    padding: 0.6rem 0.9rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.25s ease, color 0.25s ease, padding-inline-start 0.25s ease;
}

.nav-menu a:hover {
    background: var(--sage-soft);
    color: var(--primary-color);
    padding-inline-start: 1.2rem;
}

/* ===== Testimonials marquee ===== */
.tm-marquee {
    position: relative;
    overflow: hidden;
    padding-block: 0.75rem;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.tm-track {
    display: flex;
    width: max-content;
    animation: tmScroll 55s linear infinite;
}

.tm-marquee--reverse .tm-track {
    animation-direction: reverse;
}

.tm-marquee:hover .tm-track {
    animation-play-state: paused;
}

@keyframes tmScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.tm-card {
    display: flex;
    width: 20rem;
    max-width: 80vw;
    margin-inline-end: 1.25rem;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 0.9rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.7rem;
    background: #ffffff;
    padding: 1.4rem;
    box-shadow: 0 18px 50px rgba(19, 19, 22, 0.07);
    transition: transform 0.45s ease, box-shadow 0.45s ease, border-color 0.45s ease;
}

.tm-card:hover {
    border-color: rgba(200, 16, 46, 0.35);
    box-shadow: 0 28px 65px rgba(200, 16, 46, 0.16);
    transform: translateY(-6px);
}

.tm-stars {
    color: #F5A524;
    font-size: 0.85rem;
}

.tm-star-empty {
    color: rgba(19, 19, 22, 0.18);
}

.tm-text {
    flex: 1;
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.9;
}

.tm-person {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 0.9rem;
}

.tm-avatar {
    display: grid;
    place-items: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 999px;
    background: linear-gradient(145deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
}

.tm-name {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-color);
}

.tm-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ===== Counter ===== */
.counter-card {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.9rem 1.4rem;
    text-align: center;
    backdrop-filter: blur(14px);
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.counter-card:hover {
    border-color: rgba(225, 29, 56, 0.5);
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-6px);
}

.counter-icon {
    color: var(--accent-color);
    font-size: 1.9rem;
}

.counter-value {
    margin-top: 1rem;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.counter-label {
    margin-top: 0.6rem;
    color: var(--text-on-dark-muted);
    font-size: 0.9rem;
}

/* ===== FAQ accordion ===== */
.faq-item {
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    background: #ffffff;
    box-shadow: 0 12px 34px rgba(19, 19, 22, 0.05);
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.faq-item.is-open {
    border-color: rgba(200, 16, 46, 0.4);
    box-shadow: 0 20px 50px rgba(200, 16, 46, 0.12);
}

.faq-question {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
    background: none;
    padding: 1.15rem 1.35rem;
    text-align: start;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.faq-icon {
    flex-shrink: 0;
    color: var(--accent-color);
    transition: transform 0.4s ease;
}

.faq-item.is-open .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease;
}

.faq-answer-inner {
    padding: 0 1.35rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.9;
}

/* ===== Shipping calculator ===== */
.calc-panel {
    border: 1px solid var(--glass-border);
    border-radius: 2.2rem;
    background: #ffffff;
    padding: clamp(1.4rem, 4vw, 2.2rem);
    box-shadow: 0 24px 70px rgba(19, 19, 22, 0.08);
}

.calc-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    background: var(--background-color);
    padding: 0.8rem 1rem;
    color: var(--text-color);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.calc-check:hover {
    border-color: rgba(200, 16, 46, 0.4);
    background: var(--secondary-color);
}

.calc-result {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 2.2rem;
    background:
        radial-gradient(circle at 88% 8%, rgba(225, 29, 56, 0.36), transparent 20rem),
        linear-gradient(160deg, #0E0E10, #1E0A0F);
    padding: clamp(1.4rem, 4vw, 2.2rem);
    color: #ffffff;
    box-shadow: 0 30px 80px rgba(14, 14, 16, 0.3);
}

.calc-result-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-on-dark-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.calc-amount {
    margin-top: 0.4rem;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: clamp(2.1rem, 7vw, 3.1rem);
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.calc-hint {
    margin-top: 0.6rem;
    color: var(--text-on-dark-muted);
    font-size: 0.82rem;
    line-height: 1.8;
}

.calc-lines {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 1.2rem;
}

.calc-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.88rem;
}

.calc-line span {
    color: var(--text-on-dark-muted);
}

.calc-line strong {
    color: #ffffff;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.calc-result .btn {
    margin-top: 1.6rem;
}

.calc-note {
    margin-top: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.72rem;
    line-height: 1.7;
}

/* ===== Interactive route map ===== */
.route-board {
    margin-top: 3.5rem;
}

.route-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.route-stage {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    background: none;
    padding: 0.5rem 0.25rem;
    text-align: center;
    cursor: pointer;
}

.route-node {
    display: grid;
    place-items: center;
    width: 3.6rem;
    height: 3.6rem;
    border: 2px solid var(--glass-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--text-muted);
    font-size: 1.2rem;
    box-shadow: 0 12px 30px rgba(19, 19, 22, 0.08);
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.route-stage.is-active .route-node {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 16px 40px rgba(200, 16, 46, 0.42);
    transform: scale(1.08);
}

.route-name {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 800;
}

.route-country {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.route-seg {
    display: none;
}

.route-detail {
    margin-top: 2rem;
    border: 1px solid var(--glass-border);
    border-radius: 1.8rem;
    background: linear-gradient(150deg, #ffffff, var(--surface-color));
    padding: 1.6rem;
    box-shadow: 0 20px 55px rgba(19, 19, 22, 0.07);
}

.route-panel {
    display: none;
}

.route-panel.is-active {
    display: block;
    animation: routePanelIn 0.5s ease;
}

.route-panel h3 {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
}

.route-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.9rem;
}

.route-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    background: var(--sage-soft);
    padding: 0.4rem 0.9rem;
    color: var(--sage-dark);
    font-size: 0.8rem;
    font-weight: 700;
}

.route-panel p {
    margin-top: 0.9rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.9;
}

@keyframes routePanelIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (min-width: 768px) {
    .route-row {
        display: flex;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .route-stage {
        width: 9.5rem;
        flex: 0 0 auto;
    }

    .route-seg {
        display: flex;
        flex: 1 1 0;
        min-width: 3rem;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding-top: 1.55rem;
    }

    .route-seg-label {
        color: var(--text-muted);
        font-size: 0.72rem;
        font-weight: 700;
        white-space: nowrap;
    }

    .route-seg-line {
        position: relative;
        display: block;
        width: 100%;
        height: 3px;
        border-radius: 999px;
        background-image: repeating-linear-gradient(90deg, rgba(200, 16, 46, 0.4) 0 8px, transparent 8px 17px);
        transition: background 0.4s ease;
    }

    .route-seg.is-done .route-seg-line {
        background-image: none;
        background-color: var(--primary-color);
        box-shadow: 0 0 14px rgba(200, 16, 46, 0.5);
    }
}

/* ===== Process steps with connected arrows ===== */
.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    margin-top: 3.5rem;
}

@media (min-width: 640px) {
    .process-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .process-steps {
        grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
        align-items: start;
        gap: 0.4rem;
    }
}

.process-step {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.6rem;
    backdrop-filter: blur(14px);
    transition: transform 0.4s ease, background 0.4s ease, border-color 0.4s ease;
}

.process-step:hover {
    border-color: rgba(225, 29, 56, 0.5);
    background: rgba(255, 255, 255, 0.09);
    transform: translateY(-6px);
}

.process-node {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 4rem;
    height: 4rem;
    border-radius: 999px;
    background: linear-gradient(150deg, var(--primary-color), var(--primary-hover));
    color: #ffffff;
    font-size: 1.35rem;
    box-shadow: 0 16px 40px rgba(200, 16, 46, 0.5);
}

.process-node::after {
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(225, 29, 56, 0.55);
    border-radius: 999px;
    content: "";
    animation: processPulse 2.6s ease-out infinite;
}

@keyframes processPulse {
    0% {
        opacity: 0.8;
        transform: scale(0.9);
    }

    100% {
        opacity: 0;
        transform: scale(1.35);
    }
}

.process-badge {
    position: absolute;
    top: -0.5rem;
    inset-inline-start: -0.5rem;
    display: grid;
    place-items: center;
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 999px;
    background: #ffffff;
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.process-title {
    margin-top: 1.2rem;
    color: #ffffff;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
}

.process-text {
    margin-top: 0.5rem;
    color: var(--text-on-dark-muted);
    font-size: 0.88rem;
    line-height: 1.9;
}

.process-arrow {
    display: none;
}

@media (min-width: 1024px) {
    .process-arrow {
        display: inline-flex;
        height: 4rem;
        align-items: center;
        justify-content: center;
        color: var(--accent-color);
        font-size: 1.5rem;
    }
}

.process-arrow i {
    animation: arrowNudge 1.9s ease-in-out infinite;
}

@keyframes arrowNudge {
    0%, 100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(-7px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .scroll-progress span {
        transition: none;
    }

    .tm-track,
    .process-node::after,
    .process-arrow i {
        animation: none;
    }

    .back-top,
    .tm-card,
    .counter-card,
    .route-node,
    .process-step {
        transition: none;
    }
}