﻿/* =========================================
   ServiceView - Details (Public)
   Theme: Solid black + red accents (NO gradients)
   Match Portfolio/Services Index style
   Responsive min-width: 320px
   ========================================= */

:root {
    --bg: #0b0b0f;
    --text: rgba(255,255,255,0.92);
    --muted: rgba(255,255,255,0.70);
    --border: rgba(255,255,255,0.12);
    --border2: rgba(255,255,255,0.18);
    --card: rgba(255,255,255,0.04);
    --card2: rgba(0,0,0,0.18);
    --red: #ff2a2a;
    --shadow: 0 18px 55px rgba(0,0,0,0.55);
    --shadow2: 0 12px 34px rgba(0,0,0,0.45);
    --radius: 18px;
    --ease: cubic-bezier(.2,.8,.2,1);
    --ease-fast: cubic-bezier(.2,.9,.2,1);
    /* SVG mask icons */
    --i-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 6l-6 6 6 6' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9 12h12' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    --i-spark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l1.8 6.5L20 10l-6.2 1.7L12 18l-1.8-6.3L4 10l6.2-1.5L12 2z' fill='%23000'/%3E%3C/svg%3E");
    --i-badge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3 5 6 .8-4.4 4 1.2 6.1L12 15.9 6.2 17.9 7.4 12 3 7.8 9 7z' fill='%23000'/%3E%3C/svg%3E");
    --i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    --i-list: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M8 6h13M8 12h13M8 18h13" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round"/%3E%3Cpath d="M4 6h.01M4 12h.01M4 18h.01" fill="none" stroke="%23000" stroke-width="4" stroke-linecap="round"/%3E%3C/svg%3E');
    --i-quality: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M12 2l7 4v6c0 5-3 9-7 10C8 21 5 17 5 12V6l7-4z" fill="none" stroke="%23000" stroke-width="2" stroke-linejoin="round"/%3E%3Cpath d="M9.5 12.2l1.8 1.8 3.6-3.8" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/%3E%3C/svg%3E');
    --i-speed: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M12 3a9 9 0 1 0 9 9" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round"/%3E%3Cpath d="M12 12l5-3" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round"/%3E%3Cpath d="M12 3v3" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round"/%3E%3C/svg%3E');
    --i-ai: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M7 7h10v10H7z" fill="none" stroke="%23000" stroke-width="2"/%3E%3Cpath d="M9 1v4M15 1v4M9 19v4M15 19v4M1 9h4M1 15h4M19 9h4M19 15h4" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round"/%3E%3C/svg%3E');
    --i-creative: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cpath d="M12 2a7 7 0 0 0-4 12c.6.5 1 1.2 1 2v1h6v-1c0-.8.4-1.5 1-2A7 7 0 0 0 12 2z" fill="none" stroke="%23000" stroke-width="2" stroke-linejoin="round"/%3E%3Cpath d="M9 21h6" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round"/%3E%3C/svg%3E');
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

.sd {
    min-width: 320px;
    color: var(--text);
    background: transparent;
    padding: clamp(18px, 3vw, 28px) 0 clamp(46px, 6vw, 74px);
}

.sd__inner {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 24px;
}

@media (max-width:520px) {
    .sd__inner {
        padding-inline: 14px;
    }
}

/* Reveal */
.reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 520ms var(--ease), transform 520ms var(--ease);
}

    .reveal.is-in {
        opacity: 1;
        transform: translateY(0);
    }

/* Hero */
.sd-hero {
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--border);
    box-shadow: var(--shadow2);
    padding: 16px;
    position: relative;
    overflow: hidden;
}

    .sd-hero::after {
        content: "";
        position: absolute;
        right: -90px;
        top: -90px;
        width: 260px;
        height: 260px;
        background: rgba(255,42,42,0.10);
        filter: blur(40px);
        pointer-events: none;
    }

/* ✅ UPDATED: kicker left, back right (stable) */
.sd-hero__top {
    display: grid;
    grid-template-columns: 1fr auto; /* left | right */
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.sd-kicker {
    justify-self: start;
}

.sd-back {
    justify-self: end;
}

/* If super tight width, keep back aligned right */
@media (max-width: 360px) {
    .sd-hero__top {
        grid-template-columns: 1fr; /* stack */
        gap: 10px;
    }

    .sd-back {
        justify-self: end;
    }
}

/* Back */
.sd-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: rgba(255,255,255,0.88);
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 10px;
    padding: 8px 12px;
    transition: transform 180ms var(--ease-fast), border-color 180ms var(--ease-fast), background 180ms var(--ease-fast);
}

    .sd-back:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,0.16);
        background: rgba(255,255,255,0.05);
    }

    .sd-back:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgba(255,42,42,0.18);
    }

