@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Kufi+Arabic:wght@400;500;600;700;800&display=swap');

:root {
    --cream: #f3f0e8;
    --paper: #e9e4d9;
    --green: #34483c;
    --gold: #ad8d58;
    --ink: #202a23;
    --muted: #777c72;
    --line: rgba(32, 42, 35, .17);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: 'Noto Kufi Arabic', sans-serif;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

::selection {
    background: var(--gold);
    color: white;
}

/* INTRO */

.intro {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity .8s, visibility .8s;
}

.intro.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro h1 {
    font: 800 clamp(45px, 8vw, 90px) Inter, sans-serif;
    letter-spacing: 8px;
    margin: 0;
}

.intro h1 span,
.logo span {
    color: var(--gold);
    font-size: 12px;
    vertical-align: top;
}

.intro p {
    font-size: 12px;
    color: var(--muted);
}

.loading-line {
    width: 150px;
    height: 2px;
    background: #d1c8b7;
    overflow: hidden;
}

.loading-line::after {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    background: var(--green);
    transform: translateX(-100%);
    animation: loading 1.3s ease forwards;
}

@keyframes loading {
    to {
        transform: translateX(0);
    }
}

/* HEADER */

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: 76px;
    padding: 0 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(243, 240, 232, .94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(15px);
}

.logo {
    font: 800 25px Inter, sans-serif;
    letter-spacing: 3px;
    white-space: nowrap;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.5vw, 32px);
}

.navbar nav a {
    font-size: 11px;
    position: relative;
    padding: 10px 0;
}

.navbar nav a::after {
    content: "";
    position: absolute;
    bottom: 2px;
    right: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width .3s;
}

.navbar nav a:hover::after {
    width: 100%;
}

#languageButton {
    background: transparent;
    border: 1px solid var(--line);
    padding: 7px 12px;
    font: 600 10px Inter, sans-serif;
}

.menu-button {
    display: none;
    background: transparent;
    border: 0;
    font-size: 23px;
}

/* HERO */

.hero {
    position: relative;
    height: min(850px, calc(100svh - 76px));
    min-height: 650px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #b8b9b0;
    color: white;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: carArrive 2s cubic-bezier(.2, .7, .2, 1) both;
}

@keyframes carArrive {
    from {
        transform: scale(1.18);
        filter: blur(5px) brightness(.65);
    }

    to {
        transform: scale(1);
        filter: blur(0) brightness(1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(17, 25, 20, .70),
            rgba(17, 25, 20, .35) 50%,
            rgba(17, 25, 20, .05));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(620px, 85%);
    margin-right: 9%;
    padding-top: 30px;
}

.eyebrow {
    font: 600 10px Inter, sans-serif;
    letter-spacing: 2px;
    color: var(--gold);
}

.hero h1 {
    font-size: clamp(56px, 8vw, 100px);
    line-height: 1.45;
    font-weight: 500;
    letter-spacing: -2px;
    margin: 22px 0;
}

.hero h1 em,
.intro-section h2 em,
.collection-heading h2 em,
.feature-content h2 em,
.contact-section h2 em {
    color: #c9a66d;
    font-style: normal;
}

.hero-content p {
    max-width: 420px;
    color: #eeeae1;
    font-size: 13px;
    line-height: 2.4;
}

.main-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 14px 20px;
    margin-top: 20px;
    background: var(--green);
    color: white;
    border: 1px solid transparent;
    font-size: 11px;
    transition: .3s;
}

.main-button:hover {
    background: #1e3026;
    transform: translateY(-3px);
}

.hero-bottom {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    padding: 23px 6%;
    border-top: 1px solid rgba(255, 255, 255, .28);
    font: 9px Inter, sans-serif;
    letter-spacing: 2px;
}

/* INTRODUCTION */

.intro-section {
    padding: 100px 8%;
}

