
/* ============================================================
   CRAFTY SOLUTIONS - PREMIUM SERVICES ARCHIVE
   Main brand: #061b35 / #008cc6 / #00bce8

   Compact split hero
   Interactive dynamic services directory
   Premium image-led service cards
   Scroll entrance animations
   Cursor-follow card lighting
   Responsive layouts
============================================================ */

/* ============================================================
   GLOBAL
============================================================ */

.as-archive {
    --as-navy: #061b35;
    --as-deep: #031323;
    --as-blue: #008cc6;
    --as-cyan: #00bce8;
    --as-ink: #0a2a43;
    --as-muted: #567085;
    --as-ease: cubic-bezier(.22, 1, .36, 1);

    width: 100%;
    overflow: clip;

    background: #ffffff;
    color: var(--as-ink);

    font-family: "Montserrat", "Inter", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.as-archive,
.as-archive *,
.as-archive *::before,
.as-archive *::after {
    box-sizing: border-box;
}

.as-archive .as-container {
    position: relative;
    width: 94%;
    max-width: 1800px;
    margin-inline: auto;
    padding: 0;
}

.as-archive :is(h1, h2, h3, p) {
    margin-top: 0;
}

.as-archive a {
    text-decoration: none;
}

.as-archive svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.as-archive :is(a, button, input):focus-visible {
    outline: 3px solid #18cce7;
    outline-offset: 4px;
}

/* ============================================================
   SHARED EYEBROW
============================================================ */

.as-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: #0084ae;

    font-size: 16px;
    font-weight: 750;
    line-height: 1.5;
    letter-spacing: .065em;
}

.as-eyebrow--light {
    color: #78dfeb;
}

.as-eyebrow__line {
    display: block;
    flex: 0 0 34px;

    width: 34px;
    height: 2px;

    background: linear-gradient(
        90deg,
        #008cc6,
        #00deed
    );
}

/* ============================================================
   SHARED BUTTON
============================================================ */

.as-archive .as-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    min-height: 54px;
    padding: 10px 19px;

    border: 1px solid transparent;
    border-radius: 10px;

    font-size: 16px;
    font-weight: 750;
    line-height: 1.5;

    transition:
        transform .35s var(--as-ease),
        background .3s ease,
        box-shadow .35s ease,
        border-color .3s ease;
}

.as-button svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;

    transition: transform .3s ease;
}

.as-archive .as-button--cyan {
    color: #ffffff;

    background: linear-gradient(
        110deg,
        #008cc6,
        #00bbdb
    );

    border-color: #0bbfdc;

    box-shadow: 0 12px 27px rgba(0, 174, 220, .18);
}

.as-archive .as-button--cyan:hover {
    color: #ffffff;

    transform: translateY(-4px);

    background: linear-gradient(
        110deg,
        #009ed2,
        #00cbe5
    );

    box-shadow: 0 17px 34px rgba(0, 181, 221, .28);
}

.as-button:hover svg {
    transform: translateX(5px);
}

/* ============================================================
   01. PREMIUM SERVICES HERO
============================================================ */

.as-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding: 95px 0 49px;

    color: #ffffff;

    background:
        radial-gradient(
            ellipse at 85% 40%,
            rgba(0, 186, 230, .17),
            transparent 42%
        ),
        linear-gradient(
            120deg,
            #031323 0%,
            #061b35 58%,
            #092d48 100%
        );
}

/* Technical background grid */

.as-hero__grid {
    position: absolute;
    z-index: -1;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(107, 213, 236, .045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(107, 213, 236, .045) 1px,
            transparent 1px
        );

    background-size: 60px 60px;

    mask-image: linear-gradient(
        90deg,
        transparent 10%,
        #000 100%
    );

    pointer-events: none;
}

.as-hero__glow {
    position: absolute;
    z-index: -1;

    right: -170px;
    top: -140px;

    width: 430px;
    height: 430px;

    border-radius: 50%;
    background: rgba(0, 194, 230, .12);

    filter: blur(85px);
    pointer-events: none;
}

/* Breadcrumb */

.as-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-bottom: 25px;

    color: #9dbfd0;

    font-size: 16px;
    font-weight: 500;
}

.as-hero__breadcrumb a {
    color: #c4dce6;
    transition: color .25s ease;
}

.as-hero__breadcrumb a:hover {
    color: #73e8f0;
}

.as-hero__breadcrumb span:last-child {
    color: #72e0ed;
}

/* Main hero layout */

.as-hero__layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1.06fr)
        minmax(0, .94fr);

    align-items: center;

    gap: clamp(30px, 5vw, 85px);
}

