/* ================================================================
   HUB PAGES - Shared Styles
   Services, Portfolio, Technologies, Industries, About, Process
   Requires: design-system.css
   ================================================================ */

/* ── HERO ──────────────────────────────────────────────────── */
.hub-hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #0a1628 0%, #162544 50%, #1a3a5c 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hub-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.hub-hero .container {
    position: relative;
    z-index: 1;
}

.hub-hero__title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    max-width: 700px;
}

.hub-hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.65;
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 0 28px;
}

.hub-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
    white-space: nowrap;
}

.trust-badge__icon {
    font-size: 0.85rem;
}

.hub-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


/* ── BREADCRUMBS ───────────────────────────────────────────── */
.breadcrumb-bar {
    margin-bottom: 28px;
}

.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0;
    font-size: 0.8rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li + li::before {
    content: '/';
    margin: 0 8px;
    color: rgba(255,255,255,0.35);
}

.breadcrumb-list a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-list a:hover {
    color: #fff;
}

.breadcrumb-list li:last-child span {
    color: rgba(255,255,255,0.9);
    font-weight: 600;
}


/* ── CONTAINER ─────────────────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ── SECTIONS ──────────────────────────────────────────────── */
.hub-section {
    padding: 72px 0;
}

.hub-section:nth-child(even) {
    background: #f8f9fb;
}

.hub-section__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
    color: #0a1628;
}

.hub-section__desc {
    font-size: 1rem;
    color: #5a6678;
    margin: 0 0 36px;
    max-width: 560px;
    line-height: 1.6;
}

.hub-section__link {
    text-align: center;
    margin-top: 36px;
}

.hub-section__link a {
    font-weight: 600;
    font-size: 0.95rem;
    color: #2563eb;
    text-decoration: none;
    transition: gap 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hub-section__link a:hover {
    gap: 8px;
}


/* ── FILTER TABS ───────────────────────────────────────────── */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    padding-bottom: 4px;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border: 1px solid #d4d9e1;
    border-radius: 100px;
    background: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    color: #3d4a5c;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-tab:hover {
    border-color: #2563eb;
    color: #2563eb;
    background: #eff4ff;
}

.filter-tab.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

.filter-tab__count {
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(0,0,0,0.06);
    padding: 2px 7px;
    border-radius: 100px;
    min-width: 20px;
    text-align: center;
}

.filter-tab.active .filter-tab__count {
    background: rgba(255,255,255,0.2);
}

.filter-empty {
    text-align: center;
    padding: 48px 24px;
    color: #5a6678;
    font-size: 0.95rem;
}

.filter-empty a {
    color: #2563eb;
    font-weight: 600;
}


/* ── SERVICE CARDS GRID ────────────────────────────────────── */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.service-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    background: #fff;
    border: 1px solid #e2e6ed;
    border-radius: 12px;
    text-decoration: none;
    color: #0a1628;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 32px rgba(37,99,235,0.1);
    transform: translateY(-3px);
}

.service-card.hidden {
    display: none;
}

.service-card__icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff4ff;
    border-radius: 10px;
    color: #2563eb;
    font-weight: 700;
}

.service-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.35;
    color: #0a1628;
}

.service-card__desc {
    font-size: 0.85rem;
    color: #5a6678;
    line-height: 1.55;
    margin: 0 0 16px;
    flex-grow: 1;
}

.service-card__meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.service-card__price,
.service-card__timeline {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    background: #f0f4f8;
    color: #3d4a5c;
}

.service-card__price {
    background: #ecfdf5;
    color: #047857;
}

.service-card__arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 1.2rem;
    color: #d4d9e1;
    transition: all 0.25s;
}

.service-card:hover .service-card__arrow {
    color: #2563eb;
    transform: translateX(4px);
}


/* ── INDUSTRY PILLS ────────────────────────────────────────── */
.industry-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.industry-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid #e2e6ed;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #3d4a5c;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.industry-pill:hover {
    background: #eff4ff;
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
}

.industry-pill__icon {
    font-size: 1.05rem;
}


/* ── TECH GRID ─────────────────────────────────────────────── */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
}

.tech-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 16px;
    background: #fff;
    border: 1px solid #e2e6ed;
    border-radius: 12px;
    text-decoration: none;
    color: #0a1628;
    transition: all 0.2s;
    text-align: center;
}

.tech-card:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 16px rgba(37,99,235,0.08);
    transform: translateY(-2px);
}

.tech-card__icon {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
}

.tech-card__icon-placeholder {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff4ff;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    color: #2563eb;
    text-transform: uppercase;
}

.tech-card__name {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.3;
}


/* ── REVIEW GRID ───────────────────────────────────────────── */
.review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.review-card {
    padding: 28px 24px;
    background: #fff;
    border: 1px solid #e2e6ed;
    border-radius: 12px;
    position: relative;
}

.review-card__stars {
    color: #f59e0b;
    font-size: 1.05rem;
    letter-spacing: 2px;
    margin-bottom: 14px;
}

.review-card__text {
    font-size: 0.92rem;
    line-height: 1.65;
    color: #3d4a5c;
    margin: 0 0 18px;
    font-style: normal;
    padding: 0;
    border: none;
}

.review-card__author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.review-card__author strong {
    font-size: 0.9rem;
    color: #0a1628;
}

.review-card__author span {
    font-size: 0.78rem;
    color: #7a8599;
}

