/* AB Detailing — About & Quality widgets (v1.1.0) */

.aba-section {
    --aba-accent: #2563EB;
    --aba-accent-hover: #1D4ED8;
    --aba-ink: #0f172a;
    --aba-text: #475569;
    --aba-muted: #64748b;
    --aba-line: #e2e8f0;
    --aba-soft: #f8fafc;
    --aba-ease: cubic-bezier(.22, .61, .36, 1);
    padding: 100px 20px;
    background-color: #ffffff;
    box-sizing: border-box;
}

.aba-section *,
.aba-section *::before,
.aba-section *::after {
    box-sizing: border-box;
}

.aba-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ------------------------------------------------------------------ */
/* Scroll reveal — only opacity + translate, so it stays smooth        */
/* The hidden state exists only after the script marks an element      */
/* (.aba-pre), so without JS everything is simply visible.             */
/* ------------------------------------------------------------------ */
.aba-reveal.aba-pre {
    opacity: 0;
    translate: 0 22px;
    transition: opacity .7s var(--aba-ease), translate .7s var(--aba-ease);
    transition-delay: calc(var(--i, 0) * 80ms);
}

.aba-reveal.aba-pre.is-in {
    opacity: 1;
    translate: 0 0;
}

/* Timeline line draws downwards */
.aba-line.aba-pre::before {
    scale: 1 0;
    transform-origin: top center;
    transition: scale 1.3s var(--aba-ease);
}

.aba-line.aba-pre.is-in::before {
    scale: 1 1;
}

/* Title underline grows from the left */
.aba-title.aba-pre::after {
    scale: 0 1;
    transform-origin: left center;
    transition: scale .8s var(--aba-ease) .3s;
}

.aba-title.aba-pre.is-in::after {
    scale: 1 1;
}

/* ------------------------------------------------------------------ */
/* About grid                                                          */
/* ------------------------------------------------------------------ */
.aba-grid {
    display: flex;
    align-items: center;
    gap: 60px;
}

.aba-content-col {
    flex: 1.1;
}

.aba-image-col {
    flex: 1;
    position: relative;
}

.aba-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--aba-ink);
    margin: 0 0 20px;
    letter-spacing: -0.5px;
    position: relative;
    display: inline-block;
}

.aba-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--aba-accent);
    bottom: -10px;
    left: 0;
    border-radius: 2px;
}

.aba-subtitle {
    font-size: 22px;
    font-weight: 600;
    color: var(--aba-accent);
    margin: 30px 0 20px 0;
    line-height: 1.4;
}

.aba-desc {
    font-size: 16px;
    color: var(--aba-text);
    line-height: 1.8;
}

.aba-desc p {
    margin-bottom: 20px;
}

.aba-desc strong {
    color: var(--aba-ink);
    font-weight: 700;
}

/* Button */
.aba-btn-wrap {
    margin-top: 35px;
}

.aba-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    background-color: var(--aba-accent);
    color: #ffffff !important;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color .3s ease, transform .3s var(--aba-ease), box-shadow .3s ease;
    border: 1px solid transparent;
}

.aba-btn:hover,
.aba-btn:focus-visible {
    background-color: var(--aba-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

/* Image & stats */
.aba-image-wrap {
    position: relative;
    z-index: 1;
    padding-bottom: 40px;
    padding-left: 20px;
}

.aba-image-wrap::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    bottom: 60px;
    left: 40px;
    border: 3px dashed var(--aba-accent);
    border-radius: 12px;
    z-index: -1;
    opacity: 0.3;
}

.aba-main-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: block;
    object-fit: cover;
}

.aba-stats-box {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 30px;
    z-index: 2;
    border: 1px solid #f1f5f9;
}

.aba-stat-item {
    display: flex;
    flex-direction: column;
}

.aba-stat-number {
    font-size: 32px;
    font-weight: 900;
    color: var(--aba-accent);
    line-height: 1;
    margin-bottom: 5px;
    letter-spacing: -1px;
}

.aba-stat-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--aba-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.aba-stat-divider {
    width: 2px;
    height: 40px;
    background-color: var(--aba-line);
}

/* ------------------------------------------------------------------ */
/* Shared block heading                                                */
/* ------------------------------------------------------------------ */
.aba-block {
    margin-top: 100px;
}

