/* ===================================
   Single Service Detail Page Styles
   =================================== */

/* CSS Variables */
:root {
    --primary-color: #128c5e;
    --primary-hover: #0f7a4f;
    --primary-light: rgba(18, 140, 94, 0.08);
    --text-primary: #1a1a1a;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --border-color: #e2e8f0;
    --bg-white: #ffffff;
    --bg-light: #f7fafc;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
    --max-content-width: 820px;
    --container-padding: 24px;
    --transition-speed: 0.3s;
}

/* Container */
.single-service-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Breadcrumb */
.breadcrumb-wrapper {
    background-color: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
    padding: 0;
}

.breadcrumb li {
    display: flex;
    align-items: center;
}

.breadcrumb li:not(:last-child)::after {
    content: '›';
    margin: 0 0.5rem;
    color: var(--text-muted);
    font-size: 1.125rem;
}

.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb li:last-child {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Hero Breadcrumb Overrides */
.hero-breadcrumb {
    margin-bottom: 1.5rem;
    padding: 0;
}

.hero-breadcrumb li,
.hero-breadcrumb li a {
    color: #ffffff;
}

.hero-breadcrumb li:not(:last-child)::after {
    color: #ffffff;
}

.hero-breadcrumb li a:hover {
    color: #ffffff;
}

.hero-breadcrumb li:last-child {
    color: #ffffff;
    font-weight: 600;
}

/* Hero Section Styles are now handled by introduce.css (.introduce-hero) */

/* Main Content */
.service-main-content {
    /* Background and padding handled by .introduce-main if present, otherwise inherit */
    position: relative;
    z-index: 10;
    padding-top: 80px;
}

.content-wrapper {
    max-width: var(--max-content-width);
    margin: 0 auto;
}

.service-content {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Typography in Content */
.service-content h1,
.service-content h2,
.service-content h3,
.service-content h4,
.service-content h5,
.service-content h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.service-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    letter-spacing: -0.01em;
    margin-top: 3rem;
}

.service-content h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    margin-top: 2rem;
}

.service-content h4 {
    font-size: 1.25rem;
}

.service-content p {
    margin-bottom: 1.25rem;
}

.service-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

.service-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.service-content a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Lists in Content */
.service-content ul,
.service-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.service-content ul li,
.service-content ol li {
    margin-bottom: 0.75rem;
    line-height: 1.7;
}

.service-content ul {
    list-style: none;
    padding-left: 0;
}

.service-content ul li {
    position: relative;
    padding-left: 2rem;
}

.service-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    background-color: var(--primary-light);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.service-content ul li::after {
    content: '✓';
    position: absolute;
    left: 0.3rem;
    top: 0.4rem;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.875rem;
}

/* Images in Content */
.service-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: var(--shadow-md);
}

.service-content figure {
    margin: 2.5rem 0;
}

.service-content figcaption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.75rem;
}

/* Blockquote */
.service-content blockquote {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(18, 140, 94, 0.04) 100%);
    border-left: 4px solid var(--primary-color);
    padding: 1.75rem 2rem;
    margin: 2.5rem 0;
    border-radius: 8px;
    font-style: italic;
}

.service-content blockquote p {
    margin: 0;
}

/* Tables */
.service-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 0.9375rem;
}

.service-content table th,
.service-content table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.service-content table th {
    background-color: var(--bg-light);
    font-weight: 600;
    color: var(--text-primary);
}

.service-content table tr:hover {
    background-color: var(--bg-light);
}

/* CTA Section */
.service-cta-section {
    margin: 4rem 0 0 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(18, 140, 94, 0.03) 100%);
    border-radius: 16px;
    padding: 3rem 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.cta-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(18, 140, 94, 0.25);
}

.cta-icon i {
    font-size: 2rem;
    color: white;
}

.cta-content h2 {
    margin: 0 0 1rem 0;
    color: var(--text-primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.cta-content p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    margin: 0 0 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
}

.btn-cta-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(18, 140, 94, 0.25);
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(18, 140, 94, 0.35);
    color: white;
}

.btn-cta-secondary {
    background: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-cta-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 140, 94, 0.25);
}

/* Related Services */
.related-services {
    background-color: var(--bg-light);
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
}

.related-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    color: var(--text-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.related-services .service-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 24px;
    text-decoration: none !important;
    height: 100%;
}

.related-services .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(18, 140, 94, 0.12);
    border-color: var(--primary-color);
}

.related-services .service-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    box-shadow: 0 4px 12px rgba(18, 140, 94, 0.2);
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.related-services .service-icon i {
    font-size: 28px;
    color: #fff !important;
}

.related-services .service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.related-services .service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.related-services .service-content {
    flex: 1;
    text-align: left;
    padding-top: 0;
}

.related-services .service-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px 0;
    transition: color 0.3s ease;
}

.related-services .service-card:hover .service-title {
    color: var(--primary-color);
}

.related-services .service-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.related-services .service-desc p {
    margin: 0;
}

.related-services .service-more {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.related-services .service-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.related-services .service-card:hover .service-more {
    gap: 12px;
}

.related-services .service-card:hover .service-more i {
    transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }

    .service-hero {
        padding: 3.5rem 0;
    }

    .service-icon-hero {
        width: 64px;
        height: 64px;
        margin-bottom: 1.5rem;
    }

    .service-icon-hero i {
        font-size: 2rem;
    }

    .service-lead {
        font-size: 1.125rem;
    }

    .service-main-content {
        padding: 3rem 0;
    }

    .service-content h2 {
        margin-top: 2.5rem;
    }

    .cta-card {
        padding: 2.5rem 1.5rem;
    }

    .cta-actions {
        flex-direction: column;
    }

    .btn-cta-primary,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .related-services .service-card {
        padding: 25px;
        gap: 20px;
    }

    .related-services .service-icon {
        width: 56px;
        height: 56px;
    }

    .related-services .service-icon i {
        font-size: 24px;
    }

    .related-services {
        padding: 4rem 0;
    }
}

@media (max-width: 480px) {
    .breadcrumb {
        font-size: 0.8125rem;
    }

    .service-content ul li {
        padding-left: 1.75rem;
    }

    .service-content table {
        font-size: 0.875rem;
    }

    .service-content table th,
    .service-content table td {
        padding: 0.5rem 0.75rem;
    }
}

/* Print Styles */
@media print {

    .breadcrumb-wrapper,
    .service-cta-section,
    .related-services {
        display: none;
    }

    .service-hero {
        background: none !important;
        color: var(--text-primary);
        padding: 1rem 0;
    }

    .service-title {
        color: var(--text-primary);
    }

    .service-icon-hero {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}