/* صفحات درباره ما / تماس با ما / همکاری با ما */
.ip {
    --ip-primary: hsl(186deg 86% 29%);
    --ip-primary-dark: hsl(192deg 80% 18%);
    --ip-accent: hsl(45deg 100% 50%);
    --ip-ink: #1f2937;
    --ip-muted: #6b7280;
    --ip-soft: #f3f8f9;
    --ip-line: #e5eef0;
    --ip-radius: 22px;
    color: var(--ip-ink);
    background: #fff;
    overflow: hidden;
}

/* ---------- hero ---------- */
.ip-hero {
    position: relative;
    padding: 80px 0 130px;
    color: #fff;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 255, 255, .12) 0, transparent 35%),
        radial-gradient(circle at 85% 80%, rgba(255, 196, 0, .22) 0, transparent 40%),
        linear-gradient(135deg, var(--ip-primary-dark) 0%, var(--ip-primary) 100%);
    isolation: isolate;
}
.ip-hero.has-image::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: var(--ip-hero-image) center / cover no-repeat;
    opacity: .18;
    mix-blend-mode: luminosity;
}
.ip-hero .ip-blob {
    position: absolute; z-index: -1; border-radius: 50%;
    filter: blur(2px); opacity: .5;
    animation: ip-float 9s ease-in-out infinite;
}
.ip-hero .ip-blob.b1 { width: 220px; height: 220px; top: -60px; left: -40px; background: rgba(255, 255, 255, .08); }
.ip-hero .ip-blob.b2 { width: 120px; height: 120px; bottom: 90px; left: 18%; background: rgba(255, 196, 0, .35); animation-delay: -3s; }
.ip-hero .ip-blob.b3 { width: 70px; height: 70px; top: 40px; right: 12%; border: 3px solid rgba(255, 255, 255, .35); background: transparent; animation-delay: -6s; }
@keyframes ip-float {
    0%, 100% { transform: translateY(0) }
    50% { transform: translateY(-16px) }
}
.ip-hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; margin-bottom: 18px;
    border-radius: 40px; font-size: 13px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(4px);
}
.ip-hero-badge i { color: var(--ip-accent); }
.ip-hero h1 {
    font-size: clamp(28px, 4.5vw, 46px);
    font-weight: 900; margin: 0 0 14px; line-height: 1.5;
}
.ip-hero h1 span { color: var(--ip-accent); }
.ip-hero p {
    max-width: 640px; margin: 0 auto;
    font-size: 16px; line-height: 2; opacity: .9;
}
.ip-breadcrumb { margin-top: 22px; font-size: 13px; opacity: .85; }
.ip-breadcrumb a { color: #fff; text-decoration: none; }
.ip-breadcrumb a:hover { color: var(--ip-accent); }
.ip-wave {
    position: absolute; bottom: -1px; left: 0; width: 100%; height: 90px;
    display: block;
}

/* ---------- common ---------- */
.ip-section { padding: 70px 0; position: relative; }
.ip-section.soft { background: var(--ip-soft); }
.ip-heading { text-align: center; margin-bottom: 44px; }
.ip-heading .eyebrow {
    display: inline-block; font-size: 13px; font-weight: 700;
    color: var(--ip-primary); background: rgba(10, 125, 140, .09);
    padding: 5px 14px; border-radius: 30px; margin-bottom: 12px;
}
.ip-heading h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; margin: 0; }
.ip-heading h2::after {
    content: ""; display: block; width: 56px; height: 4px; margin: 14px auto 0;
    border-radius: 4px; background: linear-gradient(90deg, var(--ip-accent), var(--ip-primary));
}
.ip-prose { line-height: 2.2; font-size: 15.5px; color: #374151; }
.ip-prose img { max-width: 100%; height: auto; border-radius: 14px; }

.ip-card {
    background: #fff; border: 1px solid var(--ip-line);
    border-radius: var(--ip-radius);
    box-shadow: 0 10px 30px -18px rgba(15, 60, 70, .35);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.ip-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px -20px rgba(15, 60, 70, .45);
    border-color: rgba(10, 125, 140, .3);
}
.ip-icon {
    width: 62px; height: 62px; border-radius: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
    background: linear-gradient(135deg, var(--ip-primary), var(--ip-primary-dark));
    box-shadow: 0 10px 20px -8px rgba(10, 125, 140, .7);
    position: relative;
}
.ip-icon::after {
    content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%;
    background: var(--ip-accent); top: -4px; left: -4px; border: 3px solid #fff;
}

.ip-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ---------- reveal on scroll ---------- */
.ip-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.ip-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .ip-reveal { opacity: 1; transform: none; transition: none; }
    .ip-hero .ip-blob { animation: none; }
}

