/* ============================================
   SERVICES PAGE - ASH SYSTEMS
   ============================================ */

/* ========== PAGE HEADER ========== */
.page-header {
    background: linear-gradient(135deg, #EEF2FF 0%, #F9FAFB 100%);
    padding: 8rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header .badge {
    display: inline-block;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    color: var(--primary-blue);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    border: 1px solid #C7D2FE;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.page-header .lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
}

/* ========== SERVICES DETAIL SECTION ========== */
.services-detail {
    padding: 4rem 0;
}

/* ========== SERVICE DETAIL CARD ========== */
.service-detail-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-2xl);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.4s ease;
    scroll-margin-top: 100px;
}

.service-detail-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-blue);
}

/* ========== SERVICE DETAIL HEADER ========== */
.service-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--gray-100);
}

.service-icon-large {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.service-detail-card:hover .service-icon-large {
    transform: scale(1.05);
}

.service-icon-large svg {
    width: 48px;
    height: 48px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

.service-detail-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-family: var(--font-display);
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.service-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* ========== SERVICE DETAIL BODY ========== */
.service-detail-body {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-detail-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-family: var(--font-display);
    color: var(--primary-dark);
}

.service-detail-section p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* ========== USE CASE GRID ========== */
.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.use-case-item {
    padding: 2rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.use-case-item:hover {
    background: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-blue);
}

.use-case-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: white;
    border-radius: var(--radius-lg);
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-md);
}

.use-case-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-blue);
    stroke-width: 2;
    fill: none;
}

.use-case-item strong {
    display: block;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.use-case-item p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ========== CAPABILITY LIST ========== */
.capability-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.capability-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    color: var(--gray-700);
    transition: all 0.3s ease;
}

.capability-list li:hover {
    background: white;
    border-color: var(--primary-blue);
    transform: translateX(8px);
    box-shadow: var(--shadow-md);
}

.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--primary-blue);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ========== PRIMARY BUTTON ========== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-light) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    color: white;
}

.btn-primary::after {
    content: '→';
    transition: transform 0.3s ease;
}

.btn-primary:hover::after {
    transform: translateX(4px);
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-cyan) 100%);
    padding: 5rem 0;
    margin: 6rem 0 0;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    color: white;
}

.cta-content .lead {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.95);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    color: var(--primary-blue);
    text-decoration: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-xl);
}

.cta-buttons .cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.cta-buttons .cta.secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
    backdrop-filter: blur(10px);
}

.cta-buttons .cta.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
    .page-header {
        padding: 6rem 0 3rem;
    }

    .page-header h1 {
        font-size: 3rem;
    }

    .service-detail-card {
        padding: 2.5rem;
    }

    .service-detail-header {
        gap: 1.5rem;
    }

    .service-icon-large {
        width: 70px;
        height: 70px;
    }

    .service-icon-large svg {
        width: 40px;
        height: 40px;
    }

    .service-detail-header h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 5rem 0 2.5rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .page-header .lead {
        font-size: 1.125rem;
    }

    .service-detail-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .service-detail-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    .service-icon-large {
        width: 64px;
        height: 64px;
    }

    .service-icon-large svg {
        width: 36px;
        height: 36px;
    }

    .service-detail-header h2 {
        font-size: 1.5rem;
    }

    .service-subtitle {
        font-size: 1rem;
    }

    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .capability-list {
        grid-template-columns: 1fr;
    }

    .cta-section {
        padding: 4rem 0;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-content .lead {
        font-size: 1.125rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-buttons .cta {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 4rem 0 2rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .service-detail-card {
        padding: 1.5rem;
    }

    .service-detail-header h2 {
        font-size: 1.25rem;
    }

    .service-detail-section h3 {
        font-size: 1.25rem;
    }

    .service-icon-large {
        width: 56px;
        height: 56px;
    }

    .service-icon-large svg {
        width: 32px;
        height: 32px;
    }

    .use-case-item {
        padding: 1.5rem;
    }

    .use-case-icon {
        width: 48px;
        height: 48px;
    }

    .use-case-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* ========== SMOOTH SCROLLING ========== */
html {
    scroll-behavior: smooth;
}

.service-detail-card {
    scroll-margin-top: 100px;
}

/* ========== PRINT STYLES ========== */
@media print {
    .page-header {
        padding: 2rem 0;
        background: none;
    }

    .service-detail-card {
        break-inside: avoid;
        page-break-inside: avoid;
        box-shadow: none;
    }

    .cta-section,
    nav,
    footer,
    .scroll-to-top {
        display: none;
    }
}

/* ========== ACCESSIBILITY ========== */
.btn-primary:focus,
.cta-buttons .cta:focus {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

.use-case-item:focus-within,
.capability-list li:focus-within {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-detail-card {
    animation: fadeInUp 0.6s ease-out;
}

.service-detail-card:nth-child(2) {
    animation-delay: 0.1s;
}

.service-detail-card:nth-child(3) {
    animation-delay: 0.2s;
}

.service-detail-card:nth-child(4) {
    animation-delay: 0.3s;
}
