/* ===== Battery Service Page ===== */

.battery-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: var(--mb-1-5);
    font-size: var(--small-font-size);
    color: var(--text-light);
    justify-content: center;
}

.battery-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: var(--font-medium);
}

.battery-breadcrumb a:hover {
    color: var(--secondary-color);
}

.battery-breadcrumb span[aria-hidden="true"] {
    opacity: 0.5;
}

[dir="rtl"] .battery-breadcrumb span[aria-hidden="true"] {
    display: inline-block;
    transform: scaleX(-1);
}

.battery-intro {
    background: linear-gradient(180deg, #f0f7ff 0%, var(--body-color) 100%);
}

.battery-intro__grid {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.battery-intro__text p {
    color: var(--text-color);
    margin-bottom: var(--mb-1);
    font-size: 1.05rem;
}

.battery-intro__image {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.battery-intro__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 280px;
}

.battery-highlights {
    display: grid;
    gap: 1rem;
    margin-top: var(--mb-2);
}

.battery-highlight {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: var(--white-color);
    border-radius: 0.85rem;
    padding: 1rem 1.15rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-100);
}

.battery-highlight__icon {
    font-size: 1.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.battery-highlight__title {
    font-size: var(--normal-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.battery-highlight__desc {
    font-size: var(--small-font-size);
    color: var(--text-light);
    margin: 0;
}

.battery-brands-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.battery-brand {
    background: var(--white-color);
    border: 1px solid var(--gray-200);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.battery-brand:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.battery-brand__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background:
        linear-gradient(160deg, #eef5ff 0%, #f8fafc 55%, #edf2f7 100%);
    display: grid;
    place-items: center;
    overflow: hidden;
}

.battery-brand__fallback {
    font-size: 2.75rem;
    opacity: 0.55;
    z-index: 0;
}

.battery-brand__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.85rem;
    z-index: 1;
    background: transparent;
}

.battery-brand__image.is-missing {
    display: none;
}

.battery-brand__body {
    padding: 1rem 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    flex: 1;
}

.battery-brand__name {
    font-size: 1.05rem;
    font-weight: var(--font-bold);
    color: var(--dark-color);
    margin: 0;
}

.battery-brand__desc {
    font-size: var(--small-font-size);
    color: var(--text-light);
    margin: 0;
    line-height: 1.55;
    flex: 1;
}

.battery-brand__cta {
    margin-top: 0.35rem;
    align-self: flex-start;
    color: var(--primary-color);
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
    text-decoration: none;
}

.battery-brand__cta:hover {
    color: var(--secondary-color);
}

.battery-brands-note {
    margin-top: 1.75rem;
    text-align: center;
    color: var(--text-light);
    max-width: 760px;
    margin-inline: auto;
    font-size: var(--normal-font-size);
}

.battery-areas-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.battery-area {
    background: var(--white-color);
    border-radius: 0.85rem;
    padding: 1rem 1.1rem;
    border-inline-start: 4px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.battery-area__title {
    font-weight: var(--font-semi-bold);
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.battery-area__desc {
    font-size: var(--small-font-size);
    color: var(--text-light);
    margin: 0;
}

.battery-steps {
    display: grid;
    gap: 1.25rem;
    counter-reset: battery-step;
}

.battery-step {
    position: relative;
    background: var(--white-color);
    border-radius: 1rem;
    padding: 1.35rem 1.35rem 1.35rem 4.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    counter-increment: battery-step;
}

[dir="rtl"] .battery-step {
    padding: 1.35rem 4.25rem 1.35rem 1.35rem;
}

.battery-step::before {
    content: counter(battery-step);
    position: absolute;
    top: 1.25rem;
    inset-inline-start: 1.15rem;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--white-color);
    display: grid;
    place-items: center;
    font-weight: var(--font-bold);
    box-shadow: var(--shadow-primary);
}

.battery-step__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.4rem;
    color: var(--dark-color);
}

.battery-step__desc {
    color: var(--text-light);
    margin: 0;
}

.battery-why-grid {
    display: grid;
    gap: 1rem;
}

.battery-why-card {
    background: var(--white-color);
    border-radius: 1rem;
    padding: 1.35rem;
    box-shadow: var(--shadow-md);
    border-top: 3px solid var(--secondary-color);
}

.battery-why-card__title {
    font-size: 1.1rem;
    margin-bottom: 0.45rem;
    color: var(--dark-color);
}

.battery-why-card__desc {
    color: var(--text-light);
    margin: 0;
    font-size: var(--small-font-size);
}

.battery-faq {
    display: grid;
    gap: 0.85rem;
    max-width: 860px;
    margin-inline: auto;
}

.battery-faq details {
    background: var(--white-color);
    border-radius: 0.9rem;
    border: 1px solid var(--gray-200);
    padding: 1rem 1.2rem;
    box-shadow: var(--shadow-sm);
}

.battery-faq summary {
    cursor: pointer;
    font-weight: var(--font-semi-bold);
    color: var(--dark-color);
    list-style: none;
}

.battery-faq summary::-webkit-details-marker {
    display: none;
}

.battery-faq summary::after {
    content: '+';
    float: inline-end;
    color: var(--primary-color);
    font-weight: var(--font-bold);
}

.battery-faq details[open] summary::after {
    content: '−';
}

.battery-faq details p {
    margin-top: 0.75rem;
    color: var(--text-light);
}

.battery-cta {
    background: var(--gradient-primary);
    color: var(--white-color);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.battery-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(255, 102, 0, 0.25), transparent 40%),
        radial-gradient(circle at 85% 80%, rgba(255, 255, 255, 0.12), transparent 35%);
    pointer-events: none;
}

.battery-cta .container {
    position: relative;
    z-index: 1;
}

.battery-cta__title {
    font-size: var(--h2-font-size);
    margin-bottom: var(--mb-1);
    color: var(--white-color);
}

.battery-cta__desc {
    max-width: 640px;
    margin: 0 auto var(--mb-2);
    color: rgba(255, 255, 255, 0.92);
}

.battery-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.battery-cta .button--secondary {
    background: var(--white-color);
    color: var(--primary-color);
}

.battery-cta .button--secondary:hover {
    background: var(--gray-100);
}

.battery-cta .button--call {
    background: var(--secondary-color);
    color: var(--white-color);
}

.service-card--link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    cursor: pointer;
}

.service-card--link:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
}

.service-card__cta {
    margin-top: 0.85rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--primary-color);
}

@media screen and (min-width: 768px) {
    .battery-intro__grid {
        grid-template-columns: 1.1fr 0.9fr;
    }

    .battery-highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .battery-brands-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }

    .battery-areas-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .battery-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .battery-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (min-width: 1024px) {
    .battery-breadcrumb {
        justify-content: flex-start;
    }

    [dir="rtl"] .battery-breadcrumb {
        justify-content: flex-start;
    }

    .battery-page .home__content {
        text-align: start;
    }

    .battery-page .home__description {
        margin-inline: 0;
    }

    .battery-brands-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .battery-why-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