.sd-back__icon {
    width: 18px;
    height: 18px;
    display: inline-block;
}

    .sd-back__icon::before {
        content: "";
        width: 18px;
        height: 18px;
        display: block;
        background: rgba(255,255,255,0.92);
        -webkit-mask: var(--i-back) center/contain no-repeat;
        mask: var(--i-back) center/contain no-repeat;
    }

/* Kicker */
.sd-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.10);
    transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}

    .sd-kicker:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,0.16);
    }

.sd-kicker__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(255,42,42,0.14);
}

.sd-kicker__text {
    font-weight: 900;
    letter-spacing: .2px;
    font-size: 13px;
    color: rgba(255,255,255,0.88);
}

/* Head */
.sd-head {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.sd-icon {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.18);
    overflow: hidden;
    display: grid;
    place-items: center;
    box-shadow: 0 14px 28px rgba(0,0,0,0.45);
}

    .sd-icon img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transform: scale(1.02);
        filter: contrast(1.03) saturate(1.02);
    }

.sd-icon__fallback {
    width: 34px;
    height: 34px;
    display: block;
}

    .sd-icon__fallback::before {
        content: "";
        width: 34px;
        height: 34px;
        display: block;
        background: rgba(255,255,255,0.92);
        -webkit-mask: var(--i-spark) center/contain no-repeat;
        mask: var(--i-spark) center/contain no-repeat;
    }

.sd-titleWrap {
    min-width: 0;
}

.sd-titleRow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

.sd-title {
    margin: 0;
    font-size: clamp(22px, 3.8vw, 42px);
    letter-spacing: -0.02em;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.sd-subtitle {
    margin: 8px 0 0;
    color: rgba(255,255,255,0.72);
    line-height: 1.65;
    overflow-wrap: anywhere;
}

/* Featured */
.sd-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255,42,42,0.35);
    background: rgba(255,42,42,0.10);
    color: rgba(255,255,255,0.90);
    font-weight: 900;
    font-size: 12px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.sd-chip__icon {
    width: 14px;
    height: 14px;
    display: inline-block;
}

    .sd-chip__icon::before {
        content: "";
        width: 14px;
        height: 14px;
        display: block;
        background: rgba(255,255,255,0.92);
        -webkit-mask: var(--i-badge) center/contain no-repeat;
        mask: var(--i-badge) center/contain no-repeat;
    }

/* Meta pills */
.sd-metaRow {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.sd-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.10);
    transition: transform 180ms var(--ease-fast), border-color 180ms var(--ease-fast);
}

    .sd-pill:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,0.18);
    }

.sd-pill__icon {
    --pill-icon: var(--i-list);
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255,42,42,0.12);
    border: 1px solid rgba(255,42,42,0.38);
    display: inline-grid;
    place-items: center;
}

    .sd-pill__icon::before {
        content: "";
        width: 12px;
        height: 12px;
        display: block;
        background: rgba(255,255,255,0.92);
        -webkit-mask: var(--pill-icon) center/contain no-repeat;
        mask: var(--pill-icon) center/contain no-repeat;
    }

.sd-pill__icon--list {
    --pill-icon: var(--i-list);
}

.sd-pill__icon--quality {
    --pill-icon: var(--i-quality);
}

.sd-pill__text {
    font-size: 13px;
    font-weight: 850;
    color: rgba(255,255,255,0.86);
}

/* Layout */
.sd-layout {
    margin-top: 14px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: start;
}

.sd-panel,
.sd-sideCard {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow2);
    overflow: hidden;
}

.sd-panel {
    padding: 18px;
}

.sd-h2 {
    margin: 0 0 10px;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.sd-details p {
    margin: 0;
    color: rgba(255,255,255,0.76);
    line-height: 1.75;
}

/* Offerings list */
.sd-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    counter-reset: sdItem;
}

.sd-li {
    counter-increment: sdItem;
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: start;
    padding: 12px 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.10);
    background: rgba(0,0,0,0.14);
    position: relative;
    transition: transform 180ms var(--ease-fast), border-color 180ms var(--ease-fast), background 180ms var(--ease-fast), box-shadow 180ms var(--ease-fast);
}

    .sd-li::before {
        content: "";
        position: absolute;
        left: 0;
        top: 10px;
        bottom: 10px;
        width: 3px;
        border-radius: 99px;
        background: rgba(255,42,42,0.75);
        opacity: .9;
    }

    .sd-li:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,0.16);
        background: rgba(255,255,255,0.04);
        box-shadow: 0 16px 34px rgba(0,0,0,0.35);
    }

