/*
 * ==========================================================================
 * #PAGE: Hosting Guide — ZHM-X v5.0.1
 * ==========================================================================
 *
 * ONLY layout, positioning, and page-specific context.
 * All colors, fonts, sizes, shadows → _canonical-ui.css
 */

/* ═══════════════════════════════════════════════════
   1. GLOBALS & UTILITIES
   ═══════════════════════════════════════════════════ */

.hg-container {
  
    margin: 0 auto;
    padding: 0 var(--sys-spacing-lg);
}

.hg-section {
    padding: var(--sys-spacing-3xl) 0;
}



.hg-section-header {
    margin-bottom: var(--sys-spacing-2xl);
    text-align: center;
}

.hg-section-badge {
    display: inline-block;
    margin-bottom: var(--sys-spacing-md);
    padding: var(--sys-spacing-xs) var(--sys-spacing-md);
    background: linear-gradient(
        135deg,
        var(--sys-color-primary) 0%,
        var(--sys-color-primary-dark) 100%
    );
    border-radius: var(--sys-radius-xl);
    color: var(--sys-color-neutral-0);
    
}

/* ═══════════════════════════════════════════════════
   2. NAVIGATION
   ═══════════════════════════════════════════════════ */

.hg-nav {
    top: 0;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--comp-border-color);
    backdrop-filter: blur(10px);
    transition: box-shadow var(--comp-transition-fast);
}



.hg-nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.hg-nav-logo {
    display: flex;
    align-items: center;
    gap: var(--sys-spacing-sm);
    color: var(--sys-color-neutral-900);
    text-decoration: none;
}

.hg-nav-logo:focus-visible {
    outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

.hg-logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(
        135deg,
        var(--sys-color-primary) 0%,
        var(--sys-color-primary-dark) 100%
    );
    border-radius: var(--sys-radius-md);
    color: var(--sys-color-neutral-0);
}

.hg-nav-menu {
    display: flex;
    gap: var(--sys-spacing-xl);
}

.hg-nav-link {
    color: var(--sys-color-neutral-800);
    font-weight: var(--weight-regular);
    text-decoration: none;
    transition: color var(--comp-transition-fast);
}

.hg-nav-link:hover {
    color: var(--sys-color-primary);
}

.hg-nav-link:focus-visible {
    outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

.hg-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--sys-spacing-sm);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.hg-nav-toggle:focus-visible {
    outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

.hg-nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--sys-color-neutral-900);
    border-radius: 2px;
    transition: transform var(--comp-transition-fast),
                opacity var(--comp-transition-fast);
}

/* ═══════════════════════════════════════════════════
   3. HERO
   ═══════════════════════════════════════════════════ */

.hg-hero {
    padding: var(--sys-spacing-3xl) 0;
 
    text-align: center;
}

.hg-hero-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    align-items: center;
    gap: var(--sys-spacing-2xl);
    text-align: right;
}

.hg-title-accent {
    color: var(--sys-color-secondary);
}

.hg-hero-subtitle {
    max-width: 550px;
    margin-bottom: var(--sys-spacing-2xl);
    text-align: justify;
}

.hg-hero-actions {
    display: flex;
    gap: var(--sys-spacing-md);
    justify-content: flex-start;
}

.hg-hero-visual {
        font-size: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hg-hero-icon {
    color: var(--sys-color-primary);
    opacity: 0.1;
}

/* ═══════════════════════════════════════════════════
   4. CRITERIA CARDS
   ═══════════════════════════════════════════════════ */

.hg-criteria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sys-spacing-lg);
}

.hg-criteria-card {
    padding: var(--sys-spacing-xl);
    background-color: var(--comp-surface-base);
    border: 1px solid var(--comp-border-color);
    border-radius: var(--sys-radius-lg);
    box-shadow: var(--card-shadow);
    width: 100%;
    transition: border-color var(--comp-transition-fast),
                box-shadow var(--comp-transition-fast),
                transform var(--comp-transition-fast);
}

.hg-criteria-card:hover {
    border-color: var(--sys-color-primary);
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-5px);
}

.hg-criteria-card:focus-visible {
    outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

.hg-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: var(--sys-spacing-lg);
    background-color: var(--sys-color-neutral-100);
    border-radius: var(--sys-radius-md);
    color: var(--sys-color-primary);
    box-shadow: var(--card-icon-shadow);
}

.hg-card-icon .material-icons {
    font-size: 28px;
}

.hg-card-highlight {
    display: inline-block;
    padding: var(--sys-spacing-xs) var(--sys-spacing-sm);
    background-color: var(--sys-color-neutral-75);
    border: 1px solid var(--comp-border-color);
    border-radius: var(--sys-radius-xl);
    color: var(--sys-color-neutral-800);
   
}

