/* ============================================
   iDeskHubs Homepage Styles
   Clean redesign — audience-segmented layout
   ============================================ */

/* --- Enhanced Navigation Dropdown --- */

.dropdown-enhanced {
    min-width: 400px;
    padding: 0;
}

.dropdown-section {
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.dropdown-section:last-of-type {
    border-bottom: none;
}

.dropdown-label {
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.dropdown-item-enhanced {
    display: flex !important;
    align-items: center;
    gap: 12px;
    padding: 12px 20px !important;
    transition: all 0.2s;
}

.dropdown-item-enhanced:hover {
    background: #f8fafc;
    padding-left: 24px !important;
}

.dropdown-item-enhanced i {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 8px;
    font-size: 14px;
    flex-shrink: 0;
}

.dropdown-item-enhanced .item-content {
    flex: 1;
}

.dropdown-item-enhanced strong {
    display: block;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 2px;
}

.dropdown-item-enhanced small {
    display: block;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.dropdown-footer {
    display: block;
    padding: 12px 20px;
    background: #f8fafc;
    color: #667eea !important;
    font-weight: 600;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
}

.dropdown-footer:hover {
    background: #667eea;
    color: white !important;
}

.nav-client-area {
    background: #f3f4f6;
    color: #1f2937;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.nav-client-area:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* --- Nav Brand Logo --- */

.nav-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
}

.nav-logo {
    height: 80px;
    width: auto;
    display: block;
}

/* --- Hero Section (split layout) --- */

.hero-split {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 48px;
    max-width: 1200px;
    padding: 0 24px;
    width: 100%;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 560px;
}

.hero-description {
    font-size: 1.15rem;
    max-width: 480px;
    margin-left: 0;
    margin-right: 0;
}

.hero-actions {
    margin-bottom: 0;
    justify-content: flex-start;
}

.hero-visual {
    flex: 1;
    max-width: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25);
    object-fit: cover;
}

.hero .btn-secondary {
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
    color: white;
}

/* --- Trust Bar (minimal) --- */

.trust-bar {
    background: white;
    padding: 32px 0;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.trust-bar-title {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-logo-item {
    font-weight: 600;
    font-size: 15px;
    color: #94a3b8;
    transition: color 0.3s;
    letter-spacing: 0.3px;
}

.trust-logo-item:hover {
    color: #475569;
}

/* --- Audience Segment Sections --- */

.segment-section {
    padding: 96px 0;
    background: white;
}

.segment-section.segment-alt {
    background: #f8fafc;
}

.segment-intro {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 56px;
}

.segment-intro-reverse {
    flex-direction: row-reverse;
}

.segment-intro .segment-header {
    text-align: left;
    margin-bottom: 0;
    max-width: none;
    flex: 1;
}

.segment-visual {
    flex: 0 0 280px;
    max-width: 280px;
}

.segment-visual img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.segment-header {
    text-align: center;
    margin-bottom: 56px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.segment-label {
    font-size: 13px;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.segment-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 16px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.2;
}

.segment-description {
    font-size: 1.1rem;
    color: #64748b;
    line-height: 1.7;
}

.segment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.segment-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px 28px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.segment-alt .segment-card {
    background: white;
}

.segment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: #667eea;
}

.segment-card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 22px;
    color: white;
}

.segment-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.segment-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    flex: 1;
}

.segment-card-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #667eea;
    transition: transform 0.2s;
}

.segment-card:hover .segment-card-link {
    transform: translateX(4px);
}

/* --- Stats Section --- */

.stats-section {
    padding: 64px 0;
    background: #0f172a;
}

.stats-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 64px;
}

.stat-block {
    text-align: center;
}

.stat-block .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-block .stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: #334155;
}

/* --- CTA Section Overrides --- */

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 32px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    font-size: 18px;
    padding: 18px 40px;
}

.btn-cta-secondary {
    font-size: 18px;
    padding: 18px 40px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-cta-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* --- Responsive --- */

@media (max-width: 1024px) {
    .hero-split {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
        max-width: 600px;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        max-width: 400px;
    }

    .segment-intro,
    .segment-intro-reverse {
        flex-direction: column;
        text-align: center;
    }

    .segment-intro .segment-header {
        text-align: center;
    }

    .segment-visual {
        flex: 0 0 auto;
        max-width: 360px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .dropdown-enhanced {
        min-width: auto;
        width: 100%;
    }

    .trust-logos {
        gap: 20px;
    }

    .trust-logo-item {
        font-size: 14px;
    }

    .segment-section {
        padding: 64px 0;
    }

    .segment-title {
        font-size: 2rem;
    }

    .segment-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .stats-row {
        flex-direction: column;
        gap: 32px;
    }

    .stat-divider {
        width: 48px;
        height: 1px;
    }

    .stat-block .stat-number {
        font-size: 2.5rem;
    }

    .nav-logo {
        height: 56px;
    }

    .hero-visual {
        max-width: 320px;
    }

    .segment-visual {
        max-width: 280px;
    }

    .segment-visual img {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .trust-logos {
        flex-direction: column;
        gap: 12px;
    }

    .segment-title {
        font-size: 1.75rem;
    }

    .segment-card {
        padding: 24px 20px;
    }

    .hero-visual {
        max-width: 260px;
    }

    .segment-visual {
        max-width: 240px;
    }
}
