/* =========================================================
   THE CAR GUY
   Phase 0 — Proof of Concept
   Main Stylesheet
========================================================= */


/* =========================================================
   1. RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: #ffffff;
    color: #111111;
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}


/* =========================================================
   2. VARIABLES
========================================================= */

:root {
    --red: #c91524;
    --red-dark: #9f0e1a;
    --black: #0b0b0c;
    --dark: #151517;
    --dark-2: #202023;
    --gray-900: #252527;
    --gray-700: #5f6064;
    --gray-500: #898b90;
    --gray-300: #d9dade;
    --gray-200: #e8e8ea;
    --gray-100: #f5f5f6;
    --white: #ffffff;

    --container: 1240px;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;

    --shadow-sm:
        0 5px 20px rgba(0, 0, 0, 0.06);

    --shadow-md:
        0 15px 40px rgba(0, 0, 0, 0.10);

    --shadow-lg:
        0 25px 70px rgba(0, 0, 0, 0.15);
}


/* =========================================================
   3. GLOBAL
========================================================= */

.container {
    width: min(
        calc(100% - 40px),
        var(--container)
    );

    margin-inline: auto;
}

.section {
    padding: 110px 0;
}

.section-label,
.eyebrow {
    display: inline-block;

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 0.16em;
    text-transform: uppercase;

    color: var(--red);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 45px;
}

.section-heading h2,
.center-heading h2,
.about-copy h2,
.partner-copy h2,
.final-cta h2 {
    margin-top: 10px;

    font-family: "Manrope", sans-serif;

    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;

    letter-spacing: -0.04em;
}

.section-heading h2 span,
.center-heading h2 span,
.about-copy h2 span,
.partner-copy h2 span,
.final-cta h2 span {
    color: var(--red);
}

.view-all {
    color: var(--red);

    font-size: 13px;
    font-weight: 800;

    white-space: nowrap;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.view-all:hover {
    color: var(--red-dark);
    transform: translateX(4px);
}


/* =========================================================
   4. HEADER
========================================================= */

.site-header {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 100;

    color: var(--white);

    transition:
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.site-header.scrolled {
    position: fixed;

    background: rgba(11, 11, 12, 0.96);

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.18);
}

.header-inner {
    min-height: 86px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;

    gap: 11px;

    flex-shrink: 0;
}

.brand-mark {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    background: var(--red);

    color: var(--white);

    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 800;

    border-radius: 8px;

    letter-spacing: -0.04em;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-text strong {
    font-family: "Manrope", sans-serif;

    font-size: 14px;
    font-weight: 800;

    line-height: 1;

    letter-spacing: 0.02em;
}

.brand-text small {
    margin-top: 5px;

    font-size: 8px;
    font-weight: 600;

    opacity: 0.65;

    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.main-nav {
    display: flex;
    align-items: center;

    gap: 30px;
}

.main-nav > a {
    position: relative;

    font-size: 12px;
    font-weight: 600;

    color: rgba(255, 255, 255, 0.82);

    transition:
        color 0.25s ease;
}

.main-nav > a:not(.nav-cta)::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--red);

    transition:
        width 0.25s ease;
}

.main-nav > a:hover,
.main-nav > a.active {
    color: var(--white);
}

.main-nav > a:hover::after,
.main-nav > a.active::after {
    width: 100%;
}

.nav-cta {
    padding: 11px 17px;

    background: var(--red);

    border-radius: 6px;

    color: var(--white) !important;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.nav-cta:hover {
    background: var(--red-dark);

    transform: translateY(-2px);
}

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    background: transparent;

    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;
}

.menu-toggle span {
    width: 23px;
    height: 2px;

    background: var(--white);

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}


/* =========================================================
   5. HERO
========================================================= */

.hero {
    position: relative;

    min-height: 760px;

    display: flex;
    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.90) 0%,
            rgba(0, 0, 0, 0.72) 42%,
            rgba(0, 0, 0, 0.30) 100%
        ),
        url("../assets/images/hero-car.jpg")
        center / cover no-repeat;

    color: var(--white);

    padding-top: 100px;
}

.hero-overlay {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(0, 0, 0, 0.40),
            transparent 45%
        );
}

.hero-content {
    position: relative;

    z-index: 2;

    max-width: 720px;

    padding-bottom: 100px;
}

.hero .eyebrow {
    color: #ffffff;

    opacity: 0.85;

    margin-bottom: 22px;
}

