﻿:root {
    --site-width: 1370px;
    --spiid-red: #ED1C24;
    --spiid-beige: #FDE8E9;
    --spiid-black: #0A1128;
    --spiid-light-gray: #F5F7F6;
    --spiid-dark-gray: #3B4153;
    --spiid-mid-gray: #E7E7EA;
    --spiid-ink: #060916
}

@font-face {
    font-family: 'Inter';
    src: url("../fonts/Inter-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url("../fonts/Inter-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url("../fonts/Inter-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url("../fonts/Inter-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url("../fonts/Inter-ExtraBold.woff2") format("woff2");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url("../fonts/Inter-Black.woff2") format("woff2");
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    font-family: 'Inter';
}

p {
    line-height: 1.4;
}

.primary {
    text-decoration: none;
    background-color: var(--spiid-red);
    color: white;
    padding: 14px 25px;
    border-radius: 30px;
    border: solid 2px var(--spiid-red);
    transition: color 0.3s ease, background-color 0.3s ease;
}

.primary:hover {
    color: var(--spiid-red);
    background-color: #0000;
}

.site-header {
    background-color: var(--spiid-beige);
    color: var(--spiid-black)
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--site-width);
    padding: 14px 15px;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.4px;
}


.inner {        
    margin-inline: auto;
    width: 100%;
    box-sizing: border-box;
}

.site-logo {
    height: auto;
    width: 90px;
    margin-block: -10px;
}

.main-nav {
    display: flex;
    list-style: none;
    gap: 30px;
    font-weight: 500;
    padding: 0;
    margin: 0;
}

.main-nav a {
    color: inherit;
    text-decoration: none;
    border-bottom: solid 2px #0000;
    padding-bottom: 3px;
    transition: color 0.3s ease-out, border-color 0.5s ease;
}

.main-nav a:hover {
    color: var(--spiid-red);
    border-color: currentColor;
}

.main-nav a[aria-current="page"] {
    color: var(--spiid-red);
    border-color: currentColor;
}

.store-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.store-badge {
    display: inline-block;
    transition: transform 0.2s ease;
}

.store-badge img {
    display: block;
    width: 199px;
    height: 57px;
}

.store-badge:hover {
    transform: translateY(-3px);
}

.faq {
    padding: 95px 10px;
}

.faq-inner {
    display: flex;
    gap: 72px;
    max-width: var(--site-width);
    justify-content: center;
}

.faq-aside {
    width: 389px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.faq-aside h3 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    color: var(--spiid-black);
    margin: 0;
}

.faq-contact {
    background-color: var(--spiid-beige);
    border-radius: 32px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.faq-contact h4 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.33;
    color: var(--spiid-black);
    margin: 0;
}

.faq-contact p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--spiid-dark-gray);
    margin: 0;
}

.faq-contact .primary {
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 32px;
}

.faq-main {
    width: 754px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 35px;
}

.faq-tabs {
    display: flex;
    gap: 32px;
}

.faq-tab {
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    padding: 16px 32px;
    border-radius: 32px;
    border: none;
    cursor: pointer;
    background-color: var(--spiid-mid-gray);
    color: var(--spiid-dark-gray);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-tab:hover {
    background-color: #d9d9de;
}

.faq-tab.active {
    background-color: var(--spiid-red);
    color: var(--spiid-light-gray);
}

.faq-accordion {
    flex-direction: column;
    gap: 16px;
    display: none;
}

.faq-accordion.active {
    display: flex;
}

.faq-item {
    background-color: var(--spiid-light-gray);
    border-radius: 12px;
    padding: 24px;
    overflow: hidden;
    box-sizing: border-box;
}

.faq-item.animating {
    transition: height 0.3s ease;
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    color: var(--spiid-ink);
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "";
    flex-shrink: 0;
    height: 18px;
    width: 18px;
    background-image: url("../media/caret.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 13px 8px;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(180deg);
}

.faq-item p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--spiid-dark-gray);
    margin: 12px 0 0;
}

.faq-item.animating p {
    transition: opacity 0.25s ease;
}

.faq-item.animating:not([open]) p {
    opacity: 0;
}

.cta-inner {
    background-color: var(--spiid-red);
    padding: 100px;
    color: white;
    max-width: var(--site-width);
    border-radius: 32px;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.cta-inner::before {
    content: "";
    position: absolute;
    top: -15px;
    right: 119px;
    width: 394px;
    height: 394px;
    border-radius: 50%;
    background-color: var(--spiid-ink);
    opacity: 0.09;
    z-index: 0;
}

.cta-inner > div {
    width: 50%;
    position: relative;
    z-index: 1;
}

.cta h4 {
    font-size: 68px;
    font-weight: 800;
    margin: 0;
}

.cta p {
    font-size: 20px;
    line-height: 1.6;
    font-weight: 300;
    margin-right: 95px;
}

.cta-inner img.car {
    max-width: 100%;
    transform: scale(1.2);
}

.testimonials {
    padding: 100px 10px;
}

.testimonials h3 {
    font-size: 44px;
    line-height: 1.1;
    font-weight: 800;
    color: var(--spiid-ink);
    text-align: center;
    margin: 0 0 64px;
}

.testimonial-inner {
    max-width: 1280px;
    position: relative;
    display: flex;
    justify-content: center;
}

.testimonial-card {
    background-color: #070C1C;
    border-radius: 12px;
    width: 1280px;
    min-height: 494px;
    box-sizing: border-box;
    padding: 157px 130px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    overflow: hidden;
    position: relative;
}

.testimonial-card::after {
    content: "";
    position: absolute;
    inset: 0 0 0 auto;
    width: 620px;
    background-image: url("../media/driver-testimonial-bg.jpg");
    background-position: center;
    background-size: cover;
}

.testimonial-card > * {
    position: relative;
    z-index: 1;
}

.testimonial-card blockquote {
    font-size: 20px;
    line-height: 1.4;
    color: #fff;
    margin: 0;
    max-width: 440px;
}

.testimonial-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.testimonial-dots {
    display: flex;
    gap: 2px;
    align-items: center;
}

.dot {
    height: 8px;
    width: 9px;
    border-radius: 100px;
    background-color: var(--spiid-mid-gray);
}

.dot.active {
    width: 34px;
    background-color: var(--spiid-red);
}

.testimonial-person {
    position: absolute;
    right: -40px;
    bottom: 0;
    width: 724px;
    max-width: none;
    display: block;
    pointer-events: none;
    z-index: 2;
}

.cta-art {
    align-self: stretch;
    position: relative;
    z-index: 1;
}

.cta-art img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: none;
    display: block;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 18px;
    background-color: var(--spiid-red);
    transition: transform 0.2s ease, background-color 0.3s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
    background-color: #D81921;
}

