/* ==========================================================
   About Us - Pillars (ab-pillars)
   Fonts come from suffesv3-main-heading / suffesv3-sub-heading /
   suffesv3-sub-para; this file only sets layout & colours
   ========================================================== */
.ab-pillars {
    --ap-red: #e92b26;
    --ap-ink: #0f1115;
    --ap-ink-soft: #4a4f5c;
    --ap-line: rgba(15, 17, 21, 0.09);
    position: relative;
    overflow: hidden;
    padding: 70px 0;
    background: #fbfaf8;
    isolation: isolate;
}
.ab-pillars::before {
    content: "";
    position: absolute;
    top: -200px;
    right: -150px;
    z-index: -1;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(233, 43, 38, 0.08), transparent 65%);
    filter: blur(30px);
    pointer-events: none;
}

/* ---------- Header ---------- */
.ab-pillars__head {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
}
.ab-pillars__head .suffesv3-main-heading {
    margin-bottom: 18px;
}
.ab-pillars__head .suffesv3-sub-para {
    margin: 0 auto;
    color: var(--ap-ink-soft);
}

/* ---------- Track (scroll-drawn line above the cards) ---------- */
.ab-pillars__track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 28px;
}
.ab-pillars__track::before,
.ab-pillars__track-fill {
    content: "";
    position: absolute;
    top: 50%;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    margin-top: -1px;
    background: var(--ap-line);
}
.ab-pillars__track-fill {
    background: var(--ap-ink);
    transform-origin: left;
    transform: scaleX(0);
}
.ab-pillars__dot {
    position: relative;
    z-index: 1;
    justify-self: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(15, 17, 21, 0.25);
    background: #fbfaf8;
    transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}
.ab-pillars__dot.is-lit {
    border-color: var(--ap-red);
    background: var(--ap-red);
    box-shadow: 0 0 0 6px rgba(233, 43, 38, 0.15);
}

/* ---------- Cards ---------- */
.ab-pillars__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.ab-pillars__reveal {
    display: flex;
}
.ab-pillars__card {
    flex: 1;
    --mx: 50%;
    --my: 50%;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    padding: 32px 28px;
    border: 1px solid var(--ap-line);
    border-radius: 24px;
    background: #fff;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease, border-color 0.4s ease;
}
/* dark fill that rises on hover */

/* cursor spotlight */
.ab-pillars__card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(300px circle at var(--mx) var(--my), rgba(233, 43, 38, 0.22), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.ab-pillars__card:hover {
    transform: translateY(-10px);
    border-color: var(--ap-ink);
    box-shadow: 0 40px 70px -35px rgba(15, 17, 21, 0.55);
}
.ab-pillars__card:hover::before { transform: translateY(0); }
.ab-pillars__card:hover::after { opacity: 1; }

.ab-pillars__card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: auto;
    padding-bottom: 48px;
}
.ab-pillars__tag {
    margin: 0;
    color: var(--ap-ink-soft);
    transition: color 0.4s ease;
}
.ab-pillars__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--ap-ink);
    color: #fff;
    transition: background 0.4s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.ab-pillars__card:hover .ab-pillars__icon {
    background: var(--ap-red);
    transform: rotate(-10deg) scale(1.08);
}

/* big outlined number (decorative) */
.ab-pillars__num {
    position: absolute;
    right: -6px;
    bottom: -28px;
    z-index: -1;
    font-size: 150px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.06em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(15, 17, 21, 0.08);
    transition: -webkit-text-stroke-color 0.4s ease;
    pointer-events: none;
}
.ab-pillars__card:hover .ab-pillars__num {
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.14);
}

.ab-pillars__card h3 {
    margin: 0 0 12px;
    transition: color 0.4s ease;
}
.ab-pillars__card .ab-pillars__desc {
    margin: 0;
    color: var(--ap-ink-soft);
    transition: color 0.4s ease;
}
/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
    .ab-pillars__card { min-height: 400px; padding: 28px 22px; }
}
@media (max-width: 991px) {
    .ab-pillars { padding: 90px 0; }
    .ab-pillars__head { margin-bottom: 48px; }
    .ab-pillars__track { display: none; }
    .ab-pillars__grid { grid-template-columns: repeat(2, 1fr); }
    .ab-pillars__card { min-height: 340px; }
}
@media (max-width: 575px) {
    .ab-pillars { padding: 70px 0; }
    .ab-pillars__grid { grid-template-columns: 1fr; gap: 16px; }
    .ab-pillars__card { min-height: 0; padding: 26px 22px; border-radius: 20px; }
    .ab-pillars__card-top { padding-bottom: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .ab-pillars *,
    .ab-pillars *::before,
    .ab-pillars *::after {
        transition: none !important;
    }
}
