* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Vazirmatn", sans-serif;
}

body {
    background: #ffffff;
    color: #161616;
    overflow-x: hidden;
}

/* ---------- hero ---------- */
.contact-hero {
    position: relative;
    padding-top: 120px;
    padding-bottom: 60px;
    overflow: hidden;
}

.contact-hero-bg {
    position: absolute;
    inset: 0;
    background: url("img/contact.png") center/cover;
}

.contact-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to left, rgba(8, 8, 8, .97) 35%, rgba(8, 8, 8, .55) 100%);
}

.contact-hero-content {
    position: relative;
    z-index: 2;
    max-width: 480px;
    margin-right: 60px;
}

.contact-hero-content h1 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 10px;
}

.contact-hero-content h2 {
    font-size: 20px;
    color: #d6a44a;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-hero-content p {
    font-size: 14px;
    line-height: 2;
    color: #ccc;
}

/* ---------- contact cards ---------- */
.contact-cards {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 50px 60px 80px;
}

.c-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: .3s;
}

.c-card:hover {
    background: #111;
    border-color: rgba(255, 255, 255, .1);
}

.c-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.c-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.c-card h4 {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    transition: .3s;
}

.c-card:hover h4 {
    color: #d6a44a;
}

.c-whats .icon {
    color: #fff;
}

.c-mail .icon {
    color: #7db8ff;
}

.c-phone .icon,
.c-addr .icon {
    color: #d6a44a;
}

.c-card p.num {
    font-size: 14px;
    color: #222;
    transition: .3s;
}

.c-card p.sub {
    font-size: 12px;
    color: #555;
    transition: .3s;
}

.c-card:hover p.num,
.c-card:hover p.sub {
    color: #eee;
}

.c-card a.cbtn {
    margin-top: auto;
    text-align: center;
    padding: 11px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    border: 1.5px solid #111;
    color: #111;
    background: transparent;
    transition: .3s;
}

.c-card:hover a.cbtn {
    border-color: #d6a44a;
    color: #d6a44a;
}


/* ---------- social grid ---------- */
.social-grid-section {
    padding: 0 60px 70px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 10px;
    overflow: hidden;
}

.s-card {
    background: #fff;
    padding: 24px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    border-left: 1px solid rgba(0, 0, 0, .08);
}

.s-card:last-child {
    border-left: none;
}

/* لوگوها: فضای یکسان برای تمام برنامه‌ها */
.social-grid .s-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 19px;
    margin-bottom: 4px;
    flex-shrink: 0;
}

.s-card h5 {
    font-size: 13px;
    font-weight: 700;
    color: #111;
}

.s-card span {
    font-size: 11px;
    color: #666;
}

.s-card img.qr {
    width: 80px;
    height: 80px;
    margin: 8px 0;
    border-radius: 4px;
    object-fit: cover;
    background: #f2f2f2;
}

.s-card > a {
    box-sizing: border-box;
    font-size: 11px;
    color: #d6a44a;
    text-decoration: none;
    border: 1px solid rgba(214, 164, 74, .35);
    padding: 6px 10px;
    border-radius: 5px;
    width: 100%;
}

/* ---------- dropdown ---------- */
.social-dropdown {
    position: relative;
    z-index: 10;
    width: 100%;
}

.social-grid {
    overflow: visible;
}

.social-dropdown .dropdown-btn {
    box-sizing: border-box;
    width: 100%;
    font-family: inherit;
    font-size: 11px;
    color: #d6a44a;
    background: #fff;
    border: 1px solid rgba(214, 164, 74, .35);
    border-radius: 5px;
    padding: 6px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.social-dropdown .arrow {
    display: inline-block;
    transition: transform .2s ease;
}

.social-dropdown.open {
    z-index: 1000;
}

.social-dropdown.open .arrow {
    transform: rotate(180deg);
}

.social-dropdown .dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    width: 100%;
    min-width: 130px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    z-index: 1001;
    overflow: hidden;
    text-align: center;
}

.social-dropdown.open .dropdown-menu {
    display: block;
}

.social-dropdown .dropdown-menu a {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 9px 6px;
    font-family: inherit;
    font-size: 11px;
    color: #000;
    background: #fff;
    border: none;
    border-radius: 0;
    text-decoration: none;
}

.social-dropdown .dropdown-menu a:hover {
    background: #f5f5f5;
    color: #000;
}

