/* =========================================================
   APEX HOME PAGE — استایل اختصاصی محتوای صفحه نخست ApexStair
   بدون هدر و منو — هدر و منو در style.css هستند
   ========================================================= */

:root {
    --primary: #f5b400;
    --primary-dark: #d99a00;
    --primary-light: #ffd54f;
    --dark: #0c0c0c;
    --dark-2: #121212;
    --dark-3: #0a0a0a;
    --text-soft: #a8a8a8;
    --text-mute: #888;
    --line: rgba(255, 255, 255, 0.08);
    --font: 'Vazirmatn', sans-serif;
}

/* ---------- پایه ---------- */
.apex-home-page {
    background: var(--dark);
    color: #e8e8e8;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}
html { scroll-behavior: smooth; }
.apex-home-page h1, .apex-home-page h2,
.apex-home-page h3, .apex-home-page h4 {
    color: #fff; font-weight: 700; line-height: 1.5;
    margin-top: 0;
}
.apex-home-page p { line-height: 2; }
.apex-home-page ul { list-style: none; margin: 0; padding: 0; }
.apex-home-page img { max-width: 100%; height: auto; display: block; }

.apex-container {
    width: 100%; max-width: 1240px;
    margin: 0 auto; padding: 0 28px;
}
.apex-section {
    padding: 100px 0; position: relative;
    scroll-margin-top: 90px;
}

.apex-label {
    display: inline-block;
    font-size: 0.75rem; letter-spacing: 0.28em;
    color: var(--primary); text-transform: uppercase;
    margin-bottom: 16px; font-weight: 600;
}
.apex-section-index {
    font-size: 0.85rem; color: var(--primary);
    letter-spacing: 0.2em;
    display: flex; gap: 10px; align-items: baseline;
    white-space: nowrap;
}
.apex-section-index span { color: #888; letter-spacing: 0.05em; }

.apex-section-head {
    display: grid; grid-template-columns: 1.4fr 1fr;
    gap: 40px; align-items: end; margin-bottom: 55px;
}
.apex-section-head h2 {
    font-size: clamp(1.7rem, 3.2vw, 2.7rem);
    line-height: 1.45; margin: 0;
}
.apex-section-head h2 em { font-style: normal; color: var(--primary); }
.apex-section-head > p {
    color: var(--text-soft); font-size: 1rem;
    line-height: 2; max-width: 420px;
    justify-self: end; margin: 0;
}
.apex-section-head--work { align-items: center; }

.apex-icon-arrow {
    width: 1em; height: 1em;
    display: inline-block;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.3s;
    flex-shrink: 0;
}

/* ===================================================
   HERO
   =================================================== */
.apex-hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    padding: 130px 0 140px;
    overflow: hidden; color: #fff;
    background:
        radial-gradient(circle at 20% 30%, rgba(245, 180, 0, 0.1), transparent 55%),
        linear-gradient(160deg, #0c0c0c 0%, #121212 60%, #0a0a0a 100%);
}
.apex-hero__content {
    position: relative; z-index: 2;
    max-width: 1240px; margin: 0 auto;
    padding: 0 28px; width: 100%;
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 60px; align-items: center;
}
.apex-hero__text { max-width: 620px; }
.apex-kicker {
    display: inline-flex; align-items: center;
    gap: 12px; color: #bbb;
    font-size: 0.85rem; letter-spacing: 0.15em;
    margin-bottom: 24px;
}
.apex-kicker span {
    display: inline-block; width: 36px; height: 1.5px;
    background: var(--primary);
}
.apex-hero h1 {
    font-size: clamp(1.8rem, 4vw, 3.6rem);
    line-height: 1.25; font-weight: 800;
    margin: 0 0 24px; letter-spacing: -0.01em;
}
.apex-hero h1 em { font-style: normal; color: var(--primary); }
.apex-hero__lead {
    font-size: 1.1rem; line-height: 2.1;
    color: #c8c8c8; max-width: 540px;
    margin-bottom: 36px;
}
.apex-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.apex-btn {
    display: inline-flex; align-items: center;
    gap: 10px; padding: 15px 30px;
    font-weight: 700; font-size: 0.95rem;
    border-radius: 4px; transition: all 0.3s;
    border: 1.5px solid transparent;
    cursor: pointer; text-decoration: none;
    font-family: inherit;
    line-height: 1;
}
.apex-btn .apex-icon-arrow { transition: transform 0.3s; }
.apex-btn:hover .apex-icon-arrow { transform: translate(3px, -3px); }
.apex-btn--gold {
    background: var(--primary); color: #0c0c0c !important;
    border-color: var(--primary);
}
.apex-btn--gold:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-3px); color: #0c0c0c !important;
}
.apex-btn--ghost {
    background: transparent; color: #fff !important;
    border-color: rgba(255, 255, 255, 0.25);
}
.apex-btn--ghost:hover {
    border-color: var(--primary);
    color: var(--primary) !important;
    transform: translateY(-3px);
}