.social-icons img {
    width: 20px;
    height: 20px;
    display: block;
}

.site-footer {
    margin-top: 50px;
    background-color: #060916;
    color: white;   
    padding: 40px 0;
    font-size: 15px;    
    overflow: hidden;
    width: 100%;
}

.footer-inner {
    display: flex;
    gap: 100px;
    max-width: var(--site-width);
    padding: 60px 10px 50px;
}

.footer-column {
    flex: 1
}

.footer-column .title {
    font-weight: 700;
    font-size: 18px;
    margin: 0 0 20px;
    color: #fff
}

.footer-column.wider {
    flex: 1.2
}

.site-footer ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-weight: 300;
}

.site-footer ul b {
    font-weight: 600
}

.site-footer a {
    color: inherit;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--spiid-red);
}

.footer-carousel {
    font-size: 140px;
    font-weight: 700;
    color: #3B4153;
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;
    margin: 40px 0 50px;
}

.footer-carousel span {
    flex-shrink: 0;
    margin-right: 30px;
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.copyright {
    display: block;
    text-align: center;
    opacity: 0.7;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    flex-shrink: 0;
    z-index: 3;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--spiid-black);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(6, 9, 22, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.mobile-nav {
    display: none;
}

@media (max-width: 768px) {
    .header-inner .main-nav,
    .header-inner .header-cta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-overlay {
        display: block;
        pointer-events: none;
    }

    .nav-open .nav-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        max-width: 80%;
        box-sizing: border-box;
        padding: 90px 30px 40px;
        background-color: #fff;
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.12);
        transform: translateX(100%);
        transition: transform 0.35s ease;
        z-index: 90;
        overflow-y: auto;
    }

    .nav-open .mobile-nav {
        transform: translateX(0);
    }

        .mobile-nav-close {
        position: absolute;
        top: 24px;
        right: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: none;
        border-radius: 50%;
        background-color: var(--spiid-beige);
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .mobile-nav-close:hover {
        background-color: var(--spiid-red);
    }

    .mobile-nav-close svg {
        width: 16px;
        height: 16px;
    }

    .mobile-nav-close svg line {
        stroke: var(--spiid-red);
        stroke-width: 2.2;
        stroke-linecap: round;
        transition: stroke 0.2s ease;
    }

    .mobile-nav-close:hover svg line {
        stroke: #fff;
    }

    .mobile-nav .main-nav {
        flex-direction: column;
        gap: 24px;
        width: 100%;
        font-size: 18px;
    }

    .mobile-nav .header-cta {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }

    body:has(.nav-open) {
        overflow: hidden;
    }

    .faq-inner {
        display: grid;
        grid-template-areas:
            "heading"
            "main"
            "contact";
        gap: 40px;
    }

    .faq-aside {
        display: contents;
    }

    .faq-main {
        width: 100%;
        grid-area: main;
    }

    .faq-aside > h3 {
        grid-area: heading;
    }

    .faq-contact {
        grid-area: contact;
        width: 100%;
        box-sizing: border-box;
    }

    .faq-tabs {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cta-inner {
        flex-direction: column;
        padding: 50px 30px;
        text-align: center;
    }

    .cta-inner > div {
        width: 100%;
    }

    .cta-inner::before {
        right: 50%;
        transform: translateX(50%);
    }

    .cta h4 {
        font-size: 42px;
    }

    .cta p {
        margin-right: 0;
    }

    .testimonial-card {
        width: 100%;
        padding: 60px 40px;
        min-height: 300px
    }

    .testimonial-card blockquote {
        max-width: 100%;
    }

    .testimonial-person {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        gap: 40px;
        padding: 50px 20px 40px;
    }

    .footer-carousel {
        font-size: 80px;
    }
}

@media (max-width: 480px) {
    .site-logo {
        width: 70px;
    }

    .store-badges {
        flex-wrap: wrap;
    }

    .faq-aside h3,
    .testimonials h3 {
        font-size: 32px;
    }

    .faq-tab {
        padding: 12px 20px;
        font-size: 14px;
    }

    .cta h4 {
        font-size: 32px;
    }

    .cta-inner {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .testimonial-card {
        padding: 40px 24px;
    }

    .testimonial-card blockquote {
        font-size: 17px;
    }

    .footer-carousel {
        font-size: 48px;
    }
}