.sd-li__icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(255,42,42,0.10);
    border: 1px solid rgba(255,42,42,0.30);
    display: grid;
    place-items: center;
    box-shadow: 0 12px 24px rgba(0,0,0,0.35);
    position: relative;
}

    .sd-li__icon::after {
        content: counter(sdItem);
        position: absolute;
        top: 6px;
        right: 7px;
        font-size: 11px;
        font-weight: 950;
        color: rgba(255,255,255,0.78);
    }

    .sd-li__icon::before {
        content: "";
        width: 18px;
        height: 18px;
        display: block;
        background: rgba(255,255,255,0.92);
        -webkit-mask: var(--i-check) center/contain no-repeat;
        mask: var(--i-check) center/contain no-repeat;
    }

.sd-li__text {
    color: rgba(255,255,255,0.84);
    line-height: 1.6;
    overflow-wrap: anywhere;
    padding-top: 2px;
}

/* Side */
.sd-sideCard {
    padding: 16px;
}

.sd-sideCard__title {
    font-weight: 950;
    font-size: 16px;
}

.sd-sideCard__text {
    margin-top: 6px;
    color: rgba(255,255,255,0.72);
    line-height: 1.6;
}

.sd-sideCard__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

/* Buttons */
.sd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.04);
    color: rgba(255,255,255,0.92);
    box-shadow: 0 10px 22px rgba(0,0,0,0.22);
    transition: transform 180ms var(--ease-fast), background 180ms var(--ease-fast), border-color 180ms var(--ease-fast), box-shadow 180ms var(--ease-fast);
}

    .sd-btn:hover {
        transform: translateY(-1px);
        border-color: rgba(255,255,255,0.18);
        background: rgba(255,255,255,0.06);
        box-shadow: 0 14px 30px rgba(0,0,0,0.35);
    }

    .sd-btn:focus-visible {
        outline: none;
        box-shadow: 0 0 0 4px rgba(255,42,42,0.18), 0 14px 30px rgba(0,0,0,0.35);
    }

.sd-btn--primary {
    color: #0b0b0f;
    background: #ffffff;
    border-color: rgba(255,42,42,0.55);
    box-shadow: 0 18px 40px rgba(255,42,42,0.18), 0 10px 22px rgba(0,0,0,0.35);
}

    .sd-btn--primary:hover {
        box-shadow: 0 22px 55px rgba(255,42,42,0.22), 0 12px 26px rgba(0,0,0,0.40);
    }

.sd-btn--ghost {
    background: rgba(255,255,255,0.03);
}

/* Mini */
.sd-mini {
    margin-top: 14px;
    display: grid;
    gap: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.78);
    font-size: 13px;
}

.sd-mini__line {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sd-mini__icon {
    --mini-icon: var(--i-speed);
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: rgba(255,42,42,0.12);
    border: 1px solid rgba(255,42,42,0.28);
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
}

    .sd-mini__icon::before {
        content: "";
        width: 12px;
        height: 12px;
        display: block;
        background: rgba(255,255,255,0.90);
        -webkit-mask: var(--mini-icon) center/contain no-repeat;
        mask: var(--mini-icon) center/contain no-repeat;
    }

.sd-mini__icon--speed {
    --mini-icon: var(--i-speed);
}

.sd-mini__icon--ai {
    --mini-icon: var(--i-ai);
}

.sd-mini__icon--creative {
    --mini-icon: var(--i-creative);
}

/* Desktop */
@media (min-width:980px) {
    .sd-layout {
        grid-template-columns: 1fr 360px;
    }

    .sd-side {
        position: sticky;
        top: 18px;
    }
}

/* Mobile */
@media (max-width:420px) {
    .sd-head {
        grid-template-columns: 76px 1fr;
    }

    .sd-icon {
        width: 76px;
        height: 76px;
        border-radius: 16px;
    }

    .sd-li {
        grid-template-columns: 38px 1fr;
    }

    .sd-li__icon {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .sd-back,
    .sd-kicker,
    .sd-pill,
    .sd-li,
    .sd-btn {
        transition: none !important;
        animation: none !important;
    }

    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
