@font-face {
    font-family: "YekanBakhContact";
    src: url("../../fonts/YekanBakh-VF.ttf") format("truetype");
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --contact-ink: #252525;
    --contact-muted: #6f706e;
    --contact-paper: #f6f6f3;
    --contact-card: #ffffff;
    --contact-line: #dfdfda;
    --contact-accent: var(--site-primary);
    --contact-accent-soft: #fff0ec;
    --contact-dark: #1c1c1c;
    --contact-radius: 22px;
    color-scheme: light;
}

html.theme-dark {
    --contact-ink: #f4f4f1;
    --contact-muted: #aaa9a5;
    --contact-paper: #151515;
    --contact-card: #222222;
    --contact-line: #383838;
    --contact-accent-soft: #39211d;
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--contact-paper);
    color: var(--contact-ink);
    font-family: "YekanBakhContact", Tahoma, sans-serif;
    line-height: 1.7;
    transition: background-color .3s ease, color .3s ease;
}

body.contact-menu-open { overflow: hidden; }

button, input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.contact-shell {
    width: min(1300px, calc(100% - 40px));
    margin-inline: auto;
}

.contact-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--contact-card) 92%, transparent);
    border-bottom: 1px solid var(--contact-line);
    backdrop-filter: blur(18px);
}

.contact-header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.contact-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 19px;
    font-weight: 800;
    white-space: nowrap;
}

.contact-brand img { object-fit: contain; }

.contact-desktop-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-inline-start: auto;
    padding: 5px;
    background: var(--contact-dark);
    border-radius: 13px;
}

.contact-desktop-nav a {
    position: relative;
    padding: 10px 15px;
    border-radius: 9px;
    color: #d9d9d7;
    font-size: 14px;
    transition: background-color .2s ease, color .2s ease;
}

.contact-desktop-nav a:hover,
.contact-desktop-nav a.active { color: #fff; background: #393939; }

.contact-desktop-nav a.active::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--contact-accent);
    inset-inline-start: 50%;
    bottom: 3px;
}

.contact-header-actions { display: flex; align-items: center; gap: 9px; }

.contact-theme-toggle,
.contact-menu-toggle,
.contact-menu-close {
    border: 1px solid var(--contact-line);
    background: var(--contact-card);
    cursor: pointer;
}

.contact-theme-toggle {
    width: 64px;
    height: 34px;
    border-radius: 99px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 3px;
}

.contact-theme-toggle span {
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 15px;
}

.theme-light .contact-theme-toggle .sun,
.theme-dark .contact-theme-toggle .moon { background: var(--contact-accent); color: #fff; }

.contact-menu-toggle { display: none; width: 42px; height: 38px; border-radius: 10px; padding: 10px; }
.contact-menu-toggle span { display: block; height: 2px; margin: 4px 0; background: currentColor; border-radius: 2px; }

.contact-mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 49;
    background: rgba(0,0,0,.55);
    backdrop-filter: blur(2px);
}

.contact-mobile-menu {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 50;
    width: min(340px, 88vw);
    padding: 24px;
    background: var(--contact-card);
    transform: translateX(105%);
    transition: transform .3s ease;
    box-shadow: -20px 0 60px rgba(0,0,0,.16);
}

.contact-mobile-menu.open { transform: translateX(0); }
.contact-mobile-menu-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.contact-menu-close { width: 40px; height: 40px; border-radius: 10px; font-size: 28px; line-height: 1; }
.contact-mobile-menu nav { display: grid; }
.contact-mobile-menu nav a { padding: 13px 4px; border-bottom: 1px solid var(--contact-line); }
.contact-mobile-menu nav a.active { color: var(--contact-accent); font-weight: 750; }

.contact-hero {
    position: relative;
    overflow: hidden;
    padding: 94px 0 78px;
    background-image: radial-gradient(circle at 7% 14%, color-mix(in srgb, var(--contact-accent) 15%, transparent), transparent 27%);
}

.contact-hero::before {
    content: "CONTACT";
    position: absolute;
    direction: ltr;
    left: -22px;
    bottom: -82px;
    font-size: clamp(100px, 18vw, 300px);
    font-weight: 900;
    line-height: 1;
    color: color-mix(in srgb, var(--contact-ink) 4%, transparent);
    pointer-events: none;
}

.contact-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 80px;
    align-items: center;
}

.contact-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--contact-accent);
    direction: ltr;
    justify-content: flex-end;
    letter-spacing: .12em;
    font-size: 12px;
    font-weight: 750;
    text-transform: uppercase;
}

.contact-eyebrow span { width: 42px; height: 2px; background: currentColor; }
.contact-intro h1 { margin: 10px 0 16px; font-size: clamp(46px, 6vw, 88px); line-height: 1.05; letter-spacing: -.05em; }
.contact-intro > p { margin: 0; max-width: 590px; color: var(--contact-muted); font-size: 17px; }
.contact-availability { display: flex; align-items: center; gap: 9px; margin-top: 26px; color: var(--contact-muted); font-size: 13px; }
.contact-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #35a56b; box-shadow: 0 0 0 5px color-mix(in srgb, #35a56b 17%, transparent); }

.contact-cards { position: relative; display: grid; gap: 12px; }
.contact-cards::before { content: ""; position: absolute; top: 40px; bottom: 40px; right: 28px; width: 2px; background: var(--contact-accent); opacity: .28; }

.contact-card {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr auto;
    align-items: center;
    gap: 16px;
    min-height: 104px;
    padding: 20px;
    background: var(--contact-card);
    border: 1px solid var(--contact-line);
    border-radius: var(--contact-radius);
    box-shadow: 0 14px 40px rgba(30,30,30,.05);
    transition: transform .25s ease, border-color .25s ease;
}