.apex-hero__visual {
    position: relative;
    aspect-ratio: 4 / 5;
    max-width: 460px;
    justify-self: end;
    width: 100%;
}
@media (max-width: 768px) {
    .apex-hero__visual {
        justify-self: center;
        margin-left: auto;
        margin-right: auto;
    }
}
.apex-hero__visual img {
    width: 100%; height: auto;
    transition: transform 0.8s;
}
.apex-hero__visual:hover img { transform: scale(1.04); }
.apex-hero__visual-badge {
    position: absolute; bottom: 20px; right: 20px;
    background: rgba(12, 12, 12, 0.85);
    backdrop-filter: blur(8px);
    color: #fff; padding: 11px 16px;
    border-radius: 8px; border: 1px solid var(--line);
    display: flex; align-items: center; gap: 10px;
    font-size: 0.82rem;
}
.apex-hero__visual-badge i {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    font-style: normal;
    animation: pulse 2s infinite;
    flex-shrink: 0;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.apex-scroll {
    position: absolute; bottom: 22px;
    left: 50%; transform: translateX(-50%);
    z-index: 2; display: flex; flex-direction: column;
    align-items: center; gap: 8px;
    color: #999 !important; font-size: 0.65rem;
    letter-spacing: 0.35em; text-decoration: none;
}
.apex-scroll i {
    display: block; width: 1px; height: 36px;
    background: linear-gradient(to bottom, var(--primary), transparent);
    animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
    0%, 100% { transform: scaleY(0.5); opacity: 0.5; }
    50% { transform: scaleY(1); opacity: 1; }
}

/* ===================================================
   DIVIDER
   =================================================== */
.apex-divider {
    position: relative; height: 90px;
    background: var(--dark); overflow: hidden;
}
.apex-divider::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 100%);
}
.apex-divider__line {
    position: absolute; top: 50%; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(245, 180, 0, 0.15) 20%,
        rgba(245, 180, 0, 0.6) 50%,
        rgba(245, 180, 0, 0.15) 80%,
        transparent 100%);
}
.apex-divider__dot {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 10px; height: 10px;
    background: var(--primary); border-radius: 50%;
    box-shadow: 0 0 20px var(--primary), 0 0 40px rgba(245, 180, 0, 0.4);
    animation: dotPulse 2.5s infinite;
}
.apex-divider__dot::before,
.apex-divider__dot::after {
    content: ''; position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(245, 180, 0, 0.5);
    animation: ringExpand 2.5s infinite;
}
.apex-divider__dot::after { animation-delay: 1.25s; }
@keyframes dotPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}
@keyframes ringExpand {
    0% { width: 10px; height: 10px; opacity: 1; }
    100% { width: 70px; height: 70px; opacity: 0; }
}

/* ===================================================
   INTRO
   =================================================== */
