:root {
    --color-primary: #295c3b;
    --color-primary-dark: #1a4731;
    --color-primary-soft: rgba(41, 92, 59, 0.12);
    --color-primary-border: rgba(41, 92, 59, 0.18);
    --color-primary-shadow: rgba(26, 71, 49, 0.18);
}

.contact-page {
    direction: rtl;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(41, 92, 59, 0.14), transparent 34%),
        radial-gradient(circle at bottom left, rgba(26, 71, 49, 0.12), transparent 30%),
        #f7faf6;
    color: #17251c;
}

.contact-shell {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

/* HERO */
.contact-hero {
    position: relative;
    padding: 90px 0 70px;
}

.contact-hero::before {
    content: "";
    position: absolute;
    inset: 40px auto auto 6%;
    width: 220px;
    height: 220px;
    background: rgba(41, 92, 59, 0.16);
    filter: blur(55px);
    border-radius: 999px;
    pointer-events: none;
}

.contact-hero__grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 42px;
    align-items: center;
}

.contact-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 16px;
}

.contact-kicker::before {
    content: "";
    width: 24px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-dark));
}

.contact-hero__content h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 70px);
    line-height: 1.22;
    letter-spacing: -1.5px;
    color: #17251c;
}

.contact-hero__content h1 span {
    display: block;
    color: var(--color-primary);
}

.contact-hero__content p {
    max-width: 650px;
    margin: 22px 0 0;
    color: #5f6f63;
    font-size: 17px;
    line-height: 2.1;
}

.contact-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

/* Buttons اگر تو base داری، این‌ها فقط برای همین صفحه است */
.btn-lux,
.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    transition: 0.28s ease;
    white-space: nowrap;
}

.btn-lux {
    color: #fff;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    box-shadow: 0 16px 34px rgba(26, 71, 49, 0.25);
}

.btn-lux:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 42px rgba(26, 71, 49, 0.32);
}

.btn-ghost {
    color: var(--color-primary-dark);
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(41, 92, 59, 0.24);
    backdrop-filter: blur(12px);
}

.btn-ghost:hover {
    transform: translateY(-3px);
    background: #fff;
    border-color: rgba(41, 92, 59, 0.38);
}

/* Visual */
.contact-hero__visual {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-glass-card {
    position: relative;
    z-index: 2;
    width: min(360px, 100%);
    padding: 38px 32px;
    text-align: center;
    border-radius: 34px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(235, 246, 238, 0.62));
    border: 1px solid rgba(41, 92, 59, 0.18);
    box-shadow:
        0 30px 80px rgba(26, 71, 49, 0.12),
        inset 0 1px 0 rgba(255,255,255,0.8);
    backdrop-filter: blur(18px);
}

.contact-glass-card::after {
    content: "";
    position: absolute;
    inset: 16px;
    border-radius: 26px;
    border: 1px dashed rgba(41, 92, 59, 0.24);
    pointer-events: none;
}

.contact-glass-card__icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 26px;
    background: linear-gradient(145deg, #eef8f1, #cfe5d6);
    font-size: 38px;
    box-shadow: 0 18px 35px rgba(41, 92, 59, 0.18);
}

.contact-glass-card h3 {
    margin: 0;
    font-size: 30px;
    color: #17251c;
}

.contact-glass-card p {
    margin: 14px 0 0;
    color: #5f6f63;
    line-height: 2;
}

.contact-floating {
    position: absolute;
    z-index: 3;
    padding: 13px 18px;
    border-radius: 999px;
    color: var(--color-primary-dark);
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(41, 92, 59, 0.22);
    box-shadow: 0 18px 42px rgba(26, 71, 49, 0.12);
    backdrop-filter: blur(14px);
    font-weight: 800;
    animation: contactFloat 4.5s ease-in-out infinite;
}

.contact-floating--one {
    top: 42px;
    right: 30px;
}

.contact-floating--two {
    left: 20px;
    bottom: 50px;
    animation-delay: 0.9s;
}

@keyframes contactFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Sections */
.contact-section {
    padding: 70px 0;
}

.contact-section--soft {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.48), rgba(255,255,255,0.18));
}