.aba-block-head {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 44px;
}

.aba-block-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--aba-ink);
    letter-spacing: -0.3px;
    line-height: 1.25;
    margin: 0 0 10px;
}

.aba-block-sub {
    font-size: 16px;
    color: var(--aba-text);
    line-height: 1.7;
    margin: 0;
}

/* ------------------------------------------------------------------ */
/* Career timeline                                                     */
/* ------------------------------------------------------------------ */
.aba-timeline {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    padding-left: 48px;
}

.aba-timeline::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 14px;
    bottom: 14px;
    width: 2px;
    border-radius: 2px;
    background: linear-gradient(to bottom, var(--aba-accent), var(--aba-line));
}

.aba-tl-item {
    position: relative;
    padding-bottom: 28px;
}

.aba-tl-item:last-child {
    padding-bottom: 0;
}

.aba-tl-dot {
    position: absolute;
    left: -44px;
    top: 34px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 4px solid var(--aba-accent);
    box-shadow: 0 0 0 5px rgba(37, 99, 235, .12);
}

@supports (color: color-mix(in srgb, red 10%, blue)) {
    .aba-tl-dot {
        box-shadow: 0 0 0 5px color-mix(in srgb, var(--aba-accent) 14%, transparent);
    }
}

.aba-tl-card {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    padding: 26px;
    background: #ffffff;
    border: 1px solid var(--aba-line);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, .04);
    transition: transform .35s var(--aba-ease), box-shadow .35s ease, border-color .35s ease;
}

.aba-tl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .09);
    border-color: #cbd5e1;
}

.aba-tl-logo {
    flex: 0 0 140px;
    height: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: var(--aba-soft);
    border: 1px solid #f1f5f9;
    border-radius: 12px;
}

.aba-tl-logo img {
    display: block;
    height: 44px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.aba-tl-body {
    flex: 1;
    min-width: 0;
}

.aba-tl-years {
    display: inline-block;
    padding: 4px 12px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .3px;
    color: var(--aba-accent);
    background: rgba(37, 99, 235, .09);
    border-radius: 999px;
}

@supports (color: color-mix(in srgb, red 10%, blue)) {
    .aba-tl-years {
        background: color-mix(in srgb, var(--aba-accent) 10%, transparent);
    }
}

.aba-tl-company {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--aba-ink);
    margin: 0 0 4px;
}

.aba-tl-meta {
    font-size: 14px;
    font-weight: 600;
    color: var(--aba-muted);
    margin: 0 0 10px;
}

.aba-tl-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--aba-text);
    margin: 0;
}

.aba-tl-badge {
    display: inline-block;
    margin-top: 14px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #92400e;
    background: #fef3c7;
    border-radius: 8px;
}

/* ------------------------------------------------------------------ */
/* Certificates                                                        */
/* ------------------------------------------------------------------ */
.aba-creds {
    padding: 56px 44px;
    background: var(--aba-soft);
    border: 1px solid #f1f5f9;
    border-radius: 24px;
}

.aba-cert-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.aba-cert-li {
    margin: 0;
    padding: 0;
}

.aba-cert {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid var(--aba-line);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform .35s var(--aba-ease), box-shadow .35s ease, border-color .35s ease;
}

.aba-cert:hover,
.aba-cert:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .1);
    border-color: #cbd5e1;
}

.aba-cert:focus-visible {
    outline: 2px solid var(--aba-accent);
    outline-offset: 2px;
}

.aba-cert-thumb {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef2f7;
}

.aba-cert-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .6s var(--aba-ease);
}

.aba-cert:hover .aba-cert-thumb img {
    transform: scale(1.04);
}

.aba-cert-zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(15, 23, 42, .72);
    border-radius: 50%;
    opacity: 0;
    translate: 0 6px;
    transition: opacity .3s ease, translate .3s var(--aba-ease);
}

.aba-cert:hover .aba-cert-zoom,
.aba-cert:focus-visible .aba-cert-zoom {
    opacity: 1;
    translate: 0 0;
}

.aba-cert-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 16px 16px;
}

.aba-cert-info strong {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--aba-ink);
}

.aba-cert-info span {
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--aba-muted);
}

/* ------------------------------------------------------------------ */
/* Lightbox (added to <body> by the script)                            */
/* ------------------------------------------------------------------ */
html.aba-lb-lock {
    overflow: hidden;
}