.apex-intro { background: var(--dark); }
.apex-intro__grid {
    display: grid; grid-template-columns: auto 1.2fr 1fr;
    gap: 60px; align-items: start;
}
.apex-intro__title h2 {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
    line-height: 1.5; margin: 0;
}
.apex-intro__title h2 strong { color: var(--primary); font-weight: 700; }
.apex-intro__copy p {
    color: var(--text-soft); font-size: 1rem;
    line-height: 2.1; margin-bottom: 18px;
}
.apex-intro__copy p:last-of-type { margin-bottom: 24px; }
.apex-intro__copy p strong { color: #fff; }
.apex-text-link {
    display: inline-flex; align-items: center;
    gap: 10px; color: var(--primary) !important;
    font-weight: 700; font-size: 0.95rem;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    text-decoration: none; transition: all 0.3s;
}
.apex-text-link:hover {
    border-bottom-color: var(--primary);
    gap: 14px; color: var(--primary-light) !important;
}
.apex-text-link:hover .apex-icon-arrow {
    transform: translate(3px, -3px);
}
.apex-stats {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 24px; margin-top: 70px; padding-top: 45px;
    border-top: 1px solid var(--line);
}
.apex-stats > div { display: flex; flex-direction: column; gap: 6px; }
.apex-stats strong {
    font-size: 1.9rem; color: var(--primary);
    font-weight: 800; letter-spacing: 0.05em;
    line-height: 1.2;
}
.apex-stats span { color: #999; font-size: 0.9rem; }

/* ===================================================
   WHY US
   =================================================== */
.apex-why { background: var(--dark-2); }
.apex-why__grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-top: 20px;
}
.apex-why__card {
    background: #181818;
    border: 1px solid var(--line);
    border-radius: 10px; padding: 30px 26px;
    transition: all 0.3s;
}
.apex-why__card:hover {
    border-color: rgba(245, 180, 0, 0.3);
    transform: translateY(-4px);
}
.apex-why__card-icon {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 8px;
    background: rgba(245, 180, 0, 0.1);
    color: var(--primary);
    font-size: 1.3rem; font-weight: 800;
    margin-bottom: 18px;
    line-height: 1;
    margin-right: calc(50% - 24px);
}
.apex-why__card h3 {
    font-size: 1.15rem; margin: 0 0 12px;
    color: #fff; font-weight: 700;
    line-height: 1.5;
    text-align: center;
}
.apex-why__card p {
    color: var(--text-soft); font-size: 0.92rem;
    line-height: 2; margin: 0;
}
.apex-why__note {
    margin-top: 50px; padding: 30px 34px;
    background: linear-gradient(135deg, rgba(245, 180, 0, 0.06), rgba(245, 180, 0, 0.02));
    border-right: 3px solid var(--primary);
    border-radius: 8px;
}
.apex-why__note p {
    color: #c8c8c8; font-size: 1rem; line-height: 2.1;
    margin: 0;
}
.apex-why__note p strong { color: var(--primary); }

/* ===================================================
   SERVICES
   =================================================== */
.apex-services { background: var(--dark); }
.apex-service-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
.apex-service {
    background: var(--dark-2);
    border: 1px solid var(--line);
    border-radius: 8px; overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.apex-service:hover {
    transform: translateY(-6px);
    border-color: rgba(245, 180, 0, 0.3);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.apex-service__visual {
    position: relative; display: block;
    aspect-ratio: 4 / 3; overflow: hidden;
    background: #1a1a1a;
}
.apex-service__visual img {
    width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.6s;
}
.apex-service:hover .apex-service__visual img { transform: scale(1.05); }
.apex-service__number {
    position: absolute; top: 14px; left: 14px;
    background: rgba(12, 12, 12, 0.75);
    color: var(--primary); font-weight: 800;
    font-size: 0.75rem; padding: 5px 10px;
    border-radius: 3px; letter-spacing: 0.15em;
    backdrop-filter: blur(6px);
}
.apex-placeholder {
    display: grid; place-items: center;
    width: 100%; height: 100%;
    color: #555; font-size: 0.8rem;
    letter-spacing: 0.3em; background: #1a1a1a;
}
.apex-service__body {
    padding: 24px 22px 26px;
    display: flex; flex-direction: column;
    gap: 14px; flex: 1;
}
.apex-service__eyebrow {
    font-size: 0.68rem; letter-spacing: 0.28em;
    color: #666; margin-bottom: 8px; display: block;
    text-align:center;
}
.apex-service__body h3 {
    font-size: 1.2rem; margin: 0;
    font-weight: 700; line-height: 1.5;
    text-align:center;
}
.apex-service__body h3 a { color: #fff; text-decoration: none; transition: color 0.3s; }
.apex-service__body h3 a:hover { color: var(--primary); }
.apex-service__body p {
    color: #9a9a9a; font-size: 0.9rem;
    line-height: 2; flex: 1; margin: 0;
}
.apex-circle-link {
    align-self: flex-start; width: 38px; height: 38px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%; display: grid; place-items: center;
    color: #fff !important; font-size: 1rem;
    text-decoration: none; transition: all 0.3s;
}
.apex-circle-link:hover {
    background: var(--primary); border-color: var(--primary);
    color: #0c0c0c !important; transform: rotate(-45deg);
}
.apex-empty {
    grid-column: 1 / -1; text-align: center;
    color: #666; padding: 40px 0; font-size: 0.95rem;
}
/* ===================================================
   SERVICES - RESPONSIVE
   =================================================== */

/* تبلت */
@media (max-width: 1024px) {
    .apex-service-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* گوشی */
@media (max-width: 640px) {
    .apex-service-list {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .apex-service__body {
        padding: 20px 18px 22px;
        gap: 12px;
    }
    
    .apex-service__body h3 {
        font-size: 1.1rem;
    }
    
    .apex-service__body p {
        font-size: 0.85rem;
        line-height: 1.9;
    }
    
    .apex-service__eyebrow {
        font-size: 0.65rem;
        letter-spacing: 0.22em;
    }
    
    .apex-circle-link {
        width: 34px;
        height: 34px;
        font-size: 0.9rem;
    }
}

/* گوشی‌های خیلی کوچک */
@media (max-width: 380px) {
    .apex-service__body h3 {
        font-size: 1rem;
    }
    
    .apex-service__body p {
        font-size: 0.82rem;
    }
}
/* ===================================================
   PORTFOLIO
   =================================================== */
.apex-work { background: var(--dark-3); }
.apex-projects {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 200px; gap: 16px;
}
.apex-project {
    position: relative; display: block;
    overflow: hidden; border-radius: 8px;
    background: #161616; text-decoration: none;
}
.apex-project--1 { grid-column: span 3; grid-row: span 2; }
.apex-project--2 { grid-column: span 3; grid-row: span 2; }
.apex-project--3 { grid-column: span 2; grid-row: span 2; }
.apex-project--4 { grid-column: span 2; grid-row: span 2; }
.apex-project--5 { grid-column: span 2; grid-row: span 2; }
.apex-project--6 { grid-column: span 6; grid-row: span 2; }

.apex-project img {
    width: 100%; height: 100%;
    object-fit: cover; transition: transform 0.8s;
}
.apex-project:hover img { transform: scale(1.06); }
.apex-project__shade {
    position: absolute; inset: 0;
    background: linear-gradient(to top,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(0, 0, 0, 0.15) 50%,
        transparent 100%);
}
.apex-project__info {
    position: absolute; left: 22px; right: 22px; bottom: 22px;
    display: grid; grid-template-columns: 1fr auto;
    align-items: center; color: #fff; gap: 4px 12px;
}
.apex-project__info small {
    grid-column: 1; font-size: 0.7rem;
    letter-spacing: 0.25em; color: var(--primary);
    text-transform: uppercase;
}
.apex-project__info strong {
    grid-column: 1; font-size: 1.1rem;
    font-weight: 700; color: #fff;
    line-height: 1.4;
}
.apex-project__info i {
    grid-column: 2; grid-row: 1 / span 2;
    font-style: normal; width: 40px; height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%; display: grid;
    place-items: center; transition: all 0.3s;
}
.apex-project:hover .apex-project__info i {
    background: var(--primary); border-color: var(--primary);
    color: #0c0c0c; transform: rotate(-45deg);
}

/* ===================================================
   PROCESS
   =================================================== */
.apex-process { background: var(--dark); position: relative; overflow: hidden; }
.apex-process__grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 30px 60px;
    align-items: start;
}
.apex-process__intro h2 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    margin: 0; line-height: 1.5;
}
.apex-process__intro h2 em {
    font-style: normal; color: var(--primary);
}
.apex-process__steps {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 60px;
    position: relative;
}
.apex-process__steps::before {
    content: '';
    position: absolute;
    top: 32px;
    right: 12.5%;
    left: 12.5%;
    height: 2px;
    background: linear-gradient(to left,
        transparent,
        rgba(245, 180, 0, 0.25) 15%,
        rgba(245, 180, 0, 0.25) 85%,
        transparent);
    z-index: 0;
}
.apex-process__step {
    text-align: center;
    padding: 0 16px;
    position: relative;
    z-index: 1;
}
.apex-process__step-icon {
    width: 64px; height: 64px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: var(--dark-2);
    border: 2px solid rgba(245, 180, 0, 0.3);
    display: grid; place-items: center;
    font-size: 1.3rem; font-weight: 800;
    color: var(--primary);
    position: relative;
    transition: all 0.4s;
}
.apex-process__step-icon::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1px dashed rgba(245, 180, 0, 0.15);
    animation: rotate 20s linear infinite;
}
@keyframes rotate {
    to { transform: rotate(360deg); }
}
.apex-process__step:hover .apex-process__step-icon {
    background: var(--primary);
    color: #0c0c0c;
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(245, 180, 0, 0.4);
    transform: scale(1.08);
}
.apex-process__step h3 {
    font-size: 1.1rem; margin: 0 0 10px;
    font-weight: 700; color: #fff;
    line-height: 1.5;
}
.apex-process__step p {
    color: #9a9a9a; font-size: 0.88rem;
    line-height: 2; margin: 0;
    max-width: 220px; margin-left: auto; margin-right: auto;
}

/* ===================================================
   CONTACT
   =================================================== */
.apex-contact {
    background:
        radial-gradient(circle at 20% 30%, rgba(245, 180, 0, 0.1), transparent 55%),
        var(--dark);
    text-align: center; overflow: hidden;
}
.apex-contact__inner { position: relative; z-index: 1; }
.apex-contact__inner h2 {
    font-size: clamp(1.9rem, 4.5vw, 3.4rem);
    line-height: 1.35; margin: 18px 0 22px; font-weight: 800;
}
.apex-contact__inner h2 em { font-style: normal; color: var(--primary); }
.apex-contact__lead {
    color: #b0b0b0; font-size: 1.05rem;
    max-width: 560px; margin: 0 auto 40px;
    line-height: 2.1;
    text-align: center;
}
.apex-contact__actions {
    display: flex; flex-direction: column;
    align-items: center; gap: 20px; margin-bottom: 50px;
}
.apex-contact__phone {
    font-size: 1.7rem; font-weight: 800;
    color: #fff !important; letter-spacing: 0.05em;
    direction: ltr; border-bottom: 2px solid transparent;
    transition: all 0.3s; text-decoration: none;
    padding-bottom: 4px;
}
.apex-contact__phone:hover {
    color: var(--primary) !important;
    border-bottom-color: var(--primary);
}
.apex-contact__details {
    display: flex; justify-content: center;
    flex-wrap: wrap; gap: 12px 40px;
    padding-top: 28px; border-top: 1px solid var(--line);
    color: #888; font-size: 0.9rem;
}
.apex-contact__details span { position: relative; }
.apex-contact__details span:not(:last-child)::after {
    content: '·'; position: absolute;
    left: -22px; color: #444;
}

/* ===================================================
   FOOTER (HOME)
   =================================================== */
.apex-home-footer {
    background: #050505;
    color: #999;
    position: relative;
    padding-top: 80px;
}
.apex-home-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 50%; transform: translateX(-50%);
    width: 90%; height: 2px;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(245, 180, 0, 0.5) 25%,
        var(--primary) 50%,
        rgba(245, 180, 0, 0.5) 75%,
        transparent 100%);
    box-shadow: 0 0 30px rgba(245, 180, 0, 0.4);
}
.apex-home-footer::after {
    content: '';
    position: absolute;
    top: -4px; left: 50%; transform: translateX(-50%);
    width: 10px; height: 10px;
    background: var(--primary); border-radius: 50%;
    box-shadow: 0 0 20px var(--primary), 0 0 40px rgba(245, 180, 0, 0.5);
}
.apex-home-footer__top { padding: 20px 0 50px; }
.apex-home-footer__grid {
    max-width: 1240px; margin: 0 auto;
    padding: 0 28px;
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 45px;
}
.apex-home-brand--footer { margin-bottom: 20px; }
.apex-home-footer__brand p {
    color: #888; font-size: 0.9rem;
    line-height: 2.1; margin-bottom: 20px;
    max-width: 340px;
}
.apex-home-footer__tel {
    display: inline-flex; align-items: center;
    gap: 10px; color: var(--primary) !important;
    font-weight: 800; font-size: 1.1rem;
    direction: ltr; text-decoration: none;
}
.apex-home-footer__tel:hover .apex-icon-arrow {
    transform: translate(3px, -3px);
}
.apex-home-footer__eyebrow {
    display: block; font-size: 0.72rem;
    letter-spacing: 0.28em; color: #666;
    text-transform: uppercase; margin-bottom: 18px;
    font-weight: 600;
}
.apex-home-footer__links { display: flex; flex-direction: column; gap: 9px; }
.apex-home-footer__links a {
    color: #bbb !important; font-size: 0.9rem;
    transition: color 0.3s, padding-right 0.3s;
    display: inline-block; text-decoration: none;
    line-height: 1.8;
}
.apex-home-footer__links a:hover {
    color: var(--primary) !important; padding-right: 6px;
}
.apex-home-footer__location {
    color: #bbb; font-size: 0.9rem;
    line-height: 2.1; margin-bottom: 8px;
}
.apex-home-footer__address { color: #777; font-size: 0.85rem; }
.apex-home-footer__bottom {
    max-width: 1240px; margin: 0 auto;
    padding: 22px 28px;
    border-top: 1px solid var(--line);
    display: flex; justify-content: space-between;
    flex-wrap: wrap; gap: 12px;
    font-size: 0.8rem; color: #666;
}
.apex-home-footer__bottom a { color: var(--primary) !important; text-decoration: none; }
.apex-home-footer__bottom a:hover { color: var(--primary-light) !important; }

.apex-skip {
    position: absolute; top: -100px; right: 20px;
    background: var(--primary); color: #0c0c0c !important;
    padding: 10px 18px; border-radius: 4px;
    z-index: 9999; font-weight: 700;
    text-decoration: none; transition: top 0.3s;
}
.apex-skip:focus { top: 20px; }

/* ===================================================
   ریسپانسیو HOME
   =================================================== */
@media (max-width: 1024px) {
    .apex-hero__content { grid-template-columns: 1fr; gap: 40px; }
    .apex-hero__visual { justify-self: start; max-width: 400px; }
    .apex-intro__grid { grid-template-columns: 1fr; gap: 28px; }
    .apex-section-head { grid-template-columns: 1fr; gap: 22px; }
    .apex-section-head > p { justify-self: start; max-width: none; }
    .apex-why__grid { grid-template-columns: 1fr 1fr; }
    .apex-home-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .apex-process__grid { grid-template-columns: 1fr; }
    .apex-process__steps { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
    .apex-process__steps::before { display: none; }
    .apex-stats { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (max-width: 768px) {
    .apex-section { padding: 65px 0; }
    .apex-hero { min-height: auto; padding: 120px 0 100px; }
    .apex-hero h1 { font-size: clamp(1.7rem, 7vw, 2.5rem); }
    .apex-hero__visual { max-width: 100%; aspect-ratio: 4 / 3; }
    .apex-hero__actions { flex-direction: column; align-items: stretch; }
    .apex-btn { justify-content: center; }
    .apex-projects { grid-template-columns: 1fr; grid-auto-rows: 240px; }
    .apex-project, .apex-project--1, .apex-project--2,
    .apex-project--3, .apex-project--4, .apex-project--5,
    .apex-project--6 { grid-column: span 1; grid-row: span 1; }
    .apex-why__grid { grid-template-columns: 1fr; }
    .apex-process__steps { grid-template-columns: 1fr; gap: 36px; }
    .apex-process__step p { max-width: none; }
    .apex-stats { grid-template-columns: 1fr 1fr; }
    .apex-stats strong { font-size: 1.4rem; }
    .apex-contact__details {
        flex-direction: column; gap: 8px; align-items: center;
    }
    .apex-contact__details span::after { display: none; }
    .apex-home-footer__grid { grid-template-columns: 1fr; gap: 30px; }
    .apex-home-footer__bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .apex-container { padding: 0 18px; }
    .apex-hero__content { padding: 0 18px; }
    .apex-home-footer__grid { padding: 0 18px; }
    .apex-home-footer__bottom { padding: 20px 18px; }
}

@media (max-width: 768px) {

    .apex-hero__visual {
        justify-self: center !important;
        align-self: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .apex-hero,
    .apex-hero__content,
    .apex-hero__grid,
    .apex-hero__media {
        justify-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .apex-hero__visual img,
    .apex-hero img {
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
    }

    /* ---------- 2) هیرو ---------- */
    .apex-hero__content {
        text-align: center !important;
    }
    .apex-kicker {
        justify-content: center !important;
        text-align: center !important;
    }
    .apex-hero h1,
    .apex-hero h1 em {
        text-align: center !important;
    }
    .apex-hero__lead {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .apex-hero__actions {
        justify-content: center !important;
        align-items: center !important;
    }
    .apex-btn {
        justify-content: center !important;
        text-align: center !important;
    }

    /* ---------- 3) Intro ---------- */
    .apex-intro__grid {
        text-align: center !important;
        justify-items: center !important;
    }
    .apex-intro__title,
    .apex-intro__title h2,
    .apex-intro__copy,
    .apex-intro__copy p {
        text-align: center !important;
    }
    .apex-text-link {
        justify-content: center !important;
    }
    .apex-stats {
        text-align: center !important;
        justify-items: center !important;
    }
    .apex-stats > div {
        align-items: center !important;
        text-align: center !important;
    }

    /* ---------- 4) Services ---------- */
    .apex-services,
    .apex-services .container,
    .apex-service-list {
        text-align: center !important;
    }
    .apex-service {
        text-align: center !important;
        align-items: center !important;
    }
    .apex-service__body {
        text-align: center !important;
        align-items: center !important;
    }
    .apex-service__eyebrow,
    .apex-service__body h3,
    .apex-service__body h3 a,
    .apex-service__body p {
        text-align: center !important;
    }
    .apex-circle-link {
        align-self: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* ---------- 5) Portfolio / Work ---------- */
    .apex-work,
    .apex-projects {
        text-align: center !important;
    }
    .apex-project__info {
        text-align: center !important;
        justify-items: center !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto auto !important;
    }
    .apex-project__info small,
    .apex-project__info strong {
        grid-column: 1 !important;
        text-align: center !important;
    }
    .apex-project__info i {
        grid-column: 1 !important;
        grid-row: 3 !important;
        justify-self: center !important;
        margin-top: 8px;
    }

    /* ---------- 6) Process ---------- */
    .apex-process,
    .apex-process__grid,
    .apex-process__steps {
        text-align: center !important;
        justify-items: center !important;
    }
    .apex-process__grid > div:nth-child(2) h2,
    .apex-process__steps > div,
    .apex-process__steps span,
    .apex-process__steps h3,
    .apex-process__steps p {
        text-align: center !important;
    }

    /* ---------- 7) Contact ---------- */
    .apex-contact,
    .apex-contact__inner,
    .apex-contact__lead,
    .apex-contact__actions {
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .apex-contact__inner h2,
    .apex-contact__inner h2 em {
        text-align: center !important;
    }
    .apex-contact__details {
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }

    /* ---------- 8) Footer (Home) ---------- */
    .apex-home-footer,
    .apex-home-footer__top,
    .apex-home-footer__grid,
    .apex-home-footer__brand,
    .apex-home-footer__col {
        text-align: center !important;
        justify-items: center !important;
    }
    .apex-home-footer__brand p,
    .apex-home-footer__tel,
    .apex-home-footer__eyebrow,
    .apex-home-footer__links,
    .apex-home-footer__links a,
    .apex-home-footer__location,
    .apex-home-footer__address,
    .apex-home-footer__bottom {
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .apex-home-footer__links {
        align-items: center !important;
    }
    .apex-home-footer__links a {
        display: inline-block !important;
        text-align: center !important;
    }
    .apex-home-footer__links a:hover {
        padding-right: 0 !important;
    }

    /* ---------- 9) Social Icons ---------- */
    .apex-socials {
        justify-content: center !important;
    }

    /* ---------- 10) Header (Home + Inner) ---------- */
    .apex-header__inner,
    .apex-brand,
    .apex-brand__text {
        justify-content: center !important;
        text-align: center !important;
    }

    /* ---------- 11) Inner page header/footer ---------- */
    .site-header,
    .header-inner,
    .main-nav ul,
    .header-contact {
        text-align: center !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
    }

    /* ---------- 12) Services Grid (inner pages) ---------- */
    .services-grid,
    .service-card,
    .service-card-content {
        text-align: center !important;
        align-items: center !important;
    }

    /* ---------- 13) Portfolio Grid (inner) ---------- */
    .portfolio-grid,
    .portfolio-item,
    .portfolio-overlay {
        text-align: center !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
    .portfolio-overlay h3,
    .portfolio-overlay span {
        text-align: center !important;
    }

    /* ---------- 14) Why Us / Features ---------- */
    .why-us,
    .features-grid,
    .feature-box {
        text-align: center !important;
        align-items: center !important;
    }

    /* ---------- 15) Single / Archive / Post Cards ---------- */
    .single-header,
    .single-content,
    .single-content .content-body,
    .archive-header,
    .archive-content,
    .archive-grid,
    .post-card,
    .post-card-body {
        text-align: center !important;
        align-items: center !important;
    }
    .single-content .content-body {
        text-align: center !important;
    }
    .post-card-body h3,
    .post-card-body p,
    .post-card-body .read-more {
        text-align: center !important;
    }

    /* ---------- 16) Pagination / Filters ---------- */
    .pagination,
    .filter-buttons {
        text-align: center !important;
    }

    /* ---------- 17) CTA ---------- */
    .cta-section,
    .cta-section h2,
    .cta-section .phone-big {
        text-align: center !important;
    }

    /* ---------- 18) Section Titles ---------- */
    .section-title,
    .section-title h2,
    .section-title p {
        text-align: center !important;
    }

    /* ---------- 19) Portfolio meta box ---------- */
    .portfolio-meta-box,
    .portfolio-meta-box .meta-item {
        text-align: center !important;
        align-items: center !important;
    }

    /* ---------- 20) فرم تماس ---------- */
    .apexstair-contact-form,
    .apexstair-contact-form input,
    .apexstair-contact-form textarea,
    .apexstair-contact-form select,
    .apexstair-contact-form button {
        text-align: center !important;
    }
    .apexstair-contact-form input,
    .apexstair-contact-form textarea {
        text-align: center !important;
    }
}