/* =========================================================
   SERVICES PAGE
   ========================================================= */

.services-page {
    --services-orange: var(--orange, #f47721);
    --services-purple: var(--purple, #7545d8);
    --services-ink: var(--navy, #11152b);

    overflow: hidden;
}


/* =========================================================
   HERO
   ========================================================= */

.services-page .services-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding-top: clamp(65px, 8vw, 100px);
    padding-bottom: 35px;
}

.services-page .services-hero .container {
    position: relative;
    z-index: 2;
}

.services-page .services-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    align-items: center;
    gap: clamp(30px, 5vw, 75px);
}

.services-page .services-hero-copy {
    max-width: 760px;
}

.services-page .services-hero .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.services-page .services-status-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--services-orange);
    box-shadow: 0 0 0 5px rgba(244, 119, 33, 0.10);
}

.services-page .services-hero h1 {
    max-width: 760px;
    margin-top: 22px;
    margin-bottom: 20px;

    font-size: clamp(42px, 5.5vw, 76px);
    line-height: 1.06;
    letter-spacing: -0.055em;
}

.services-page .services-hero h1 em {
    display: inline-block;

    font-style: normal;

    background: linear-gradient(
        110deg,
        var(--services-orange),
        var(--services-purple)
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.services-page .services-hero-description {
    max-width: 600px;
    margin-bottom: 0;

    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.85;
    opacity: 0.8;
}

.services-page .services-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;

    margin-top: 30px;
}

.services-page .services-hero-actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.services-page .services-hero-actions .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(117, 69, 216, 0.2);
}

.services-page .services-hero-actions .btn span {
    transition: transform 0.25s ease;
}

.services-page .services-hero-actions .btn:hover span {
    transform: translate(3px, -3px);
}

.services-page .services-hero-note {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.65;
}


/* HERO VISUAL */

.services-page .services-hero-visual {
    position: relative;

    display: grid;
    place-items: center;

    width: min(100%, 390px);
    aspect-ratio: 1;

    margin-inline: auto;
}

.services-page .services-hero-glow {
    position: absolute;
    z-index: -1;
    top: -100px;
    right: -100px;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(117, 69, 216, 0.13),
        rgba(244, 119, 33, 0.05) 45%,
        transparent 72%
    );

    pointer-events: none;

    animation: servicesGlowFloat 9s ease-in-out infinite alternate;
}

.services-page .services-visual-orbit {
    position: absolute;
    border: 1px solid rgba(117, 69, 216, 0.20);
    border-radius: 50%;
}

.services-page .orbit-outer {
    inset: 3%;
    animation: servicesRotate 35s linear infinite;
}

.services-page .orbit-inner {
    inset: 17%;
    border-color: rgba(244, 119, 33, 0.25);
    animation: servicesRotate 28s linear infinite reverse;
}

.services-page .services-visual-core {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 43%;
    aspect-ratio: 1;

    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 30%;

    color: white;

    background: linear-gradient(
        140deg,
        var(--services-orange),
        var(--services-purple)
    );

    box-shadow:
        0 25px 70px rgba(117, 69, 216, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);

    transform: rotate(-8deg);

    animation: servicesCoreFloat 6s ease-in-out infinite alternate;
}

.services-page .services-core-mark {
    font-size: clamp(35px, 4vw, 55px);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.08em;
}

.services-page .services-core-caption {
    margin-top: 10px;

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.22em;
}

.services-page .services-float-label {
    position: absolute;
    z-index: 2;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 11px 15px;

    border: 1px solid rgba(120, 120, 145, 0.15);
    border-radius: 12px;

    color: var(--services-ink);
    background: rgba(255, 255, 255, 0.92);

    box-shadow: 0 12px 35px rgba(25, 25, 55, 0.07);

    font-size: 12px;
    font-weight: 700;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.services-page .label-design {
    top: 17%;
    left: -3%;
    animation: servicesLabelFloat 5s ease-in-out infinite;
}

.services-page .label-technology {
    top: 46%;
    right: -8%;
    animation: servicesLabelFloat 6s ease-in-out infinite reverse;
}

.services-page .label-growth {
    bottom: 13%;
    left: 9%;
    animation: servicesLabelFloat 5.5s ease-in-out infinite;
}

.services-page .services-label-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.services-page .orange-dot {
    background: var(--services-orange);
}

.services-page .purple-dot {
    background: var(--services-purple);
}

.services-page .services-hero-footer {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 25px;

    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    opacity: 0.65;
}

.services-page .services-hero-rule {
    width: 36px;
    height: 2px;
    border-radius: 2px;

    background: linear-gradient(
        90deg,
        var(--services-orange),
        var(--services-purple)
    );
}


/* =========================================================
   SERVICES LIST
   ========================================================= */

.services-page .services-list-section {
    padding-top: clamp(25px, 3vw, 42px);
    padding-bottom: clamp(65px, 8vw, 100px);
}

.services-page .services-list-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.65fr);
    align-items: end;
    gap: 40px;

    margin-bottom: 42px;
}