.hero h1 {
    max-width: 720px;

    font-family: "Manrope", sans-serif;

    font-size: clamp(48px, 7vw, 82px);
    line-height: 0.98;

    letter-spacing: -0.055em;
}

.hero h1 span {
    display: block;

    color: var(--red);
}

.hero-content > p {
    max-width: 590px;

    margin-top: 25px;

    color: rgba(255, 255, 255, 0.76);

    font-size: 16px;
}

.hero-actions {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;
}


/* =========================================================
   6. BUTTONS
========================================================= */

.btn {
    min-height: 50px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 0 21px;

    border-radius: 7px;

    font-size: 12px;
    font-weight: 800;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.45);

    color: var(--white);

    background: rgba(255, 255, 255, 0.05);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);

    border-color: rgba(255, 255, 255, 0.8);
}

.btn-light {
    background: var(--white);
    color: var(--black);
}

.btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: var(--white);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}


/* =========================================================
   7. HERO SEARCH
========================================================= */

.hero-search-wrapper {
    position: absolute;

    left: 50%;
    bottom: -48px;

    transform: translateX(-50%);

    z-index: 10;
}

.vehicle-search {
    min-height: 96px;

    display: grid;

    grid-template-columns:
        1fr
        1fr
        1fr
        170px;

    align-items: center;

    background: var(--white);

    color: var(--black);

    border-radius: var(--radius-md);

    box-shadow: var(--shadow-lg);

    overflow: hidden;
}

.search-field {
    min-height: 60px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 0 24px;

    border-right: 1px solid var(--gray-200);
}

.search-field label {
    margin-bottom: 5px;

    color: var(--gray-500);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.search-field select {
    width: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--black);

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;
}

.search-button {
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    background: var(--red);

    color: var(--white);

    font-size: 12px;
    font-weight: 800;

    transition:
        background 0.25s ease;
}

.search-button:hover {
    background: var(--red-dark);
}

.search-icon {
    font-size: 22px;

    line-height: 1;
}


/* =========================================================
   8. TRUST BAR
========================================================= */

.trust-bar {
    padding: 95px 0 45px;

    background: var(--white);
}

.trust-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    border-bottom: 1px solid var(--gray-200);

    padding-bottom: 35px;
}

.trust-item {
    display: flex;
    flex-direction: column;

    padding: 0 30px;

    border-right: 1px solid var(--gray-200);
}

.trust-item:first-child {
    padding-left: 0;
}

.trust-item:last-child {
    border-right: 0;
}

.trust-item strong {
    font-family: "Manrope", sans-serif;

    font-size: 14px;
}

.trust-item span {
    margin-top: 5px;

    color: var(--gray-700);

    font-size: 11px;
}


/* =========================================================
   9. VEHICLE CARDS
========================================================= */

.vehicle-grid {
    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;
}

.vehicle-card {
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--gray-200);

    border-radius: var(--radius-md);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-6px);

    box-shadow: var(--shadow-md);
}

.vehicle-image {
    position: relative;

    display: block;

    aspect-ratio: 4 / 3;

    overflow: hidden;

    background: var(--gray-100);
}

.vehicle-image img {
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;
}

.vehicle-card:hover .vehicle-image img {
    transform: scale(1.05);
}

.vehicle-condition {
    position: absolute;

    top: 12px;
    left: 12px;

    padding: 6px 9px;

    background: rgba(0, 0, 0, 0.78);

    color: var(--white);

    border-radius: 5px;

    font-size: 8px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.vehicle-card-content {
    padding: 19px;
}

.vehicle-card-top {
    display: flex;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 7px;
}

.vehicle-year {
    color: var(--red);

    font-size: 10px;
    font-weight: 800;
}

.vehicle-location {
    color: var(--gray-500);

    font-size: 10px;
}

.vehicle-card h3 {
    font-family: "Manrope", sans-serif;

    font-size: 20px;
    line-height: 1.15;

    letter-spacing: -0.025em;
}

.vehicle-price {
    display: block;

    margin-top: 9px;

    color: var(--black);

    font-family: "Manrope", sans-serif;

    font-size: 16px;
}

.vehicle-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 7px 12px;

    margin-top: 14px;

    padding-top: 13px;

    border-top: 1px solid var(--gray-200);

    color: var(--gray-700);

    font-size: 9px;
}

.vehicle-link {
    display: block;

    margin-top: 17px;

    color: var(--red);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* =========================================================
   10. PROCESS
========================================================= */

.process-section {
    background: var(--gray-100);
}

.center-heading {
    max-width: 720px;

    margin: 0 auto 55px;

    text-align: center;
}

.center-heading p {
    max-width: 550px;

    margin: 18px auto 0;

    color: var(--gray-700);

    font-size: 14px;
}

.process-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;
}

