/* ==========================================
   Service Detail Page Styles
   ========================================== */

/* Hero */
.service-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-top: 80px;
}

.service-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #1a1d17 0%, #252821 50%, #2F3429 100%);
}

.service-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.35;
}

.service-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(37, 40, 33, 0.95) 0%, rgba(37, 40, 33, 0.6) 50%, rgba(37, 40, 33, 0.4) 100%);
}

.service-hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 24px 50px;
}

.service-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    transition: var(--transition);
}

.service-breadcrumb:hover {
    color: var(--primary-light);
}

.service-hero-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 18px;
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 20px;
}

.service-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 14px;
    line-height: 1.3;
}

.service-hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 650px;
    line-height: 1.8;
}

/* Details Section */
.service-details {
    padding: 60px 0 100px;
}

.service-details-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

/* Main Content */
.service-main {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-about h2,
.service-features h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

.service-about p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.9;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-item:hover {
    border-color: rgba(81, 158, 83, 0.25);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.feature-item-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(81, 158, 83, 0.08), rgba(49, 59, 175, 0.08));
    border-radius: 12px;
    color: var(--primary);
    font-size: 1rem;
}

.feature-item h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Standards Card */
.standards-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: linear-gradient(135deg, rgba(81, 158, 83, 0.04), rgba(49, 59, 175, 0.04));
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.standards-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 14px;
    color: var(--white);
    font-size: 1.3rem;
}

.standards-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.standards-card p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Sidebar */
.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 100px;
}

.sidebar-card {
    padding: 28px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.sidebar-cta p {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.sidebar-cta .btn {
    margin-bottom: 10px;
}

.sidebar-cta .btn:last-child {
    margin-bottom: 0;
}

.btn-outline-dark {
    background: transparent;
    color: var(--dark);
    border-color: var(--border);
}

.btn-outline-dark:hover {
    background: var(--bg-alt);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Other Services Links */
.other-service-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.other-service-link:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.other-service-link:first-child {
    padding-top: 6px;
}

.other-service-link-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(81, 158, 83, 0.08), rgba(49, 59, 175, 0.08));
    border-radius: 10px;
    color: var(--primary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.other-service-link span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    transition: var(--transition);
}

.other-service-link:hover .other-service-link-icon {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--white);
}

.other-service-link:hover span {
    color: var(--primary);
}

/* Page load animation */
.service-hero-content,
.service-main > *,
.service-sidebar > * {
    opacity: 0;
    transform: translateY(25px);
    animation: fadeInUp 0.6s ease forwards;
}

.service-hero-content { animation-delay: 0.1s; }
.service-main > *:nth-child(1) { animation-delay: 0.2s; }
.service-main > *:nth-child(2) { animation-delay: 0.35s; }
.service-main > *:nth-child(3) { animation-delay: 0.5s; }
.service-sidebar > *:nth-child(1) { animation-delay: 0.3s; }
.service-sidebar > *:nth-child(2) { animation-delay: 0.45s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   Responsive
   ========================================== */
@media (max-width: 1024px) {
    .service-details-grid {
        grid-template-columns: 1fr 300px;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .service-hero {
        min-height: 340px;
    }

    .service-details-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        position: static;
    }

    .standards-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .nav-links a {
        color: var(--text) !important;
    }
}