.aba-lb {
    --aba-ease: cubic-bezier(.22, .61, .36, 1);
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 16px 24px;
    background: rgba(15, 23, 42, .9);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s ease, visibility 0s linear .3s;
}

.aba-lb.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity .3s ease;
}

.aba-lb-fig {
    margin: 0;
    max-width: min(1100px, 100%);
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    scale: .96;
    transition: scale .4s var(--aba-ease);
}

.aba-lb.is-open .aba-lb-fig {
    scale: 1;
}

.aba-lb-fig img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 140px);
    max-height: calc(100dvh - 140px);
    width: auto;
    height: auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
    opacity: 0;
    transition: opacity .3s ease;
}

.aba-lb-fig img.is-ready {
    opacity: 1;
}

.aba-lb-fig figcaption {
    max-width: 90%;
    text-align: center;
    font-size: 14px;
    line-height: 1.5;
    color: #e2e8f0;
}

.aba-lb-btn {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    color: #ffffff;
    background: rgba(255, 255, 255, .12);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color .25s ease;
}

.aba-lb-btn:hover,
.aba-lb-btn:focus-visible {
    background: rgba(255, 255, 255, .26);
    outline: 0;
}

.aba-lb-close {
    top: 10px;
    right: 12px;
}

.aba-lb-prev,
.aba-lb-next {
    top: 50%;
    margin-top: -22px;
}

.aba-lb-prev {
    left: 12px;
}

.aba-lb-next {
    right: 12px;
}

.aba-lb.is-single .aba-lb-prev,
.aba-lb.is-single .aba-lb-next {
    display: none;
}

/* ------------------------------------------------------------------ */
/* Quality widget                                                      */
/* ------------------------------------------------------------------ */
.aba-q-head {
    margin-bottom: 56px;
}

.aba-chip {
    display: inline-block;
    margin-bottom: 16px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .4px;
    color: var(--aba-accent);
    background: rgba(37, 99, 235, .09);
    border-radius: 999px;
}

@supports (color: color-mix(in srgb, red 10%, blue)) {
    .aba-chip {
        background: color-mix(in srgb, var(--aba-accent) 10%, transparent);
    }
}

.aba-q-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--aba-ink);
    letter-spacing: -0.4px;
    line-height: 1.2;
    margin: 0 0 14px;
}

.aba-q-block + .aba-q-block {
    margin-top: 56px;
}

.aba-q-sub {
    font-size: 22px;
    font-weight: 700;
    color: var(--aba-ink);
    margin: 0 0 24px;
}

/* Steps */
.aba-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.aba-step {
    position: relative;
    margin: 0;
    padding: 26px 22px 24px;
    background: #ffffff;
    border: 1px solid var(--aba-line);
    border-radius: 16px;
    transition: transform .35s var(--aba-ease), box-shadow .35s ease, border-color .35s ease;
}

.aba-step:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(15, 23, 42, .09);
    border-color: #cbd5e1;
}

.aba-step-num {
    display: block;
    margin-bottom: 14px;
    font-size: 34px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--aba-accent);
    opacity: .85;
}

.aba-step-name {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--aba-ink);
    margin: 0 0 8px;
}

.aba-step-text {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--aba-text);
    margin: 0;
}

/* Checklist */
.aba-chk {
    border: 1px solid var(--aba-line);
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.aba-chk-row {
    display: grid;
    grid-template-columns: 90px 190px minmax(0, 1fr) 240px;
    gap: 20px;
    align-items: start;
    padding: 18px 24px;
    border-top: 1px solid #f1f5f9;
    transition: background-color .25s ease;
}

.aba-chk-row:not(.aba-chk-head):hover {
    background: var(--aba-soft);
}

.aba-chk-head {
    border-top: 0;
    padding-top: 14px;
    padding-bottom: 14px;
    background: var(--aba-soft);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: var(--aba-muted);
}

.aba-chk-id {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .3px;
    color: var(--aba-accent);
}

.aba-chk-cat {
    font-size: 15px;
    font-weight: 700;
    color: var(--aba-ink);
}

.aba-chk-req,
.aba-chk-method {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--aba-text);
}

.aba-chk-method {
    color: var(--aba-muted);
}

