/* =========================================================
   ECOARC-STUDIO
   CONTACT PAGE
   ========================================================= */


/* =========================================================
   01 — BASE
   ========================================================= */

.contact-page {
    --contact-ink: #181818;
    --contact-muted: #737373;
    --contact-soft: #9b9b9b;
    --contact-line: #d8d8d5;
    --contact-paper: #f5f5f2;
    --contact-white: #ffffff;
    --contact-dark: #171717;

    width: 100%;
    min-width: 0;
    overflow: hidden;

    background: var(--contact-paper);
    color: var(--contact-ink);

    direction: inherit;
}

.contact-page *,
.contact-page *::before,
.contact-page *::after {
    box-sizing: border-box;
}

.contact-page h1,
.contact-page h2,
.contact-page h3,
.contact-page p,
.contact-page figure {
    margin: 0;
}

.contact-page a {
    color: inherit;
    text-decoration: none;
}

.contact-page button,
.contact-page input,
.contact-page select,
.contact-page textarea {
    font: inherit;
}

.contact-page img {
    display: block;
    max-width: 100%;
}

.contact-container {
    width: min(1320px, calc(100% - 64px));
    margin-inline: auto;
}


/* =========================================================
   02 — HERO
   ========================================================= */

.contact-hero {
    min-height: 720px;

    display: flex;
    align-items: flex-end;

    padding-top: 170px;
    padding-bottom: 82px;

    background: var(--contact-paper);
}

.contact-section-label {
    display: flex;
    align-items: center;
    gap: 15px;

    margin-bottom: 68px;

    color: var(--contact-muted);

    font-family: "DM Sans", "Manrope", "Vazirmatn", sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-section-label span:first-child {
    color: var(--contact-ink);
}

.contact-section-label::after {
    content: "";

    width: 42px;
    height: 1px;

    background: var(--contact-line);
}

.contact-hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.4fr);
    align-items: end;
    gap: 80px;
}

.contact-hero h1 {
    max-width: 1000px;

    font-family: "DM Sans", "Manrope", "Vazirmatn", sans-serif;
    font-size: clamp(58px, 8vw, 118px);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.065em;
}

.contact-hero-content p {
    max-width: 410px;

    padding-bottom: 7px;

    color: var(--contact-muted);

    font-family: "DM Sans", "Vazirmatn", sans-serif;
    font-size: 15px;
    line-height: 1.85;
}


/* =========================================================
   03 — MAIN CONTACT AREA
   ========================================================= */

.contact-main {
    padding-top: 145px;
    padding-bottom: 155px;

    background: var(--contact-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.58fr) minmax(400px, 1fr);
    gap: clamp(70px, 11vw, 180px);
}


/* =========================================================
   04 — CONTACT INFORMATION
   ========================================================= */

.contact-information {
    min-width: 0;
}

.contact-information .contact-section-label,
.contact-form-wrapper .contact-section-label {
    margin-bottom: 58px;
}

.contact-info-list {
    border-top: 1px solid var(--contact-line);
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    gap: 12px;

    padding: 25px 0;

    border-bottom: 1px solid var(--contact-line);
}

.contact-info-label {
    color: var(--contact-soft);

    font-family: "DM Sans", "Vazirmatn", sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-info-value {
    max-width: 360px;

    color: var(--contact-ink);

    font-family: "DM Sans", "Vazirmatn", sans-serif;
    font-size: 14px;
    line-height: 1.7;

    overflow-wrap: anywhere;

    transition: opacity 200ms ease;
}

a.contact-info-value:hover {
    opacity: 0.55;
}


/* =========================================================
   05 — SOCIAL LINKS
   ========================================================= */

.contact-socials {
    margin-top: 62px;
}

.contact-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;

    margin-top: 22px;
}

.contact-social-links a {
    position: relative;

    padding-bottom: 5px;

    font-family: "DM Sans", "Vazirmatn", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    transition: opacity 200ms ease;
}

.contact-social-links a::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 1px;

    background: var(--contact-ink);

    transform: scaleX(0);
    transform-origin: right center;

    transition: transform 250ms ease;
}

.contact-social-links a:hover {
    opacity: 0.65;
}

.contact-social-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}


/* =========================================================
   06 — FORM
   ========================================================= */

.contact-form-wrapper {
    min-width: 0;
}

.contact-form {
    width: 100%;
}

.contact-field {
    position: relative;

    display: flex;
    flex-direction: column;
    gap: 12px;

    margin-bottom: 38px;
}