.section-label {
    padding-bottom: 15px;
    border-bottom: 1px solid var(--line);
    font: 10px Inter, sans-serif;
    letter-spacing: 2px;
    color: var(--muted);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8%;
    align-items: end;
    padding-top: 55px;
}

.intro-section h2,
.collection-heading h2,
.contact-section h2 {
    font-size: clamp(44px, 6vw, 75px);
    line-height: 1.5;
    font-weight: 500;
    margin: 20px 0;
}

.intro-grid p,
.contact-section p {
    font-size: 13px;
    line-height: 2.5;
    color: var(--muted);
    max-width: 480px;
}

.text-link {
    display: inline-block;
    margin-top: 15px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--gold);
    font-size: 11px;
}

/* COLLECTION */

.collection-section {
    padding: 100px 8%;
    background: var(--paper);
}

.collection-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 35px;
    padding-top: 45px;
}

.collection-heading>p {
    max-width: 280px;
    font-size: 12px;
    line-height: 2.4;
    color: var(--muted);
}

.filters {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin: 20px 0 32px;
}

.filter {
    border: 1px solid var(--line);
    background: transparent;
    padding: 10px 16px;
    font-size: 10px;
    transition: .25s;
}

.filter.active,
.filter:hover {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px 22px;
}

.car-card {
    min-width: 0;
    animation: cardEnter .6s both;
}

.car-card.hidden {
    display: none;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.car-image {
    height: clamp(230px, 32vw, 420px);
    position: relative;
    overflow: hidden;
    background: #d6d3c9;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .7s, filter .5s;
    filter: saturate(.8);
}

.car-card:hover .car-image img {
    transform: scale(1.05);
    filter: saturate(1);
}

.car-number {
    position: absolute;
    top: 16px;
    right: 17px;
    color: white;
    font: 11px Inter, sans-serif;
    text-shadow: 0 1px 8px #222;
}

.view-car {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--cream);
    font-size: 20px;
    transition: .3s;
}

.view-car:hover {
    background: var(--green);
    color: white;
}

.car-details {
    padding-top: 18px;
}

.car-brand {
    font: 10px Inter, sans-serif;
    letter-spacing: 2px;
    color: var(--gold);
}

.car-details h3 {
    font-size: 23px;
    font-weight: 500;
    margin: 8px 0;
}

.car-details p {
    color: var(--muted);
    font-size: 11px;
    margin: 0;
}

.details-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 16px;
    padding: 14px 0;
    background: transparent;
    border: 0;
    border-top: 1px solid var(--line);
    text-align: right;
    font-size: 11px;
}

.details-button span {
    font-size: 18px;
    color: var(--gold);
}

.image-note {
    margin-top: 30px;
    font-size: 10px;
    color: var(--muted);
}

/* FEATURE */

.feature-section {
    height: 620px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--green);
    color: white;
}

.feature-section>img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.7);
    transition: transform 1s;
}

.feature-section:hover>img {
    transform: scale(1.03);
}

.feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 30, 23, .08), rgba(20, 30, 23, .88) 75%);
}

.feature-content {
    position: relative;
    z-index: 2;
    width: min(500px, 80%);
    margin-right: 9%;
}

.feature-content h2 {
    font-size: clamp(55px, 7vw, 85px);
    line-height: 1.45;
    font-weight: 500;
    margin: 25px 0;
}

.feature-content p {
    font-size: 12px;
    line-height: 2.4;
    color: #eee;
    max-width: 360px;
}

/* CONTACT */

.contact-section {
    padding: 100px 8%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10%;
}

.contact-section form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-top: 10px;
}

.contact-section label {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 11px;
    color: var(--muted);
}

.contact-section input,
.contact-section select {
    width: 100%;
    padding: 12px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #bdb9ad;
    border-radius: 0;
    outline: none;
    color: var(--ink);
}

.contact-section input:focus,
.contact-section select:focus {
    border-color: var(--gold);
}

.contact-section form .main-button {
    align-self: flex-start;
}

