/* IT Core — the look. Colours/fonts/sizes come from theme.json (--wp--preset--*). */

:root {
    --ink: var(--wp--preset--color--ink);
    --ink-soft: var(--wp--preset--color--ink-soft);
    --line: var(--wp--preset--color--line);
    --mist: var(--wp--preset--color--mist);
    --muted: var(--wp--preset--color--muted);
    /* the logo's ring, clockwise from the top */
    --rainbow: #f2c418, #b5cc03, #66b32d, #3fb0a0, #4162ab, #774797, #e83b3d, #f3932d;
    --rainbow-linear: linear-gradient(90deg, #e83b3d, #f3932d, #f2c418, #b5cc03, #66b32d, #3fb0a0, #4162ab, #774797);
    --rainbow-conic: conic-gradient(from 0deg, var(--rainbow), #f2c418);
    --radius: 18px;
    --shadow: 0 1px 2px rgb(14 17 32 / .04), 0 8px 24px -12px rgb(14 17 32 / .18);
    --shadow-lift: 0 2px 4px rgb(14 17 32 / .05), 0 22px 40px -18px rgb(14 17 32 / .3);
    --section-y: var(--wp--preset--spacing--60);
}

body {
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection { background: #4162ab; color: #fff; }

:where(a, button, input, textarea, select):focus-visible {
    outline: 2px solid #4162ab;
    outline-offset: 3px;
    border-radius: 4px;
}

img { height: auto; }

.wp-site-blocks > * { margin-block: 0; }
.site-main { padding: 0; }
.site-main > .wp-block-post-content { margin-top: 0; }
.wp-block-post-content > .alignfull { margin-block: 0; }

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: var(--wp-admin--admin-bar--height, 0);
    z-index: 50;
    background: var(--ink);
    color: #fff;
}
.site-header::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: var(--rainbow-linear);
}
.site-header__bar { min-height: 76px; gap: 2rem; }
.site-brand { display: inline-flex; line-height: 0; }
.site-brand img { width: 150px; }

.site-nav { font-family: var(--wp--preset--font-family--heading); font-weight: 600; font-size: .95rem; }
.site-nav .wp-block-navigation__container { gap: .25rem 1.75rem; }
.site-nav .wp-block-navigation-item__content { color: rgb(255 255 255 / .78); text-decoration: none; transition: color .15s; }
.site-nav .wp-block-navigation-item__content:hover,
.site-nav .current-menu-item .wp-block-navigation-item__content { color: #fff; }
.site-nav .wp-block-navigation-item__content[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 #fff; }

/* pill with a rainbow border */
.site-nav .nav-cta .wp-block-navigation-item__content {
    padding: .55em 1.15em;
    border: 2px solid transparent;
    border-radius: 999px;
    background: linear-gradient(var(--ink), var(--ink)) padding-box, var(--rainbow-linear) border-box;
    color: #fff;
}
.site-nav .nav-cta .wp-block-navigation-item__content:hover {
    background: linear-gradient(var(--ink-soft), var(--ink-soft)) padding-box, var(--rainbow-linear) border-box;
}

.site-nav .wp-block-navigation__responsive-container-open,
.site-nav .wp-block-navigation__responsive-container-close { color: #fff; }
.site-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem clamp(1rem, 4vw, 2rem); }
.site-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    align-items: flex-start !important;
    gap: 1.25rem;
    font-size: 1.35rem;
}
.site-nav .is-menu-open .wp-block-navigation__responsive-container-content { align-items: flex-start !important; padding-top: 3rem; }
.site-nav .is-menu-open .wp-block-navigation-item__content { color: #fff !important; }
.site-nav .is-menu-open .nav-cta .wp-block-navigation-item__content { padding: .45em 1.1em !important; margin-top: .5rem; }
.site-nav .is-menu-open .wp-block-navigation__responsive-container-close { color: #fff; }

/* ---------- shared bits ---------- */

.section {
    padding-block: var(--section-y);
    position: relative;
}
.section--mist { background: var(--mist); }
.section--flush-top { padding-top: 0; }
.wp-block-post-content > :not(.alignfull) + .alignfull { margin-top: var(--section-y) !important; }
.section--ink { background: var(--ink); color: rgb(255 255 255 / .78); }
.section--ink :where(h1, h2, h3, h4) { color: #fff; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .6em;
    font-family: var(--wp--preset--font-family--heading);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.eyebrow::before {
    content: "";
    width: 1.1em;
    height: 1.1em;
    background: url(../img/ring.svg) center / contain no-repeat;
}
.eyebrow + :where(h1, h2) { margin-top: .6rem; }
.section--ink .eyebrow, .hero .eyebrow { color: rgb(255 255 255 / .7); }

.section-head { text-align: center; margin-bottom: var(--wp--preset--spacing--50) !important; }
.section-head > * { margin-inline: auto; }
.section-head h2::after {
    content: "";
    display: block;
    width: 72px;
    height: 4px;
    margin: .5em auto 0;
    border-radius: 4px;
    background: var(--rainbow-linear);
}
.section-head p { max-width: 640px; color: var(--muted); font-size: var(--wp--preset--font-size--large); }
.section--ink .section-head p { color: rgb(255 255 255 / .7); }

.rainbow-text {
    background: var(--rainbow-linear);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead { font-size: var(--wp--preset--font-size--large); color: var(--ink-soft); }

/* buttons */
.wp-element-button, .wp-block-button__link { transition: background-color .15s, color .15s, transform .15s, box-shadow .15s; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 2px solid currentColor;
    color: var(--ink);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-light .wp-block-button__link { background: #fff; color: var(--ink); }
.btn-light .wp-block-button__link:hover { background: #fff; box-shadow: 0 0 0 4px rgb(255 255 255 / .2); color: var(--ink); }
:where(.hero, .section--ink, .cta-band) .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: rgb(255 255 255 / .45); }
:where(.hero, .section--ink, .cta-band) .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- home hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(60rem 40rem at 85% 40%, rgb(65 98 171 / .35), transparent 60%),
        radial-gradient(40rem 30rem at 10% 110%, rgb(119 71 151 / .3), transparent 60%),
        var(--ink);
    color: rgb(255 255 255 / .8);
    padding-block: clamp(4rem, 12vw, 9rem) clamp(3.5rem, 9vw, 7rem);
}
.hero > * { position: relative; z-index: 1; }
.hero__content > :not(.stats) { max-width: 40rem; }
.hero h1 { color: #fff; margin-top: .4em; }
.hero .lead { color: rgb(255 255 255 / .78); max-width: 34rem; }
.hero::before, .hero::after {
    content: "";
    position: absolute;
    width: min(46vw, 580px);
    aspect-ratio: 1;
    right: max(-6vw, calc((100vw - 1200px) / 2 - 140px));
    top: 50%;
    translate: 0 -50%;
}
.hero::after {
    background: url(../img/ring.svg) center / contain no-repeat;
    animation: itcore-spin 60s linear infinite;
}
.hero::before {
    border-radius: 50%;
    background: var(--rainbow-conic);
    filter: blur(70px);
    opacity: .38;
    animation: itcore-spin 60s linear infinite reverse;
}
@keyframes itcore-spin { to { rotate: 1turn; } }

.stats {
    margin-top: clamp(2.5rem, 6vw, 4.5rem) !important;
    padding-top: 1.75rem;
    border-top: 1px solid rgb(255 255 255 / .12);
    gap: clamp(1.5rem, 5vw, 4rem) !important;
}
.stats p { margin: 0; font-size: .9rem; color: rgb(255 255 255 / .62); max-width: 14rem; }
.stats strong {
    display: block;
    font-family: var(--wp--preset--font-family--heading);
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

@media (max-width: 781px) {
    .hero h1 { font-size: clamp(2rem, 9vw, 2.75rem); }
    .hero::before, .hero::after { width: 300px; right: -120px; top: 64px; translate: 0; opacity: .5; }
}

/* ---------- page title band ---------- */

.page-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(40rem 22rem at 90% 0%, rgb(65 98 171 / .35), transparent 65%),
        var(--ink);
    color: rgb(255 255 255 / .75);
    padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem);
}
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.25rem); position: relative; z-index: 1; }
.page-hero::after {
    content: "";
    position: absolute;
    width: 360px;
    aspect-ratio: 1;
    right: max(-120px, calc((100vw - 1200px) / 2 - 120px));
    top: -110px;
    background: url(../img/ring.svg) center / contain no-repeat;
    opacity: .9;
}
@media (max-width: 781px) {
    .page-hero::after { width: 220px; right: -90px; top: -80px; opacity: .55; }
}

.page-content { padding-block: var(--wp--preset--spacing--60); }
.page-content:has(> .alignfull:last-child) { padding-bottom: 0; }
.page-content > .alignfull:first-child { margin-top: calc(-1 * var(--wp--preset--spacing--60)) !important; }

/* ---------- cards ---------- */

.cards { gap: 1.25rem !important; }
.cards > :nth-child(8n+1) { --accent: #e83b3d; }
.cards > :nth-child(8n+2) { --accent: #f3932d; }
.cards > :nth-child(8n+3) { --accent: #e0b000; }
.cards > :nth-child(8n+4) { --accent: #9bb000; }
.cards > :nth-child(8n+5) { --accent: #66b32d; }
.cards > :nth-child(8n+6) { --accent: #3fb0a0; }
.cards > :nth-child(8n+7) { --accent: #4162ab; }
.cards > :nth-child(8n+8) { --accent: #774797; }

.card {
    --accent: #4162ab;
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem !important;
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s, border-color .2s;
    overflow: hidden;
}
.card:hover { transform: translateY(-3px); box-shadow: inset 0 3px 0 var(--accent), var(--shadow-lift); }
.card h3, .card h4 { font-size: 1.15rem; margin-top: 0; }
.card p { font-size: .95rem; color: var(--muted); }
.card > * + * { margin-top: .6rem !important; }

/* icon tile: class "icon-<name>" on the card, glyph from assets/icons/<name>.svg */
.card[class*="icon-"]::before {
    content: "";
    display: block;
    width: 48px;
    height: 48px;
    margin-bottom: 1.1rem;
    border-radius: 14px;
    background: color-mix(in srgb, var(--accent) 13%, #fff);
}
.card[class*="icon-"]::after {
    content: "";
    position: absolute;
    top: calc(1.75rem + 12px);
    left: calc(1.75rem + 12px);
    width: 24px;
    height: 24px;
    background: var(--accent);
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}
.card.icon-monitor { --icon: url(../icons/monitor.svg); }
.card.icon-cloud { --icon: url(../icons/cloud.svg); }
.card.icon-wrench { --icon: url(../icons/wrench.svg); }
.card.icon-wifi { --icon: url(../icons/wifi.svg); }
.card.icon-phone { --icon: url(../icons/phone.svg); }
.card.icon-headset { --icon: url(../icons/headset.svg); }
.card.icon-shield { --icon: url(../icons/shield.svg); }
.card.icon-branch { --icon: url(../icons/branch.svg); }
.card.icon-code { --icon: url(../icons/code.svg); }
.card.icon-globe { --icon: url(../icons/globe.svg); }
.card.icon-refresh { --icon: url(../icons/refresh.svg); }
.card.icon-activity { --icon: url(../icons/activity.svg); }
.card.icon-pin { --icon: url(../icons/pin.svg); }
.card.icon-network { --icon: url(../icons/network.svg); }
.card.icon-laptop { --icon: url(../icons/laptop.svg); }
.card.icon-cpu { --icon: url(../icons/cpu.svg); }
.card.icon-server { --icon: url(../icons/server.svg); }
.card.icon-key { --icon: url(../icons/key.svg); }
.card.icon-printer { --icon: url(../icons/printer.svg); }
.card.icon-receipt { --icon: url(../icons/receipt.svg); }
.card.icon-mail { --icon: url(../icons/mail.svg); }

/* a link in the card title makes the whole card clickable */
.card :where(h3, h4) a { color: inherit; text-decoration: none; }
.card :where(h3, h4) a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:has(:where(h3, h4) a) :where(h3, h4)::after {
    content: "";
    display: inline-block;
    width: .9em;
    height: .9em;
    margin-left: .4em;
    vertical-align: -.08em;
    background: var(--accent);
    -webkit-mask: url(../icons/arrow.svg) center / contain no-repeat;
    mask: url(../icons/arrow.svg) center / contain no-repeat;
    transition: translate .2s;
}
.card:has(:where(h3, h4) a):hover :where(h3, h4)::after { translate: 4px 0; }

/* ---------- logo walls ---------- */

.logos { gap: 1rem !important; }
.logos .wp-block-image {
    display: grid;
    place-items: center;
    height: 104px;
    margin: 0;
    padding: 1.1rem 1.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
}
.logos .wp-block-image img {
    max-height: 64px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: .7;
    transition: filter .25s, opacity .25s;
}
.logos .wp-block-image:hover img { filter: none; opacity: 1; }

/* ---------- team ---------- */

.team { gap: 2.5rem 1.5rem !important; }
.member { text-align: center; }
.member .wp-block-image {
    width: 132px;
    margin: 0 auto 1rem;
    padding: 4px;
    border-radius: 50%;
    background: var(--rainbow-conic);
    transition: rotate .6s;
}
.member .wp-block-image img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
}
.member:hover .wp-block-image { rotate: 8deg; }
.member:hover .wp-block-image img { rotate: -8deg; }
.member h3 { font-size: 1.05rem; margin: 0; }
@media (max-width: 600px) {
    .team { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 2rem 1rem !important; }
    .member .wp-block-image { width: 104px; }
}
.member p { margin: .25rem 0 0 !important; font-size: .9rem; color: var(--muted); }

/* ---------- CTA band ---------- */

.cta-band {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 6vw, 4.5rem) !important;
    background:
        radial-gradient(30rem 20rem at 100% 0%, rgb(119 71 151 / .45), transparent 60%),
        radial-gradient(30rem 20rem at 0% 100%, rgb(65 98 171 / .4), transparent 60%),
        var(--ink);
    color: rgb(255 255 255 / .78);
}
.cta-band h2 { color: #fff; }
.cta-band > * { position: relative; z-index: 1; max-width: 40rem; }
.cta-band::after {
    content: "";
    position: absolute;
    width: 340px;
    aspect-ratio: 1;
    right: -80px;
    bottom: -150px;
    background: url(../img/ring.svg) center / contain no-repeat;
    animation: itcore-spin 60s linear infinite;
}
@media (max-width: 781px) { .cta-band::after { opacity: .35; } }

/* ---------- content helpers ---------- */

ul.checks { list-style: none; padding-left: 0; display: grid; gap: .7rem; }
ul.checks li { position: relative; padding-left: 2.1rem; }
ul.checks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .2em;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: var(--c, #4162ab);
}
ul.checks li::after {
    content: "";
    position: absolute;
    left: .3rem;
    top: calc(.2em + .3rem);
    width: .75rem;
    height: .75rem;
    background: #fff;
    -webkit-mask: url(../icons/check.svg) center / contain no-repeat;
    mask: url(../icons/check.svg) center / contain no-repeat;
}
ul.checks li:nth-child(8n+1) { --c: #e83b3d; }
ul.checks li:nth-child(8n+2) { --c: #f3932d; }
ul.checks li:nth-child(8n+3) { --c: #e0b000; }
ul.checks li:nth-child(8n+4) { --c: #9bb000; }
ul.checks li:nth-child(8n+5) { --c: #66b32d; }
ul.checks li:nth-child(8n+6) { --c: #3fb0a0; }
ul.checks li:nth-child(8n+7) { --c: #4162ab; }
ul.checks li:nth-child(8n+8) { --c: #774797; }

.panel {
    background: var(--mist);
    border-radius: var(--radius);
    padding: clamp(1.5rem, 4vw, 2.5rem) !important;
}
.panel--line { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }

.chips { gap: .6rem !important; }
.chips p {
    margin: 0;
    padding: .45em 1.1em;
    border-radius: 999px;
    border: 2px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, var(--rainbow-linear) border-box;
    font-family: var(--wp--preset--font-family--heading);
    font-weight: 700;
    color: var(--ink);
}

.refs { gap: 1.5rem !important; }
.refs .wp-block-image { margin: 0; }
.refs .wp-block-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .2s, box-shadow .2s;
}
.refs .wp-block-image a:hover img { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.refs figcaption { text-align: center; font-weight: 600; color: var(--ink); }

/* side panel next to running text */
@media (min-width: 782px) {
    .sticky-panel { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 100px); }
}
.panel-logo img { max-height: 48px; width: auto; }

/* ---------- contact ---------- */

.contact-cards { gap: 1.25rem !important; }
.contact-cards > .card { width: 100%; }
.contact-cards a { text-decoration: none; }

.fluentform .ff-el-group { margin-bottom: 1.1rem; }
.fluentform .ff-el-input--label label { font-weight: 600; color: var(--ink); font-size: .9rem; }
.fluentform .ff-el-form-control {
    border: 1px solid #cfd3de !important;
    border-radius: 12px !important;
    padding: .75rem .9rem !important;
    font: inherit !important;
    background: #fff;
}
.fluentform .ff-el-form-control:focus { border-color: #4162ab !important; box-shadow: 0 0 0 3px rgb(65 98 171 / .18) !important; }
.fluentform .ff-btn-submit {
    background: var(--ink) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: .85em 1.8em !important;
    font-family: var(--wp--preset--font-family--heading) !important;
    font-weight: 700 !important;
    border: 0 !important;
}
.fluentform .ff-btn-submit:hover { background: #4162ab !important; }

/* ---------- legal pages (plain text content) ---------- */

.page-content :where(h2) { margin-top: 2.5rem; }

/* ---------- footer ---------- */

.site-footer {
    position: relative;
    background: var(--ink);
    color: rgb(255 255 255 / .66);
    padding-block: clamp(3rem, 7vw, 5rem) 1.5rem;
    font-size: .95rem;
}
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--rainbow-linear);
}
.site-footer a { color: rgb(255 255 255 / .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__cols { gap: 2.5rem !important; }
.site-footer .site-brand img { width: 150px; margin-bottom: .5rem; }
.site-footer__title {
    font-size: .8rem !important;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #fff !important;
    margin-bottom: 1rem;
}
.site-footer__links { list-style: none; padding: 0 !important; display: grid; gap: .5rem; }
.site-footer .wp-block-social-links { gap: .75rem; }
.site-footer .wp-block-social-links .wp-social-link { color: #fff; }
.site-footer .wp-block-social-links .wp-social-link svg { width: 22px; height: 22px; }
.site-footer__bottom {
    margin-top: clamp(2.5rem, 6vw, 4rem) !important;
    padding-top: 1.25rem;
    border-top: 1px solid rgb(255 255 255 / .1);
    font-size: .85rem;
    color: rgb(255 255 255 / .5);
}
.site-footer__bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
