/**
 * Service Page Styles
 *
 * @package CargoCore
 */

/* ==========================================================================
   Service Hero Section
   ========================================================================== */

.service-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.service-hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.service-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-secondary) 0%, rgba(13, 27, 42, 0.85) 100%);
}

.service-hero__content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    text-align: center;
    margin: 0 auto;
}

.service-hero__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: var(--service-color, var(--color-primary));
    border-radius: 50%;
    margin-bottom: 24px;
    color: #fff;
}

.service-hero__title {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.service-hero__description {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0 0 32px 0;
}

.service-hero__actions .btn {
    gap: 10px;
}

/* ==========================================================================
   Service Benefits Section
   ========================================================================== */

.service-benefits {
    position: relative;
    padding: 0;
    background: #fff;
}

/* Dark Header Background */
.service-benefits::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 280px;
    background: var(--color-secondary);
    z-index: 0;
}

.service-benefits .container {
    position: relative;
    z-index: 1;
    padding-top: 80px;
    padding-bottom: 80px;
}

.service-benefits__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 48px;
}

.service-benefits__header .section-label {
    background: var(--color-primary);
    color: #fff;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-benefits__title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 8px 0 0 0;
}

.service-benefits__title span {
    color: var(--color-primary);
}

.service-benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    background: #fff;
    padding: 32px 28px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-top: 4px solid transparent;
}

.benefit-card:first-child {
    border-top-color: var(--color-primary);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-top-color: var(--color-primary);
}

.benefit-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-light, #f0f4f8);
    border-radius: 12px;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

.benefit-card__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-secondary);
    margin: 0 0 12px 0;
}

.benefit-card__description {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   Service Products & Situations Section
   ========================================================================== */

.service-products {
    padding: 100px 0;
    background: var(--color-bg-light);
}

.service-products__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.service-products__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 16px 0;
}

.service-products__title span {
    color: var(--color-primary);
}

.service-products__subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0;
}

.service-products__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px;
}

.products-list {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.products-list__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 24px 0;
}

.products-list__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 16px;
    background: var(--color-bg-light, #f8fafc);
    border-radius: 12px;
    border: 1px solid transparent;
    text-align: center;
    transition: all 0.3s ease;
}

.product-item:hover {
    border-color: var(--color-primary);
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.product-item__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    color: var(--color-secondary);
    border: 1px solid #e2e8f0;
}

.product-item:hover .product-item__icon {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.product-item__title {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-secondary);
    line-height: 1.4;
}

/* ==========================================================================
   When to Choose Section
   ========================================================================== */

.service-when-to-choose {
    padding: 100px 0;
    background: #fff;
}

.service-when-to-choose__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.service-when-to-choose__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 16px 0;
}

.service-when-to-choose__subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0;
}

.service-when-to-choose__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.choice-card {
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
}

.choice-card__image {
    position: relative;
    height: 200px;
}

.choice-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.choice-card__content {
    padding: 32px;
}

.choice-card__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-secondary);
    margin: 0 0 20px 0;
}

.choice-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.choice-card__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.choice-card__list li svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-primary);
}

.choice-card--negative .choice-card__list li svg,
.choice-card__list li .icon-negative {
    color: #9ca3af;
}

/* ==========================================================================
   Sourcing Services Section
   ========================================================================== */

.service-sourcing {
    padding: 100px 0;
    background: var(--color-bg-light);
}

.service-sourcing__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.service-sourcing__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 16px 0;
}

.service-sourcing__title span {
    color: var(--color-primary);
}

.service-sourcing__subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0;
}

.service-sourcing__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.sourcing-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.sourcing-card__image {
    height: 200px;
}

.sourcing-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sourcing-card__content {
    padding: 32px;
}

.sourcing-card__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-secondary);
    margin: 0 0 12px 0;
}

.sourcing-card__description {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0 0 20px 0;
}

.sourcing-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sourcing-card__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-secondary);
}

.sourcing-card__list li svg {
    color: var(--color-primary);
}

/* ==========================================================================
   Process Steps Section
   ========================================================================== */

.service-process {
    padding: 100px 0;
    background: #fff;
}

.service-process__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.service-process__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 8px 0 16px 0;
}

