/* ==========================================================================
   Services & Detail Page Styles
   ========================================================================== */

/* --- Service Hero (Full Width Background) --- */
.service-hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 0 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
}

.service-hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.6) 100%);
    z-index: 1;
}

.service-hero-container {
    position: relative;
    z-index: 2;
}

.service-hero-content {
    max-width: 640px;
    margin: 0 auto;
}

.service-hero-content .headline-hero {
    white-space: pre-line;
    margin-bottom: 24px;
}

.service-hero-subtitle {
    margin-bottom: 36px;
}

.service-hero-actions {
    display: flex;
    justify-content: center;
}

/* --- Model Sub-Navigation (Group Tabs) --- */
.sub-nav {
    background-color: var(--surface-container-lowest);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 56px;
    z-index: 900;
}

.sub-nav-container {
    display: flex;
    justify-content: center;
}

.sub-nav-list {
    display: flex;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 16px 0;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
}

.sub-nav-link {
    font-size: 15px;
    color: var(--on-surface-variant);
    text-decoration: none;
    transition: color 0.2s ease;
    cursor: pointer;
}

.sub-nav-link:hover {
    color: var(--on-surface);
}

.sub-nav-link-active {
    color: var(--primary-container);
    font-weight: 500;
}

/* --- Series Repair Services --- */
.series-services-section {
    background-color: var(--surface-container-low);
    padding: 80px 0;
}

.section-desc {
    margin-top: 12px;
    margin-bottom: 32px;
    /* Reduced to make room for pills */
}

/* --- Model Selector Pills (BEM) --- */
.model-selector {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
}

.model-selector__list {
    display: inline-flex;
    background-color: var(--surface-container-low);
    padding: 6px;
    border-radius: var(--rounded-full);
    gap: 8px;
    overflow-x: auto;
    max-width: 100%;
}

.model-selector__pill {
    background: transparent;
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--on-surface-variant);
    border-radius: var(--rounded-full);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.model-selector__pill:hover {
    color: var(--on-surface);
}

.model-selector__pill--active {
    background-color: var(--surface-container-lowest);
    color: var(--primary-container);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* --- Repair Cards --- */
.series-grid {
    align-items: stretch;
}

.repair-card {
    background-color: var(--surface-container-lowest);
    border-radius: var(--rounded-xl);
    padding: 36px 32px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 4px 16px var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.repair-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* New Header Layout for Card */
.repair-card__header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.model-card-icon-wrapper {
    width: 32px;
    height: 32px;
    border-radius: var(--rounded-full);
    background-color: var(--surface-container-low);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px
}

.model-card-icon {
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Metadata (Price & Time) */
.repair-card__meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: 4px;
}

.repair-card__price {
    font-size: 16px;
    font-weight: 500;
    color: var(--on-surface);
}

.repair-card__time {
    font-size: 12px;
    color: var(--on-surface-variant);
}

.card-heading {
    margin-bottom: 12px;
}

.card-body {
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-link {
    margin-top: auto;
}

/* --- Identify the Issue --- */
.issues-section {
    background-color: var(--surface-container-lowest);
}

.issue-title {
    margin-bottom: 48px;
}

.issues-grid {
    align-items: stretch;
}

.issue-card {
    background-color: var(--surface-container-low);
    border-radius: var(--rounded-xl);
    padding: 32px 24px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.2s ease;
}

.issue-card:hover {
    transform: translateY(-2px);
}

.card-icon-wrapper-ghost {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background-color: var(--surface-container-lowest);
    border-radius: var(--rounded-full);
    padding: 12px;
}

.body-sm {
    font-size: 14px;
    line-height: 1.45;
}

/* --- Dark Diagnostic Banner --- */
.diagnostic-banner-section {
    background-color: #262729;
    color: var(--apple-white);
    padding: 80px 0;
}

.diagnostic-container {
    max-width: 680px;
    margin: 0 auto;
}

.banner-title {
    color: var(--surface-container-lowest);
    margin-bottom: 16px;
}

.banner-description {
    color: #a1a1a6;
    margin-bottom: 32px;
    line-height: 1.6;
}

/* --- Common Questions --- */
.faq-section .headline-lg {
    white-space: pre-line;
    margin-bottom: 48px;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 900px) {
    .sub-nav-container {
        justify-content: flex-start;
        padding-left: var(--spacing-mobile);
    }

    .model-selector__list {
        border-radius: 12px;
    }
}