/* ==========================================================================
   Service archive + single-service templates
   ========================================================================== */

.ab-svc-archive { padding: var(--ab-section-py) 0; }
.ab-svc-cats { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 40px; justify-content: center; }
.ab-svc-cat-chip { padding: 8px 16px; background: var(--ab-frost); border: 1px solid var(--ab-line); border-radius: var(--ab-radius-pill); font-family: var(--ab-font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ab-ink-500); }
.ab-svc-cat-chip.is-active { background: var(--ab-petrol-600); border-color: var(--ab-petrol-600); color: var(--ab-white); }
.ab-svc-cat-chip:hover { border-color: var(--ab-ice-500); color: var(--ab-ice-700); }

/* Single service */
.ab-svc-layout { display: grid; grid-template-columns: 1fr 360px; gap: 50px; }
.ab-svc-content > * + * { margin-top: 28px; }
.ab-svc-content h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-top: 48px; }
.ab-svc-content h3 { font-size: 1.35rem; margin-top: 32px; }
.ab-svc-content p { font-size: 1.0625rem; line-height: 1.7; color: var(--ab-ink-500); }
.ab-svc-content ul { padding-left: 1.2em; }
.ab-svc-content ul li { padding: 6px 0; color: var(--ab-ink-500); list-style: none; position: relative; padding-left: 24px; }
.ab-svc-content ul li::before {
    content:''; position: absolute; left: 0; top: 14px;
    width: 12px; height: 2px; background: var(--ab-orange-500); transform: skewX(-28deg);
}

/* Sidebar */
.ab-svc-sidebar { display: flex; flex-direction: column; gap: 22px; }
.ab-svc-box {
    background: var(--ab-white);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius-lg);
    padding: 26px;
}
.ab-svc-box--dark { background: var(--ab-petrol-600); color: var(--ab-ice-100); border-color: transparent; }
.ab-svc-box--dark h4 { color: var(--ab-white); }
.ab-svc-box h4 { font-size: 0.95rem; letter-spacing: 0.12em; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--ab-line); }
.ab-svc-box--dark h4 { border-bottom-color: rgba(255,255,255,0.10); }
.ab-svc-box ul { display: flex; flex-direction: column; gap: 8px; }
.ab-svc-box li { color: var(--ab-ink-500); font-size: 0.95rem; }
.ab-svc-box--dark li { color: var(--ab-ice-200); }
.ab-svc-box .ab-btn { width: 100%; justify-content: center; }

.ab-svc-price-box {
    background: linear-gradient(135deg, var(--ab-ice-500), var(--ab-ice-700));
    color: var(--ab-white);
    padding: 28px;
    border-radius: var(--ab-radius-lg);
    text-align: center;
}
.ab-svc-price-box__amount { font-family: var(--ab-font-display); font-size: 3rem; line-height: 1; margin: 8px 0; }
.ab-svc-price-box__amount .from { font-size: 0.85rem; opacity: 0.7; letter-spacing: 0.12em; }
.ab-svc-price-box__meta { font-family: var(--ab-font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.ab-svc-price-box .ab-btn { margin-top: 18px; width: 100%; justify-content: center; background: var(--ab-orange-500); }

/* Process steps */
.ab-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .ab-process { grid-template-columns: 1fr; } }
.ab-process .ab-step { background: var(--ab-frost); border-color: transparent; }

/* Tech specs strip */
.ab-tech-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }

@media (max-width: 1000px) {
    .ab-svc-layout { grid-template-columns: 1fr; }
    .ab-svc-sidebar { order: -1; }
}

/* ==========================================================================
   Landing gallery — admin-managed image grid + lightbox
   ========================================================================== */
.ab-landing-gallery { padding: 32px 0 56px; }
.ab-landing-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 900px) { .ab-landing-gallery__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .ab-landing-gallery__grid { grid-template-columns: 1fr; } }

.ab-landing-gallery__item {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--ab-frost);
    border: 0;
    padding: 0;
    cursor: zoom-in;
    display: block;
    width: 100%;
}
.ab-landing-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
}
.ab-landing-gallery__item:hover img { transform: scale(1.05); }
.ab-landing-gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(10, 30, 42, 0.32) 100%);
    opacity: 0;
    transition: opacity 280ms ease;
    pointer-events: none;
}
.ab-landing-gallery__item:hover::after { opacity: 1; }

/* Lightbox ─────────────────────────────────────────── */
.ab-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ab-lightbox[hidden] { display: none; }

.ab-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 14, 22, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: zoom-out;
    animation: ab-lb-fade 220ms ease-out;
}

.ab-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 72px;
    animation: ab-lb-in 280ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes ab-lb-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes ab-lb-in {
    from { opacity: 0; transform: scale(0.97); }
    to   { opacity: 1; transform: scale(1); }
}

.ab-lightbox__frame {
    margin: 0;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.ab-lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 160px);
    display: block;
    object-fit: contain;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
}
.ab-lightbox__counter {
    font-family: var(--ab-font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.ab-lightbox__close,
.ab-lightbox__nav {
    position: absolute;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: var(--ab-white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 220ms ease, border-color 220ms ease;
    z-index: 2;
}
.ab-lightbox__close:hover,
.ab-lightbox__nav:hover {
    background: var(--ab-ice-brand);
    border-color: var(--ab-ice-brand);
    color: var(--ab-petrol-700);
}
.ab-lightbox__close svg,
.ab-lightbox__nav svg { width: 22px; height: 22px; }
.ab-lightbox__close { top: 24px; right: 24px; }
.ab-lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.ab-lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }

body.ab-lightbox-open { overflow: hidden; }

@media (max-width: 700px) {
    .ab-lightbox__dialog { padding: 56px 16px; }
    .ab-lightbox__close { top: 12px; right: 12px; width: 40px; height: 40px; }
    .ab-lightbox__nav { width: 40px; height: 40px; }
    .ab-lightbox__nav--prev { left: 8px; }
    .ab-lightbox__nav--next { right: 8px; }
    .ab-lightbox__img { max-height: calc(100vh - 140px); }
}

