/* Estilos novos e isolados da página Mach1Garage Drift. */
.mach1-drift-home {
    --drift-red: #dc3545;
    background: #f5f5f5;
    border-bottom: 1px solid #e6e6e6;
}

.drift-page {
    --drift-red: #dc3545;
    --drift-black: #171717;
    --drift-muted: #676767;
    color: #242424;
}

.drift-eyebrow {
    color: var(--drift-red);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.drift-hero {
    padding: clamp(2.5rem, 5vw, 4.5rem) 0 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, #151515 0%, #232323 62%, #111 100%);
}

.drift-hero .drift-title {
    max-width: 850px;
    color: #fff;
    font-size: clamp(2.35rem, 5vw, 4.5rem);
    font-weight: 850;
    letter-spacing: -0.035em;
    line-height: 1.02;
    text-wrap: balance;
}

.drift-hero .drift-lead {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.drift-hero .btn,
.mach1-drift-home .btn {
    min-height: 48px;
}

.drift-video-frame {
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: #090909;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.drift-video,
.drift-video-gallery-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050505;
    object-fit: contain;
}

.drift-video-pending {
    position: relative;
    min-height: 220px;
    aspect-ratio: 16 / 7.2;
    background: #080808;
}

.drift-video-pending img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 220px;
    aspect-ratio: 16 / 7.2;
    object-fit: cover;
    opacity: 0.72;
}

.drift-video-pending__message {
    position: absolute;
    inset: auto 1.25rem 1.25rem;
    max-width: 480px;
    padding: 1rem 1.1rem;
    border-left: 3px solid var(--drift-red);
    border-radius: 0.5rem;
    color: #fff;
    background: rgba(12, 12, 12, 0.88);
    backdrop-filter: blur(8px);
}

.drift-video-pending__message p {
    font-size: 1.02rem;
}

.drift-video-pending__message small {
    color: rgba(255, 255, 255, 0.82);
    overflow-wrap: anywhere;
}

.drift-video-pending__message code,
.drift-empty-state code {
    color: inherit;
    overflow-wrap: anywhere;
}

.drift-video-caption {
    margin: 0.65rem 0 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
}

.drift-jump-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 1.5rem 0 0.25rem;
}

.drift-jump-links a {
    padding: 0.48rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease;
}

.drift-jump-links a:hover,
.drift-jump-links a:focus-visible {
    border-color: var(--drift-red);
    color: #fff;
    background: rgba(220, 53, 69, 0.2);
}

.drift-anchor {
    scroll-margin-top: 88px;
}

.drift-section {
    padding: clamp(3.25rem, 6vw, 5.25rem) 0;
}

.drift-section-light {
    background: #f6f6f6;
}

.drift-section-title {
    margin-bottom: 0.8rem;
    font-size: clamp(1.9rem, 3.7vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.drift-section-copy {
    max-width: 760px;
    color: var(--drift-muted);
    font-size: 1.02rem;
    line-height: 1.7;
}

.drift-info-panel {
    padding: clamp(1.4rem, 3vw, 2.25rem);
    border: 1px solid #e5e5e5;
    border-top: 4px solid var(--drift-red);
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}

.drift-check-list {
    display: grid;
    gap: 0.9rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.drift-check-list li {
    display: flex;
    gap: 0.7rem;
    line-height: 1.5;
}

.drift-check-list i {
    flex: 0 0 auto;
    margin-top: 0.25rem;
    color: var(--drift-red);
}

.drift-service-card {
    padding: 1.5rem;
    border: 1px solid #e8e8e8;
    border-top: 3px solid var(--drift-red);
    border-radius: 0.7rem;
    background: #fff;
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.05);
}

.drift-card-number {
    display: inline-block;
    margin-bottom: 1.1rem;
    color: var(--drift-red);
    font-size: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.13em;
}

.drift-service-card p {
    color: var(--drift-muted);
    line-height: 1.65;
}

.drift-disclaimer {
    color: #707070;
    font-size: 0.88rem;
}

.drift-section-dark {
    color: #fff;
    background: #181818;
}

.drift-section-dark .drift-section-copy {
    color: rgba(255, 255, 255, 0.72);
}

.drift-car-card,
.drift-video-gallery-card {
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.75rem;
    background: #222;
}

.drift-car-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.drift-car-card figcaption {
    padding: 1rem 1.1rem;
    color: #fff;
    font-weight: 650;
}

.drift-empty-state {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.04);
    text-align: center;
}

.drift-empty-state > i {
    color: #ff6674;
    font-size: 2rem;
}

.drift-empty-state p {
    max-width: 750px;
    margin-inline: auto;
    overflow-wrap: anywhere;
}

.drift-empty-state-light {
    border-color: #ddd;
    color: #333;
    background: #fff;
}

.drift-empty-state-light > i {
    color: var(--drift-red);
}

.drift-empty-state-light p {
    color: #666;
}

.drift-video-gallery-card {
    color: #222;
    background: #fff;
    box-shadow: 0 7px 22px rgba(0, 0, 0, 0.06);
}

.drift-video-gallery-card video {
    border-bottom: 1px solid #eee;
}

.drift-final-cta {
    padding: clamp(2.75rem, 5vw, 4rem) 0;
    color: #fff;
    background: #252525;
    border-top: 4px solid var(--drift-red);
}

.drift-final-cta p:not(.drift-eyebrow) {
    color: rgba(255, 255, 255, 0.76);
}

.drift-final-cta .btn {
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    .drift-hero {
        padding-top: 2.25rem;
    }

    .drift-video-pending,
    .drift-video-pending img {
        min-height: 230px;
        aspect-ratio: 4 / 3;
    }

    .drift-video-pending__message {
        inset: auto 0.7rem 0.7rem;
        padding: 0.8rem;
    }

    .drift-jump-links {
        gap: 0.45rem;
    }

    .drift-jump-links a {
        padding: 0.4rem 0.72rem;
        font-size: 0.82rem;
    }

    .drift-final-cta .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .drift-jump-links a {
        transition: none;
    }
}