/* ═══════════════════════════════════════════════════
   5. COMPARISON TABLE
   ═══════════════════════════════════════════════════ */

.hg-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--comp-border-color);
    border-radius: var(--sys-radius-lg);
    box-shadow: var(--card-shadow);
}

.hg-comparison-table {
    width: 100%;
    min-width: 800px;
    background: var(--comp-surface-base);
    border-collapse: collapse;
}

.hg-comparison-table th {
    padding: var(--sys-spacing-md);
    background-color: var(--sys-color-neutral-75);
    border-bottom: 1px solid var(--comp-border-color);
    text-align: center;
    color: var(--sys-color-neutral-900);
}

.hg-th-criteria {
    width: 180px;
    text-align: right !important;
}

.hg-recommended-col {
    background: linear-gradient(
        180deg,
        rgba(40, 53, 147, 0.06) 0%,
        rgba(40, 53, 147, 0.1) 100%
    ) !important;
    color: var(--sys-color-primary-dark);
}

.hg-comparison-table td {
    padding: var(--sys-spacing-md);
    border-bottom: 1px solid var(--comp-border-color);
 
    color: var(--sys-color-neutral-800);
    text-align: center;
}

.hg-comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.hg-comparison-table tbody tr:nth-child(even) {
    background-color: var(--sys-color-neutral-100);
}

.hg-comparison-table tbody tr:hover {
    background-color: var(--sys-color-neutral-75);
}

.hg-criteria-cell {
    background-color: var(--sys-color-neutral-75);
    color: var(--sys-color-neutral-900);
    font-weight: var(--weight-semibold);
    text-align: right !important;
}

.hg-recommended-row {
    background-color: rgba(40, 53, 147, 0.04);
}

.hg-status {
    font-weight: var(--weight-semibold);
}

.hg-status-yes {
    color: var(--sys-color-success-500);
}

.hg-status-partial {
    color: var(--sys-color-secondary);
}

.hg-status-unknown {
    color: var(--sys-color-neutral-800);
}

.hg-status-excellent {
    color: var(--sys-color-primary);
    font-weight: var(--weight-bold);
}

/* ═══════════════════════════════════════════════════
   6. RECOMMENDED SECTION
   ═══════════════════════════════════════════════════ */

.hg-recommended-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--sys-spacing-2xl);
}

.hg-recommended-text {
    text-align: right;
}

.hg-features-list {
    margin: var(--sys-spacing-xl) 0;
    padding: 0;
    list-style: none;
}

.hg-features-list li {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sys-spacing-sm);
    margin-bottom: var(--sys-spacing-md);
    color: var(--sys-color-neutral-800);
}

.hg-features-list .material-icons {
    color: var(--sys-color-success-500);
    font-size: 20px;
    order: 2;
}

.hg-features-list li span {
    order: 1;
}

.hg-recommended-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hg-award-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 180px;
    height: 180px;
    background: linear-gradient(
        135deg,
        var(--sys-color-secondary) 0%,
        var(--sys-color-secondary-dark) 100%
    );
    border-radius: var(--sys-radius-circle);
    box-shadow: 0 0 0 20px rgba(230, 81, 0, 0.1);
    color: var(--sys-color-neutral-0);
}

.hg-award-icon .material-icons {
    font-size: 80px;
}

/* ═══════════════════════════════════════════════════
   7. STEPS SECTION
   ═══════════════════════════════════════════════════ */

.hg-steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--sys-spacing-lg);
}

.hg-step {
    padding: var(--sys-spacing-xl);
    background-color: var(--comp-surface-base);
    border: 1px solid var(--comp-border-color);
    border-radius: var(--sys-radius-lg);
    box-shadow: var(--card-shadow);
    width: 100%;
    text-align: center;
    transition: transform var(--comp-transition-fast),
                box-shadow var(--comp-transition-fast);
}

.hg-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow-hover);
}

.hg-step:focus-visible {
    outline: var(--focus-ring-width) var(--focus-ring-style) var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

.hg-step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin: 0 auto var(--sys-spacing-lg) auto;
    background: linear-gradient(
        135deg,
        var(--sys-color-primary) 0%,
        var(--sys-color-primary-dark) 100%
    );
    border-radius: var(--sys-radius-circle);
    color: var(--sys-color-neutral-0);
    font-weight: var(--weight-bold);
}

/* ═══════════════════════════════════════════════════
   8. FOOTER
   ═══════════════════════════════════════════════════ */

