/* =========================================================
   ASO DESIGN — PROJECT PAGE
   project.css
========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&display=swap');

@font-face {
    font-family: "Peyda";
    src: url('./font/peyda/Peyda-Bold.ttf');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


/* =========================================================
   ROOT
========================================================= */

:root {
    --bg: #080808;
    --bg-soft: #0d0d0d;
    --panel: #101010;
    --panel-2: #141414;

    --gold: #c8a35a;
    --gold-light: #e2c47b;
    --gold-dark: #8e7138;

    --white: #f5f3ee;
    --text: #dedbd3;
    --muted: #bab5b5;
    --muted-2: #55534e;

    --border: rgba(255, 255, 255, 0.09);
    --border-gold: rgba(200, 163, 90, 0.35);

    --radius: 4px;

    --font-main: "Vazirmatn", sans-serif;
    --font-display: "Peyda", "Vazirmatn", sans-serif;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--white);
    font-family: Peyda, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    border: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}


/* =========================================================
   NOISE
========================================================= */

.noise {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.035;

    background-image:
            url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}


/* =========================================================
   PAGE PROGRESS
========================================================= */

.page-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    z-index: 1000;
    background: rgba(255,255,255,.04);
}

.page-progress-bar {
    width: 16.666%;
    height: 100%;
    background: var(--gold);
    box-shadow: 0 0 15px rgba(200,163,90,.35);
    transform-origin: right center;
}


/* =========================================================
   HEADER
========================================================= */

.project-header {
    height: 88px;
    padding: 0 5vw;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);

    position: relative;
    z-index: 10;
}

.project-brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.project-brand img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.project-brand strong {
    display: block;
    font-family: var(--font-display);
    font-size: 15px;
    letter-spacing: 2px;
}

.project-brand span {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 1.5px;
    direction: ltr;
}

.back-home {
    display: flex;
    align-items: center;
    gap: 13px;

    color: var(--muted);
    font-size: 13px;

    transition: color .3s ease;
}

.back-arrow {
    width: 34px;
    height: 34px;

    border: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--gold);

    transition:
            background .3s ease,
            border-color .3s ease,
            transform .3s ease;
}

.back-home:hover {
    color: var(--white);
}

.back-home:hover .back-arrow {
    background: rgba(200,163,90,.08);
    border-color: var(--border-gold);
    transform: translateX(-4px);
}


/* =========================================================
   MAIN
========================================================= */

.project-page {
    width: min(1450px, 90%);
    margin: 0 auto;
}


/* =========================================================
   INTRO
========================================================= */

.project-intro {
    padding: 110px 0 90px;
    max-width: 850px;
}

.intro-number {
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 3px;
    direction: ltr;
    margin-bottom: 30px;
}

.project-intro h1 {
    font-family: var(--font-display);
    font-size: clamp(42px, 5.5vw, 82px);
    line-height: 1.08;
    font-weight: 500;
    letter-spacing: -2px;
}

.project-intro h1 span {
    color: var(--gold);
}

.project-intro p {
    max-width: 620px;
    margin-top: 35px;

    color: var(--muted);
    font-size: 15px;
    line-height: 2.1;
}

.intro-line {
    margin-top: 45px;

    display: flex;
    align-items: center;
    gap: 15px;
}

.intro-line span {
    width: 90px;
    height: 1px;
    background: var(--gold);
}

.intro-line small {
    color: var(--muted-2);
    font-size: 8px;
    letter-spacing: 3px;
    direction: ltr;
}


/* =========================================================
   WORKSPACE
========================================================= */

.project-workspace {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);

    border: 1px solid var(--border);
    background: var(--panel);

    min-height: 720px;
}


/* =========================================================
   SIDEBAR
========================================================= */

.project-sidebar {
    background: #0a0a0a;
    border-left: 1px solid var(--border);

    position: relative;
}

