/* Individual service pages (/services/<slug>/) — used with index_modern.css */

.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 10000;
}

.skip-to-main:focus {
    top: 0;
}

/* Hero */
.svc-hero {
    position: relative;
    background: var(--gradient-1);
    color: white;
    overflow: hidden;
}

.svc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('/images/slider02.jpg') center/cover;
    opacity: 0.12;
}

.svc-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 960px;
    margin: 0 auto;
    padding: 3rem 2rem 4.5rem;
    text-align: center;
}

/* Undo the site-wide `nav {}` header styles for the breadcrumb nav */
nav.svc-breadcrumb {
    position: static;
    background: none;
    backdrop-filter: none;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.svc-breadcrumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.svc-breadcrumb li + li::before {
    content: '›';
    margin-right: 0.5rem;
    opacity: 0.7;
}

.svc-breadcrumb a {
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.svc-breadcrumb a:hover {
    border-bottom-color: white;
}

.svc-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 84px;
    height: 84px;
    font-size: 2.6rem;
    line-height: 1;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 22px;
    margin-bottom: 1.5rem;
}

.svc-hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.svc-lead {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    max-width: 720px;
    margin: 0 auto;
    opacity: 0.95;
}

.svc-hero-actions,
.svc-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.25rem;
}

/* Buttons */
.svc-btn {
    display: inline-block;
    padding: 0.9rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.svc-btn-light {
    background: white;
    color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.svc-btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.svc-btn-ghost {
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
}

.svc-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: white;
}

/* Sections */
.svc-section {
    padding: 5rem 2rem;
    scroll-margin-top: 80px;
}

.svc-section-light {
    background: var(--bg-white);
}

.svc-section-gray {
    background: var(--bg-light);
}

.svc-container {
    max-width: 1200px;
    margin: 0 auto;
}

.svc-narrow {
    max-width: 860px;
}

.svc-header {
    text-align: center;
    margin-bottom: 3rem;
}

.svc-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    margin-bottom: 0.75rem;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.svc-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
}

/* Overview */
.svc-overview {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 3.5rem;
    align-items: start;
}

.svc-overview-text .svc-title {
    display: inline-block;
    margin-bottom: 1.25rem;
}

.svc-overview-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.svc-overview-text a {
    color: var(--primary-color);
    font-weight: 500;
}

.svc-ideal {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 16px;
    padding: 2rem;
}

.svc-ideal h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.svc-ideal ul {
    list-style: none;
}

.svc-ideal li {
    position: relative;
    padding: 0.55rem 0 0.55rem 1.9rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
}

.svc-ideal li:last-child {
    border-bottom: none;
}

.svc-ideal li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Cards */
.svc-deliverables,
.svc-work {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.svc-card {
    position: relative;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.svc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}

.svc-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}

.svc-card:hover::before {
    transform: scaleX(1);
}

.svc-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

.svc-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Technology tags */
.svc-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.svc-tags li {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.55rem 1.2rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-sm);
}

.svc-section-light .svc-tags li {
    background: var(--bg-light);
}

/* Process */
.svc-process {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.svc-step {
    position: relative;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem 1.5rem 1.75rem;
    box-shadow: var(--shadow-sm);
}

.svc-section-gray .svc-step {
    background: white;
}

.svc-section-light .svc-step {
    background: var(--bg-light);
}

.svc-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-2);
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.svc-step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.svc-step p {
    color: var(--text-secondary);
    font-size: 0.97rem;
    line-height: 1.65;
}

/* FAQ */
.svc-faq details {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}

.svc-section-light .svc-faq details {
    background: var(--bg-light);
}

.svc-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1.25rem 3.25rem 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    position: relative;
}

.svc-faq summary::-webkit-details-marker {
    display: none;
}

.svc-faq summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
}

.svc-faq details[open] summary::after {
    content: '−';
}

.svc-faq summary:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 12px;
}

.svc-faq details p {
    padding: 0 1.5rem 1.4rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* Related services */
.svc-related {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.75rem;
}

.svc-related-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.svc-section-light .svc-related-card {
    background: var(--bg-light);
}

.svc-related-card:hover,
.svc-related-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.svc-related-icon {
    font-size: 2rem;
    line-height: 1;
}

.svc-related-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.svc-related-text {
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

.svc-related-link,
.svc-more a {
    color: var(--primary-color);
    font-weight: 600;
}

.svc-more {
    text-align: center;
    margin-top: 2.5rem;
}

.svc-more a {
    text-decoration: none;
}

.svc-more a:hover {
    text-decoration: underline;
}

/* CTA */
.svc-cta {
    background: var(--gradient-1);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.svc-cta h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
}

.svc-cta p {
    font-size: 1.15rem;
    max-width: 620px;
    margin: 0 auto;
    opacity: 0.95;
}

.svc-cta-actions {
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .svc-process {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .svc-overview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .svc-section {
        padding: 3.5rem 1.25rem;
    }

    .svc-hero-inner {
        padding: 2rem 1.25rem 3.5rem;
    }

    .svc-breadcrumb ol {
        margin-bottom: 1.75rem;
    }

    .svc-header {
        margin-bottom: 2rem;
    }

    .svc-deliverables,
    .svc-work,
    .svc-related {
        grid-template-columns: 1fr;
    }

    .svc-card,
    .svc-related-card,
    .svc-ideal {
        padding: 1.5rem;
    }

    .svc-cta {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 560px) {
    .svc-process {
        grid-template-columns: 1fr;
    }

    .svc-btn {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .svc-card,
    .svc-card::before,
    .svc-related-card,
    .svc-btn {
        transition: none;
    }
}