.services-page .services-list-heading h2 {
    max-width: 650px;
    margin-top: 14px;
    margin-bottom: 0;

    font-size: clamp(30px, 3.6vw, 46px);
    line-height: 1.16;
    letter-spacing: -0.045em;
}

.services-page .services-list-heading h2 em {
    font-style: normal;
    color: var(--services-purple);
}

.services-page .services-list-heading > p {
    max-width: 430px;
    margin: 0;

    line-height: 1.85;
    opacity: 0.72;
}


/* INDIVIDUAL SERVICE ROWS */

.services-page .service-list {
    display: grid;
    gap: 15px;
}

.services-page .service-row {
    position: relative;

    display: grid;
    grid-template-columns: 42px 64px minmax(0, 1fr) 48px;
    align-items: start;
    gap: 25px;

    padding: 32px 30px;

    overflow: hidden;

    border: 1px solid rgba(110, 110, 140, 0.14);
    border-radius: 19px;

    background: var(--card, #fff);

    box-shadow: 0 7px 25px rgba(25, 25, 55, 0.025);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.services-page .service-row::before {
    content: "";

    position: absolute;
    top: -100px;
    right: -100px;

    width: 220px;
    height: 220px;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(117, 69, 216, 0.06),
        transparent 70%
    );

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.35s ease;
}

.services-page .service-row:hover {
    transform: translateY(-4px);

    border-color: rgba(117, 69, 216, 0.25);

    box-shadow: 0 20px 45px rgba(25, 25, 55, 0.065);
}

.services-page .service-row:hover::before {
    opacity: 1;
}

.services-page .service-number {
    padding-top: 5px;

    color: var(--services-purple);

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.services-page .service-row-icon {
    display: grid;
    place-items: center;

    width: 64px;
    height: 64px;

    border-radius: 17px;

    transition:
        transform 0.35s ease,
        border-radius 0.35s ease;
}

.services-page .service-row:hover .service-row-icon {
    transform: rotate(-5deg) scale(1.04);
    border-radius: 20px;
}

.services-page .service-row-icon.orange {
    color: var(--services-orange);
    background: rgba(244, 119, 33, 0.10);
}

.services-page .service-row-icon.purple {
    color: var(--services-purple);
    background: rgba(117, 69, 216, 0.09);
}

.services-page .service-row-icon svg {
    width: 28px;
    height: 28px;
}

.services-page .service-row-copy {
    min-width: 0;
}

.services-page .services-row-category {
    display: block;
    margin-bottom: 9px;

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    opacity: 0.55;
}

.services-page .service-row-copy h2 {
    margin: 0 0 12px;

    font-size: clamp(21px, 2.1vw, 28px);
    line-height: 1.25;
    letter-spacing: -0.035em;

    transition: color 0.3s ease;
}

.services-page .services-row-orange:hover .service-row-copy h2 {
    color: var(--services-orange);
}

.services-page .services-row-purple:hover .service-row-copy h2 {
    color: var(--services-purple);
}

.services-page .service-row-copy > p {
    max-width: 760px;
    margin: 0;

    line-height: 1.8;
    font-size: 14px;
    opacity: 0.78;
}

.services-page .services-feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;

    margin: 22px 0 0;
    padding: 0;

    list-style: none;
}

.services-page .services-feature-list li {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    font-size: 11px;
    font-weight: 600;
    opacity: 0.75;
}

.services-page .services-feature-list li span {
    color: var(--services-purple);
    font-size: 12px;
}

.services-page .round-arrow {
    position: relative;
    z-index: 2;

    display: grid;
    place-items: center;

    width: 46px;
    height: 46px;

    border: 1px solid rgba(110, 110, 140, 0.17);
    border-radius: 50%;

    color: var(--services-ink);
    background: transparent;

    text-decoration: none;
    font-size: 19px;

    transition:
        color 0.3s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.services-page .services-row-orange .round-arrow:hover {
    color: #fff;
    background: var(--services-orange);
    border-color: var(--services-orange);
    transform: rotate(45deg);
}

.services-page .services-row-purple .round-arrow:hover {
    color: #fff;
    background: var(--services-purple);
    border-color: var(--services-purple);
    transform: rotate(45deg);
}

.services-page .services-row-accent {
    position: absolute;
    bottom: 0;
    left: 30px;

    width: 40px;
    height: 3px;

    border-radius: 3px 3px 0 0;

    transition: width 0.35s ease;
}

.services-page .services-row-orange .services-row-accent {
    background: var(--services-orange);
}

.services-page .services-row-purple .services-row-accent {
    background: var(--services-purple);
}

.services-page .service-row:hover .services-row-accent {
    width: calc(100% - 60px);
}


/* =========================================================
   CONSULTATION CTA
   ========================================================= */

.services-page .services-cta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.services-page .services-cta-glow {
    position: absolute;
    z-index: -1;

    top: -180px;
    right: 10%;

    width: 400px;
    height: 400px;

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(117, 69, 216, 0.12),
        transparent 70%
    );

    pointer-events: none;
}

.services-page .services-cta-inner {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;

    padding: clamp(32px, 5vw, 60px);

    border: 1px solid rgba(117, 69, 216, 0.14);
    border-radius: 24px;

    background:
        radial-gradient(
            ellipse at 100% 0%,
            rgba(117, 69, 216, 0.09),
            transparent 45%
        ),
        var(--card, #fff);

    box-shadow: 0 20px 60px rgba(25, 25, 55, 0.045);
}

.services-page .services-cta-copy {
    max-width: 680px;
}

.services-page .services-cta-copy h2 {
    margin-top: 15px;
    margin-bottom: 15px;

    font-size: clamp(32px, 4vw, 49px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.services-page .services-cta-copy h2 em {
    font-style: normal;
    color: var(--services-purple);
}

.services-page .services-cta-copy p {
    max-width: 580px;
    margin-bottom: 0;

    line-height: 1.85;
    opacity: 0.75;
}

.services-page .services-cta-button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 14px;

    white-space: nowrap;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.services-page .services-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(117, 69, 216, 0.2);
}

.services-page .services-cta-button span {
    transition: transform 0.25s ease;
}

.services-page .services-cta-button:hover span {
    transform: translate(3px, -3px);
}


/* =========================================================
   ANIMATIONS
   ========================================================= */

.services-page .services-reveal {
    animation: servicesReveal 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.services-page .services-hero-description {
    animation-delay: 0.12s;
}

.services-page .services-hero-actions {
    animation-delay: 0.2s;
}

.services-page .services-hero-footer {
    animation-delay: 0.28s;
}

@keyframes servicesReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes servicesRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes servicesGlowFloat {
    from {
        transform: translate3d(0, 0, 0);
    }

    to {
        transform: translate3d(-25px, 20px, 0);
    }
}

@keyframes servicesCoreFloat {
    from {
        transform: rotate(-8deg) translateY(0);
    }

    to {
        transform: rotate(-4deg) translateY(-9px);
    }
}

@keyframes servicesLabelFloat {
    0%, 100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -8px;
    }
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .services-page .services-hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.65fr);
        gap: 25px;
    }

    .services-page .services-hero-visual {
        width: 100%;
        max-width: 310px;
    }

    .services-page .services-float-label {
        padding: 9px 11px;
        font-size: 11px;
    }

    .services-page .service-row {
        grid-template-columns: 30px 56px minmax(0, 1fr) 42px;
        gap: 18px;
        padding: 26px 22px;
    }

    .services-page .service-row-icon {
        width: 56px;
        height: 56px;
    }

    .services-page .services-row-accent {
        left: 22px;
    }

    .services-page .service-row:hover .services-row-accent {
        width: calc(100% - 44px);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .services-page .services-hero {
        padding-top: 55px;
        padding-bottom: 28px;
    }

    .services-page .services-hero-inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .services-page .services-hero h1 {
        margin-top: 18px;
        margin-bottom: 16px;

        font-size: clamp(39px, 10vw, 58px);
    }

    .services-page .services-hero-description {
        font-size: 16px;
        line-height: 1.75;
    }

    .services-page .services-hero-actions {
        gap: 15px;
        margin-top: 24px;
    }

    .services-page .services-hero-actions .btn {
        width: 100%;
    }

    .services-page .services-hero-note {
        font-size: 11px;
    }

    .services-page .services-hero-visual {
        width: min(80%, 270px);
        margin-top: 0;
    }

    .services-page .label-design {
        left: -8%;
    }

    .services-page .label-technology {
        right: -12%;
    }

    .services-page .label-growth {
        left: 2%;
    }

    .services-page .services-hero-footer {
        margin-top: 15px;
        font-size: 9px;
    }

    /* Keep the services list close to the hero. */
    .services-page .services-list-section {
        padding-top: 25px;
        padding-bottom: 60px;
    }

    .services-page .services-list-heading {
        grid-template-columns: 1fr;
        gap: 17px;
        margin-bottom: 28px;
    }

    .services-page .services-list-heading h2 {
        font-size: clamp(29px, 8vw, 39px);
    }

    .services-page .services-list-heading > p {
        font-size: 14px;
        line-height: 1.8;
    }

    .services-page .service-list {
        gap: 13px;
    }

    .services-page .service-row {
        grid-template-columns: 34px minmax(0, 1fr) 40px;
        align-items: start;
        gap: 13px;

        padding: 23px 18px 26px;

        border-radius: 16px;
    }

    .services-page .service-number {
        grid-column: 1;
        grid-row: 1;
        padding-top: 5px;
        font-size: 11px;
    }

    .services-page .service-row-icon {
        display: none;
    }

    .services-page .service-row-copy {
        grid-column: 2;
        grid-row: 1;
    }

    .services-page .services-row-category {
        margin-bottom: 8px;
        font-size: 9px;
    }

    .services-page .service-row-copy h2 {
        margin-bottom: 10px;
        font-size: 21px;
    }

    .services-page .service-row-copy > p {
        font-size: 13px;
        line-height: 1.8;
    }

    .services-page .services-feature-list {
        display: grid;
        gap: 9px;
        margin-top: 17px;
    }

    .services-page .services-feature-list li {
        font-size: 11px;
    }

    .services-page .round-arrow {
        grid-column: 3;
        grid-row: 1;

        width: 38px;
        height: 38px;

        font-size: 16px;
    }

    .services-page .services-row-accent {
        left: 18px;
    }

    .services-page .service-row:hover .services-row-accent {
        width: calc(100% - 36px);
    }

    .services-page .services-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;

        padding: 27px 22px;

        border-radius: 19px;
    }

    .services-page .services-cta-copy h2 {
        font-size: clamp(31px, 8vw, 40px);
    }

    .services-page .services-cta-copy p {
        font-size: 14px;
        line-height: 1.8;
    }

    .services-page .services-cta-button {
        width: 100%;
    }
}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .services-page *,
    .services-page *::before,
    .services-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Remove default link styling from clickable service cards */
.services-page a.service-row,
.services-page a.service-row:hover,
.services-page a.service-row:focus,
.services-page a.service-row:active {
    color: inherit;
    text-decoration: none;
}

.services-page a.service-row *,
.services-page a.service-row:hover *,
.services-page a.service-row:focus * {
    text-decoration: none;
}

/* Preserve the intended heading colours */
.services-page a.service-row .service-row-copy h2 {
    color: var(--services-ink);
    text-decoration: none;
}

.services-page a.service-row.services-row-orange:hover .service-row-copy h2 {
    color: var(--services-orange);
}

.services-page a.service-row.services-row-purple:hover .service-row-copy h2 {
    color: var(--services-purple);
}

/* Keep descriptions readable */
.services-page a.service-row .service-row-copy p {
    color: inherit;
    text-decoration: none;
}

/* Keep decorative elements from appearing underlined */
.services-page a.service-row .service-number,
.services-page a.service-row .services-row-category,
.services-page a.service-row .services-feature-list,
.services-page a.service-row .services-feature-list li {
    text-decoration: none;
}

