/* ============================================
   Services Detail Pages - Shared Styles
   Used by /services/<slug> sub-pages
   ============================================ */

/* Page Hero */
.page-hero {
    background: var(--gradient-hero);
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(56, 182, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
}
.page-hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}
.page-hero-tag {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(56, 182, 255, 0.15);
    border: 1px solid rgba(56, 182, 255, 0.3);
    border-radius: 50px;
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.page-hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.15;
}
.page-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 760px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Breadcrumb */
.breadcrumb-section {
    background: var(--off-white);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
}
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-weight: 500;
}
.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}
.breadcrumb a:hover {
    color: var(--accent);
}
.breadcrumb-separator {
    color: var(--border);
    user-select: none;
}
.breadcrumb-current {
    color: var(--primary);
    font-weight: 600;
}

/* Service Detail Section */
.service-detail {
    padding: var(--section-padding);
    position: relative;
}
.service-detail-alt {
    background: var(--off-white);
}
.service-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 40px;
}
.service-detail-icon {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}
.service-detail-icon svg {
    width: 72px;
    height: 72px;
}
.service-detail-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1.2;
}
.service-detail-tagline {
    font-size: 1.05rem;
    color: var(--text-light);
    font-weight: 500;
}
.service-detail-desc {
    max-width: 820px;
    margin-bottom: 48px;
}
.service-detail-desc p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 16px;
}
.service-detail-desc p:last-child { margin-bottom: 0; }

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}
.feature-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}
.service-detail-alt .feature-card {
    background: var(--white);
    border-color: var(--border);
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.feature-card:hover::before { opacity: 1; }
.feature-card h4 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}
.feature-more-link {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 0;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: color var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}
.feature-more-link:hover { color: var(--accent-dark); }

/* Tech Badges */
.tech-badges-label {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}
.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}
.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    transition: all var(--transition-base);
}
.tech-badge:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}
.tech-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Use Cases */
.usecases-section {
    padding: var(--section-padding);
    background: var(--off-white);
}
.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.usecase-card {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}
.usecase-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}
.usecase-card-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(56, 182, 255, 0.12);
    color: var(--accent);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}
.usecase-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
    line-height: 1.3;
}
.usecase-card p {
    font-size: 0.93rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Benefits / Numbers */
.benefits-section {
    padding: var(--section-padding);
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-top: 40px;
    text-align: center;
}
.benefit-item {
    padding: 20px;
}
.benefit-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 10px;
}
.benefit-label {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 6px;
}
.benefit-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Process Section */
.process-section {
    padding: var(--section-padding);
    background: var(--primary);
    position: relative;
    overflow: hidden;
}
.process-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 30% 50%, rgba(56, 182, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}
.process-section .section-header { position: relative; z-index: 1; }
.process-section .section-tag {
    color: var(--accent);
    background: rgba(56, 182, 255, 0.15);
    border-color: rgba(56, 182, 255, 0.3);
}
.process-section .section-title { color: var(--white); }
.process-section .section-subtitle { color: rgba(255, 255, 255, 0.6); }
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
    z-index: 1;
}
.process-step {
    text-align: center;
    position: relative;
    padding: 40px 24px;
}
.process-step-number {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    color: rgba(56, 182, 255, 0.15);
    line-height: 1;
    margin-bottom: 16px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    cursor: default;
}
.process-step:hover .process-step-number {
    color: var(--accent);
    text-shadow: 0 0 32px rgba(56, 182, 255, 0.5);
}
.process-step-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 10px;
}
.process-step-desc {
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -16px;
    width: 32px;
    height: 2px;
    background: rgba(56, 182, 255, 0.2);
    transform: translateY(-50%);
}