.as-hero__content,
.as-hero__visual {
    min-width: 0;
}

/* Hero typography */

.as-archive .as-hero h1 {
    max-width: 800px;

    margin: 17px 0 17px;

    color: #ffffff;

    font-size: clamp(38px, 4vw, 56px);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -.047em;

    text-wrap: balance;
}

.as-hero h1 span {
    display: block;
    color: #64dce9;
}

.as-archive .as-hero__description {
    max-width: 660px;

    margin: 0;

    color: #c1d8e5;

    font-size: 17px;
    line-height: 1.8;
}

/* CTA links */

.as-hero__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 22px;
    margin-top: 24px;
}

.as-hero__secondary {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: #e6f4f8;

    font-size: 16px;
    font-weight: 700;

    transition:
        gap .3s ease,
        color .3s ease;
}

.as-hero__secondary:hover {
    gap: 18px;
    color: #72e6f0;
}

.as-hero__secondary span {
    font-size: 23px;
}

/* Dynamic service count */

.as-hero__footer-detail {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-top: 30px;
    padding-top: 17px;

    border-top: 1px solid rgba(127, 222, 240, .18);
}

.as-hero__footer-count {
    color: #72dce9;

    font-size: 37px;
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1;
}

.as-hero__footer-rule {
    width: 1px;
    height: 37px;

    background: rgba(127, 222, 240, .26);
}

.as-hero__footer-copy {
    color: #b9d3e0;

    font-size: 16px;
    font-weight: 550;
}

/* ============================================================
   HERO VISUAL
============================================================ */

.as-hero__visual {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    border: 1px solid rgba(121, 222, 240, .3);
    border-radius: 18px;

    background: linear-gradient(
        145deg,
        #0d3854,
        #051d35
    );

    box-shadow:
        0 25px 60px rgba(0, 0, 0, .2),
        inset 0 1px 0 rgba(255, 255, 255, .05);

    transition:
        border-color .35s ease,
        box-shadow .4s ease;
}

.as-hero__visual:hover {
    border-color: rgba(115, 232, 241, .75);

    box-shadow:
        0 30px 70px rgba(0, 0, 0, .27),
        0 0 35px rgba(0, 188, 232, .09);
}

/* Visual header/footer */

.as-hero__visual-top,
.as-hero__visual-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;
    padding: 13px 18px;

    color: #aed0df;

    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
}

.as-hero__visual-top {
    border-bottom: 1px solid rgba(130, 220, 240, .18);
}

.as-hero__visual-bottom {
    border-top: 1px solid rgba(130, 220, 240, .18);
}

.as-hero__visual-bottom b {
    color: #67deea;
    font-weight: 700;
}

.as-hero__status {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: #e5f5f9;
}

.as-hero__status i {
    width: 8px;
    height: 8px;

    border-radius: 50%;
    background: #00dce9;

    box-shadow: 0 0 14px rgba(0, 221, 242, .65);
}

/* Main illustration stage */

.as-hero__visual-stage {
    position: relative;
    isolation: isolate;

    display: grid;
    place-items: center;

    height: 280px;
    overflow: hidden;

    background:
        radial-gradient(
            circle at center,
            rgba(0, 190, 225, .13),
            transparent 47%
        );
}

.as-hero__stage-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(96, 214, 234, .07) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(96, 214, 234, .07) 1px,
            transparent 1px
        );

    background-size: 36px 36px;
}

.as-hero__contours {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    animation:
        as-contour-float 10s ease-in-out infinite alternate;
}

@keyframes as-contour-float {
    to {
        transform: scale(1.055) translateY(-5px);
    }
}

/* Center technical icon */

.as-hero__visual-center {
    position: relative;
    z-index: 3;

    display: grid;
    place-items: center;

    width: 94px;
    height: 94px;

    border: 1px solid #6bdce9;
    border-radius: 21px;

    background: rgba(3, 30, 52, .94);
    color: #80e8f1;

    box-shadow:
        0 0 0 15px rgba(0, 194, 230, .055),
        0 0 45px rgba(0, 206, 235, .17);

    transform: rotate(-6deg);

    transition: transform .5s var(--as-ease);
}

.as-hero__visual-center svg {
    width: 47px;
    height: 47px;
}

.as-hero__visual:hover .as-hero__visual-center {
    transform: rotate(0deg) scale(1.06);
}

/* Floating technical labels */

.as-hero__floating {
    position: absolute;
    z-index: 4;

    display: inline-flex;
    align-items: center;

    gap: 9px;
    padding: 9px 12px;

    border: 1px solid rgba(115, 219, 239, .34);
    border-radius: 9px;

    background: rgba(3, 30, 52, .87);

    color: #d1ebf2;

    font-size: 16px;
    font-weight: 650;

    backdrop-filter: blur(10px);

    transition: transform .35s var(--as-ease);
}

