/* ===========================
   SERVICES PAGE STYLES
   =========================== */

/* Hero Header */
.services-hero {
    background-color: var(--color-surface-service-soft);
    padding: 48px 20px;
    text-align: center;
}

.services-hero h1 {
    font-family: var(--primary-font);
    font-size: 36px;
    font-weight: 700;
    color: var(--color-text-heading);
    letter-spacing: -0.5px;
}

.services-hero h1 span {
    color: var(--color-service-green);
    font-style: italic;
}

/* Breadcrumb */
.services-breadcrumb {
    padding: 14px 40px;
    border-bottom: 1px solid var(--color-border-neutral);
    font-family: var(--primary-font);
    font-size: 13px;
    color: var(--color-legacy-body);
    display: flex;
    align-items: center;
    gap: 6px;
}

.services-breadcrumb a {
    color: var(--color-legacy-muted);
    text-decoration: none;
}

.services-breadcrumb a:hover {
    color: var(--color-service-green);
}

.services-breadcrumb .sep {
    color: var(--color-text-muted);
    font-size: 11px;
}

.services-breadcrumb .active-crumb {
    color: var(--color-service-green);
    font-weight: 600;
}

/* Filter Tabs */
.services-filter-wrap {
    padding: 28px 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.services-filter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-tab {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1.5px solid var(--color-border-medium);
    background: var(--color-white);
    font-family: var(--primary-font);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-neutral);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    border-color: var(--color-service-green);
    color: var(--color-service-green);
}

.filter-tab.active {
    background-color: var(--color-service-green);
    border-color: var(--color-service-green);
    color: var(--color-white);
    font-weight: 600;
}

.filter-pill {
    cursor: pointer;
}

/* Section Subtitle */
.services-section-subtitle {
    text-align: center;
    font-family: var(--primary-font);
    font-size: 15px;
    color: var(--color-text-neutral);
    margin: 32px 0 20px;
}

/* Cards Grid */
.services-grid-wrap {
    padding: 0 40px 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Single Card */
.srv-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.srv-card:hover {
    box-shadow: 0 8px 32px var(--color-shadow-black-10);
}

#service-content {
    min-height: 280px;
}

#service-content.is-service-loading {
    opacity: 1;
}

.service-content-enter {
    animation: serviceContentFadeIn 0.16s ease-out;
}

.service-skeleton-wrap {
    width: 100%;
    padding: 40px 16px;
}

.service-skeleton-heading {
    width: min(320px, 64%);
    height: 28px;
    margin: 0 auto 32px;
    border-radius: 999px;
    background: var(--color-surface-soft);
    position: relative;
    overflow: hidden;
}

.service-skeleton-grid {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.service-skeleton-card {
    min-height: 150px;
    border-radius: 24px;
    border: 1px solid var(--color-border-orange);
    background: var(--color-surface-orange);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow: hidden;
}

.service-skeleton-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.service-skeleton-line,
.service-skeleton-icon,
.service-skeleton-button {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
}

.service-skeleton-line::after,
.service-skeleton-icon::after,
.service-skeleton-button::after,
.service-skeleton-heading::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
    animation: serviceSkeletonShimmer 1.2s ease-in-out infinite;
}

.service-skeleton-title {
    width: 58%;
    height: 24px;
    border-radius: 999px;
}

.service-skeleton-copy {
    width: 72%;
    height: 14px;
    border-radius: 999px;
}

.service-skeleton-icon {
    width: 66px;
    height: 66px;
    border-radius: 999px;
    flex: 0 0 auto;
}

.service-skeleton-button {
    width: 170px;
    height: 48px;
    border-radius: 10px;
    margin-top: auto;
}

@keyframes serviceSkeletonShimmer {
    100% {
        transform: translateX(100%);
    }
}