.contact-heading {
    text-align: center;
    margin-bottom: 34px;
}

.contact-heading .contact-kicker {
    justify-content: center;
}

.contact-heading h2,
.contact-map__content h2,
.contact-cta h2 {
    margin: 0;
    color: #17251c;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.55;
}

/* Cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.contact-card {
    position: relative;
    min-height: 210px;
    padding: 28px 22px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(41, 92, 59, 0.16);
    box-shadow: 0 24px 60px rgba(26, 71, 49, 0.08);
    overflow: hidden;
    transition: 0.3s ease;
}

.contact-card::before {
    content: "";
    position: absolute;
    inset: auto -40px -45px auto;
    width: 130px;
    height: 130px;
    background: rgba(41, 92, 59, 0.12);
    border-radius: 999px;
    transition: 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: rgba(41, 92, 59, 0.34);
    box-shadow: 0 30px 70px rgba(26, 71, 49, 0.12);
}

.contact-card:hover::before {
    transform: scale(1.25);
}

.contact-card__icon {
    position: relative;
    z-index: 1;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: #eef8f1;
    font-size: 27px;
    margin-bottom: 18px;
}

.contact-card__body {
    position: relative;
    z-index: 1;
}

.contact-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #17251c;
}

.contact-card p {
    margin: 0;
    color: #5f6f63;
    line-height: 2;
    font-size: 15px;
}

.contact-card a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 900;
}

.contact-card a:hover {
    color: var(--color-primary-dark);
}

/* Map */
.contact-map-wrapper {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 24px;
    align-items: stretch;
    padding: 24px;
    border-radius: 36px;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.82), rgba(235,246,238,0.58));
    border: 1px solid rgba(41, 92, 59, 0.18);
    box-shadow: 0 30px 80px rgba(26, 71, 49, 0.09);
}

.contact-map__content {
    padding: 26px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-map__content p {
    margin: 18px 0 0;
    color: #5f6f63;
    line-height: 2.1;
}

.contact-map__frame {
    position: relative;
    min-height: 420px;
    border-radius: 28px;
    overflow: hidden;
    background: #dceee2;
    box-shadow: inset 0 0 0 1px rgba(41, 92, 59, 0.18);
}

.contact-map__frame iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    display: block;
    border: 0;
    filter: saturate(0.95) contrast(1.02);
}

/* CTA */
.contact-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 38px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.28), transparent 30%),
        linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: #fff;
    box-shadow: 0 30px 80px rgba(26, 71, 49, 0.2);
}

.contact-cta .contact-kicker {
    color: #e8f5ec;
}

.contact-cta .contact-kicker::before {
    background: #e8f5ec;
}

.contact-cta h2 {
    color: #fff;
}

.contact-cta p {
    max-width: 700px;
    margin: 12px 0 0;
    color: rgba(255,255,255,0.82);
    line-height: 2;
}

.contact-cta .btn-lux {
    background: #fff;
    color: var(--color-primary-dark);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

/* Animation */
.contact-fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity 0.75s ease,
        transform 0.75s ease;
}

.contact-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1000px) {
    .contact-hero__grid,
    .contact-map-wrapper {
        grid-template-columns: 1fr;
    }

    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-hero__visual {
        min-height: 320px;
    }
}

@media (max-width: 700px) {
    .contact-hero {
        padding: 64px 0 44px;
    }

    .contact-section {
        padding: 48px 0;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-card {
        min-height: auto;
    }

    .contact-map-wrapper {
        padding: 14px;
        border-radius: 26px;
    }

    .contact-map__content {
        padding: 18px 10px;
    }

    .contact-map__frame,
    .contact-map__frame iframe {
        min-height: 330px;
    }

    .contact-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 22px;
    }

    .contact-hero__actions {
        width: 100%;
    }

    .contact-hero__actions .btn-lux,
    .contact-hero__actions .btn-ghost {
        flex: 1;
    }

    .contact-floating {
        font-size: 13px;
    }

    .contact-floating--one {
        right: 0;
    }

    .contact-floating--two {
        left: 0;
    }
}