a.contact-card:hover { transform: translateX(-6px); border-color: color-mix(in srgb, var(--contact-accent) 50%, var(--contact-line)); }
.contact-card-icon { position: relative; z-index: 1; width: 56px; height: 56px; display: grid; place-items: center; background: var(--contact-accent-soft); border-radius: 16px; }
.contact-card-icon img { object-fit: contain; }
.contact-card-copy { display: grid; gap: 3px; }
.contact-card-copy small { color: var(--contact-muted); }
.contact-card-copy strong { font-size: 16px; font-weight: 720; }
.contact-card-arrow { color: var(--contact-accent); font-size: 22px; }

.contact-conversation { padding: 20px 0 100px; }
.contact-conversation-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 30px; align-items: stretch; }

.contact-form-panel,
.contact-map-panel { background: var(--contact-card); border: 1px solid var(--contact-line); border-radius: 28px; }
.contact-form-panel { padding: clamp(26px, 4vw, 52px); }
.contact-section-heading > span { color: var(--contact-accent); font-size: 13px; font-weight: 750; }
.contact-section-heading h2 { margin: 7px 0 8px; font-size: clamp(28px, 3vw, 43px); line-height: 1.2; }
.contact-section-heading p { margin: 0 0 28px; color: var(--contact-muted); font-size: 14px; }

#static-contact-form { display: grid; gap: 16px; }
.contact-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#static-contact-form label { display: grid; gap: 7px; color: var(--contact-muted); font-size: 13px; font-weight: 650; }
#static-contact-form input,
#static-contact-form textarea,
#static-contact-form select {
    width: 100%;
    border: 1px solid var(--contact-line);
    border-radius: 13px;
    background: var(--contact-paper);
    color: var(--contact-ink);
    outline: none;
    padding: 13px 15px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
#static-contact-form textarea { resize: vertical; min-height: 144px; }
#static-contact-form :is(input, textarea, select):focus { border-color: var(--contact-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--contact-accent) 12%, transparent); }

.contact-submit {
    min-height: 52px;
    border: 0;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--contact-accent);
    color: #fff;
    cursor: pointer;
    font-weight: 760;
    box-shadow: 0 12px 24px color-mix(in srgb, var(--contact-accent) 25%, transparent);
}
.contact-submit:hover svg { transform: translate(-3px, -3px); }
.contact-submit svg { transition: transform .2s ease; }
.contact-form-status { min-height: 1.5em; margin: 0; color: var(--contact-muted); font-size: 13px; }

.contact-map-panel { position: relative; overflow: hidden; min-height: 100%; display: flex; flex-direction: column; }
.contact-map-meta { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--contact-line); font-size: 14px; }
.contact-map-meta span { font-weight: 750; }
.contact-map-meta a { color: var(--contact-accent); }
.contact-map-panel > img { width: 100%; height: 100%; min-height: 510px; object-fit: cover; filter: saturate(.7) contrast(.95); opacity: .9; }
.theme-dark .contact-map-panel > img { filter: saturate(.55) brightness(.58) contrast(1.1); }
.contact-map-pin { position: absolute; left: 42%; top: 51%; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--contact-accent) 22%, transparent); animation: contactPulse 2.4s ease-out infinite; }
.contact-map-pin span { width: 21px; height: 21px; border-radius: 50% 50% 50% 0; background: var(--contact-accent); transform: rotate(-45deg); box-shadow: 0 6px 18px rgba(0,0,0,.22); }

.contact-footer { padding: 48px 0 20px; background: var(--contact-dark); color: #f1f1ef; }
.contact-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 36px; align-items: center; }
.contact-footer p { max-width: 360px; margin: 12px 0 0; color: #999; font-size: 14px; }
.contact-footer-links { display: flex; flex-wrap: wrap; gap: 12px 22px; color: #bfbfbc; font-size: 14px; }
.contact-footer-links a:hover, .contact-footer-contact a:hover { color: var(--contact-accent); }
.contact-footer-contact { display: grid; gap: 5px; text-align: left; color: #bfbfbc; }
.contact-copyright { margin-top: 35px; padding-top: 18px; border-top: 1px solid #343434; color: #777; font-size: 12px; }

@keyframes contactPulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--contact-accent) 30%, transparent); }
    70%, 100% { box-shadow: 0 0 0 25px transparent; }
}

@media (max-width: 980px) {
    .contact-desktop-nav { display: none; }
    .contact-header-actions { margin-inline-start: auto; }
    .contact-menu-toggle { display: block; }
    .contact-hero { padding-top: 70px; }
    .contact-hero-grid,
    .contact-conversation-grid { grid-template-columns: 1fr; gap: 34px; }
    .contact-map-panel > img { min-height: 360px; }
}

@media (max-width: 640px) {
    .contact-shell { width: min(100% - 28px, 1300px); }
    .contact-header-inner { min-height: 68px; }
    .contact-brand { font-size: 16px; }
    .contact-brand img { width: 32px; height: 32px; }
    .contact-theme-toggle { width: 58px; }
    .contact-hero { padding: 54px 0 48px; }
    .contact-intro h1 { font-size: 48px; }
    .contact-intro > p { font-size: 15px; }
    .contact-card { grid-template-columns: 48px 1fr auto; min-height: 90px; padding: 15px; border-radius: 17px; }
    .contact-card-icon { width: 48px; height: 48px; border-radius: 13px; }
    .contact-card-copy strong { font-size: 14px; }
    .contact-field-row { grid-template-columns: 1fr; }
    .contact-form-panel { border-radius: 22px; }
    .contact-map-panel { border-radius: 22px; }
    .contact-map-meta { align-items: flex-start; gap: 10px; flex-direction: column; }
    .contact-map-panel > img { min-height: 280px; }
    .contact-footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .contact-footer-contact { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