.service-process__title span {
    display: block;
    color: var(--color-primary);
}

.service-process__subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0;
}

.service-process__slider {
    position: relative;
}

.service-process__nav {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.service-process__nav-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-secondary);
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.service-process__nav-btn:hover {
    background: var(--color-primary);
}

.service-process__track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.process-step {
    text-align: center;
    padding: 32px 20px;
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.process-step__icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    margin: 0 auto 16px;
    color: var(--color-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.process-step__number {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.process-step__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-secondary);
    margin: 0 0 8px 0;
}

.process-step__description {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

.service-process__progress {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.service-process__progress-item {
    width: 32px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.service-process__progress-item.is-active {
    background: var(--color-primary);
    width: 48px;
}

/* ==========================================================================
   Service CTA Section
   ========================================================================== */

.service-cta {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.service-cta__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.service-cta__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-cta__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-secondary) 0%, rgba(13, 27, 42, 0.9) 100%);
}

.service-cta .container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.service-cta__content {
    max-width: 500px;
}

.service-cta__title {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px 0;
}

.service-cta__text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 24px 0;
}

.service-cta__content .btn {
    gap: 10px;
}

.service-cta__image {
    position: relative;
}

.service-cta__image img {
    width: 300px;
    height: 380px;
    object-fit: cover;
    border-radius: 16px;
}

/* ==========================================================================
   Documents Section
   ========================================================================== */

.service-documents {
    padding: 100px 0;
    background: #fff;
}

.service-documents__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: start;
}

.service-documents__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 8px 0 16px 0;
}

.service-documents__title span {
    display: block;
    color: var(--color-primary);
}

.service-documents__description {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0 0 24px 0;
}

.service-documents__content .btn {
    gap: 8px;
}

.service-documents__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 48px;
}

.documents-column {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.documents-column li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--color-secondary);
}

.documents-column li svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

/* ==========================================================================
   Related Services Section
   ========================================================================== */

.service-related {
    padding: 100px 0;
    background: var(--color-bg-light);
}

.service-related__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.service-related__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 16px 0;
}

.service-related__title span {
    color: var(--color-primary);
}

.service-related__subtitle {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0;
}

.service-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 24px;
    background: #fff;
    border-radius: 16px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: var(--color-primary);
}

.related-card__icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-10, rgba(0, 119, 182, 0.1));
    border-radius: 16px;
    color: var(--color-primary);
}

.related-card__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-secondary);
    margin: 0;
}

/* ==========================================================================
   Why Choose Us Section
   ========================================================================== */

.service-why-choose {
    padding: 100px 0;
    background: #fff;
}

.service-why-choose__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.service-why-choose__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 16px 0;
}

.service-why-choose__title span {
    display: block;
    color: var(--color-primary);
}

.service-why-choose__description {
    font-size: 14px;
    color: var(--color-text-muted);
    margin: 0 0 24px 0;
}

.service-why-choose__features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.why-feature {
    display: flex;
    gap: 16px;
}

.why-feature__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-10, rgba(0, 119, 182, 0.1));
    border-radius: 12px;
    color: var(--color-primary);
}

.why-feature__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-secondary);
    margin: 0 0 8px 0;
}