.contact-field label {
    color: var(--contact-muted);

    font-family: "DM Sans", "Vazirmatn", sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    width: 100%;

    border: 0;
    border-bottom: 1px solid var(--contact-line);
    border-radius: 0;

    outline: none;

    background: transparent;
    color: var(--contact-ink);

    font-family: "DM Sans", "Vazirmatn", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;

    transition:
        border-color 200ms ease,
        background-color 200ms ease;
}

.contact-field input,
.contact-field select {
    min-height: 50px;
    padding: 8px 0;
}

.contact-field textarea {
    min-height: 150px;
    padding: 10px 0;

    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #a0a0a0;
    opacity: 1;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-bottom-color: var(--contact-ink);
}

.contact-field select {
    appearance: none;

    cursor: pointer;

    padding-inline-end: 30px;

    background-image:
        linear-gradient(45deg, transparent 50%, var(--contact-ink) 50%),
        linear-gradient(135deg, var(--contact-ink) 50%, transparent 50%);

    background-position:
        calc(100% - 9px) 50%,
        calc(100% - 4px) 50%;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;
}

.contact-field-message {
    margin-top: 8px;
}


/* =========================================================
   07 — FORM ERRORS
   ========================================================= */

.contact-error {
    display: block;

    margin-top: -4px;

    color: #8a3f3f;

    font-family: "DM Sans", "Vazirmatn", sans-serif;
    font-size: 11px;
    line-height: 1.5;
}


/* =========================================================
   08 — FORM FOOTER
   ========================================================= */

.contact-form-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;

    margin-top: 54px;
    padding-top: 25px;

    border-top: 1px solid var(--contact-line);
}

.contact-form-footer p {
    max-width: 300px;

    color: var(--contact-soft);

    font-family: "DM Sans", "Vazirmatn", sans-serif;
    font-size: 11px;
    line-height: 1.7;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    gap: 20px;

    flex: 0 0 auto;

    padding: 15px 0;

    border: 0;
    border-bottom: 1px solid var(--contact-ink);

    border-radius: 0;

    background: transparent;
    color: var(--contact-ink);

    cursor: pointer;

    font-family: "DM Sans", "Vazirmatn", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;

    transition:
        opacity 200ms ease,
        gap 250ms ease;
}

.contact-submit:hover {
    gap: 27px;
    opacity: 0.6;
}

.contact-submit:focus-visible {
    outline: 1px solid var(--contact-ink);
    outline-offset: 6px;
}

.contact-submit-arrow {
    display: inline-flex;

    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1;

    transition: transform 250ms ease;
}

.contact-submit:hover .contact-submit-arrow {
    transform: translateX(4px);
}


/* =========================================================
   09 — CLOSING STATEMENT
   ========================================================= */

.contact-closing {
    padding-top: 155px;
    padding-bottom: 170px;

    background: var(--contact-dark);
    color: var(--contact-white);
}

.contact-closing-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.4fr) minmax(0, 1fr);
    gap: 100px;
}

.contact-closing .contact-section-label {
    color: #808080;
}

.contact-closing .contact-section-label span:first-child {
    color: #ffffff;
}

.contact-closing .contact-section-label::after {
    background: #444444;
}

.contact-closing-content {
    max-width: 920px;
}