/* FAQ Section */
.faq-section {
    padding: var(--section-padding);
    background: var(--off-white);
}
.faq-grid {
    max-width: 880px;
    margin: 40px auto 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.faq-item {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.faq-item[open] {
    border-color: rgba(56, 182, 255, 0.4);
    box-shadow: var(--shadow-sm);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 60px 22px 26px;
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.4;
    position: relative;
    transition: color var(--transition-fast);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(56, 182, 255, 0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    transition: transform var(--transition-fast);
}
.faq-item[open] summary::after {
    content: '−';
    transform: translateY(-50%) rotate(180deg);
}
.faq-item summary:hover { color: var(--accent); }
.faq-answer {
    padding: 0 26px 24px;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
}
.faq-answer p { margin-bottom: 10px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* CTA Section */
.cta-section {
    padding: var(--section-padding);
    text-align: center;
    background: var(--white);
}
.cta-content {
    max-width: 720px;
    margin: 0 auto;
}
.cta-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}
.cta-title .gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.cta-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.7;
}
.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Service-back link */
.service-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    margin-top: 8px;
    transition: gap var(--transition-fast);
}
.service-back:hover { gap: 10px; }

/* Related Services */
.related-section {
    padding: var(--section-padding);
    background: var(--off-white);
}
.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 40px;
}
.related-card {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    text-decoration: none;
    transition: all var(--transition-base);
    display: block;
}
.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(56, 182, 255, 0.4);
}
.related-card h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.related-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 12px;
}
.related-card-cta {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Section Header (centered) */
.section-header-center {
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .process-step:nth-child(2)::after { display: none; }
    .process-step::after { display: none; }
}
@media (max-width: 768px) {
    .page-hero { padding: 120px 0 48px; }
    .page-hero-title { font-size: clamp(1.8rem, 7vw, 2.5rem); }
    .page-hero-subtitle { font-size: 0.95rem; }
    .service-detail { padding: 48px 0; }
    .service-detail-header { flex-direction: column; gap: 12px; margin-bottom: 24px; }
    .service-detail-icon { width: 56px; height: 56px; }
    .service-detail-icon svg { width: 56px; height: 56px; }
    .service-detail-title { font-size: clamp(1.4rem, 5vw, 2rem); }
    .service-detail-tagline { font-size: 0.9rem; }
    .service-detail-desc { margin-bottom: 28px; }
    .service-detail-desc p { font-size: 0.92rem; }
    .feature-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 28px; }
    .feature-card { padding: 20px 18px; }
    .feature-card h4 { font-size: 0.95rem; }
    .feature-card p { font-size: 0.85rem; }
    .tech-badge { padding: 6px 12px; font-size: 0.78rem; }
    .process-grid { grid-template-columns: 1fr; gap: 8px; }
    .process-step { padding: 20px 16px; }
    .process-step-number { font-size: 2.5rem; margin-bottom: 8px; }
    .process-step-title { font-size: 1rem; }
    .process-step-desc { font-size: 0.85rem; }
    .process-section, .cta-section, .faq-section, .usecases-section, .related-section, .benefits-section { padding: 48px 0; }
    .cta-title { font-size: clamp(1.4rem, 5vw, 2rem); }
    .cta-desc { font-size: 0.92rem; margin-bottom: 24px; }
    .cta-actions .btn { width: 100%; justify-content: center; }
    .faq-item summary { padding: 18px 50px 18px 20px; font-size: 0.95rem; }
    .faq-item summary::after { right: 18px; width: 24px; height: 24px; font-size: 16px; }
    .faq-answer { padding: 0 20px 20px; font-size: 0.88rem; }
    .breadcrumb { font-size: 12px; }
}
@media (max-width: 480px) {
    .page-hero { padding: 100px 0 32px; }
    .page-hero-title { font-size: clamp(1.5rem, 8vw, 2rem); }
    .page-hero-subtitle { font-size: 0.85rem; }
    .service-detail { padding: 32px 0; }
    .feature-card { padding: 16px 14px; }
    .feature-card h4 { font-size: 0.9rem; }
    .feature-card p { font-size: 0.8rem; }
    .tech-badge { padding: 5px 10px; font-size: 0.72rem; }
    .tech-badges-label { font-size: 0.75rem; }
    .process-step { padding: 14px 10px; }
    .process-step-number { font-size: 2rem; }
    .process-step-title { font-size: 0.92rem; }
    .process-step-desc { font-size: 0.8rem; }
    .cta-actions .btn { padding: 10px 16px; font-size: 0.85rem; }
    .usecase-card { padding: 24px 20px; }
    .usecase-card h3 { font-size: 1.05rem; }
    .usecase-card p { font-size: 0.85rem; }
}