.sidebar-inner {
    position: sticky;
    top: 0;

    height: 720px;
    padding: 45px 35px;

    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-brand img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.sidebar-brand span {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 4px;
    direction: ltr;
}

.sidebar-title {
    margin-top: 80px;
}

.sidebar-title small {
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 3px;
    direction: ltr;
}

.sidebar-title h2 {
    margin-top: 15px;

    font-family: var(--font-display);
    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    direction: ltr;
}


/* =========================================================
   STEPS
========================================================= */

.steps {
    margin-top: 55px;
}

.step {
    position: relative;

    min-height: 62px;
    padding: 12px 0;

    display: flex;
    align-items: center;
    gap: 17px;

    border-bottom: 1px solid rgba(255,255,255,.055);

    color: var(--muted);

    transition:
            color .35s ease,
            padding-right .35s ease;
}

.step:first-child {
    border-top: 1px solid rgba(255,255,255,.055);
}

.step > span {
    width: 29px;

    font-size: 9px;
    letter-spacing: 1px;
    color: var(--muted-2);

    direction: ltr;

    transition: color .35s ease;
}

.step strong {
    display: block;
    font-size: 12px;
    font-weight: 500;
}

.step small {
    display: block;
    margin-top: 3px;

    font-size: 7px;
    letter-spacing: 1.2px;

    direction: ltr;
    color: var(--muted-2);
}

.step.active {
    color: var(--white);
    padding-right: 8px;
}

.step.active > span {
    color: var(--gold);
}

.step.active::before {
    content: "";

    position: absolute;
    right: -35px;
    top: 0;

    width: 2px;
    height: 100%;

    background: var(--gold);
}

.step.completed > span {
    color: var(--gold);
}


/* =========================================================
   SIDEBAR FOOTER
========================================================= */

.sidebar-footer {
    margin-top: auto;

    padding-top: 25px;

    border-top: 1px solid var(--border);
}

.sidebar-footer span {
    display: block;

    font-family: var(--font-display);
    font-size: 10px;
    letter-spacing: 2px;

    direction: ltr;
}

.sidebar-footer small {
    display: block;
    margin-top: 5px;

    color: var(--muted-2);
    font-size: 7px;
    letter-spacing: 1.5px;

    direction: ltr;
}


/* =========================================================
   FORM AREA
========================================================= */

.project-form-area {
    min-width: 0;
    padding: 70px 7%;
    display: flex;
    align-items: center;
}

#projectForm {
    width: 100%;
}

.form-step {
    display: none;
    min-height: 490px;
}

.form-step.active {
    display: block;
}


/* =========================================================
   FORM HEADING
========================================================= */

.form-heading > span {
    display: inline-block;

    color: var(--gold);

    font-size: 8px;
    letter-spacing: 2.5px;

    direction: ltr;

    margin-bottom: 24px;
}

.form-heading h2 {
    font-family: var(--font-display);
    font-size: clamp(30px, 3vw, 46px);
    line-height: 1.25;
    font-weight: 500;
}

.form-heading p {
    max-width: 580px;

    margin-top: 20px;

    color: var(--muted);
    font-size: 13px;
    line-height: 2;
}


/* =========================================================
   FIELDS
========================================================= */

.fields-grid {
    margin-top: 50px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 22px;
}

.field {
    min-width: 0;
}

.field.full {
    grid-column: 1 / -1;
}

.field label {
    display: block;

    margin-bottom: 10px;

    color: #a9a69f;
    font-size: 11px;
}

.field input,
.field textarea,
.field select {
    width: 100%;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: #0c0c0c;

    color: var(--white);

    outline: none;

    font-size: 13px;

    transition:
            border-color .3s ease,
            background .3s ease,
            box-shadow .3s ease;
}

.field input,
.field select {
    height: 54px;
    padding: 0 17px;
}

.field textarea {
    padding: 16px 17px;
    resize: vertical;
    min-height: 130px;
    line-height: 1.9;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #45433f;
}

.field select {
    appearance: none;
    cursor: pointer;

    background-image:
            linear-gradient(45deg, transparent 50%, var(--gold) 50%),
            linear-gradient(135deg, var(--gold) 50%, transparent 50%);

    background-position:
            calc(100% - 20px) 23px,
            calc(100% - 14px) 23px;

    background-size: 6px 6px;
    background-repeat: no-repeat;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--border-gold);
    background: #101010;
    box-shadow: 0 0 0 3px rgba(200,163,90,.04);
}