.as-hero__floating--top {
    top: 19px;
    right: 18px;
}

.as-hero__floating--bottom {
    bottom: 20px;
    left: 18px;
}

.as-hero__visual:hover .as-hero__floating--top {
    transform: translateY(-5px);
}

.as-hero__visual:hover .as-hero__floating--bottom {
    transform: translateY(5px);
}

.as-hero__floating-icon {
    color: #6fe2ec;
    font-weight: 800;
}

/* Animated signal */

.as-hero__signal {
    display: flex;
    align-items: center;
    gap: 5px;
}

.as-hero__signal i {
    width: 5px;
    height: 9px;

    border-radius: 3px;
    background: #00d1e7;

    animation: as-signal 1.1s ease-in-out infinite alternate;
}

.as-hero__signal i:nth-child(2) {
    animation-delay: .15s;
}

.as-hero__signal i:nth-child(3) {
    animation-delay: .3s;
}

.as-hero__signal i:nth-child(4) {
    animation-delay: .45s;
}

@keyframes as-signal {
    to {
        height: 20px;
        opacity: .45;
    }
}

/* ============================================================
   02. SERVICES DIRECTORY
============================================================ */

.as-directory {
    position: relative;
    padding: 72px 0 82px;

    background:
        radial-gradient(
            ellipse at 100% 0%,
            rgba(0, 188, 232, .045),
            transparent 38%
        ),
        #ffffff;
}

/* Editorial heading */

.as-directory__heading {
    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(0, .9fr);

    align-items: end;
    gap: 45px;

    margin-bottom: 29px;
}

.as-archive .as-directory h2 {
    max-width: 770px;

    margin: 14px 0 0;

    color: var(--as-navy);

    font-size: clamp(35px, 3.65vw, 51px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.045em;
}

.as-directory h2 span {
    display: block;
    color: var(--as-blue);
}

.as-archive .as-directory__heading > p {
    max-width: 550px;
    justify-self: end;

    margin: 0 0 5px;

    color: #557084;

    font-size: 17px;
    line-height: 1.8;
}

/* ============================================================
   FILTER / SEARCH TOOLBAR

   Hidden until JavaScript initializes.
   Cards remain accessible without JavaScript.
============================================================ */

.as-directory__toolbar {
    display: none;

    align-items: center;
    justify-content: space-between;

    gap: 19px;

    margin-bottom: 22px;
}

.as-archive.is-filter-ready .as-directory__toolbar {
    display: flex;
}

.as-directory__filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.as-archive .as-filter {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-height: 43px;
    padding: 8px 15px;

    border: 1px solid #d8e7ee;
    border-radius: 8px;

    background: #f6fafc;
    color: #46667b;

    font-family: inherit;
    font-size: 16px;
    font-weight: 650;
    line-height: 1.5;

    cursor: pointer;

    transition:
        color .3s ease,
        background .3s ease,
        border-color .3s ease,
        transform .3s var(--as-ease),
        box-shadow .3s ease;
}

.as-filter:hover {
    transform: translateY(-3px);

    border-color: #8ed9e7;
    background: #eaf8fc;
    color: #006c98;
}

.as-archive .as-filter.is-active {
    border-color: #061b35;

    background: #061b35;
    color: #ffffff;

    box-shadow: 0 8px 17px rgba(0, 52, 90, .12);
}

/* Search field */

.as-directory__search {
    position: relative;
    flex: 0 1 315px;
    min-width: 220px;
}

.as-directory__search svg {
    position: absolute;
    left: 15px;
    top: 50%;

    width: 20px;
    height: 20px;

    color: #7196a9;

    transform: translateY(-50%);
    pointer-events: none;
}

.as-archive .as-directory__search input {
    width: 100%;
    min-height: 46px;

    padding: 9px 16px 9px 44px;

    border: 1px solid #d9e6ee;
    border-radius: 9px;

    background: #f8fbfd;
    color: #0b2a43;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.5;

    outline: none;

    transition:
        border-color .3s ease,
        background .3s ease,
        box-shadow .3s ease;
}

.as-directory__search input::placeholder {
    color: #7c95a5;
    opacity: 1;
}

.as-directory__search input:focus {
    border-color: #00a5ce;
    background: #ffffff;

    box-shadow: 0 0 0 4px rgba(0, 188, 232, .09);
}

/* Result count header */

.as-directory__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 17px;
    padding: 12px 0;

    border-top: 1px solid #dce8ee;
    border-bottom: 1px solid #dce8ee;

    color: #688193;

    font-size: 16px;
}