.hg-footer {
    margin-top: var(--sys-spacing-3xl);
    padding: var(--sys-spacing-2xl) 0 var(--sys-spacing-xl);
    background-color: var(--sys-color-neutral-900);
    border-radius: var(--sys-radius-lg) var(--sys-radius-lg) 0 0;
    color: var(--sys-color-neutral-200);
}

.hg-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--sys-spacing-lg);
}

.hg-footer-main {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--sys-spacing-2xl);
    margin-bottom: var(--sys-spacing-2xl);
}

.hg-footer-brand .hg-logo-text {
    color: var(--sys-color-neutral-0);
}

.hg-footer-brand .hg-footer-description {
    margin-top: var(--sys-spacing-md);
}

.hg-footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sys-spacing-xl);
}

.hg-footer-links h4 {
    margin-bottom: var(--sys-spacing-md);
    color: var(--sys-color-neutral-0);
}

.hg-footer-links ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.hg-footer-links li {
    margin-bottom: var(--sys-spacing-sm);
}

.hg-footer-links a {
    color: var(--sys-color-neutral-200);
    text-decoration: none;
    transition: color var(--comp-transition-fast);
}

.hg-footer-links a:hover {
    color: var(--sys-color-neutral-0);
}

.hg-footer-links a:focus-visible {
    outline: var(--focus-ring-width) var(--focus-ring-style) var(--sys-color-neutral-0);
    outline-offset: var(--focus-ring-offset);
}

.hg-footer-bottom {
    padding-top: var(--sys-spacing-xl);
    border-top: 1px solid var(--sys-color-neutral-800);
    text-align: center;
  
}

/* ═══════════════════════════════════════════════════
   9. RESPONSIVE
   ═══════════════════════════════════════════════════ */

@media (max-width: 992px) {
    .hg-hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hg-hero-content,
    .hg-recommended-text {
        text-align: center;
    }

    .hg-hero-visual {
            font-size: 170px;
        grid-row: 1;
        margin-bottom: var(--sys-spacing-xl);
    }

    .hg-hero-subtitle {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .hg-recommended-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hg-recommended-visual {
        grid-row: 1;
        margin-bottom: var(--sys-spacing-2xl);
    }

    .hg-features-list {
        display: inline-block;
        text-align: center;
    }

    .hg-features-list li {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hg-container {
        padding: 0 var(--sys-spacing-md);
    }

    .hg-section {
        padding: var(--sys-spacing-2xl) 0;
    }

    /* دکمه‌های هیرو — کنار هم بدون دوخطی */
    .hg-hero-actions {
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: var(--sys-spacing-sm);
    }

    .hg-hero-actions .zbtn {
        flex: 1;
        min-width: 0;
        padding: var(--sys-spacing-sm) var(--sys-spacing-md);
        /*font-size: var(--size-small);*/
        white-space: nowrap;
    }

    /* جدول — اسکرول افقی */
    .hg-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Recommended — کارت کامل */
    .hg-recommended-text {
        padding: var(--sys-spacing-lg);
        background-color: var(--comp-surface-base);
        border: 1px solid var(--comp-border-color);
        border-radius: var(--sys-radius-lg);
        box-shadow: var(--card-shadow);
    }

    .hg-features-list li {
        text-align: justify;
    }

    .hg-nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        z-index: 999;
        flex-direction: column;
        align-items: center;
        padding: var(--sys-spacing-xl);
        background-color: var(--comp-surface-base);
        box-shadow: var(--card-shadow);
        transform: translateY(-150%);
        visibility: hidden;
        transition: transform var(--comp-transition-fast),
                    visibility 0s var(--comp-transition-fast);
    }

    .hg-nav-menu.hg-nav-active {
        transform: translateY(0);
        visibility: visible;
        transition: transform var(--comp-transition-fast),
                    visibility 0s 0s;
    }

    .hg-nav-toggle {
        display: flex;
    }

    .hg-nav-toggle.hg-nav-toggle-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hg-nav-toggle.hg-nav-toggle-active span:nth-child(2) {
        opacity: 0;
    }

    .hg-nav-toggle.hg-nav-toggle-active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hg-criteria-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: var(--sys-spacing-md);
    }

    .hg-footer-main,
    .hg-footer-links {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hg-footer-main .hg-footer-brand {
        margin: 0 auto;
    }

    .hg-comparison-table th,
    .hg-comparison-table td {
        padding: var(--sys-spacing-sm);
    }
}

@media (max-width: 480px) {
    .hg-hero-actions {
        flex-direction: row;
        flex-wrap: nowrap;
    }

    .hg-hero-actions .zbtn {
        width: auto;
        max-width: none;
    }

    .hg-award-icon {
        width: 140px;
        height: 140px;
    }

    .hg-step {
        padding: var(--sys-spacing-lg) var(--sys-spacing-md);
    }
}