.field.error input,
.field.error textarea,
.field.error select {
    border-color: #9d4545;
}

.field-error {
    display: block;

    margin-top: 7px;

    color: #c76b6b;
    font-size: 10px;
}


/* =========================================================
   SERVICES
========================================================= */

.service-options {
    margin-top: 50px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.service-option {
    display: block;
    cursor: pointer;
}

.service-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.service-card {
    position: relative;

    min-height: 155px;

    padding: 25px;

    border: 1px solid var(--border);
    background: #0c0c0c;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    transition:
            border-color .35s ease,
            background .35s ease,
            transform .35s ease;
}

.service-card > span {
    color: var(--muted-2);
    font-size: 9px;
    letter-spacing: 2px;
    direction: ltr;
}

.service-card strong {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
}

.service-card small {
    color: var(--muted-2);
    font-size: 7px;
    letter-spacing: 2px;
    direction: ltr;
}

.service-card b {
    position: absolute;

    left: 20px;
    bottom: 19px;

    width: 28px;
    height: 28px;

    border: 1px solid var(--border);

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--muted);

    font-size: 16px;
    font-weight: 300;

    transition:
            background .35s ease,
            color .35s ease,
            border-color .35s ease;
}

.service-option:hover .service-card {
    border-color: rgba(200,163,90,.25);
    transform: translateY(-2px);
}

.service-option input:checked + .service-card {
    border-color: var(--gold);
    background: rgba(200,163,90,.055);
}

.service-option input:checked + .service-card > span {
    color: var(--gold);
}

.service-option input:checked + .service-card b {
    background: var(--gold);
    color: #080808;
    border-color: var(--gold);
}


/* =========================================================
   REVIEW
========================================================= */