.process-card {
    position: relative;

    min-height: 260px;

    padding: 35px;

    background: var(--white);

    border-radius: var(--radius-md);

    border: 1px solid var(--gray-200);
}

.process-number {
    color: var(--red);

    font-family: "Manrope", sans-serif;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.08em;
}

.process-card h3 {
    margin-top: 65px;

    font-family: "Manrope", sans-serif;

    font-size: 22px;
}

.process-card p {
    max-width: 320px;

    margin-top: 10px;

    color: var(--gray-700);

    font-size: 12px;
}


/* =========================================================
   11. PARTNER SECTION
========================================================= */

.partner-section {
    position: relative;

    padding: 110px 0;

    background:
        linear-gradient(
            100deg,
            var(--black),
            #1c1c1f
        );

    color: var(--white);

    overflow: hidden;
}

.partner-section::after {
    content: "TCG";

    position: absolute;

    right: -20px;
    bottom: -100px;

    font-family: "Manrope", sans-serif;

    font-size: 300px;
    font-weight: 800;

    line-height: 1;

    color: rgba(255, 255, 255, 0.025);

    pointer-events: none;
}

.partner-inner {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        1.5fr
        0.5fr;

    align-items: center;

    gap: 60px;
}

.partner-copy {
    max-width: 700px;
}

.partner-copy .section-label {
    color: var(--red);
}

.partner-copy h2 {
    margin-top: 13px;
}

.partner-copy p {
    max-width: 600px;

    margin: 23px 0 30px;

    color: rgba(255, 255, 255, 0.66);

    font-size: 14px;
}

.partner-stat {
    width: 230px;
    height: 230px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    margin-left: auto;

    padding: 30px;

    border: 1px solid rgba(255, 255, 255, 0.13);

    border-radius: 50%;
}

.partner-stat .stat-symbol {
    color: var(--red);

    font-size: 30px;
    font-weight: 800;

    line-height: 1;
}

.partner-stat strong {
    margin-top: 3px;

    font-family: "Manrope", sans-serif;

    font-size: 30px;
}

.partner-stat > span:last-child {
    margin-top: 5px;

    color: rgba(255, 255, 255, 0.55);

    font-size: 9px;
    font-weight: 700;

    line-height: 1.6;

    text-transform: uppercase;
    letter-spacing: 0.12em;
}


/* =========================================================
   12. ABOUT
========================================================= */

.about-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    align-items: center;

    gap: 90px;
}

.about-image {
    min-height: 500px;

    border-radius: var(--radius-lg);

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #171719,
            #333338
        );
}

.image-placeholder {
    height: 100%;

    min-height: 500px;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;

    padding: 45px;

    background:
        linear-gradient(
            180deg,
            transparent 25%,
            rgba(0, 0, 0, 0.82)
        );

    color: var(--white);
}

.image-placeholder span {
    color: var(--red);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.15em;
}

.image-placeholder strong {
    margin-top: 10px;

    font-family: "Manrope", sans-serif;

    font-size: clamp(35px, 5vw, 58px);

    line-height: 0.95;

    letter-spacing: -0.05em;
}

.about-copy {
    max-width: 590px;
}

.about-copy p {
    margin-top: 20px;

    color: var(--gray-700);

    font-size: 14px;
}

