/* ============================================
   Services Page Styles
   ============================================ */

.page-content {
    padding-top: 60px;
}

.page-hero {
    padding: var(--spacing-2xl) 0;
    border-bottom: 1px solid var(--color-border);
}

.page-hero h1 {
    margin-bottom: var(--spacing-sm);
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 700px;
    line-height: 1.6;
}

.back-link {
    display: inline-block;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-md);
}

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

/* Value Prop */
.value-prop-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.value-prop {
    max-width: 800px;
    padding: var(--spacing-xl);
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
}

.value-prop h2 {
    margin-bottom: var(--spacing-md);
}

.value-prop p {
    color: var(--color-text-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.value-prop-image img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .value-prop-grid {
        grid-template-columns: 1fr;
    }

    .value-prop-image {
        order: -1;
    }
}

/* Services Detail Section */
.services-detail-section {
    background: var(--color-bg);
}

.services-detail-section h2 {
    margin-bottom: var(--spacing-xl);
}

/* Individual Service Detail */
.service-detail {
    padding: var(--spacing-2xl) 0;
    border-bottom: 1px solid var(--color-border);
}

.service-detail:last-child {
    border-bottom: none;
}

.service-detail-header {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-md);
    margin-bottom: 0;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.service-detail-header:hover {
    opacity: 0.8;
}

.service-detail-header:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: var(--radius-sm);
}

.service-toggle {
    margin-left: auto;
    width: 24px;
    height: 24px;
    position: relative;
    flex-shrink: 0;
}

.service-toggle::before,
.service-toggle::after {
    content: '';
    position: absolute;
    background: var(--color-text-muted);
    transition: transform 0.3s ease;
}

.service-toggle::before {
    width: 14px;
    height: 2px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.service-toggle::after {
    width: 2px;
    height: 14px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.service-detail.expanded .service-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.service-detail.expanded .service-detail-header {
    margin-bottom: var(--spacing-lg);
}

.service-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-light);
}

.service-detail h3 {
    font-size: 1.75rem;
    margin: 0;
}

.service-detail-content {
    max-width: 800px;
    padding-left: calc(0.875rem + var(--spacing-md) + 1.5rem);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.service-detail.expanded .service-detail-content {
    max-height: 1000px;
    opacity: 1;
    margin-top: var(--spacing-lg);
}

.service-lead {
    font-size: 1.25rem;
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.service-detail-content > p {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--spacing-lg);
}

/* Service Offerings */
.service-offerings {
    margin-bottom: var(--spacing-lg);
}

.service-offerings h4,
.service-ideal h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
}

.service-offerings ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.service-offerings li {
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.service-offerings li:last-child {
    border-bottom: none;
}

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

/* Ideal For */
.service-ideal {
    padding: var(--spacing-md);
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
}

.service-ideal p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* Showcase Section */
.showcase-section {
    background: var(--color-bg-alt);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.showcase-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    border: 1px solid var(--color-border);
    transition: box-shadow 0.3s ease;
}

.showcase-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.showcase-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.showcase-icon.healthcare {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.showcase-icon.fieldtech {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.showcase-badges {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.badge {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
}

.badge.hipaa {
    background: #e8f5e9;
    color: #2e7d32;
}

.badge.enterprise {
    background: #e3f2fd;
    color: #1565c0;
}

.badge.integration {
    background: #fff3e0;
    color: #e65100;
}

.badge.mobile {
    background: #fce4ec;
    color: #c2185b;
}

.showcase-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.showcase-tagline {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.showcase-description {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.showcase-tech {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-md);
}

.showcase-tech span {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 4px 10px;
    background: var(--color-bg-alt);
    border-radius: 20px;
    color: var(--color-text);
}

.showcase-features {
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-md);
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
}

.showcase-features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.showcase-features li {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    padding: var(--spacing-xs) 0;
    padding-left: 1.25rem;
    position: relative;
}

.showcase-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4caf50;
    font-weight: 600;
}

/* Process Section */
.process-section {
    background: var(--color-bg);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.process-step {
    padding: var(--spacing-lg);
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--color-text);
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50%;
    margin-bottom: var(--spacing-sm);
}

.process-step h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
}

.process-step p {
    color: var(--color-text-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin: 0;
}

/* CTA Section */
.cta-section {
    background: var(--color-bg);
}

.cta-block {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: var(--spacing-2xl);
    background: var(--color-bg-dark);
    border-radius: var(--radius-lg);
    color: white;
}

.cta-block h2 {
    color: white;
    margin-bottom: var(--spacing-sm);
}

.cta-block p {
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.cta-block .btn-primary {
    background: white;
    color: var(--color-text);
}

.cta-block .btn-primary:hover {
    background: var(--color-bg-alt);
}

/* Active nav state */
.nav-links a.active {
    color: var(--color-text);
}

/* Responsive */
@media (max-width: 768px) {
    .service-detail-header {
        align-items: center;
        gap: var(--spacing-sm);
    }

    .service-detail-header h3 {
        flex: 1;
    }

    .service-detail-content {
        padding-left: 0;
    }

    .service-detail h3 {
        font-size: 1.5rem;
    }

    .value-prop {
        padding: var(--spacing-md);
    }

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

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

    .showcase-card {
        padding: var(--spacing-md);
    }

    .showcase-header {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
}