/* Standards + deliverables */
.aba-q-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 56px;
}

.aba-q-card {
    padding: 28px;
    background: var(--aba-soft);
    border: 1px solid #f1f5f9;
    border-radius: 16px;
}

.aba-q-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--aba-ink);
    margin: 0 0 16px;
}

.aba-tags {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.aba-tags li {
    margin: 0;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 600;
    color: var(--aba-ink);
    background: #ffffff;
    border: 1px solid var(--aba-line);
    border-radius: 999px;
}

.aba-q-note {
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--aba-muted);
}

.aba-q-btn {
    text-align: center;
    margin-top: 44px;
}

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 1100px) {
    .aba-cert-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .aba-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .aba-chk-row {
        grid-template-columns: 80px 160px minmax(0, 1fr) 200px;
        gap: 16px;
    }
}

@media (max-width: 991px) {
    .aba-grid {
        flex-direction: column;
        gap: 50px;
    }

    .aba-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .aba-title.aba-pre::after {
        transform-origin: center;
    }

    .aba-content-col {
        text-align: center;
    }

    .aba-desc {
        text-align: left;
    }

    .aba-image-wrap {
        padding-left: 0;
        max-width: 600px;
        margin: 0 auto;
    }

    .aba-image-wrap::before {
        left: 20px;
        right: -8px;
    }

    .aba-block {
        margin-top: 80px;
    }

    /* checklist turns into stacked cards */
    .aba-chk-head {
        display: none;
    }

    .aba-chk-row {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 6px 14px;
        padding: 18px 20px;
    }

    .aba-chk-req,
    .aba-chk-method {
        grid-column: 1 / -1;
    }

    .aba-chk-method::before {
        content: attr(data-label) ": ";
        font-weight: 700;
        color: var(--aba-ink);
    }
}

@media (max-width: 768px) {
    .aba-section {
        padding: 60px 15px;
    }

    .aba-title {
        font-size: 32px;
    }

    .aba-subtitle {
        font-size: 18px;
    }

    .aba-stats-box {
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        padding: 20px;
        gap: 15px;
        justify-content: center;
    }

    .aba-stat-number {
        font-size: 26px;
    }

    .aba-stat-text {
        font-size: 12px;
    }

    .aba-block {
        margin-top: 70px;
    }

    .aba-block-head {
        margin-bottom: 32px;
    }

    .aba-block-title {
        font-size: 26px;
    }

    .aba-q-title {
        font-size: 28px;
    }

    .aba-creds {
        padding: 36px 16px;
        border-radius: 18px;
    }

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

    .aba-cert-info {
        padding: 10px 12px 12px;
    }

    .aba-cert-info strong {
        font-size: 13px;
    }

    .aba-cert-info span {
        font-size: 12px;
    }

    .aba-cert-zoom {
        opacity: 1;
        translate: 0 0;
        width: 30px;
        height: 30px;
    }

    .aba-timeline {
        padding-left: 32px;
    }

    .aba-timeline::before {
        left: 7px;
    }

    .aba-tl-dot {
        left: -32px;
        top: 30px;
    }

    .aba-tl-card {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }

    .aba-tl-logo {
        flex: 0 0 auto;
        width: 100%;
        height: 72px;
    }

    .aba-q-cols {
        grid-template-columns: 1fr;
        margin-top: 40px;
    }

    .aba-q-block + .aba-q-block {
        margin-top: 44px;
    }

    .aba-lb-prev {
        left: 6px;
    }

    .aba-lb-next {
        right: 6px;
    }
}

@media (max-width: 600px) {
    .aba-steps {
        grid-template-columns: 1fr;
    }
}

/* Respect "reduce motion" system setting */
@media (prefers-reduced-motion: reduce) {
    .aba-reveal.aba-pre,
    .aba-line.aba-pre::before,
    .aba-title.aba-pre::after {
        opacity: 1;
        translate: none;
        scale: none;
        transition: none;
    }

    .aba-tl-card,
    .aba-cert,
    .aba-cert-thumb img,
    .aba-step,
    .aba-btn,
    .aba-lb,
    .aba-lb-fig,
    .aba-lb-fig img {
        transition: none;
    }

    .aba-tl-card:hover,
    .aba-cert:hover,
    .aba-step:hover,
    .aba-btn:hover {
        transform: none;
    }
}