.text-link {
    display: inline-block;

    margin-top: 28px;

    color: var(--red);

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* =========================================================
   13. FINAL CTA
========================================================= */

.final-cta {
    padding: 115px 0;

    background: var(--red);

    color: var(--white);

    text-align: center;
}

.final-cta .section-label {
    color: rgba(255, 255, 255, 0.72);
}

.final-cta h2 {
    max-width: 800px;

    margin: 12px auto 0;
}

.final-cta h2 span {
    color: var(--black);
}

.final-cta p {
    max-width: 600px;

    margin: 20px auto 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 14px;
}

.cta-actions {
    display: flex;

    justify-content: center;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 32px;
}


/* =========================================================
   14. FOOTER
========================================================= */

.site-footer {
    padding: 70px 0 25px;

    background: var(--black);

    color: var(--white);
}

.footer-grid {
    display: grid;

    grid-template-columns:
        2fr
        1fr
        1.2fr
        1fr;

    gap: 40px;

    padding-bottom: 55px;
}

.footer-brand > p {
    max-width: 250px;

    margin-top: 18px;

    color: rgba(255, 255, 255, 0.45);

    font-size: 11px;
}

.footer-column {
    display: flex;
    flex-direction: column;

    gap: 10px;
}

.footer-column h4 {
    margin-bottom: 8px;

    font-size: 10px;

    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.footer-column a,
.footer-column span {
    color: rgba(255, 255, 255, 0.48);

    font-size: 11px;

    transition:
        color 0.2s ease;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding-top: 22px;

    border-top: 1px solid rgba(255, 255, 255, 0.08);

    color: rgba(255, 255, 255, 0.3);

    font-size: 9px;
}


/* =========================================================
   15. RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1050px) {

    .main-nav {
        gap: 18px;
    }

    .vehicle-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .partner-inner {
        grid-template-columns: 1fr;
    }

    .partner-stat {
        margin-left: 0;
    }

    .footer-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


/* =========================================================
   16. RESPONSIVE — MOBILE
========================================================= */

@media (max-width: 760px) {

    .container {
        width: min(
            calc(100% - 28px),
            var(--container)
        );
    }

    .section {
        padding: 75px 0;
    }


    /* HEADER */

    .header-inner {
        min-height: 72px;
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;

        top: 72px;
        right: 0;

        width: min(320px, 88vw);

        height: calc(100vh - 72px);

        display: flex;
        flex-direction: column;
        align-items: stretch;

        padding: 30px 25px;

        background: var(--black);

        transform: translateX(100%);

        transition:
            transform 0.3s ease;

        box-shadow:
            -15px 0 40px rgba(0, 0, 0, 0.25);
    }

    .main-nav.open {
        transform: translateX(0);
    }

    .main-nav > a {
        padding: 15px 0;

        border-bottom: 1px solid rgba(255, 255, 255, 0.08);

        font-size: 14px;
    }

    .main-nav > a:not(.nav-cta)::after {
        display: none;
    }

    .nav-cta {
        margin-top: 15px;

        text-align: center;
    }


    /* HERO */

    .hero {
        min-height: 690px;

        padding-top: 90px;

        background-position:
            62% center;
    }

    .hero-content {
        padding-bottom: 130px;
    }

    .hero h1 {
        font-size: clamp(
            46px,
            14vw,
            66px
        );
    }

    .hero-content > p {
        font-size: 14px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;

        max-width: 280px;
    }

    .hero-actions .btn {
        width: 100%;
    }


    /* SEARCH */

    .hero-search-wrapper {
        bottom: -180px;
    }

    .vehicle-search {
        display: block;

        min-height: 0;

        border-radius: var(--radius-md);
    }

    .search-field {
        min-height: 65px;

        border-right: 0;

        border-bottom: 1px solid var(--gray-200);
    }

    .search-button {
        width: 100%;

        min-height: 58px;
    }


    /* TRUST */

    .trust-bar {
        padding-top: 215px;
    }

    .trust-grid {
        grid-template-columns: 1fr;

        gap: 22px;
    }

    .trust-item {
        padding: 0 0 22px;

        border-right: 0;

        border-bottom: 1px solid var(--gray-200);
    }

    .trust-item:last-child {
        padding-bottom: 0;

        border-bottom: 0;
    }


    /* SECTION HEADING */

    .section-heading {
        align-items: flex-start;
        flex-direction: column;

        gap: 15px;

        margin-bottom: 30px;
    }

    .section-heading h2,
    .center-heading h2,
    .about-copy h2,
    .partner-copy h2,
    .final-cta h2 {
        font-size: 34px;
    }


    /* VEHICLES */

    .vehicle-grid {
        grid-template-columns: 1fr;
    }


    /* PROCESS */

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-card {
        min-height: 220px;
    }

    .process-card h3 {
        margin-top: 45px;
    }


    /* PARTNER */

    .partner-section {
        padding: 80px 0;
    }

    .partner-stat {
        width: 190px;
        height: 190px;
    }


    /* ABOUT */

    .about-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

    .about-image,
    .image-placeholder {
        min-height: 380px;
    }


    /* FOOTER */

    .footer-grid {
        grid-template-columns: 1fr 1fr;

        gap: 40px 25px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* =========================================================
   17. SMALL PHONES
========================================================= */

@media (max-width: 420px) {

    .brand-text small {
        display: none;
    }

    .brand-mark {
        width: 39px;
        height: 39px;
    }

    .hero {
        min-height: 720px;
    }

    .hero h1 {
        font-size: 45px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

}