/* Services page — Ambition IT */

.services-page-container,
.services-hero-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.services-eyebrow {
    margin: 0 0 18px;
    color: #777777;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

/* Hero */
.services-hero {
    position: relative;
    padding: 75px 24px 110px;
    overflow: hidden;
    background: #ffffff;
}

.services-hero::before,
.services-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.services-hero::before {
    top: -180px;
    right: -130px;
    width: 430px;
    height: 430px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.07), transparent 70%);
    animation: services-drift 12s ease-in-out infinite;
}

.services-hero::after {
    left: -170px;
    bottom: -210px;
    width: 390px;
    height: 390px;
    border: 1px dashed rgba(0, 0, 0, 0.1);
    animation: services-spin 55s linear infinite;
}

.services-hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.75fr);
    align-items: center;
    gap: 85px;
}

.services-hero-content h1 {
    margin: 0;
    color: #111111;
    font-size: clamp(3.5rem, 7vw, 6.7rem);
    line-height: 0.92;
    letter-spacing: -0.075em;
}

.services-hero-content h1 span {
    display: block;
    color: #777777;
}

.services-hero-description {
    max-width: 670px;
    margin: 30px 0 0;
    color: #555555;
    font-size: 1.08rem;
    line-height: 1.75;
}

.services-hero-buttons,
.services-final-cta-inner > div {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.services-primary-button,
.services-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px;
    transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.services-primary-button {
    color: #ffffff;
    background: #111111;
    border: 1px solid #111111;
}

.services-primary-button:hover {
    color: #111111;
    background: transparent;
    transform: translateY(-2px);
}

.services-secondary-button {
    color: #111111;
    background: transparent;
    border: 1px solid #cccccc;
}

.services-secondary-button:hover {
    border-color: #111111;
    transform: translateY(-2px);
}

.services-hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 34px;
    color: #666666;
    font-size: 0.82rem;
}

.services-hero-points span::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    background: #111111;
    border-radius: 50%;
    vertical-align: middle;
}

.services-hero-visual {
    position: relative;
    padding: 28px;
    color: #ffffff;
    background: #111111;
    border: 1px solid #2d2d2d;
    border-radius: 32px;
    box-shadow: 0 28px 65px rgba(0, 0, 0, 0.2);
    transform: rotate(2deg);
}

.services-visual-heading {
    display: flex;
    justify-content: space-between;
    padding-bottom: 20px;
    color: #999999;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid #343434;
}

.services-visual-list {
    display: grid;
    gap: 9px;
    margin-top: 22px;
}

.services-visual-list div {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: #191919;
    border: 1px solid #303030;
    border-radius: 16px;
}

.services-visual-list span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    color: #111111;
    font-size: 0.7rem;
    font-weight: 800;
    background: #ffffff;
    border-radius: 50%;
}

.services-visual-badge {
    position: absolute;
    right: -24px;
    bottom: -28px;
    display: flex;
    flex-direction: column;
    padding: 17px 22px;
    color: #111111;
    background: #ffffff;
    border: 1px solid #d7d7d7;
    border-radius: 18px;
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.16);
}

.services-visual-badge span { color: #777777; font-size: 0.72rem; }

/* Overview */
.services-overview {
    padding: 110px 24px;
    background: #f6f6f6;
}

.services-section-heading {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 0.45fr);
    align-items: end;
    gap: 60px;
    margin-bottom: 55px;
}