.as-directory__summary-label {
    color: #133b56;

    font-size: 16px;
    font-weight: 700;
    letter-spacing: .045em;
}

.as-directory__result-count strong {
    color: #008cc6;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   SERVICE GRID
============================================================ */

.as-directory__grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    align-items: stretch;
    gap: clamp(15px, 1.7vw, 25px);
}

.as-service-card[hidden],
.as-directory__empty[hidden] {
    display: none !important;
}

/* ============================================================
   PREMIUM SERVICE CARD
============================================================ */

.as-service-card {
    --as-pointer-x: 50%;
    --as-pointer-y: 50%;

    position: relative;
    isolation: isolate;

    min-width: 0;
    overflow: hidden;

    border: 1px solid #dce8ee;
    border-radius: 15px;

    background: #ffffff;

    box-shadow:
        0 6px 16px rgba(4, 57, 90, .035),
        0 14px 34px rgba(4, 57, 90, .04);

    transition:
        transform .5s var(--as-ease),
        border-color .35s ease,
        box-shadow .5s ease;
}

/* Cursor-follow soft light */

.as-service-card::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 3;

    background:
        radial-gradient(
            360px circle
            at var(--as-pointer-x)
            var(--as-pointer-y),
            rgba(0, 188, 232, .12),
            transparent 66%
        );

    opacity: 0;
    pointer-events: none;

    transition: opacity .35s ease;
}

/* Animated bottom edge */

.as-service-card::after {
    content: "";

    position: absolute;
    z-index: 4;

    left: 0;
    right: 0;
    bottom: 0;

    height: 3px;

    background: linear-gradient(
        90deg,
        #008cc6,
        #00d8e8
    );

    transform: scaleX(0);
    transform-origin: left;

    transition: transform .55s var(--as-ease);

    pointer-events: none;
}

.as-service-card:hover {
    transform: translateY(-9px);

    border-color: #75d8e9;

    box-shadow:
        0 11px 23px rgba(0, 82, 128, .07),
        0 27px 48px rgba(0, 83, 136, .13);
}

.as-service-card:hover::before {
    opacity: 1;
}

.as-service-card:hover::after {
    transform: scaleX(1);
}

.as-service-card:focus-within {
    border-color: #00bce8;

    box-shadow: 0 0 0 3px rgba(0, 188, 232, .14);
}

/* Entire card clickable */

.as-service-card__link {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;

    width: 100%;
    height: 100%;

    color: inherit;
}

.as-service-card__link:hover {
    color: inherit;
}

/* ============================================================
   SERVICE CARD MEDIA
============================================================ */

.as-service-card__media {
    position: relative;
    isolation: isolate;

    height: clamp(165px, 15vw, 220px);

    flex: 0 0 auto;

    overflow: hidden;

    background: linear-gradient(
        145deg,
        #104564,
        #061b35
    );
}

.as-service-card__image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transform: scale(1);

    filter: saturate(.86) contrast(1.035);

    transition:
        transform 1s var(--as-ease),
        filter .6s ease;
}

.as-service-card:hover .as-service-card__image {
    transform: scale(1.09);

    filter: saturate(1.05) contrast(1.04);
}

/* Dark overlay */

.as-service-card__media-shade {
    position: absolute;
    z-index: 2;
    inset: 0;

    background: linear-gradient(
        180deg,
        rgba(3, 24, 42, .14),
        transparent 48%,
        rgba(2, 25, 44, .46)
    );

    pointer-events: none;

    transition: background .5s ease;
}

/* Placeholder when no featured image */

.as-service-card__placeholder {
    position: absolute;
    inset: 0;

    display: grid;
    place-items: center;

    background:
        radial-gradient(
            circle at 50% 48%,
            rgba(0, 189, 231, .23),
            transparent 55%
        ),
        linear-gradient(
            140deg,
            #104b69,
            #071e36
        );

    color: #77e4ef;
}

.as-service-card__placeholder-grid {
    position: absolute;
    inset: 0;

    background-image:
        linear-gradient(
            rgba(103, 224, 239, .06) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(103, 224, 239, .06) 1px,
            transparent 1px
        );

    background-size: 32px 32px;
}

.as-service-card__placeholder svg {
    position: relative;

    width: 94%;
    height: 94%;

    transition: transform .9s var(--as-ease);
}

.as-service-card:hover .as-service-card__placeholder svg {
    transform: scale(1.09) rotate(2deg);
}

/* Top left number */