.review-card__source {
    margin-top: 8px;
    font-size: 0.72rem;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/* ── PORTFOLIO GRID ────────────────────────────────────────── */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.portfolio-card {
    background: #fff;
    border: 1px solid #e2e6ed;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #0a1628;
    transition: all 0.25s;
}

.portfolio-card:hover {
    border-color: #2563eb;
    box-shadow: 0 12px 40px rgba(37,99,235,0.1);
    transform: translateY(-4px);
}

.portfolio-card__img {
    height: 200px;
    overflow: hidden;
    background: #f0f4f8;
}

.portfolio-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.portfolio-card:hover .portfolio-card__img img {
    transform: scale(1.04);
}

.portfolio-card__img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 900;
    color: #cbd5e1;
}

.portfolio-card__body {
    padding: 24px;
}

.portfolio-card__tags {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2563eb;
    margin-bottom: 8px;
    display: block;
}

.portfolio-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.35;
}

.portfolio-card__excerpt {
    font-size: 0.85rem;
    color: #5a6678;
    line-height: 1.55;
    margin: 0;
}


/* ── FAQ ACCORDION ─────────────────────────────────────────── */
.faq-accordion {
    max-width: 780px;
}

.faq-item {
    border-bottom: 1px solid #e2e6ed;
}

.faq-item:first-child {
    border-top: 1px solid #e2e6ed;
}

.faq-item__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #0a1628;
    text-align: left;
    line-height: 1.45;
    transition: color 0.2s;
}

.faq-item__question:hover {
    color: #2563eb;
}

.faq-item__chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    color: #9ca3af;
}

.faq-item__question[aria-expanded="true"] .faq-item__chevron {
    transform: rotate(180deg);
    color: #2563eb;
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item__answer--open {
    max-height: 500px;
}

.faq-item__answer p {
    padding: 0 0 20px;
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: #5a6678;
}


/* ── CTA BLOCK ─────────────────────────────────────────────── */
.hub-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #0a1628 0%, #162544 50%, #1a3a5c 100%);
    color: #fff;
    text-align: center;
}

.hub-cta__title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

.hub-cta__desc {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.75);
    margin: 0 0 32px;
}

.hub-cta__buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 28px;
}

.hub-cta__trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    font-weight: 600;
}


/* ── BUTTONS ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}

.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.08);
}

.btn-lg {
    padding: 14px 36px;
    font-size: 1rem;
}

/* Dark bg secondary button override */
.hub-hero .btn-secondary,
.hub-cta .btn-secondary {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

/* Light bg buttons */
.hub-section .btn-primary {
    background: #2563eb;
    color: #fff;
}

.hub-section .btn-secondary {
    color: #2563eb;
    border-color: #2563eb;
}

.hub-section .btn-secondary:hover {
    background: #eff4ff;
}


/* ── INDUSTRY CARDS ─────────────────────────────────────────── */
.industry-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.industry-card {
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    background: #fff;
    border: 1px solid #e2e6ed;
    border-radius: 12px;
    text-decoration: none;
    color: #0a1628;
    transition: all 0.25s;
}

.industry-card:hover {
    border-color: #2563eb;
    box-shadow: 0 12px 40px rgba(37,99,235,0.1);
    transform: translateY(-4px);
}

.industry-card__icon {
    font-size: 2rem;
    margin-bottom: 16px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff4ff;
    border-radius: 12px;
}

.industry-card__title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 8px;
}

.industry-card__desc {
    font-size: 0.88rem;
    color: #5a6678;
    line-height: 1.6;
    margin: 0 0 16px;
    flex-grow: 1;
}

.industry-card__stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid #f0f4f8;
    margin-bottom: 12px;
}

.industry-card__stat strong {
    font-size: 1.6rem;
    font-weight: 900;
    color: #2563eb;
}

.industry-card__stat span {
    font-size: 0.78rem;
    color: #7a8599;
}

.industry-card__services {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.industry-card__service-tag {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 10px;
    background: #f0f4f8;
    border-radius: 6px;
    color: #3d4a5c;
}

.industry-card__link {
    font-size: 0.88rem;
    font-weight: 600;
    color: #2563eb;
    margin-top: auto;
}

.industry-card:hover .industry-card__link {
    text-decoration: underline;
}


/* ── TECH CARD LARGE VARIANT ───────────────────────────────── */
.tech-grid--large {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.tech-card--large {
    padding: 28px 20px;
    gap: 12px;
}

.tech-card--large .tech-card__icon,
.tech-card--large .tech-card__icon-placeholder {
    width: 56px;
    height: 56px;
    font-size: 1.2rem;
}

.tech-card__desc {
    font-size: 0.72rem;
    color: #7a8599;
    line-height: 1.4;
}


/* ── PORTFOLIO FULL GRID ───────────────────────────────────── */
.portfolio-grid--full {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.portfolio-card__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.metric-chip {
    font-size: 0.72rem;
    padding: 4px 10px;
    background: #ecfdf5;
    color: #047857;
    border-radius: 6px;
    font-weight: 500;
}

.metric-chip strong {
    font-weight: 700;
}


/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .hub-hero {
        padding: 60px 0 48px;
    }

    .hub-section {
        padding: 48px 0;
    }

    .filter-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 8px;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .service-cards-grid {
        grid-template-columns: 1fr;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .tech-grid--large {
        grid-template-columns: repeat(3, 1fr);
    }

    .industry-cards-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-grid--full {
        grid-template-columns: 1fr;
    }

    .hub-cta {
        padding: 56px 0;
    }

    .hub-cta__trust {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .hub-hero__badges {
        flex-direction: column;
        gap: 6px;
    }

    .trust-badge {
        width: fit-content;
    }

    .hub-hero__cta {
        flex-direction: column;
    }

    .hub-hero__cta .btn {
        width: 100%;
    }

    .hub-cta__buttons {
        flex-direction: column;
        align-items: center;
    }

    .hub-cta__buttons .btn {
        width: 100%;
        max-width: 320px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