.review-box {
    margin-top: 45px;

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    border-top: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.review-box > div {
    min-height: 90px;
    padding: 20px;

    border-left: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.review-box span {
    display: block;

    color: var(--muted-2);
    font-size: 9px;
}

.review-box strong {
    display: block;

    margin-top: 9px;

    color: var(--white);
    font-size: 12px;
    font-weight: 500;
}

.agreement {
    margin-top: 25px;

    display: flex;
    align-items: flex-start;
    gap: 10px;

    color: var(--muted);
    font-size: 10px;
    line-height: 1.8;

    cursor: pointer;
}

.agreement input {
    margin-top: 4px;
    accent-color: var(--gold);
}

.submit-project {
    width: 100%;
    min-height: 60px;

    margin-top: 25px;

    padding: 0 22px;

    background: var(--gold);
    color: #090909;

    display: flex;
    align-items: center;
    justify-content: space-between;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
            background .3s ease,
            transform .3s ease;
}

.submit-project b {
    font-size: 20px;
    font-weight: 400;
}

.submit-project:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

.submit-project:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none;
}


/* =========================================================
   NAVIGATION
========================================================= */

.form-navigation {
    margin-top: 50px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-top: 1px solid var(--border);

    padding-top: 20px;
}

.nav-btn {
    min-height: 42px;

    display: flex;
    align-items: center;
    gap: 10px;

    background: transparent;

    color: var(--muted);

    font-size: 11px;

    cursor: pointer;

    transition: color .3s ease;
}

.nav-btn:hover {
    color: var(--white);
}

.nav-btn:disabled {
    opacity: .25;
    cursor: not-allowed;
}

.step-counter {
    display: flex;
    align-items: center;
    gap: 8px;

    color: var(--muted-2);
    font-size: 10px;

    direction: ltr;
}

.step-counter strong {
    color: var(--gold);
    font-size: 18px;
    font-weight: 500;
}


/* =========================================================
   SUCCESS SCREEN
========================================================= */

.success-screen {
    position: fixed;
    inset: 0;

    z-index: 2000;

    background: #080808;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;

    opacity: 0;
    visibility: hidden;
}

.success-screen.active {
    opacity: 1;
    visibility: visible;
}

.success-content {
    width: min(600px, 90%);
}

.success-logo {
    width: 80px;
    height: 80px;

    margin: 0 auto 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid var(--border-gold);
}

.success-logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.success-content > span {
    color: var(--gold);
    font-size: 8px;
    letter-spacing: 3px;
    direction: ltr;
}

.success-content h2 {
    margin-top: 25px;

    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.1;
    font-weight: 400;
}

.success-content h2 strong {
    color: var(--gold);
    font-weight: 500;
}

.success-content p {
    margin: 25px auto 35px;

    max-width: 480px;

    color: var(--muted);
    font-size: 13px;
    line-height: 2;
}

.success-back {
    display: inline-flex;
}


/* =========================================================
   FOOTER
========================================================= */

.project-footer {
    width: min(1450px, 90%);
    margin: 60px auto 0;

    min-height: 100px;

    border-top: 1px solid var(--border);

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 30px;
}

.project-footer strong {
    display: block;

    font-family: var(--font-display);
    font-size: 12px;
    letter-spacing: 2px;

    direction: ltr;
}

.project-footer > div > span {
    display: block;

    margin-top: 4px;

    color: var(--muted-2);
    font-size: 7px;
    letter-spacing: 1.5px;

    direction: ltr;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    color: var(--muted);
    font-size: 9px;

    transition: color .3s ease;
}

.footer-links a:hover {
    color: var(--gold);
}

.copyright {
    justify-self: end;

    color: var(--muted-2);
    font-size: 8px;

    direction: ltr;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 1000px) {

    .project-page {
        width: 92%;
    }

    .project-workspace {
        grid-template-columns: 1fr;
    }

    .project-sidebar {
        border-left: 0;
        border-bottom: 1px solid var(--border);
    }

    .sidebar-inner {
        position: relative;
        height: auto;
        padding: 30px;
    }

    .sidebar-title {
        margin-top: 35px;
    }

    .steps {
        margin-top: 30px;

        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }

    .step {
        min-height: 55px;
        border: 0 !important;
        padding: 8px 4px;
        gap: 8px;
    }

    .step.active {
        padding-right: 4px;
    }

    .step.active::before {
        right: 0;
        bottom: 0;
        top: auto;

        width: 100%;
        height: 2px;
    }

    .step > span {
        width: auto;
    }

    .step small {
        display: none;
    }

    .sidebar-footer {
        display: none;
    }

    .project-form-area {
        padding: 55px 30px;
    }
}


@media (max-width: 650px) {

    .project-header {
        height: 72px;
        padding: 0 20px;
    }

    .project-brand img {
        width: 34px;
        height: 34px;
    }

    .project-brand strong {
        font-size: 12px;
    }

    .project-brand span {
        display: none;
    }

    .back-home span:first-child {
        display: none;
    }

    .project-page {
        width: 94%;
    }

    .project-intro {
        padding: 70px 0 55px;
    }

    .project-intro h1 {
        font-size: 42px;
        letter-spacing: -1px;
    }

    .project-intro p {
        font-size: 12px;
    }

    .project-workspace {
        min-height: 0;
    }

    .sidebar-inner {
        padding: 25px 20px;
    }

    .sidebar-title h2 {
        font-size: 24px;
    }

    .steps {
        grid-template-columns: repeat(6, 1fr);
    }

    .step {
        justify-content: center;
    }

    .step div {
        display: none;
    }

    .step > span {
        font-size: 8px;
    }

    .project-form-area {
        padding: 45px 20px;
    }

    .form-step {
        min-height: 0;
    }

    .form-heading h2 {
        font-size: 31px;
    }

    .fields-grid,
    .service-options,
    .review-box {
        grid-template-columns: 1fr;
    }

    .field.full {
        grid-column: auto;
    }

    .service-card {
        min-height: 135px;
    }

    .form-navigation {
        margin-top: 35px;
    }

    .nav-btn span {
        display: none;
    }

    .project-footer {
        width: 94%;
        padding: 30px 0;

        grid-template-columns: 1fr;
        text-align: center;
        gap: 18px;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .copyright {
        justify-self: center;
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}