/* ================================================================
   AMAJED CONTACT PAGE
   ================================================================ */

.contact-page {
    background: var(--bg);
}


/* ================================================================
   HERO
   ================================================================ */

.contact-hero {
    min-height: 480px;
    display: flex;
    align-items: end;
    background:
        radial-gradient(circle at 80% 20%, rgba(0, 169, 239, .19), transparent 28%),
        radial-gradient(circle at 20% 110%, rgba(0, 169, 239, .08), transparent 34%),
        linear-gradient(135deg, #06111d 0%, #071724 52%, #030b12 100%);
}

.contact-hero::before {
    right: -120px;
    top: -250px;
    width: 650px;
    height: 650px;
    border-color: rgba(88, 207, 255, .13);
}

body[dir="rtl"] .contact-hero::before {
    right: auto;
    left: -120px;
}

.contact-hero .inner-hero-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: end;
}

.contact-title {
    max-width: 880px;
    font-size: clamp(48px, 5.6vw, 78px);
}

body[dir="rtl"] .contact-title {
    line-height: 1.14;
    letter-spacing: 0;
}

.contact-hero .lede {
    max-width: 760px;
}

.contact-hero-mark {
    justify-self: end;
    width: 210px;
    min-height: 154px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 24px;
    background: rgba(255, 255, 255, .045);
    backdrop-filter: blur(16px);
    color: #fff;
}

body[dir="rtl"] .contact-hero-mark {
    justify-self: start;
}

.contact-hero-mark span {
    color: #8fa7b5;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .18em;
}

.contact-hero-mark strong {
    color: var(--cyan-2);
    font-size: 54px;
    line-height: .9;
    letter-spacing: -.06em;
}


/* ================================================================
   MAIN CONTACT HUB
   ================================================================ */

.contact-main {
    background:
        radial-gradient(circle at 15% 10%, color-mix(in srgb, var(--cyan) 5%, transparent), transparent 28%),
        var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(520px, 1.12fr);
    gap: clamp(32px, 5vw, 76px);
    align-items: start;
}

.contact-info {
    position: sticky;
    top: 118px;
}

.contact-info .h2 {
    max-width: 620px;
}

.contact-intro {
    margin-bottom: 32px;
    font-size: 15px;
    max-width: 620px;
}

.contact-methods {
    display: grid;
    border-top: 1px solid var(--line);
}

.contact-method {
    min-height: 86px;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    transition: transform .25s var(--ease-fluid), border-color .25s ease;
}

.contact-method:hover {
    transform: translateX(5px);
    border-color: color-mix(in srgb, var(--cyan) 50%, var(--line));
}

body[dir="rtl"] .contact-method:hover {
    transform: translateX(-5px);
}

.contact-method-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid color-mix(in srgb, var(--cyan) 26%, var(--line));
    background: color-mix(in srgb, var(--surface-2) 92%, var(--cyan) 8%);
    color: var(--cyan-2);
    font-size: 10px;
    font-weight: 900;
}

.contact-method small {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .08em;
}

body[dir="rtl"] .contact-method small {
    text-transform: none;
    letter-spacing: 0;
}

.contact-method strong {
    display: block;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.35;
    word-break: break-word;
}

.contact-method-arrow {
    color: var(--cyan-2);
    font-size: 18px;
    transition: transform .25s ease;
}

.contact-method:hover .contact-method-arrow {
    transform: translateX(4px);
}

body[dir="rtl"] .contact-method:hover .contact-method-arrow {
    transform: translateX(-4px);
}

.contact-project-card {
    margin-top: 28px;
    padding: 22px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(145deg, var(--surface-2), var(--surface));
    box-shadow: var(--soft-shadow);
}

.contact-project-index {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: color-mix(in srgb, var(--cyan) 10%, var(--surface));
    color: var(--cyan-2);
    font-size: 10px;
    font-weight: 900;
}

.contact-project-card strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 15px;
}

.contact-project-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.contact-project-card .btn {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 4px;
}


/* ================================================================
   FORM CARD
   ================================================================ */

.contact-form-card {
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--card);
    box-shadow: 0 26px 80px rgba(4, 18, 30, .10);
}

.contact-form-head {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.contact-form-head h2 {
    margin: 9px 0 9px;
    color: var(--ink);
    font-size: clamp(30px, 3.3vw, 44px);
    line-height: 1.05;
    letter-spacing: -.035em;
}

body[dir="rtl"] .contact-form-head h2 {
    line-height: 1.25;
    letter-spacing: 0;
}

.contact-form-head p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.contact-form {
    display: grid;
    gap: 22px;
}

.contact-form .form-grid {
    gap: 16px;
}

.contact-form .field label {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .02em;
}

.contact-form .field input,
.contact-form .field textarea,
.contact-form .field select {
    border-color: color-mix(in srgb, var(--line) 86%, transparent);
    background: var(--control);
}

.contact-form .field textarea {
    min-height: 150px;
}

.contact-submit {
    width: 100%;
    min-height: 52px;
    justify-content: center;
    border-radius: 15px;
}

.contact-validation {
    min-height: 14px;
    color: #c84343;
    font-size: 10px;
    line-height: 1.4;
}

.contact-honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

.contact-alert {
    margin: 0 0 22px;
    padding: 15px 17px;
    display: grid;
    gap: 3px;
    border-radius: 15px;
    font-size: 11px;
}

.contact-alert strong {
    font-size: 12px;
}

.contact-alert-success {
    border: 1px solid rgba(28, 146, 85, .25);
    background: rgba(28, 146, 85, .08);
    color: #176b43;
}

.contact-alert-error {
    border: 1px solid rgba(200, 67, 67, .24);
    background: rgba(200, 67, 67, .07);
    color: #a63535;
}

.contact-alert-error ul {
    margin: 5px 0 0;
    padding-inline-start: 18px;
}


/* ================================================================
   LOCATION / MAP
   ================================================================ */

.contact-location-section {
    background: var(--surface-2);
    border-top: 1px solid var(--line);
}

.contact-location-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 36px;
    align-items: end;
    margin-bottom: 28px;
}