/* ---------- about ---------- */
.ip-stats {
    margin-top: -80px; position: relative; z-index: 2;
    display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.ip-stat {
    text-align: center; padding: 26px 14px;
    background: #fff; border-radius: var(--ip-radius);
    box-shadow: 0 18px 40px -22px rgba(15, 60, 70, .55);
    border-bottom: 4px solid var(--ip-accent);
}
.ip-stat strong {
    display: block; font-size: 32px; font-weight: 900; line-height: 1.4;
    background: linear-gradient(135deg, var(--ip-primary), var(--ip-primary-dark));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ip-stat span { color: var(--ip-muted); font-size: 14px; }

.ip-about-intro { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 992px) { .ip-about-intro.has-image { grid-template-columns: 1.1fr .9fr; } }
.ip-about-figure { position: relative; }
.ip-about-figure img { width: 100%; border-radius: 28px; position: relative; z-index: 1; object-fit: cover; max-height: 420px; }
.ip-about-figure::before {
    content: ""; position: absolute; inset: 22px -18px -18px 22px; border-radius: 28px;
    background: repeating-linear-gradient(45deg, var(--ip-accent) 0 2px, transparent 2px 12px); opacity: .45;
}

.ip-feature { padding: 30px 24px; text-align: center; height: 100%; }
.ip-feature h3 { font-size: 17px; font-weight: 800; margin: 20px 0 10px; }
.ip-feature p { color: var(--ip-muted); font-size: 14px; line-height: 2; margin: 0; }

.ip-mv { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.ip-mv-card {
    position: relative; overflow: hidden; padding: 36px 30px; border-radius: var(--ip-radius); color: #fff;
    background: linear-gradient(135deg, var(--ip-primary-dark), var(--ip-primary));
}
.ip-mv-card.alt { background: linear-gradient(135deg, #1f2937, #374151); }
.ip-mv-card i.bg { position: absolute; font-size: 130px; left: -10px; bottom: -24px; opacity: .1; }
.ip-mv-card h3 { font-size: 20px; font-weight: 900; display: flex; align-items: center; gap: 10px; }
.ip-mv-card h3 i { color: var(--ip-accent); }
.ip-mv-card p { line-height: 2.1; margin: 12px 0 0; opacity: .92; }

.ip-cta {
    position: relative; overflow: hidden; border-radius: 28px; padding: 46px 36px;
    background: linear-gradient(120deg, var(--ip-accent) 0%, #ffd84d 100%);
    display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.ip-cta::after {
    content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
    left: -60px; top: -120px; background: rgba(255, 255, 255, .25);
}
.ip-cta h3 { font-weight: 900; margin: 0 0 6px; color: #1f2937; }
.ip-cta p { margin: 0; color: #374151; }

.ip-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 13px 28px; border-radius: 14px; border: 0;
    font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer;
    color: #fff; background: linear-gradient(135deg, var(--ip-primary), var(--ip-primary-dark));
    box-shadow: 0 12px 24px -12px rgba(10, 100, 115, .9);
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative; z-index: 1;
}
.ip-btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(10, 100, 115, 1); }
.ip-btn.dark { background: #1f2937; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .7); }
.ip-btn.light { background: #fff; color: var(--ip-primary); box-shadow: none; border: 1px solid var(--ip-line); }
.ip-btn.light:hover { color: var(--ip-primary-dark); }

/* ---------- contact ---------- */
.ip-contact-cards {
    margin-top: -80px; position: relative; z-index: 2;
    display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.ip-contact-card { padding: 28px 22px; text-align: center; height: 100%; }
.ip-contact-card h3 { font-size: 15px; font-weight: 800; margin: 18px 0 8px; color: var(--ip-muted); }
.ip-contact-card .val { font-weight: 800; font-size: 15.5px; line-height: 2; word-break: break-word; }
.ip-contact-card a { color: var(--ip-ink); text-decoration: none; }
.ip-contact-card a:hover { color: var(--ip-primary); }
.ip-contact-card .val small { display: block; font-weight: 400; color: var(--ip-muted); font-size: 12.5px; }

.ip-contact-layout { display: grid; gap: 26px; grid-template-columns: 1fr; }
@media (min-width: 992px) { .ip-contact-layout.has-map { grid-template-columns: 1.25fr .75fr; } }
.ip-map {
    border-radius: var(--ip-radius); overflow: hidden; min-height: 380px; height: 100%;
    border: 6px solid #fff; box-shadow: 0 18px 40px -22px rgba(15, 60, 70, .55);
}
.ip-map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

.ip-socials { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }
.ip-socials a {
    width: 46px; height: 46px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--ip-line); color: var(--ip-primary); font-size: 19px;
    transition: all .25s ease;
}
.ip-socials a:hover { background: var(--ip-primary); color: #fff; transform: translateY(-3px); }

/* ---------- forms ---------- */
.ip-form-card { padding: 34px 30px; }
.ip-form-card:hover { transform: none; }
.ip-form-card h3 { font-weight: 900; font-size: 20px; margin-bottom: 6px; }
.ip-form-card .lead-text { color: var(--ip-muted); font-size: 14px; margin-bottom: 24px; }
.ip-field { position: relative; margin-bottom: 16px; }
.ip-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; color: #374151; }
.ip-field label .req { color: #dc2626; }
.ip-field .form-control, .ip-field .form-select {
    border-radius: 14px; border: 1.5px solid var(--ip-line); background-color: var(--ip-soft);
    padding: 12px 16px; font-size: 14px; min-height: 50px; box-shadow: none;
    transition: border-color .2s ease, background-color .2s ease;
}
.ip-field textarea.form-control { min-height: 140px; }
.ip-field .form-control:focus, .ip-field .form-select:focus {
    border-color: var(--ip-primary); background-color: #fff;
    box-shadow: 0 0 0 4px rgba(10, 125, 140, .1);
}
.ip-field .hint { font-size: 12px; color: var(--ip-muted); margin-top: 5px; }
.ip-file {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer;
    border-radius: 14px; border: 1.5px dashed rgba(10, 125, 140, .45); background: rgba(10, 125, 140, .04);
    color: var(--ip-primary); font-weight: 700; font-size: 14px; margin: 0;
}
.ip-file:hover { background: rgba(10, 125, 140, .08); }
.ip-file input { display: none; }
.ip-file .name { color: var(--ip-muted); font-weight: 400; font-size: 12.5px; margin-inline-start: auto; }

/* ---------- cooperation ---------- */
.ip-position {
    padding: 26px; height: 100%; display: flex; flex-direction: column; gap: 10px;
    border-inline-start: 5px solid var(--ip-primary);
}
.ip-position h3 { font-size: 17px; font-weight: 800; margin: 0; }
.ip-position .type {
    align-self: flex-start; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 20px;
    background: rgba(255, 196, 0, .2); color: #8a6100;
}
.ip-position p { color: var(--ip-muted); font-size: 14px; line-height: 2; margin: 0; flex: 1; }
.ip-position .ip-btn { align-self: flex-start; padding: 9px 18px; font-size: 13.5px; }

.ip-steps {
    display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    counter-reset: ip-step; position: relative;
}
.ip-step { text-align: center; position: relative; padding: 0 10px; }
.ip-step .num {
    counter-increment: ip-step;
    width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
    font-size: 24px; font-weight: 900; color: var(--ip-primary-dark);
    background: #fff; border: 3px solid var(--ip-accent);
    box-shadow: 0 0 0 8px rgba(255, 196, 0, .18);
}
.ip-step .num::before { content: counter(ip-step, persian); }
@media (min-width: 768px) {
    .ip-step:not(:last-child)::after {
        content: ""; position: absolute; top: 35px; left: -50%; width: 100%; height: 3px;
        background: repeating-linear-gradient(90deg, var(--ip-primary) 0 8px, transparent 8px 16px); opacity: .35;
    }
}
.ip-step h3 { font-size: 16px; font-weight: 800; margin-bottom: 8px; }
.ip-step p { color: var(--ip-muted); font-size: 13.5px; line-height: 2; margin: 0; }

@media (max-width: 767px) {
    .ip-hero { padding: 56px 0 110px; }
    .ip-section { padding: 50px 0; }
    .ip-cta { padding: 34px 22px; text-align: center; justify-content: center; }
    .ip-form-card { padding: 26px 18px; }
}