.form-message {
    font-size: 11px;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 30px 8%;
    border-top: 1px solid var(--line);
    font-size: 10px;
}

footer p {
    color: var(--muted);
}

/* MODAL */

.car-modal {
    position: fixed;
    z-index: 200;
    inset: 0;
    display: none;
    place-items: center;
    padding: 20px;
}

.car-modal.open {
    display: grid;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 25, 20, .8);
}

.modal-box {
    position: relative;
    z-index: 1;
    width: min(650px, 100%);
    max-height: 90vh;
    overflow: auto;
    padding: 22px;
    background: var(--cream);
    animation: modalEnter .35s both;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: translateY(15px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 28px;
    left: 28px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 0;
    background: var(--cream);
    font-size: 24px;
}

.modal-box>img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.modal-info {
    padding: 15px 5px 8px;
}

.modal-info h2 {
    font-size: 30px;
    font-weight: 500;
}

.modal-info p {
    font-size: 12px;
    line-height: 2.3;
    color: var(--muted);
}

.toast {
    position: fixed;
    z-index: 300;
    bottom: 22px;
    right: 50%;
    transform: translateX(50%);
    background: var(--green);
    color: white;
    padding: 13px 22px;
    font-size: 11px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}

.toast.show {
    opacity: 1;
}

/* RESPONSIVE */

@media (max-width: 760px) {
    .navbar {
        min-height: 68px;
        padding: 0 5%;
    }

    .navbar nav {
        display: none;
        position: absolute;
        top: 68px;
        right: 0;
        left: 0;
        flex-direction: column;
        gap: 0;
        padding: 10px 6% 20px;
        background: var(--cream);
        border-bottom: 1px solid var(--line);
    }

    .navbar nav.open {
        display: flex;
    }

    .navbar nav a {
        padding: 13px 0;
        border-bottom: 1px solid var(--line);
    }

    .menu-button {
        display: block;
    }

    .hero {
        min-height: 780px;
        height: auto;
        align-items: flex-end;
    }

    .hero-image {
        object-position: center;
    }

    .hero-overlay {
        background: linear-gradient(0deg, rgba(17, 25, 20, .92), rgba(17, 25, 20, .05) 95%);
    }

    .hero-content {
        width: 100%;
        margin: 0;
        padding: 280px 7% 90px;
    }

    .hero h1 {
        font-size: 59px;
    }

    .intro-section,
    .collection-section,
    .contact-section {
        padding: 70px 6%;
    }

    .intro-grid,
    .contact-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .collection-heading {
        display: block;
    }

    .collection-heading>p {
        margin-top: 15px;
    }

    .car-grid {
        gap: 28px 13px;
    }

    .car-image {
        height: clamp(175px, 38vw, 290px);
    }

    .car-details h3 {
        font-size: 17px;
    }

    .feature-section {
        height: 560px;
    }

    .feature-content {
        margin-right: 7%;
    }

    footer {
        flex-wrap: wrap;
    }
}

@media (max-width: 460px) {
    .car-grid {
        grid-template-columns: 1fr;
    }

    .car-image {
        height: 260px;
    }

    .hero h1 {
        font-size: 53px;
    }

    .feature-content h2 {
        font-size: 55px;
    }
}

html[dir="ltr"] body {
    font-family: Inter, sans-serif;
}

html[dir="ltr"] .hero-content,
html[dir="ltr"] .feature-content {
    margin-right: 0;
    margin-left: 9%;
}

html[dir="ltr"] .hero-overlay {
    background: linear-gradient(90deg, rgba(17, 25, 20, .05), rgba(17, 25, 20, .35) 50%, rgba(17, 25, 20, .75));
}

html[dir="ltr"] .hero-bottom {
    direction: ltr;
}

html[dir="ltr"] .car-number {
    right: auto;
    left: 17px;
}

html[dir="ltr"] .modal-close {
    left: auto;
    right: 28px;
}

html[dir="ltr"] .details-button {
    text-align: left;
}