/* ==========================================================================
   Service cards, USP cards, process cards, employee cards
   ========================================================================== */

.ab-card {
    position: relative;
    background: var(--ab-white);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius-lg);
    overflow: hidden;
    transition: border-color var(--ab-dur) var(--ab-ease-out);
    display: flex; flex-direction: column;
}
.ab-card:hover { border-color: var(--ab-ice-400); }
.ab-card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--ab-frost); }
.ab-card__media img { width:100%; height:100%; object-fit: cover; transition: transform 0.6s var(--ab-ease-out); }
.ab-card:hover .ab-card__media img { transform: scale(1.06); }
.ab-card__media::after {
    content:''; position:absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(10,30,42,0.45) 100%);
    pointer-events: none;
}
.ab-card__readouts {
    position: absolute; left: 16px; bottom: 16px; right: 16px;
    display: flex; gap: 8px; flex-wrap: wrap; z-index: 2;
}
.ab-card__body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.ab-card__cat {
    font-family: var(--ab-font-mono); font-size: 0.72rem;
    letter-spacing: 0.16em; text-transform: uppercase; color: var(--ab-ice-700);
}
.ab-card__title { font-size: 1.35rem; line-height: 1.1; }
.ab-card__title a { color: var(--ab-ink-900); }
.ab-card__title a:hover { color: var(--ab-ice-600); }
.ab-card__excerpt { color: var(--ab-ink-500); font-size: 0.95rem; line-height: 1.55; }
.ab-card__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; border-top: 1px dashed var(--ab-line); }
.ab-card__price { font-family: var(--ab-font-display); font-size: 1.25rem; color: var(--ab-ink-900); }
.ab-card__price .from { font-family: var(--ab-font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ab-ink-400); margin-right: 6px; }
.ab-card__cta {
    display:inline-flex; align-items:center; gap: 8px;
    font-family: var(--ab-font-display); font-size: 0.9rem;
    letter-spacing: 0.05em; text-transform: uppercase;
    color: var(--ab-ice-700);
    transition: color var(--ab-dur);
}
.ab-card__cta:hover { color: var(--ab-orange-500); }
.ab-card__cta .arrow { width: 18px; height: 2px; background: currentColor; position: relative; flex-shrink: 0; }
.ab-card__cta .arrow::after { content:''; position:absolute; right:0; top:-3px; width:8px; height:8px; border-right:2px solid currentColor; border-top:2px solid currentColor; transform: rotate(45deg); }

/* Signature orange diagonal slash on cards */
.ab-card__slash {
    position: absolute; top: 18px; right: -8px;
    width: 60px; height: 6px;
    background: var(--ab-orange-500);
    transform: skewX(-28deg);
    z-index: 2;
}

/* ───── USP section — bg image + glass cards ───── */
.ab-usp-section { position: relative; overflow: hidden; isolation: isolate; }
.ab-usp-section__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.ab-usp-section__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(120% 70% at 10% 0%, rgba(0,194,212,0.18) 0%, transparent 55%),
        radial-gradient(80% 50% at 90% 100%, rgba(255,106,26,0.08) 0%, transparent 65%),
        linear-gradient(180deg, rgba(10,30,42,0.82) 0%, rgba(10,30,42,0.92) 100%);
}

.ab-usp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    position: relative;
    z-index: 1;
}
@media (max-width: 1100px) { .ab-usp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .ab-usp-grid { grid-template-columns: 1fr; } }

.ab-usp {
    position: relative;
    padding: 34px 28px 30px;
    background: rgba(10, 30, 42, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--ab-ice-100);
    overflow: hidden;
    transition:
        border-color 380ms cubic-bezier(0.4, 0, 0.2, 1),
        background 380ms cubic-bezier(0.4, 0, 0.2, 1),
        transform 380ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* Subtle orange accent strip top-left as brand signature */
.ab-usp::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 60px; height: 3px;
    background: var(--ab-orange-500);
    transition: width 380ms cubic-bezier(0.4, 0, 0.2, 1);
}
.ab-usp:hover {
    border-color: rgba(255, 106, 26, 0.40);
    background: rgba(10, 30, 42, 0.70);
    transform: translateY(-3px);
}
.ab-usp:hover::before { width: 100px; }

.ab-usp__icon {
    width: 60px;
    height: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 194, 212, 0.12);
    color: var(--ab-ice-300);
    margin-bottom: 26px;
    transition: background 380ms ease, color 380ms ease;
}
.ab-usp__icon svg { width: 30px; height: 30px; }
.ab-usp:hover .ab-usp__icon {
    background: rgba(255, 106, 26, 0.14);
    color: var(--ab-orange-400);
}

.ab-usp__title {
    color: var(--ab-white);
    font-size: clamp(1.15rem, 1.4vw, 1.3rem);
    margin: 0 0 12px;
    line-height: 1.1;
    letter-spacing: -0.005em;
}
.ab-usp__text {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Process step card */
.ab-step {
    position: relative;
    padding: 32px 26px;
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius-lg);
    background: var(--ab-white);
}
.ab-step__n {
    font-family: var(--ab-font-display); font-size: 3rem; line-height: 1;
    color: var(--ab-ice-300);
    -webkit-text-stroke: 1px var(--ab-ice-500);
    margin-bottom: 14px;
}
.ab-step__title { font-size: 1.1rem; margin-bottom: 8px; }
.ab-step__text { color: var(--ab-ink-500); font-size: 0.95rem; }

/* ==========================================================================
   Process — editorial step cards with hanging outline number + icon
   ========================================================================== */
.ab-process {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 16px;
    position: relative;
}
@media (max-width: 900px) {
    .ab-process { grid-template-columns: 1fr; gap: 20px; }
}