.as-service-card__index {
    position: absolute;
    z-index: 5;

    top: 14px;
    left: 15px;

    padding: 7px 11px;

    border: 1px solid rgba(174, 230, 243, .28);
    border-radius: 6px;

    background: rgba(3, 27, 46, .75);
    backdrop-filter: blur(8px);

    color: #e2f6fa;

    font-size: 16px;
    font-weight: 750;
    line-height: 1.4;
    letter-spacing: .025em;
}

/* Top right icon */

.as-service-card__media-corner {
    position: absolute;
    z-index: 5;

    top: 13px;
    right: 14px;

    display: grid;
    place-items: center;

    width: 40px;
    height: 40px;

    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 9px;

    background: rgba(4, 32, 54, .7);

    color: #ffffff;

    transition:
        background .35s ease,
        border-color .35s ease,
        transform .45s var(--as-ease);
}

.as-service-card__media-corner svg {
    width: 20px;
    height: 20px;
}

.as-service-card:hover .as-service-card__media-corner {
    background: #008cc6;
    border-color: #39d4eb;

    transform: translate(3px, -3px);
}

/* ============================================================
   SERVICE CARD BODY
============================================================ */

.as-service-card__body {
    display: flex;
    flex-direction: column;

    flex: 1 1 auto;

    min-width: 0;
    padding: 21px 23px 19px;
}

.as-service-card__meta {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 11px;

    color: #0084ae;

    font-size: 16px;
    font-weight: 750;
    line-height: 1.45;
}

.as-service-card__meta-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;

    border-radius: 50%;
    background: #00bedc;
}

.as-archive .as-service-card h3 {
    margin: 0 0 10px;

    color: #0a2c46;

    font-size: clamp(21px, 1.65vw, 27px);
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -.029em;

    transition: color .3s ease;
}

.as-service-card:hover h3 {
    color: #008cc6;
}

.as-archive .as-service-card__body p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;

    overflow: hidden;

    margin: 0 0 19px;

    color: #5b7284;

    font-size: 16px;
    line-height: 1.75;
}

/* Footer line and arrow */

.as-service-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;

    margin-top: auto;
    padding-top: 14px;

    border-top: 1px solid #e3edf2;

    color: #087fa8;

    font-size: 16px;
    font-weight: 750;

    transition: border-color .35s ease;
}

.as-service-card:hover .as-service-card__footer {
    border-color: #9edbe8;
}

.as-service-card__arrow {
    display: grid;
    place-items: center;

    width: 36px;
    height: 36px;

    border: 1px solid #d7eaf1;
    border-radius: 50%;

    background: #f0f9fc;

    color: #008cc6;

    transition:
        background .35s ease,
        color .35s ease,
        transform .4s var(--as-ease),
        border-color .35s ease;
}

.as-service-card__arrow svg {
    width: 19px;
    height: 19px;
}

.as-service-card:hover .as-service-card__arrow {
    transform: translateX(4px);

    background: #008cc6;
    border-color: #008cc6;

    color: #ffffff;
}

/* ============================================================
   FILTER TRANSITION
============================================================ */

