/* ═══════════════════════════════════════════════════════════════════════════
   SERVICES PAGE STYLES
   Styles specific to the Services/Offerings page
   Uses CSS variables from styles.css
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICES HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */
.services-hero {
    padding: 8rem 0 2rem;
    text-align: center;
}

.services-hero .hero-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-sm);
}

.services-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.services-hero .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 300;
}

/* ═══════════════════════════════════════════════════════════════════════════
   "NOT SURE?" CALLOUT
   ═══════════════════════════════════════════════════════════════════════════ */
.start-here-section {
    padding: 0 0 1rem;
}

.start-here {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.06) 0%, rgba(0, 212, 255, 0.02) 100%);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.start-here-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent-cyan);
    font-weight: 600;
}

.start-here-content {
    flex: 1;
}

.start-here-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.start-here-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.start-here .btn {
    flex-shrink: 0;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROBLEM SELECTOR (Filter Tabs)
   ═══════════════════════════════════════════════════════════════════════════ */
.problem-selector {
    padding: 1rem 0 3rem;
}

.problem-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.problem-tab {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-medium);
    white-space: nowrap;
}

.problem-tab:hover {
    border-color: var(--border-glow);
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.problem-tab.active {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.08);
}

.problem-tab .tab-icon {
    font-size: 1rem;
}

.problem-tab .tab-count {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
}

.problem-tab.active .tab-count {
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.15);
}

.filter-hint {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICE CATEGORIES
   ═══════════════════════════════════════════════════════════════════════════ */
.services-section {
    padding: 2rem 0;
}

.category {
    margin-bottom: 5rem;
}

.category.hidden {
    display: none;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.category-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
}

.category-icon.risk      { background: rgba(0, 212, 255, 0.15); color: var(--accent-cyan); }
.category-icon.build     { background: rgba(0, 255, 136, 0.15); color: var(--accent-green); }
.category-icon.detect    { background: rgba(255, 107, 53, 0.15); color: var(--accent-orange); }
.category-icon.test      { background: rgba(168, 85, 247, 0.15); color: var(--accent-purple); }
.category-icon.expertise { background: rgba(255, 208, 0, 0.15); color: var(--accent-yellow); }

.category-title {
    /* font-size: 1.5rem; */
    font-size: 1.8rem;
    font-weight: 600;
}

.category-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-left: auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICE CARDS
   ═══════════════════════════════════════════════════════════════════════════ */
.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all var(--transition-medium);
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-glow);
    transform: translateY(-2px);
}

.service-card.popular {
    border-color: var(--accent-cyan);
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
}

.service-card.popular::after {
    content: 'MOST POPULAR';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent-cyan);
    background: rgba(0, 212, 255, 0.15);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

.service-card.quick-start::after {
    content: 'QUICK START';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent-green);
    background: rgba(0, 255, 136, 0.15);
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

.service-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    font-size: 1.25rem;
}

.service-title {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.service-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.service-features li::before {
    content: '>';
    color: var(--accent-cyan);
    font-family: var(--font-mono);
    font-weight: bold;
    margin-top: 0.1em;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    margin-top: auto;
}

.service-price {
    color: var(--text-muted);
}

.service-price strong {
    color: var(--text-primary);
    font-weight: 600;
}

.service-engagement {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.engagement-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.engagement-dot.project    { background: var(--accent-cyan); }
.engagement-dot.retainer   { background: var(--accent-green); }
.engagement-dot.assessment { background: var(--accent-purple); }

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    align-self: flex-start;
}

.service-cta:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

/* ═══════════════════════════════════════════════════════════════════════════
   ENGAGEMENT OPTIONS (sub-options within services)
   ═══════════════════════════════════════════════════════════════════════════ */
.engagement-options {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.engagement-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.engagement-option .opt-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-cyan);
}

/* ═══════════════════════════════════════════════════════════════════════════
   SITUATION GUIDE TABLE
   ═══════════════════════════════════════════════════════════════════════════ */
.guide-section {
    padding: 3rem 0 2rem;
}

.guide-heading {
    text-align: center;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.guide-subheading {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2.5rem;
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.guide-table th {
    text-align: left;
    padding: 1rem 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.guide-table td {
    padding: 1rem 1.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-color);
}

.guide-table tr:last-child td {
    border-bottom: none;
}

.guide-table tr:hover td {
    background: var(--bg-card-hover);
}

.guide-table td:first-child {
    color: var(--text-secondary);
    font-style: italic;
}

.guide-table td:last-child {
    font-weight: 500;
}

.guide-link {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.guide-link:hover {
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   STICKY CTA BAR
   ═══════════════════════════════════════════════════════════════════════════ */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 0.75rem 2rem;
    background: rgba(10, 10, 15, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    transform: translateY(100%);
    transition: transform var(--transition-medium);
}

.sticky-cta.visible {
    transform: translateY(0);
}

.sticky-cta-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.sticky-cta .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .problem-tabs {
        gap: 0.4rem;
    }

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

@media (max-width: 768px) {
    .services-hero {
        padding: 6rem 0 2rem;
    }

    .category-header {
        flex-wrap: wrap;
    }

    .category-subtitle {
        margin-left: 0;
        width: 100%;
        margin-top: 0.5rem;
    }

    .start-here {
        flex-direction: column;
        text-align: center;
    }

    .start-here .btn {
        align-self: center;
    }

    .problem-tabs {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .guide-table {
        font-size: 0.85rem;
    }

    .guide-table th,
    .guide-table td {
        padding: 0.75rem 1rem;
    }

    .sticky-cta-text {
        display: none;
    }

    .service-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .services-hero h1 {
        font-size: 2rem;
    }

    .services-hero .hero-subtitle {
        font-size: 1rem;
    }

    .problem-tab {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .category-title {
        font-size: 1.25rem;
    }

    .service-title {
        font-size: 1rem;
    }

    .engagement-options {
        flex-direction: column;
        gap: 0.5rem;
    }

    .service-meta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .sticky-cta {
        transition: none;
    }

    .service-card,
    .problem-tab,
    .service-cta {
        transition: none;
    }
}
