/**
 * Auto-rotating pest showcase — centered active image + name only
 */

.pest-showcase {
    display: block !important;
    visibility: visible !important;
    background: linear-gradient(180deg, #f0f6fa 0%, #fff 50%, #f4f8fb 100%);
    border-top: 1px solid #e2eaf2;
    border-bottom: 1px solid #e2eaf2;
}

.pest-showcase__header {
    max-width: 42rem;
    margin: 0 auto 1.75rem;
    text-align: center;
}

.pest-showcase__label {
    display: inline-block;
    margin: 0 0 0.625rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #005588;
    background: #e8f4fa;
    border-radius: 4px;
}

.pest-showcase__heading {
    margin: 0 0 0.75rem;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #0c1f3d;
}

.pest-showcase__subheading {
    margin: 0 auto;
    max-width: 40rem;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: #64748b;
}

/* Centered showcase — one image, one name */
.pest-showcase__stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pest-showcase__focus {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    width: 100%;
    max-width: 52rem;
    margin: 0 auto;
}

.pest-showcase__viewport {
    position: relative;
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    max-height: min(72vh, 28rem);
    background: #0c1f3d;
    box-shadow:
        0 4px 6px rgba(12, 31, 61, 0.06),
        0 20px 48px rgba(12, 31, 61, 0.14);
}

@media (min-width: 768px) {
    .pest-showcase__viewport {
        aspect-ratio: 16 / 9;
        border-radius: 18px;
    }
}

.pest-showcase__slide {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.pest-showcase__slide[hidden],
.pest-showcase__slide[style*="display: none"] {
    visibility: hidden !important;
    pointer-events: none;
}

.pest-showcase__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.pest-showcase__name {
    margin: 0;
    padding: 0 1rem;
    max-width: 100%;
    text-align: center;
    font-size: clamp(1.25rem, 3.5vw, 1.625rem);
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: #0c1f3d;
}

/* Legacy slider UI — not used */
.pest-showcase__controls,
.pest-showcase__nav-btn,
.pest-showcase__footer,
.pest-showcase__progress,
.pest-showcase__overlay,
.pest-showcase__caption {
    display: none !important;
}

/* Arrow buttons — positioned over the image */
.pest-showcase__focus {
    position: relative;
}

.pest-showcase__arrow {
    position: absolute;
    top: calc(50% - 1.5rem); /* vertically center on the image, offset for name below */
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: #0c1f3d;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(12, 31, 61, 0.18);
    transition: background 0.15s, transform 0.15s;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.pest-showcase__arrow:hover {
    background: #fff;
    transform: scale(1.08);
}

.pest-showcase__arrow--prev { left: 0.75rem; }
.pest-showcase__arrow--next { right: 0.75rem; }

@media (min-width: 640px) {
    .pest-showcase__arrow--prev { left: 1rem; }
    .pest-showcase__arrow--next { right: 1rem; }
}

/* Dot navigation */
.pest-showcase__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.pest-showcase__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: #c3d4e6;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, width 0.2s;
}

.pest-showcase__dot.is-active {
    background: #005588;
    width: 1.5rem;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .pest-showcase__slide {
        transition: none !important;
    }
}

/* ── Pest Groups Section ─────────────────────────────────────── */
.pest-groups {
    background: #f8fafc;
}

.pest-groups__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .pest-groups__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.pest-groups__card {
    background: #fff;
    border: 1px solid #e8eef5;
    border-radius: 1rem;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
}

.pest-groups__card:hover {
    box-shadow: 0 8px 32px rgba(0,85,136,0.10);
    transform: translateY(-2px);
}

.pest-groups__card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.875rem;
}

.pest-groups__card-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.625rem;
    background: rgba(0,85,136,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #005588;
}

.pest-groups__card-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #005588;
    margin-bottom: 0.125rem;
}

.pest-groups__card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2940;
    line-height: 1.3;
}

.pest-groups__card-desc {
    font-size: 0.84rem;
    color: #5e7a96;
    line-height: 1.65;
    margin-bottom: 1.25rem;
    flex-grow: 0;
}

.pest-groups__services {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.pest-groups__service-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.pest-groups__service-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: #005588;
    flex-shrink: 0;
    margin-top: 0.45rem;
}

.pest-groups__service-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a2940;
    text-decoration: none;
    display: block;
    margin-bottom: 0.125rem;
    transition: color 0.15s;
}

.pest-groups__service-name:hover {
    color: #005588;
}

.pest-groups__service-desc {
    font-size: 0.78rem;
    color: #7a95ae;
    line-height: 1.5;
    margin: 0;
}

.pest-groups__card-cta {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #005588;
    text-decoration: none;
    padding-top: 1rem;
    border-top: 1px solid #e8eef5;
    margin-top: auto;
    transition: gap 0.15s, color 0.15s;
}

.pest-groups__card-cta:hover {
    color: #003d6b;
}