@keyframes serviceContentFadeIn {
    from {
        opacity: 0.92;
        transform: translateY(2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card-grid-center-last {
    --service-card-grid-gap: 16px;
}

.service-card-grid-center-last > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: calc((100% - var(--service-card-grid-gap)) / 2);
}

@media (min-width: 1024px) {
    .service-card-grid-center-last {
        --service-card-grid-gap: 20px;
    }
}

.treatment-content {
    color: var(--color-text-secondary);
    font-size: 15px;
    line-height: 1.75;
}

.treatment-content > *:first-child {
    margin-top: 0;
}

.treatment-content > *:last-child {
    margin-bottom: 0;
}

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

.treatment-content h1,
.treatment-content h2,
.treatment-content h3,
.treatment-content h4,
.treatment-content h5,
.treatment-content h6 {
    color: var(--color-text-primary);
    font-weight: 700;
    line-height: 1.25;
    margin: 28px 0 12px;
}

.treatment-content h1 {
    font-size: 28px;
}

.treatment-content h2 {
    font-size: 24px;
}

.treatment-content h3 {
    font-size: 21px;
}

.treatment-content h4,
.treatment-content h5,
.treatment-content h6 {
    font-size: 18px;
}

.treatment-content ul,
.treatment-content ol {
    margin: 0 0 18px;
    padding-left: 24px;
}

.treatment-content ul {
    list-style: disc;
}

.treatment-content ol {
    list-style: decimal;
}

.treatment-content li {
    margin: 8px 0;
    padding-left: 4px;
}

.treatment-content li::marker {
    color: var(--color-brand-primary);
}

.treatment-content a {
    color: var(--color-brand-primary-dark);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.treatment-content blockquote {
    margin: 22px 0;
    padding: 14px 18px;
    border-left: 4px solid var(--color-brand-primary);
    background: var(--color-surface-soft);
    color: var(--color-text-primary);
    border-radius: 0 12px 12px 0;
}

.treatment-content img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 18px 0;
}

.treatment-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 22px 0;
    overflow: hidden;
    border-radius: 12px;
}

.treatment-content th,
.treatment-content td {
    border: 1px solid var(--color-border);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

.treatment-content th {
    background: var(--color-surface-soft);
    color: var(--color-text-primary);
    font-weight: 700;
}

.treatment-content .text-left {
    text-align: left;
}

.treatment-content .text-center {
    text-align: center;
}

.treatment-content .text-right {
    text-align: right;
}

.treatment-content .text-justify {
    text-align: justify;
}

@media (min-width: 640px) {
    .treatment-content {
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .treatment-content {
        font-size: 18px;
    }

    .treatment-content h1 {
        font-size: 34px;
    }

    .treatment-content h2 {
        font-size: 30px;
    }

    .treatment-content h3 {
        font-size: 24px;
    }
}

/* Card image area */
.srv-card-img-wrap {
    position: relative;
    width: 100%;
    height: 185px;
    overflow: hidden;
    background-color: var(--color-surface-service-green);
    display: flex;
    align-items: center;
    justify-content: center;
}

.srv-card-img-wrap img.srv-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Logo placeholder (when no photo) */
.srv-card-img-wrap .srv-logo-placeholder {
    width: 80px;
    height: 80px;
    opacity: 0.45;
}

/* Badges on cards */
.srv-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--color-service-blue);
    color: var(--color-white);
    font-family: var(--primary-font);
    font-size: 10px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.srv-badge.badge-green {
    background-color: var(--color-service-green);
}

.srv-badge.badge-blue {
    background-color: var(--color-service-blue);
}

.srv-badge.badge-purple {
    background-color: var(--color-service-purple);
}

/* Multiple badges (top-left corner) */
.srv-badges-left {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
}

.srv-badge-sm {
    background-color: var(--color-video-overlay);
    color: var(--color-white);
    font-family: var(--primary-font);
    font-size: 9px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    letter-spacing: 0.2px;
}

/* Card body */
.srv-card-body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.srv-card-title {
    font-family: var(--primary-font);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-heading);
    margin-bottom: 7px;
}

.srv-card-desc {
    font-family: var(--primary-font);
    font-size: 12.5px;
    color: var(--color-legacy-body);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 14px;
}

/* Know More button */
.srv-know-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1.5px solid var(--color-text-neutral-dark);
    background: transparent;
    font-family: var(--primary-font);
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-neutral-dark);
    cursor: pointer;
    text-decoration: none;
    width: fit-content;
    transition: all 0.2s ease;
}

.srv-know-more:hover {
    background-color: var(--color-service-green);
    border-color: var(--color-service-green);
    color: var(--color-white);
}

.srv-know-more .arrow {
    font-size: 13px;
    transition: transform 0.2s;
}

.srv-know-more:hover .arrow {
    transform: translateX(3px);
}

/* CTA Banner */
.services-cta {
    background-color: var(--color-surface-service-soft);
    text-align: center;
    padding: 40px 20px;
}

.services-cta-btn {
    display: inline-block;
    background-color: var(--color-legacy-faq-accent);
    color: var(--color-white);
    font-family: var(--primary-font);
    font-size: 14px;
    font-weight: 700;
    padding: 13px 36px;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.services-cta-btn:hover {
    background-color: var(--color-accent-deep);
    color: var(--color-white);
}

/* ===========================
   RESPONSIVE
   =========================== */
@media screen and (max-width: 900px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid-wrap {
        padding: 0 20px 40px;
    }

    .services-filter-wrap {
        padding: 20px 20px 0;
    }
}

@media screen and (max-width: 560px) {
    .service-skeleton-wrap {
        padding: 32px 16px;
    }

    .service-skeleton-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .service-skeleton-card {
        min-height: 112px;
        border-radius: 20px;
        padding: 16px;
    }

    .service-skeleton-heading {
        height: 22px;
        margin-bottom: 24px;
    }

    .service-skeleton-title {
        width: 82%;
        height: 18px;
    }

    .service-skeleton-copy,
    .service-skeleton-button,
    .service-skeleton-icon {
        display: none;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-hero h1 {
        font-size: 26px;
    }

    .services-breadcrumb {
        padding: 12px 16px;
    }
}