.services-section-heading h2,
.service-detail-heading h2,
.support-panel h2,
.services-final-cta h2 {
    margin: 0;
    color: #111111;
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.services-section-heading > p {
    margin: 0;
    color: #666666;
    line-height: 1.7;
}

.services-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.service-page-card {
    display: flex;
    flex-direction: column;
    min-height: 410px;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 25px;
    transition: transform 0.25s ease, color 0.25s ease, background-color 0.25s ease;
}

.service-page-card:hover {
    color: #ffffff;
    background: #111111;
    transform: translateY(-7px);
}

.service-card-number {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    background: #111111;
    border-radius: 50%;
}

.service-page-card:hover .service-card-number { color: #111111; background: #ffffff; }
.service-page-card h3 { margin: 32px 0 12px; font-size: 1.3rem; }
.service-page-card > p { margin: 0; color: #666666; line-height: 1.65; }
.service-page-card:hover > p { color: #bbbbbb; }

.service-page-card ul {
    display: grid;
    gap: 9px;
    margin: 24px 0;
    padding: 0;
    color: #555555;
    font-size: 0.82rem;
    list-style: none;
}

.service-page-card li::before { content: "✓"; margin-right: 8px; font-weight: 800; }
.service-page-card:hover ul { color: #cccccc; }

.service-page-card a {
    margin-top: auto;
    color: inherit;
    font-weight: 700;
    text-decoration: none;
}

/* Detail */
.service-detail-section { padding: 110px 24px; background: #ffffff; }
.service-detail-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 90px; }
.service-detail-content > p { margin: 0; color: #555555; line-height: 1.75; }
.service-detail-points { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 32px 0; }

.service-detail-points div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 17px;
    background: #f6f6f6;
    border: 1px solid #dedede;
    border-radius: 16px;
}

.service-detail-points span {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    color: #ffffff;
    background: #111111;
    border-radius: 50%;
}

.service-detail-points p { margin: 0; font-size: 0.84rem; font-weight: 600; }

.service-inline-button {
    display: inline-flex;
    padding: 14px 22px;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    background: #111111;
    border: 1px solid #111111;
    border-radius: 28px;
}

/* Support */
.service-support-section { padding: 0 24px 110px; background: #ffffff; }

.support-panel {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 75px;
    padding: 65px;
    color: #ffffff;
    background: #111111;
    border-radius: 36px;
}

.support-panel h2 { color: #ffffff; }
.support-panel > div:first-child > p:last-child { color: #aaaaaa; line-height: 1.7; }
.support-statements { display: grid; gap: 10px; }

.support-statements div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 16px;
}

.support-statements span { color: #999999; font-size: 0.8rem; text-align: right; }

/* Final CTA */
.services-final-cta { padding: 30px 24px 110px; background: #f6f6f6; }

.services-final-cta-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.services-final-cta-inner > p:not(.services-eyebrow) {
    max-width: 650px;
    margin: 25px auto 0;
    color: #666666;
    line-height: 1.7;
}

.services-final-cta-inner > div { justify-content: center; }

/* Animation */
@keyframes services-drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-40px, 30px) scale(1.08); }
}

@keyframes services-spin { to { transform: rotate(360deg); } }

@supports (animation-timeline: view()) {
    .services-section-heading,
    .service-detail-heading,
    .service-detail-content,
    .support-panel,
    .services-final-cta-inner {
        animation: ambition-reveal-up 1ms ease both;
        animation-timeline: view();
        animation-range: entry 5% cover 30%;
    }

    .services-card-grid {
        animation: ambition-reveal-scale 1ms ease both;
        animation-timeline: view();
        animation-range: entry 5% cover 25%;
    }
}

/* Responsive */
@media (max-width: 950px) {
    .services-hero-container { grid-template-columns: 1fr; }
    .services-hero-visual { width: min(100%, 600px); transform: none; }
    .services-card-grid { grid-template-columns: repeat(2, 1fr); }
    .service-detail-grid, .support-panel { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 700px) {
    .services-hero, .services-overview, .service-detail-section { padding: 70px 20px; }
    .service-support-section { padding: 0 12px 75px; }
    .services-final-cta { padding: 20px 20px 75px; }
    .services-section-heading { grid-template-columns: 1fr; gap: 25px; }
    .services-card-grid { grid-template-columns: 1fr; }
    .service-page-card { min-height: auto; }
    .service-detail-points { grid-template-columns: 1fr; }
    .support-panel { padding: 42px 24px; border-radius: 28px; }
    .services-hero-buttons, .services-final-cta-inner > div { flex-direction: column; }
    .services-hero-buttons a, .services-final-cta-inner a { width: 100%; }
    .services-visual-badge { right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    .services-hero::before,
    .services-hero::after,
    .services-section-heading,
    .services-card-grid,
    .service-detail-heading,
    .service-detail-content,
    .support-panel,
    .services-final-cta-inner {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* =========================
   IT Support section
========================= */

.it-support-section {
    padding: 110px 24px;
    color: #ffffff;
    background-color: #111111;
}

.it-support-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.it-support-section > .it-support-container:first-child {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    align-items: start;
    gap: 90px;
}

.it-support-eyebrow {
    margin: 0 0 18px;
    color: #999999;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.it-support-heading h2 {
    margin: 0;
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.it-support-heading h2 span {
    display: block;
    color: #777777;
}

.it-support-heading > p:not(.it-support-eyebrow) {
    max-width: 580px;
    margin: 27px 0 0;
    color: #bcbcbc;
    line-height: 1.75;
}

.it-support-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding: 15px 23px;
    color: #111111;
    font-weight: 800;
    text-decoration: none;
    background-color: #ffffff;
    border: 1px solid #ffffff;
    border-radius: 28px;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.it-support-button:hover {
    color: #ffffff;
    background-color: transparent;
    transform: translateY(-3px);
}

.it-support-content {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.it-support-feature {
    min-height: 245px;
    padding: 25px;
    background-color: #191919;
    border: 1px solid #303030;
    border-radius: 23px;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.it-support-feature:hover {
    background-color: #202020;
    border-color: #555555;
    transform: translateY(-5px);
}

.it-support-number {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 38px;
    color: #111111;
    font-size: 0.68rem;
    font-weight: 800;
    background-color: #ffffff;
    border-radius: 50%;
}

.it-support-feature h3 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 1.15rem;
}

.it-support-feature p {
    margin: 0;
    color: #aaaaaa;
    font-size: 0.88rem;
    line-height: 1.65;
}

.it-support-note {
    margin: 45px 0 0;
    padding-top: 22px;
    color: #888888;
    font-size: 0.76rem;
    line-height: 1.6;
    border-top: 1px solid #333333;
}

/* Content remains visible by default */
.it-support-animate {
    opacity: 1;
    transform: none;
}

/*
Animation starting position is only enabled after
JavaScript confirms that it is working.
*/
.it-support-section.animations-ready .it-support-animate {
    opacity: 0;
    transform: translateY(38px);

    transition:
        opacity 0.7s ease var(--it-delay, 0ms),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1)
        var(--it-delay, 0ms);
}

.it-support-section.animations-ready
.it-support-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .it-support-section.animations-ready .it-support-animate {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

@media (max-width: 900px) {
    .it-support-section > .it-support-container:first-child {
        grid-template-columns: 1fr;
        gap: 55px;
    }
}

@media (max-width: 600px) {
    .it-support-section {
        padding: 75px 16px;
    }

    .it-support-content {
        grid-template-columns: 1fr;
    }

    .it-support-feature {
        min-height: auto;
    }
}