@keyframes as-filter-appear {
    from {
        opacity: .45;
        transform: translateY(13px) scale(.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.as-service-card.is-filter-arriving
.as-service-card__link {
    animation:
        as-filter-appear
        .42s var(--as-ease) both;
}

/* ============================================================
   NO RESULTS
============================================================ */

.as-directory__empty,
.as-directory__empty-static {
    padding: 45px 25px;

    border: 1px dashed #9ed6e4;
    border-radius: 13px;

    background: #f4fafc;

    text-align: center;
}

.as-archive .as-directory__empty h3,
.as-archive .as-directory__empty-static h3 {
    margin: 0 0 10px;

    color: #092d46;
    font-size: 24px;
    font-weight: 800;
}

.as-directory__empty p,
.as-directory__empty-static p {
    max-width: 540px;

    margin: 0 auto 20px;

    color: #587386;
    font-size: 16px;
}

.as-archive .as-directory__reset,
.as-directory__empty-static a {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    min-height: 47px;
    padding: 9px 19px;

    border: 0;
    border-radius: 8px;

    background: #061b35;
    color: #ffffff;

    font-family: inherit;
    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .3s ease,
        transform .3s ease;
}

.as-directory__reset:hover,
.as-directory__empty-static a:hover {
    transform: translateY(-3px);

    background: #008cc6;
    color: #ffffff;
}

/* ============================================================
   03. CONTACT CTA
============================================================ */

.as-contact {
    padding: 0 0 72px;
    background: #ffffff;
}

.as-contact__panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    display: grid;

    grid-template-columns:
        minmax(0, 1.18fr)
        minmax(0, .82fr);

    align-items: center;
    gap: 40px;

    padding: clamp(34px, 4vw, 57px);

    border-radius: 17px;

    background:
        radial-gradient(
            circle at 88% 35%,
            rgba(0, 192, 231, .19),
            transparent 35%
        ),
        linear-gradient(
            120deg,
            #04182d,
            #0a3552
        );

    color: #ffffff;

    box-shadow: 0 19px 44px rgba(4, 54, 87, .13);
}

/* Decorative rings */

.as-contact__decor {
    position: absolute;
    z-index: -1;

    top: 50%;
    right: 14%;

    width: 230px;
    height: 230px;

    transform: translate(50%, -50%);

    pointer-events: none;
}

.as-contact__decor span {
    position: absolute;
    inset: 0;

    border: 1px solid rgba(125, 220, 239, .24);
    border-radius: 26px;

    transform: rotate(20deg);

    transition: transform .8s var(--as-ease);
}

.as-contact__decor span:nth-child(2) {
    inset: 35px;
    transform: rotate(-15deg);
}

.as-contact__decor span:nth-child(3) {
    inset: 70px;
    transform: rotate(40deg);

    background: rgba(0, 188, 232, .06);
}

.as-contact__panel:hover
.as-contact__decor span:first-child {
    transform: rotate(40deg);
}

.as-contact__panel:hover
.as-contact__decor span:nth-child(2) {
    transform: rotate(-35deg);
}

.as-contact__panel:hover
.as-contact__decor span:nth-child(3) {
    transform: rotate(58deg);
}

.as-contact__content,
.as-contact__action {
    position: relative;
    z-index: 2;
}

.as-archive .as-contact h2 {
    max-width: 750px;

    margin: 14px 0 12px;

    color: #ffffff;

    font-size: clamp(31px, 3.2vw, 45px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -.045em;
}

.as-contact h2 span {
    display: block;
    color: #70e1ed;
}

.as-archive .as-contact p {
    max-width: 660px;

    margin: 0;

    color: #c5dce7;

    font-size: 16px;
    line-height: 1.8;
}

.as-contact__action {
    justify-self: end;
}

/* ============================================================
   SCROLL ENTRANCE
   Controlled by services-archive.js
============================================================ */

.as-archive.as-motion [data-as-reveal] {
    opacity: 0;

    transform: translate3d(0, 28px, 0);

    transition:
        opacity .78s var(--as-ease),
        transform .78s var(--as-ease);

    transition-delay: var(--as-reveal-delay, 0ms);
}

.as-archive.as-motion
[data-as-reveal="right"] {
    transform: translate3d(42px, 0, 0);
}

.as-archive.as-motion
[data-as-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

/* Restore hover lift for animated service cards */

.as-archive.as-motion
.as-service-card.is-visible:hover {
    transform: translateY(-9px);
}

/* ============================================================
   DESKTOP / LAPTOP
============================================================ */

@media (max-width: 1250px) {

    .as-hero {
        padding-top: 86px;
    }

    .as-hero__layout {
        gap: 30px;
    }

    .as-archive .as-hero h1 {
        font-size: clamp(37px, 3.9vw, 51px);
    }

    .as-hero__visual-stage {
        height: 245px;
    }

    .as-service-card__media {
        height: 180px;
    }

    .as-directory__heading {
        gap: 30px;
    }
}

/* ============================================================
   TABLET
============================================================ */

@media (max-width: 1020px) {

    .as-hero {
        padding: 80px 0 48px;
    }

    .as-hero__layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .as-hero__content {
        max-width: 800px;
    }

    .as-hero__visual {
        max-width: 800px;
    }

    .as-hero__visual-stage {
        height: 220px;
    }

    .as-directory__heading {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .as-directory__heading > p {
        justify-self: start;
    }

    .as-directory__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .as-service-card__media {
        height: 195px;
    }

    .as-directory__toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .as-directory__search {
        flex: 0 1 auto;
        width: min(100%, 440px);
    }
}

/* ============================================================
   SMALL TABLET
============================================================ */

@media (max-width: 760px) {

    .as-directory {
        padding: 55px 0 62px;
    }

    .as-contact__panel {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .as-contact__action {
        justify-self: start;
    }
}

/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 640px) {

    .as-archive .as-container {
        width: calc(100% - 32px);
    }

    .as-hero {
        padding: 60px 0 38px;
    }

    .as-hero__breadcrumb {
        margin-bottom: 19px;
    }

    .as-archive .as-hero h1 {
        font-size: clamp(35px, 8.5vw, 43px);
    }

    .as-archive .as-hero__description {
        font-size: 16px;
        line-height: 1.75;
    }

    .as-hero__actions {
        align-items: stretch;
        flex-direction: column;
        gap: 15px;
    }

    .as-archive .as-hero__actions .as-button {
        width: 100%;
    }

    .as-hero__footer-detail {
        margin-top: 23px;
    }

    .as-hero__visual {
        border-radius: 13px;
    }

    .as-hero__visual-stage {
        height: 205px;
    }

    .as-hero__visual-center {
        width: 72px;
        height: 72px;
        border-radius: 16px;
    }

    .as-hero__visual-center svg {
        width: 37px;
        height: 37px;
    }

    .as-hero__visual-top,
    .as-hero__visual-bottom {
        padding: 10px 12px;
    }

    .as-hero__floating {
        padding: 7px 10px;
    }

    .as-hero__floating--top {
        top: 12px;
        right: 10px;
    }

    .as-hero__floating--bottom {
        bottom: 12px;
        left: 10px;
    }

    .as-directory {
        padding: 48px 0 54px;
    }

    .as-archive .as-directory h2 {
        font-size: clamp(34px, 8vw, 42px);
    }

    .as-archive .as-directory__heading > p {
        font-size: 16px;
        line-height: 1.75;
    }

    .as-directory__toolbar {
        gap: 14px;
    }

    .as-directory__filters {
        flex-wrap: nowrap;
        overflow-x: auto;

        padding: 2px 0 9px;
        scrollbar-width: thin;
    }

    .as-archive .as-filter {
        flex: 0 0 auto;
    }

    .as-directory__search {
        width: 100%;
    }

    .as-directory__grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .as-service-card__media {
        height: clamp(175px, 51vw, 235px);
    }

    .as-service-card__body {
        padding: 19px 20px 17px;
    }

    .as-archive .as-service-card h3 {
        font-size: 23px;
    }

    .as-contact {
        padding-bottom: 48px;
    }

    .as-contact__panel {
        padding: 28px 22px;
    }

    .as-archive .as-contact h2 {
        font-size: clamp(30px, 7vw, 39px);
    }

    .as-contact__action,
    .as-contact__action .as-button {
        width: 100%;
    }
}

/* ============================================================
   VERY SMALL MOBILE
============================================================ */

@media (max-width: 390px) {

    .as-hero__visual-top > span:last-child {
        display: none;
    }

    .as-hero__visual-bottom .as-hero__signal {
        display: none;
    }

    .as-hero__floating {
        font-size: 16px;
    }

    .as-directory__summary {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    .as-archive *,
    .as-archive *::before,
    .as-archive *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .as-archive.as-motion
    [data-as-reveal] {
        opacity: 1 !important;
        transform: none !important;
    }

    .as-service-card__image,
    .as-hero__contours {
        transform: none !important;
    }
}

/* ============================================================
   SERVICES ARCHIVE - LAYOUT CORRECTIONS

   - Compact hero
   - Headings below 56px
   - Proper search field alignment
   - Balanced section spacing
   - Retains existing animations
============================================================ */

/* ============================================================
   HERO SECTION HEIGHT
============================================================ */

body .as-archive .as-hero {
    min-height: 0;
    padding: 76px 0 38px;
}

body .as-archive .as-hero__breadcrumb {
    margin-bottom: 17px;
}

body .as-archive .as-hero__layout {
    gap: clamp(28px, 3.5vw, 65px);
    align-items: center;
}

/* HERO HEADLINE */

body .as-archive .as-hero h1 {
    max-width: 740px;

    margin: 12px 0 13px;

    font-size: clamp(36px, 3.4vw, 52px) !important;
    line-height: 1.13 !important;
    letter-spacing: -.043em;
}

body .as-archive .as-hero h1 span {
    color: #65dce9;
}

/* DESCRIPTION */

body .as-archive .as-hero__description {
    max-width: 660px;

    font-size: 16px;
    line-height: 1.7;
}

/* BUTTON SPACING */

body .as-archive .as-hero__actions {
    margin-top: 20px;
    gap: 20px;
}

/* LOWER STATISTIC ROW */

body .as-archive .as-hero__footer-detail {
    margin-top: 22px;
    padding-top: 13px;
}

/* RIGHT VISUAL */

body .as-archive .as-hero__visual-stage {
    height: 235px;
}

/* ============================================================
   DIRECTORY SECTION
============================================================ */

body .as-archive .as-directory {
    padding: 53px 0 70px;
}

/* Heading layout */

body .as-archive .as-directory__heading {
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(0, .85fr);

    align-items: end;
    gap: 35px;

    margin-bottom: 23px;
}

/* Smaller premium heading */

body .as-archive .as-directory h2 {
    max-width: 750px;

    margin: 12px 0 0;

    font-size: clamp(32px, 3.1vw, 46px) !important;
    line-height: 1.16 !important;
    letter-spacing: -.043em;
}

/* Description */

body .as-archive .as-directory__heading > p {
    max-width: 540px;

    margin-bottom: 4px;

    font-size: 16px;
    line-height: 1.75;
}

/* ============================================================
   SERVICE SEARCH - OVERLAPPING ICON FIX
============================================================ */

body .as-archive .as-directory__search {
    position: relative;

    display: flex;
    align-items: center;

    flex: 0 1 315px;

    min-width: 230px;
    height: 48px;

    margin: 0;
}

/* Search icon - fixed position */

body .as-archive .as-directory__search svg {
    position: absolute !important;

    top: 50% !important;
    left: 15px !important;
    right: auto !important;

    display: block;

    width: 19px !important;
    height: 19px !important;

    flex: none;

    margin: 0 !important;
    padding: 0 !important;

    color: #658ba0;

    transform: translateY(-50%) !important;

    pointer-events: none;
    z-index: 2;
}

/* Search input */

body .as-archive
.as-directory__search input[type="search"] {
    display: block;

    width: 100%;
    height: 48px;
    min-height: 48px;

    margin: 0 !important;
    padding: 10px 16px 10px 49px !important;

    box-sizing: border-box;

    border: 1px solid #d7e6ef;
    border-radius: 10px;

    background: #f8fbfd;
    color: #0a2b43;

    font-family: inherit;
    font-size: 16px;
    line-height: 26px;

    appearance: none;
    -webkit-appearance: none;

    transition:
        border-color .3s ease,
        background .3s ease,
        box-shadow .3s ease;
}

/* Placeholder */

body .as-archive
.as-directory__search input::placeholder {
    color: #7993a3;
    opacity: 1;
}

/* Input focus */

body .as-archive
.as-directory__search input[type="search"]:focus {
    border-color: #00a6cc;

    background: #ffffff;

    outline: none;

    box-shadow:
        0 0 0 4px rgba(0,188,232,.09);
}

/* FILTER TOOLBAR */

body .as-archive .as-directory__toolbar {
    gap: 18px;
    margin-bottom: 18px;
}

/* DIRECTORY SUMMARY */

body .as-archive .as-directory__summary {
    margin-bottom: 18px;
    padding: 10px 0;
}

/* ============================================================
   SERVICE CARDS - REFINED SPACING
============================================================ */

body .as-archive .as-directory__grid {
    gap: clamp(15px, 1.5vw, 23px);
}

body .as-archive .as-service-card__media {
    height: clamp(175px, 15vw, 218px);
}

body .as-archive .as-service-card__body {
    padding: 20px 22px 19px;
}

body .as-archive .as-service-card h3 {
    font-size: clamp(21px, 1.55vw, 25px) !important;
    line-height: 1.35;
}

/* Maintain hover lift after scroll entrance */

body .as-archive.as-motion
.as-service-card.is-visible:hover {
    transform: translateY(-9px);
}

/* ============================================================
   TABLET
============================================================ */

@media (max-width: 1020px) {

    body .as-archive .as-hero {
        padding: 72px 0 40px;
    }

    body .as-archive .as-hero__layout {
        grid-template-columns: 1fr;
    }

    body .as-archive .as-directory__heading {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    body .as-archive .as-directory__search {
        flex: 0 0 auto;
        width: min(100%, 400px);
    }

    body .as-archive .as-service-card__media {
        height: 195px;
    }
}

/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 640px) {

    body .as-archive .as-hero {
        padding: 54px 0 33px;
    }

    body .as-archive .as-hero h1 {
        font-size: clamp(33px, 8vw, 41px) !important;
    }

    body .as-archive .as-hero__visual-stage {
        height: 200px;
    }

    body .as-archive .as-directory {
        padding: 46px 0 52px;
    }

    body .as-archive .as-directory h2 {
        font-size: clamp(32px, 7.5vw, 40px) !important;
    }

    body .as-archive .as-directory__toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    body .as-archive .as-directory__search {
        width: 100%;
        min-width: 0;
    }

    body .as-archive .as-directory__grid {
        grid-template-columns: 1fr;
    }

    body .as-archive .as-service-card__media {
        height: 195px;
    }
}
/* Remove service card number labels */
.as-archive .as-service-card__index {
    display: none !important;
}