.contact-closing-content h2 {
    max-width: 850px;

    font-family: "DM Sans", "Manrope", "Vazirmatn", sans-serif;
    font-size: clamp(48px, 6.5vw, 92px);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.contact-email-link {
    display: inline-flex;
    align-items: center;
    gap: 20px;

    margin-top: 55px;
    padding-bottom: 10px;

    border-bottom: 1px solid #777777;

    color: #ffffff;

    font-family: "DM Sans", "Vazirmatn", sans-serif;
    font-size: 14px;
    line-height: 1;

    transition:
        opacity 200ms ease,
        gap 250ms ease;
}

.contact-email-link:hover {
    gap: 27px;
    opacity: 0.6;
}

.contact-email-link .contact-submit-arrow {
    color: #aaaaaa;
}


/* =========================================================
   10 — RTL SUPPORT
   ========================================================= */

[dir="rtl"] .contact-page {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .contact-section-label {
    letter-spacing: 0;
    text-transform: none;
}

[dir="rtl"] .contact-hero h1,
[dir="rtl"] .contact-closing-content h2 {
    letter-spacing: 0;
}

[dir="rtl"] .contact-field label,
[dir="rtl"] .contact-info-label {
    letter-spacing: 0;
    text-transform: none;
}

[dir="rtl"] .contact-field select {
    background-position:
        9px 50%,
        14px 50%;
}

[dir="rtl"] .contact-field select {
    padding-right: 0;
    padding-left: 30px;
}

[dir="rtl"] .contact-social-links a::after {
    transform-origin: left center;
}

[dir="rtl"] .contact-social-links a:hover::after {
    transform-origin: right center;
}

[dir="rtl"] .contact-submit:hover .contact-submit-arrow,
[dir="rtl"] .contact-email-link:hover .contact-submit-arrow {
    transform: translateX(-4px);
}


/* =========================================================
   11 — TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .contact-container {
        width: min(100% - 48px, 900px);
    }

    .contact-hero {
        min-height: 650px;

        padding-top: 150px;
        padding-bottom: 65px;
    }

    .contact-hero-content {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 0.48fr);
        gap: 50px;
    }

    .contact-hero h1 {
        font-size: clamp(54px, 9vw, 88px);
    }

    .contact-main {
        padding-top: 110px;
        padding-bottom: 120px;
    }

    .contact-grid {
        gap: 70px;
    }

    .contact-closing {
        padding-top: 120px;
        padding-bottom: 130px;
    }

    .contact-closing-grid {
        gap: 60px;
    }
}


/* =========================================================
   12 — MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .contact-container {
        width: calc(100% - 40px);
    }

    .contact-hero {
        min-height: 650px;

        padding-top: 125px;
        padding-bottom: 45px;
    }

    .contact-section-label {
        margin-bottom: 42px;
    }

    .contact-hero-content {
        display: block;
    }

    .contact-hero h1 {
        max-width: 100%;

        font-size: clamp(48px, 13vw, 74px);
        line-height: 0.95;
    }

    .contact-hero-content p {
        max-width: 100%;

        margin-top: 45px;
        padding-bottom: 0;

        font-size: 14px;
        line-height: 1.8;
    }

    .contact-main {
        padding-top: 85px;
        padding-bottom: 90px;
    }

    .contact-grid {
        display: block;
    }

    .contact-information .contact-section-label {
        margin-bottom: 40px;
    }

    .contact-info-item {
        padding: 22px 0;
    }

    .contact-socials {
        margin-top: 48px;
    }

    .contact-form-wrapper {
        margin-top: 90px;
    }

    .contact-form-wrapper .contact-section-label {
        margin-bottom: 45px;
    }

    .contact-field {
        margin-bottom: 32px;
    }

    .contact-field input,
    .contact-field select,
    .contact-field textarea {
        font-size: 15px;
    }

    .contact-form-footer {
        display: block;

        margin-top: 45px;
    }

    .contact-form-footer p {
        max-width: 100%;
    }

    .contact-submit {
        margin-top: 30px;
    }

    .contact-closing {
        padding-top: 90px;
        padding-bottom: 100px;
    }

    .contact-closing-grid {
        display: block;
    }

    .contact-closing-content {
        margin-top: 60px;
    }

    .contact-closing-content h2 {
        font-size: clamp(42px, 11vw, 62px);
        line-height: 1;
    }

    .contact-email-link {
        margin-top: 42px;

        font-size: 13px;
    }
}


/* =========================================================
   13 — SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .contact-container {
        width: calc(100% - 32px);
    }

    .contact-hero {
        min-height: 600px;

        padding-top: 110px;
        padding-bottom: 38px;
    }

    .contact-hero h1 {
        font-size: 45px;
    }

    .contact-hero-content p {
        margin-top: 38px;
    }

    .contact-main {
        padding-top: 72px;
        padding-bottom: 76px;
    }

    .contact-section-label {
        margin-bottom: 35px;
    }

    .contact-info-item {
        padding: 20px 0;
    }

    .contact-info-value {
        font-size: 13px;
    }

    .contact-form-wrapper {
        margin-top: 75px;
    }

    .contact-field {
        margin-bottom: 28px;
    }

    .contact-field textarea {
        min-height: 130px;
    }

    .contact-closing {
        padding-top: 75px;
        padding-bottom: 85px;
    }

    .contact-closing-content {
        margin-top: 48px;
    }

    .contact-closing-content h2 {
        font-size: 37px;
    }

    .contact-email-link {
        max-width: 100%;

        overflow-wrap: anywhere;

        font-size: 12px;
    }
}


/* =========================================================
   14 — REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .contact-page *,
    .contact-page *::before,
    .contact-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}