.why-feature__description {
    font-size: 13px;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */

.service-faq {
    padding: 100px 0;
    background: var(--color-bg-light);
}

.service-faq__header {
    text-align: center;
    margin-bottom: 48px;
}

.service-faq__title {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 8px 0 0 0;
}

.service-faq__title span {
    display: block;
    color: var(--color-primary);
}

.service-faq__accordion {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.faq-item__header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.faq-item__question {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-secondary);
}

.faq-item__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.faq-item__icon svg {
    transition: transform 0.3s ease;
}

.faq-item.is-active .faq-item__icon {
    background: var(--color-primary);
    color: #fff;
}

.faq-item.is-active .faq-item__icon svg {
    transform: rotate(180deg);
}

.faq-item__content {
    padding: 0 24px 24px;
}

.faq-item__content p {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0;
}

.service-faq__cta {
    text-align: center;
    margin-top: 48px;
}

.service-faq__cta p {
    font-size: 16px;
    color: var(--color-text-muted);
    margin: 0 0 16px 0;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 1023px) {
    .service-hero {
        min-height: 400px;
        padding: 100px 0 60px;
    }

    .service-hero__title {
        font-size: 36px;
    }

    .service-benefits::before {
        height: 320px;
    }

    .service-benefits__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .service-benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-overview__grid {
        grid-template-columns: 1fr;
    }

    .service-overview__content,
    .service-overview__highlight {
        padding: 60px 40px;
    }

    .service-products__grid,
    .service-when-to-choose__grid,
    .service-sourcing__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .service-process__track {
        grid-template-columns: repeat(3, 1fr);
    }

    .service-cta .container {
        flex-direction: column;
        text-align: center;
    }

    .service-cta__image {
        display: none;
    }

    .service-documents__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-related__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-why-choose__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-why-choose__features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .service-hero__title {
        font-size: 28px;
    }

    .service-hero__description {
        font-size: 16px;
    }

    .service-benefits__header {
        flex-direction: column;
        align-items: flex-start;
    }

    .service-benefits__grid {
        grid-template-columns: 1fr;
    }

    .service-process__track {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-process__nav {
        position: static;
        justify-content: center;
        margin-bottom: 24px;
    }

    .service-documents__list {
        grid-template-columns: 1fr;
    }

    .service-related__grid {
        grid-template-columns: 1fr;
    }

    .service-faq__accordion {
        padding: 0 16px;
    }

    .section-label {
        font-size: 12px;
    }

    h2 {
        font-size: 28px !important;
    }
}

@media (max-width: 480px) {
    .service-process__track {
        grid-template-columns: 1fr;
    }

    .products-list__items {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Service Overview / Theory Section
   ========================================================================== */

.service-overview {
    background: #fff;
}

.service-overview__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.service-overview__content {
    padding: 80px 60px;
    background: #fff;
}

.service-overview__image {
    margin-bottom: 40px;
    border-radius: 12px;
    overflow: hidden;
}

.service-overview__image img {
    width: 100%;
    height: auto;
    display: block;
}

.service-overview__section {
    margin-bottom: 40px;
}

.service-overview__section:last-child {
    margin-bottom: 0;
}

.service-overview__section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0 0 16px 0;
    line-height: 1.3;
}

.service-overview__section-content {
    font-size: 15px;
    color: var(--color-text);
    line-height: 1.8;
}

.service-overview__section-content p {
    margin: 0 0 16px 0;
}

.service-overview__section-content p:last-child {
    margin-bottom: 0;
}

.service-overview__services {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.8;
    margin-top: 16px;
}

.service-overview__services strong {
    display: block;
    color: var(--color-secondary);
    margin-bottom: 4px;
}

/* Right Highlight Column - Blue Background */
.service-overview__highlight {
    padding: 80px 60px;
    background: var(--color-primary);
    color: #fff;
}

.service-overview__highlight-title {
    font-size: 32px;
    font-weight: 700;
    color: #fff !important;
    margin: 0 0 32px 0;
    line-height: 1.3;
}

.service-overview__highlight-block {
    font-size: 15px;
    line-height: 1.8;
    color: #fff;
    margin-bottom: 24px;
}

.service-overview__highlight-block:last-child {
    margin-bottom: 0;
}

.service-overview__highlight-block p {
    margin: 0 0 16px 0;
    color: rgba(255, 255, 255, 0.95) !important;
}

.service-overview__highlight-block p:last-child {
    margin-bottom: 0;
}

.service-overview__highlight-block strong {
    color: #fff !important;
    font-weight: 600;
}

/* Ensure all text in highlight is white */
.service-overview__highlight,
.service-overview__highlight p,
.service-overview__highlight span,
.service-overview__highlight a {
    color: #fff !important;
}

/* Overview Responsive */
@media (max-width: 1023px) {
    .service-overview__grid {
        grid-template-columns: 1fr;
    }

    .service-overview__content,
    .service-overview__highlight {
        padding: 60px 40px;
    }
}

@media (max-width: 768px) {
    .service-overview__content,
    .service-overview__highlight {
        padding: 40px 24px;
    }

    .service-overview__highlight-title {
        font-size: 26px;
    }
}