.social-dropdown .dropdown-menu a + a {
    border-top: 1px solid #eee;
}

/* ---------- app channels promo ---------- */
.channels {
    margin: 0 60px 80px;
    background: #12151d;
    border-radius: 14px;
    padding: 40px;
    display: grid;
    grid-template-columns: .6fr 1.8fr .6fr;
    align-items: center;
    gap: 20px;
}

.phone-mock {
    width: 100%;
    max-width: 170px;
    aspect-ratio: 9/18;
    margin: 0 auto;
    border: 6px solid #222;
    border-radius: 26px;
    background: #0a0a0a;
    overflow: hidden;
}

.phone-mock img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .85;
}

.channels-mid h3 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 26px;
}

.channels-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ch-col {
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 10px;
    padding: 22px;
}

.ch-col h4 {
    font-size: 15px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ch-col h4 i {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #fff;
}

.ch-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 18px;
}

.ch-col ul li {
    font-size: 12.5px;
    color: #bbb;
}

.ch-col a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #d6a44a;
    color: #111;
    font-size: 13px;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
}

/* ---------- map + form ---------- */
.map-form {
    padding: 0 60px 70px;
    display: grid;
    grid-template-columns: .8fr 1.4fr;
    gap: 20px;
}

.map-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    padding: 24px;
}

.map-card h4 {
    font-size: 15px;
    margin-bottom: 16px;
    color: #161616;
}

.map-card .row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #555;
}

.map-card .row i {
    color: #d6a44a;
    margin-top: 2px;
}

.map-thumb{
    width:100%;
    height:320px;
    border-radius:8px;
    overflow:hidden;   /* این خط رو اضافه کن تا گوشه‌های iframe هم گرد بشن */
    background:#f0f0f0;
    border:1px solid rgba(0,0,0,.06);
}
.map-thumb iframe{
    width:100%;
    height:100%;
    display:block;
}

.map-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #d6a44a;
    color: #111;
    font-weight: 700;
    font-size: 13px;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
}

.form-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 12px;
    padding: 30px;
}

.form-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #161616;
}

.form-card>p {
    font-size: 13px;
    color: #777;
    margin-bottom: 22px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form-grid label {
    font-size: 12px;
    color: #777;
    margin-bottom: 6px;
    display: block;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    background: #f7f7f7;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 6px;
    padding: 11px 12px;
    color: #161616;
    font-family: inherit;
    font-size: 13px;
}

.form-grid textarea {
    resize: vertical;
    min-height: 80px;
}

.form-full {
    grid-column: 1 / -1;
}

.form-submit {
    margin-top: 8px;
    width: 100%;
    background: #d6a44a;
    color: #111;
    border: none;
    padding: 14px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.form-msg {
    font-size: 13px;
    margin-top: 12px;
    display: none;
    padding: 10px;
    border-radius: 6px;
}

.form-msg.ok {
    background: rgba(76, 175, 80, .12);
    color: #8bd18f;
    border: 1px solid rgba(76, 175, 80, .3);
}

.form-msg.err {
    background: rgba(226, 85, 77, .12);
    color: #f0928c;
    border: 1px solid rgba(226, 85, 77, .3);
}

/* ---------- footer strip ---------- */
.footer-strip {
    background: #12151d;
    padding: 30px 60px;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.fs-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.fs-item i {
    color: #d6a44a;
    font-size: 20px;
}

.fs-item h5 {
    font-size: 13px;
}

.fs-item p {
    font-size: 11px;
    color: #999;
}

.footer-copy {
    text-align: center;
    font-size: 12px;
    color: #666;
    padding: 18px;
    background: #0f0f0f;
}

@media(max-width:992px) {
    header {
        padding: 14px 20px;
    }

    nav,
    .header-phone {
        display: none;
    }

    .contact-hero-content {
        margin-right: 24px;
        max-width: 90%;
    }

    .contact-cards,
    .social-grid,
    .map-form {
        grid-template-columns: repeat(2, 1fr);
        padding-left: 24px;
        padding-right: 24px;
    }

    .social-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .channels {
        grid-template-columns: 1fr;
        margin: 0 24px 60px;
    }

    .phone-mock {
        display: none;
    }

    .channels-cols {
        grid-template-columns: 1fr;
    }
}

@media(max-width:600px) {

    .contact-cards,
    .map-form {
        grid-template-columns: 1fr;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-strip {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
    }
}