.contact-location-head .h2 {
    margin-bottom: 0;
}

.contact-location-copy {
    max-width: 340px;
    display: grid;
    gap: 4px;
    text-align: end;
}

.contact-location-copy strong {
    color: var(--ink);
    font-size: 14px;
}

.contact-location-copy span {
    color: var(--muted);
    font-size: 11px;
}

.contact-map-card {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--surface);
    box-shadow: var(--soft-shadow);
}

.contact-map-card iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(.78) contrast(1.03);
}

.contact-map-overlay {
    position: absolute;
    z-index: 2;
    left: 20px;
    right: 20px;
    bottom: 20px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 18px;
    background: rgba(3, 13, 21, .86);
    backdrop-filter: blur(18px);
    color: #fff;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .2);
}

.contact-map-overlay .eyebrow {
    display: block;
    margin-bottom: 2px;
    font-size: 9px;
}

.contact-map-overlay strong {
    display: block;
    font-size: 14px;
}

.contact-map-overlay .btn {
    flex: 0 0 auto;
}


/* ================================================================
   DARK THEME
   ================================================================ */

html[data-theme="dark"] .contact-main {
    background:
        radial-gradient(circle at 15% 10%, rgba(0, 169, 239, .08), transparent 28%),
        var(--bg);
}

html[data-theme="dark"] .contact-form-card {
    box-shadow: 0 28px 90px rgba(0, 0, 0, .26);
}

html[data-theme="dark"] .contact-project-card {
    background: linear-gradient(145deg, var(--surface-2), var(--card));
}

html[data-theme="dark"] .contact-alert-success {
    color: #8ee2b6;
}

html[data-theme="dark"] .contact-alert-error {
    color: #ffabab;
}

html[data-theme="dark"] .contact-map-card iframe {
    filter: saturate(.68) brightness(.76) contrast(1.08);
}


/* ================================================================
   TABLET
   ================================================================ */

@media (max-width: 1050px) {
    .contact-hero .inner-hero-grid {
        grid-template-columns: 1fr;
    }

    .contact-hero-mark {
        display: none;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .contact-info {
        position: static;
    }

    .contact-methods {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        border-top: 0;
    }

    .contact-method {
        min-height: 150px;
        padding: 18px;
        grid-template-columns: 42px 1fr;
        align-content: space-between;
        border: 1px solid var(--line);
        border-radius: 18px;
    }

    .contact-method-arrow {
        grid-column: 2;
    }

    .contact-method:hover,
    body[dir="rtl"] .contact-method:hover {
        transform: translateY(-3px);
    }
}


/* ================================================================
   MOBILE
   ================================================================ */

@media (max-width: 720px) {
    .contact-hero {
        min-height: 0;
        padding-top: 0;
    }

    .contact-hero .inner-hero-grid {
        padding-top: 94px;
        padding-bottom: 44px;
    }

    .contact-title {
        font-size: clamp(38px, 11vw, 48px) !important;
        margin-bottom: 13px;
    }

    body[dir="rtl"] .contact-title {
        font-size: clamp(36px, 10.5vw, 46px) !important;
    }

    .contact-main {
        padding-top: 58px;
        padding-bottom: 62px;
    }

    .contact-grid {
        gap: 34px;
    }

    .contact-info .h2 {
        font-size: 31px;
    }

    .contact-methods {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .contact-method {
        min-height: 78px;
        padding: 12px;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        border-radius: 15px;
    }

    .contact-method-arrow {
        grid-column: auto;
    }

    .contact-project-card {
        padding: 17px;
        border-radius: 18px;
    }

    .contact-form-card {
        padding: 22px 16px;
        border-radius: 21px;
    }

    .contact-form-head {
        margin-bottom: 22px;
        padding-bottom: 18px;
    }

    .contact-form-head h2 {
        font-size: 30px;
    }

    .contact-location-head {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }

    .contact-location-copy {
        text-align: start;
    }

    .contact-map-card {
        min-height: 470px;
        border-radius: 21px;
    }

    .contact-map-overlay {
        left: 10px;
        right: 10px;
        bottom: 10px;
        padding: 14px;
        display: grid;
        gap: 12px;
        border-radius: 15px;
    }

    .contact-map-overlay .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-method,
    .contact-method-arrow {
        transition: none !important;
    }
}
