/*
 * صفحهٔ «تماس با ما» (HaghaniTheme 1.49.0) — page-templates/contact-us.php.
 * همه‌چیز زیر ریشهٔ .hgc؛ بارشده فقط روی همین قالب (inc/enqueues.php).
 */
.hgc {
    --hgc-wine: #911a56;
    --hgc-wine-dark: #6f1242;
    --hgc-gold: #c9a24a;
    --hgc-gold-soft: #e8d3a0;
    --hgc-cream: #fcf4e9;
    --hgc-ink: #2a2226;
    --hgc-muted: #6b6166;
    --hgc-line: #efe6da;
    direction: rtl;
    text-align: start;
    color: var(--hgc-ink);
    background: #fff;
}
.hgc, .hgc *, .hgc *::before, .hgc *::after { box-sizing: border-box; }
.hgc a { color: inherit; }

.hgc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--hgc-gold);
    letter-spacing: 0;
    margin-bottom: 10px;
}
.hgc-eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}
.hgc-section-title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; color: var(--hgc-wine); margin: 0 0 6px; }
.hgc-section-sub { color: var(--hgc-muted); margin: 0 0 28px; line-height: 1.9; }

/* دکمه‌ها */
.hgc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 10px 22px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: background-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.hgc .hgc-btn--primary { background: var(--hgc-wine); color: #fff; }
.hgc .hgc-btn--primary:hover { background: var(--hgc-wine-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(145, 26, 86, .22); }
.hgc .hgc-btn--ghost { background: transparent; color: var(--hgc-wine); border: 1px solid var(--hgc-gold-soft); }
.hgc .hgc-btn--ghost:hover { background: var(--hgc-cream); color: var(--hgc-wine); }
.hgc-btn:focus-visible { outline: 2px solid var(--hgc-gold); outline-offset: 3px; }

/* سربرگ */
.hgc-hero { padding-block: 32px 16px; }
.hgc-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: clamp(28px, 4vw, 56px);
    border-radius: 28px;
    background:
        radial-gradient(circle at 15% 20%, rgba(201, 162, 74, .16), transparent 45%),
        linear-gradient(135deg, var(--hgc-cream), #fff 70%);
    border: 1px solid var(--hgc-line);
    overflow: hidden;
}
.hgc-hero__title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; color: var(--hgc-wine); margin: 0 0 14px; }
.hgc-hero__lead { color: var(--hgc-muted); line-height: 2; margin: 0 0 24px; max-width: 58ch; }
.hgc-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hgc-hero__art { display: flex; justify-content: center; }

/* وکتورِ متحرکِ الماس */
.hgc-gem { width: min(260px, 100%); height: auto; overflow: visible; }
.hgc-gem__halo { fill: rgba(201, 162, 74, .08); }
.hgc-gem__orbit {
    fill: none;
    stroke: var(--hgc-gold-soft);
    stroke-width: 1.5;
    stroke-dasharray: 4 10;
    transform-origin: 120px 120px;
    animation: hgc-spin 40s linear infinite;
}
.hgc-gem__line {
    fill: none;
    stroke: var(--hgc-gold);
    stroke-width: 2.5;
    stroke-linejoin: round;
    stroke-linecap: round;
    stroke-dasharray: 520;
    stroke-dashoffset: 520;
    animation: hgc-draw 2.4s ease forwards;
}
.hgc-gem__line--2 { stroke-width: 1.5; stroke: var(--hgc-wine); opacity: .55; animation-delay: .9s; }
.hgc-gem__stone { transform-origin: 120px 120px; animation: hgc-bob 6s ease-in-out 2.6s infinite; }
.hgc-spark { fill: var(--hgc-gold); transform-box: fill-box; transform-origin: center; animation: hgc-twinkle 2.8s ease-in-out infinite; }
.hgc-spark--2 { animation-delay: .9s; }
.hgc-spark--3 { animation-delay: 1.7s; }

@keyframes hgc-draw { to { stroke-dashoffset: 0; } }
@keyframes hgc-spin { to { transform: rotate(360deg); } }
@keyframes hgc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes hgc-twinkle { 0%, 100% { opacity: .2; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
@keyframes hgc-ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 85% { transform: rotate(12deg); } 92% { transform: rotate(-6deg); } }
@keyframes hgc-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes hgc-pulse { 0% { transform: scale(.6); opacity: .55; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes hgc-dash { to { stroke-dashoffset: -40; } }

/* کارت‌های راه ارتباطی */
.hgc-channels { padding-block: 40px 16px; }
.hgc-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hgc-card {
    min-width: 0;
    padding: 24px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--hgc-line);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.hgc-card:hover { transform: translateY(-4px); border-color: var(--hgc-gold-soft); box-shadow: 0 16px 36px rgba(42, 34, 38, .07); }
.hgc-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: var(--hgc-cream);
    color: var(--hgc-wine);
    font-size: 22px;
}
.hgc-card__icon i { display: inline-block; line-height: 1; }
.hgc-anim-ring i { animation: hgc-ring 3.6s ease-in-out infinite; transform-origin: 50% 20%; }
.hgc-card:hover .hgc-anim-float i { animation: hgc-float 1.4s ease-in-out infinite; }
.hgc-card__title { font-size: 17px; font-weight: 800; margin: 0 0 10px; color: var(--hgc-ink); }
.hgc-card__text { margin: 0 0 4px; color: var(--hgc-muted); line-height: 1.8; overflow-wrap: anywhere; }
.hgc-card__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hgc-card__list a, .hgc-card__text a { text-decoration: none; color: var(--hgc-muted); transition: color .2s ease; }
.hgc-card__list a:hover, .hgc-card__text a:hover { color: var(--hgc-wine); }

/* فرم */
.hgc-form-wrap { padding-block: 40px; scroll-margin-top: 90px; }
.hgc-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px; align-items: start; }
.hgc-promise { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.hgc-promise li { display: flex; align-items: center; gap: 12px; color: var(--hgc-ink); font-weight: 600; }
.hgc-promise i { color: var(--hgc-gold); font-size: 20px; }
.hgc-form-card { min-width: 0; padding: clamp(20px, 3vw, 36px); border-radius: 24px; background: #fff; border: 1px solid var(--hgc-line); box-shadow: 0 20px 50px rgba(42, 34, 38, .05); }

/* فرمِ گرویتی (از نسخهٔ قبلی منتقل شد؛ !important برای غلبه بر تمِ orbital خودِ افزونه) */
.hgc #gform_wrapper_7 { --gf-color-primary: #911a56 !important; --gf-color-primary-darker: #7a1548 !important; --gf-radius: 12px !important; }
.hgc .gform_heading { margin-bottom: 20px; }
.hgc .gform_title { color: var(--hgc-wine) !important; font-weight: 800 !important; font-size: 1.35rem !important; }
.hgc .gform-theme--orbital .gfield_label { font-weight: 700 !important; font-size: 14px !important; color: #333 !important; margin-bottom: 8px !important; }
.hgc .gform-theme--orbital input[type="text"],
.hgc .gform-theme--orbital input[type="email"],
.hgc .gform-theme--orbital input[type="tel"],
.hgc .gform-theme--orbital textarea {
    border: 1px solid var(--hgc-line) !important;
    background-color: #fdfbf8 !important;
    padding: 12px 15px !important;
    border-radius: 12px !important;
    transition: border-color .25s ease, box-shadow .25s ease !important;
}
.hgc .gform-theme--orbital input:focus,
.hgc .gform-theme--orbital textarea:focus {
    border-color: var(--hgc-gold) !important;
    background-color: #fff !important;
    box-shadow: 0 0 0 4px rgba(201, 162, 74, .15) !important;
    outline: none !important;
}
.hgc .gform_footer { margin-top: 20px !important; padding: 0 !important; }
.hgc #gform_submit_button_7 {
    background-color: var(--hgc-wine) !important;
    color: #fff !important;
    border: none !important;
    padding: 13px 40px !important;
    border-radius: 999px !important;
    font-weight: 700 !important;
    width: 100% !important;
    cursor: pointer !important;
    transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease !important;
}
.hgc #gform_submit_button_7:hover { background-color: var(--hgc-wine-dark) !important; transform: translateY(-2px) !important; box-shadow: 0 10px 24px rgba(145, 26, 86, .22) !important; }

/* نقشهٔ مینیمال */
.hgc-map { padding-block: 16px 56px; }
.hgc-map__box { position: relative; min-height: 380px; border-radius: 28px; overflow: hidden; border: 1px solid var(--hgc-line); }
.hgc-map__art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hgc-map__bg { fill: #fbf7f1; }
.hgc-map__park { fill: rgba(201, 162, 74, .10); }
.hgc-map__roads path { fill: none; stroke: #ece2d3; stroke-width: 10; stroke-linecap: round; }
.hgc-map__roads--minor path { stroke-width: 3; stroke: #f1e9dd; }
.hgc-map__route { fill: none; stroke: var(--hgc-gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 10; animation: hgc-dash 1.6s linear infinite; }
.hgc-map__marker { fill: var(--hgc-wine); }
.hgc-map__dot { fill: #fff; }
.hgc-map__pulse { fill: rgba(145, 26, 86, .35); transform-box: fill-box; transform-origin: center; animation: hgc-pulse 2.4s ease-out infinite; }
.hgc-map__pulse--2 { animation-delay: 1.2s; }
.hgc-map__card {
    position: relative;
    z-index: 1;
    width: min(400px, calc(100% - 32px));
    margin: 24px;
    padding: 24px;
    border-radius: 22px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid var(--hgc-line);
    box-shadow: 0 20px 50px rgba(42, 34, 38, .08);
}
.hgc-map__title { font-size: 19px; font-weight: 800; color: var(--hgc-wine); margin: 0 0 8px; }
.hgc-map__address { color: var(--hgc-muted); line-height: 1.9; margin: 0 0 18px; }
.hgc-map__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* واکنش‌گرا */
@media (max-width: 1199.98px) {
    .hgc-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
    .hgc-hero__inner { grid-template-columns: minmax(0, 1fr); text-align: center; }
    .hgc-hero__lead { margin-inline: auto; }
    .hgc-hero__actions { justify-content: center; }
    .hgc-hero__art { order: -1; }
    .hgc-gem { width: 170px; }
    .hgc-form-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 575.98px) {
    .hgc-cards { grid-template-columns: minmax(0, 1fr); }
    .hgc-map__box { min-height: 0; display: flex; flex-direction: column; }
    .hgc-map__art { position: relative; height: 200px; }
    .hgc-map__card { width: auto; margin: 0; border-radius: 0; border: 0; box-shadow: none; }
    .hgc-btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
    .hgc *, .hgc *::before, .hgc *::after { animation: none !important; transition: none !important; }
    .hgc-gem__line { stroke-dashoffset: 0; }
}