.ab-process-step {
    position: relative;
    background: var(--ab-white);
    border: 1px solid var(--ab-line);
    padding: 36px 32px 28px;
    display: flex;
    flex-direction: column;
    transition:
        border-color 380ms cubic-bezier(0.4, 0, 0.2, 1),
        transform 380ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* Orange accent strip top-left */
.ab-process-step::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 56px; height: 3px;
    background: var(--ab-orange-500);
    transition: width 380ms cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}
.ab-process-step:hover {
    border-color: var(--ab-ice-400);
    transform: translateY(-3px);
}
.ab-process-step:hover::before { width: 120px; }

/* Head row — outlined number + cyan icon square */
.ab-process-step__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.ab-process-step__num {
    font-family: var(--ab-font-display);
    font-size: 3.6rem;
    line-height: 0.85;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--ab-ice-500);
    user-select: none;
    transition: -webkit-text-stroke-color 380ms ease;
}
.ab-process-step:hover .ab-process-step__num {
    -webkit-text-stroke-color: var(--ab-orange-500);
}
.ab-process-step__icon {
    width: 54px; height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 194, 212, 0.12);
    color: var(--ab-ice-700);
    flex-shrink: 0;
    transition: background 380ms ease, color 380ms ease;
}
.ab-process-step__icon svg { width: 26px; height: 26px; }
.ab-process-step:hover .ab-process-step__icon {
    background: var(--ab-orange-500);
    color: var(--ab-white);
}

.ab-process-step__title {
    font-size: 1.4rem;
    margin: 0 0 12px;
    line-height: 1.1;
    color: var(--ab-ink-900);
}
.ab-process-step__text {
    color: var(--ab-ink-700);
    font-size: 0.98rem;
    line-height: 1.65;
    margin: 0 0 24px;
    flex: 1;
}
.ab-process-step__chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    align-self: flex-start;
    padding: 9px 14px;
    background: var(--ab-frost);
    color: var(--ab-ink-700);
    font-family: var(--ab-font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1;
}
.ab-process-step__chip::before {
    content: '';
    display: block;
    width: 6px; height: 6px;
    background: var(--ab-orange-500);
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .ab-process-step { padding: 28px 24px 24px; }
    .ab-process-step__num { font-size: 2.8rem; }
    .ab-process-step__icon { width: 46px; height: 46px; }
    .ab-process-step__icon svg { width: 22px; height: 22px; }
}

/* Employee card */
.ab-employee {
    text-align: center;
    background: var(--ab-frost);
    border-radius: var(--ab-radius-lg);
    padding: 30px 24px;
}
.ab-employee__avatar {
    width: 140px; height: 140px; margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--ab-white);
    box-shadow: var(--ab-shadow);
}
.ab-employee__avatar img { width:100%; height:100%; object-fit: cover; }
.ab-employee__name { font-size: 1.1rem; margin-bottom: 2px; }
.ab-employee__role { font-family: var(--ab-font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ab-ice-700); }

/* Grid wrappers */
.ab-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ab-cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ab-cards-grid--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1100px) {
    .ab-cards-grid { grid-template-columns: repeat(2, 1fr); }
    .ab-cards-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .ab-cards-grid, .ab-cards-grid--2, .ab-cards-grid--4 { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Category card — used on front page + /ydelser/ hub.
   Image at top, body with eyebrow/title/desc/features, CTA button at bottom.
   ========================================================================== */
.ab-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
@media (max-width: 1000px) { .ab-cat-grid { grid-template-columns: 1fr; } }

.ab-cat-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--ab-white);
    border: 1px solid var(--ab-line);
    border-radius: var(--ab-radius-lg);
    overflow: hidden;
    color: var(--ab-ink-900);
    text-decoration: none;
    transition:
        border-color 380ms cubic-bezier(0.4, 0, 0.2, 1),
        transform    380ms cubic-bezier(0.4, 0, 0.2, 1);
}
.ab-cat-card:hover {
    border-color: var(--ab-ice-400);
    transform: translateY(-3px);
}

.ab-cat-card__media {
    aspect-ratio: 16/10;
    background: var(--ab-frost);
    overflow: hidden;
    position: relative;
}
.ab-cat-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}
.ab-cat-card:hover .ab-cat-card__media img { transform: scale(1.05); }

.ab-cat-card__body {
    padding: 26px 28px 28px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.ab-cat-card__body .ab-eyebrow { align-self: flex-start; margin-bottom: 14px; }

.ab-cat-card__title {
    font-size: clamp(1.4rem, 1.8vw, 1.7rem);
    margin: 0 0 12px;
    line-height: 1.05;
    color: var(--ab-ink-900);
}

.ab-cat-card__desc {
    color: var(--ab-ink-500);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px;
    flex: 1;
}

.ab-cat-card__features {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 14px 0 0;
    margin: 0 0 22px;
    border-top: 1px solid var(--ab-line);
    font-size: 0.7rem;
    color: var(--ab-ink-700);
    list-style: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 600;
    white-space: nowrap;
}
.ab-cat-card__features li {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}
.ab-cat-card__features li:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 3px; height: 3px;
    background: var(--ab-orange-500);
    margin: 0 10px;
    vertical-align: middle;
    flex-shrink: 0;
}

.ab-cat-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: var(--ab-petrol-600);
    color: var(--ab-white);
    border-radius: var(--ab-radius-md);
    font-family: var(--ab-font-display);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    align-self: flex-start;
    transition: background 380ms cubic-bezier(0.4, 0, 0.2, 1);
}
.ab-cat-card:hover .ab-cat-card__cta { background: var(--ab-orange-500); }
.ab-cat-card__cta .ab-btn-arrow { background: currentColor; }
