/*
Theme Name: Summit Pillar
Theme URI: https://summitpillarconsulting.com/
Author: Summit Pillar Consulting
Description: A grand, sophisticated and vibrant block theme for Summit Pillar Consulting. Every section is a native WordPress block pattern, so text, images, colours, buttons and layouts can be edited in the Site Editor and Page Editor. Includes Home, About Us, Services, Careers, Contact Us and Get in Touch layouts, a built-in contact form, a classic Customizer panel (Appearance → Customize), two style variations and automatic page + menu setup on activation.
Requires at least: 6.6
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.3.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: summit-pillar
Tags: block-patterns, full-site-editing, block-styles, custom-colors, custom-logo, custom-menu, editor-style, wide-blocks, one-column, two-columns, three-columns
*/

/* ---------- Base polish ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-optical-sizing: auto; }
::selection { background: var(--wp--preset--color--teal); color: var(--wp--preset--color--ink); }
:where(h1, h2, h3) { font-variation-settings: "SOFT" 50, "WONK" 0; text-wrap: balance; }
p { text-wrap: pretty; }
img { height: auto; }

/* Italic words inside big headings get the vibrant Aurora gradient.
   Editors: select a word in a heading and press Ctrl/Cmd + I. */
:where(h1, h2, .has-huge-font-size, .has-colossal-font-size) em {
	font-style: italic;
	font-variation-settings: "SOFT" 100, "WONK" 1;
	background: var(--wp--preset--gradient--aurora);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	padding-right: .02em;
}
.has-ink-background-color :where(h1, h2) em,
.has-primary-background-color :where(h1, h2) em,
.sp-dark :where(h1, h2) em {
	background: linear-gradient(120deg, #3EE6D2 0%, #8FB2FF 50%, #B7A4FF 100%);
	-webkit-background-clip: text;
	background-clip: text;
}

/* ---------- Header ---------- */
.sp-header {
	position: sticky; top: 0; z-index: 50;
	backdrop-filter: saturate(180%) blur(16px);
	-webkit-backdrop-filter: saturate(180%) blur(16px);
	background: rgba(255, 255, 255, .82) !important;
	border-bottom: 1px solid rgba(13, 38, 52, .08);
}
.admin-bar .sp-header { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .sp-header { top: 0; } }
.sp-header .wp-block-site-logo img { max-height: 54px; width: auto; }
.sp-header .wp-block-navigation .wp-block-navigation-item__content { padding: .35rem 0; position: relative; }
.sp-header .wp-block-navigation > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px;
	background: var(--wp--preset--gradient--aurora); transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
.sp-header .wp-block-navigation-item:hover > .wp-block-navigation-item__content::after,
.sp-header .current-menu-item > .wp-block-navigation-item__content::after { transform: scaleX(1); }
.sp-header .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--border) !important; border-radius: 16px; padding: .5rem !important;
	box-shadow: var(--wp--preset--shadow--lifted); min-width: 250px !important;
}
.sp-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content { padding: .6rem .9rem !important; border-radius: 10px; }
.sp-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--surface); }
.sp-header .wp-block-navigation__submenu-container .wp-block-navigation-item__content::after { display: none; }

/* ---------- Eyebrow label ---------- */
.sp-eyebrow {
	display: flex; align-items: center; gap: .6rem;
	font-size: var(--wp--preset--font-size--x-small) !important; font-weight: 800 !important;
	letter-spacing: .18em; text-transform: uppercase;
}
.sp-eyebrow::before {
	content: ""; width: 28px; height: 2px; border-radius: 2px; flex: none;
	background: var(--wp--preset--gradient--aurora);
}
.has-text-align-center.sp-eyebrow { justify-content: center; }

/* ---------- Hero ---------- */
.sp-hero { position: relative; overflow: hidden; isolation: isolate; }
.sp-hero::before, .sp-hero::after {
	content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none;
	animation: sp-float 14s ease-in-out infinite alternate;
}
.sp-hero::before { width: 520px; height: 520px; right: -120px; top: -160px; background: var(--wp--preset--color--violet); }
.sp-hero::after { width: 420px; height: 420px; left: -140px; bottom: -180px; background: var(--wp--preset--color--teal); animation-delay: -6s; opacity: .4; }
@keyframes sp-float { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(40px,30px,0) scale(1.12); } }

.sp-grid-bg {
	background-image:
		linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
	background-size: 56px 56px;
}
.sp-grid-bg-light {
	background-image:
		linear-gradient(rgba(13,38,52,.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(13,38,52,.05) 1px, transparent 1px);
	background-size: 56px 56px;
}

/* Floating stat chips in hero */
.sp-chip { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.sp-hero-visual { position: relative; }
.sp-hero-visual .wp-block-image img { box-shadow: 0 40px 80px -20px rgba(0,0,0,.55); }

/* ---------- Cards (block style: Group → "Card") ---------- */
.is-style-sp-card {
	background: var(--wp--preset--color--base);
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--l);
	box-shadow: var(--wp--preset--shadow--soft);
	transition: var(--wp--custom--transition);
	position: relative; overflow: hidden;
}
.is-style-sp-card::before {
	content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
	background: var(--wp--preset--gradient--aurora); transform: scaleX(0); transform-origin: left; transition: transform .5s ease;
}
.is-style-sp-card:hover { transform: translateY(-6px); box-shadow: var(--wp--preset--shadow--lifted); border-color: transparent; }
.is-style-sp-card:hover::before { transform: scaleX(1); }

/* Glass card for dark sections (block style: Group → "Glass") */
.is-style-sp-glass {
	background: rgba(255,255,255,.06);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: var(--wp--custom--radius--l);
	backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
	transition: var(--wp--custom--transition);
}
.is-style-sp-glass:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); transform: translateY(-4px); }

/* Icon tiles */
.sp-icon img, .sp-icon.wp-block-image img { width: 56px; height: 56px; border-radius: 16px !important; }
.sp-icon { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.wp-block-button__link { transition: var(--wp--custom--transition); }
.wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(124,92,255,.6); }
.wp-block-button.is-style-sp-gradient .wp-block-button__link {
	background: var(--wp--preset--gradient--aurora); background-size: 200% 100%; color: #fff; border: 0;
}
.wp-block-button.is-style-sp-gradient .wp-block-button__link:hover { background-position: 100% 0; }
.wp-block-button.is-style-sp-gold .wp-block-button__link { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink); }
.wp-block-button.is-style-sp-gold .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--ink); }
.wp-block-button.is-style-outline .wp-block-button__link { border: 1.5px solid currentColor; background: transparent; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--wp--preset--color--primary); color: #fff; border-color: var(--wp--preset--color--primary); }
.wp-block-button.is-style-sp-link .wp-block-button__link {
	background: none; padding: 0; border-radius: 0; color: inherit; box-shadow: none;
}
.wp-block-button.is-style-sp-link .wp-block-button__link::after { content: " →"; transition: margin .3s ease; }
.wp-block-button.is-style-sp-link .wp-block-button__link:hover { transform: none; box-shadow: none; }
.wp-block-button.is-style-sp-link .wp-block-button__link:hover::after { margin-left: .35em; }

/* ---------- Stats ---------- */
.sp-stat-number { font-variant-numeric: tabular-nums; }

/* ---------- Marquee ---------- */
.sp-marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.sp-marquee > .wp-block-group { width: max-content; animation: sp-marquee 38s linear infinite; flex-wrap: nowrap !important; }
.sp-marquee:hover > .wp-block-group { animation-play-state: paused; }
.sp-marquee p { white-space: nowrap; margin: 0; }
@keyframes sp-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Process steps ---------- */
.sp-step-number {
	display: inline-flex; align-items: center; justify-content: center;
	width: 3rem; height: 3rem; border-radius: 50%;
	background: var(--wp--preset--gradient--aurora); color: #fff !important;
	font-family: var(--wp--preset--font-family--body); font-weight: 800;
}

/* ---------- Service rows ---------- */
.sp-service-row { scroll-margin-top: 110px; }
.is-style-sp-checklist { list-style: none; padding-left: 0 !important; }
.is-style-sp-checklist li { position: relative; padding-left: 1.9rem; margin-bottom: .55rem; }
.is-style-sp-checklist li::before {
	content: ""; position: absolute; left: 0; top: .42em; width: 1.1rem; height: 1.1rem; border-radius: 50%;
	background: var(--wp--preset--gradient--aurora);
	-webkit-mask: radial-gradient(circle, #000 0 100%);
}
.is-style-sp-checklist li::after {
	content: ""; position: absolute; left: .38rem; top: .62em; width: .32rem; height: .55rem;
	border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- Testimonials ---------- */
.sp-quote-mark { font-family: var(--wp--preset--font-family--display); line-height: .6 !important; }

/* ---------- Details / FAQ & job openings ---------- */
.wp-block-details summary { cursor: pointer; font-weight: 700; list-style: none; display: block; position: relative; padding-right: 3rem; line-height: 2; }
.wp-block-details summary .sp-tag { margin-left: .35rem; line-height: 1.4; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "+"; position: absolute; right: 0; top: 50%; margin-top: -1rem; width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
	border: 1px solid var(--wp--preset--color--border); font-weight: 400; font-size: 1.25rem; transition: transform .3s ease, background .3s ease;
}
.wp-block-details[open] summary::after { transform: rotate(45deg); background: var(--wp--preset--color--primary); color: #fff; border-color: transparent; }
.wp-block-details > *:not(summary) { margin-top: 1rem; }

/* Job tags */
.sp-tag {
	display: inline-block; padding: .3rem .8rem; border-radius: 999px; font-size: var(--wp--preset--font-size--x-small) !important;
	font-weight: 700; background: var(--wp--preset--color--surface-alt); color: var(--wp--preset--color--primary);
}

/* ---------- Contact form ---------- */
.sp-form { display: grid; gap: 1.1rem; }
.sp-form .sp-form-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .sp-form .sp-form-row { grid-template-columns: 1fr; } }
.sp-form label { display: block; font-size: var(--wp--preset--font-size--x-small); font-weight: 700; letter-spacing: .04em; margin-bottom: .45rem; color: var(--wp--preset--color--primary); }
.sp-form input, .sp-form select, .sp-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--wp--preset--color--primary);
	padding: .9rem 1rem; border-radius: 12px; border: 1.5px solid var(--wp--preset--color--border);
	background: var(--wp--preset--color--base); transition: border-color .25s ease, box-shadow .25s ease;
}
.sp-form textarea { min-height: 150px; resize: vertical; }
.sp-form input:focus, .sp-form select:focus, .sp-form textarea:focus {
	outline: none; border-color: var(--wp--preset--color--violet); box-shadow: 0 0 0 4px rgba(124,92,255,.15);
}
.sp-form .sp-hp { position: absolute !important; left: -9999px !important; height: 0; overflow: hidden; }
.sp-form button {
	justify-self: start; cursor: pointer; border: 0; font: inherit; font-weight: 700; font-size: var(--wp--preset--font-size--small);
	padding: 1rem 2rem; border-radius: 999px; color: #fff; background: var(--wp--preset--gradient--aurora); background-size: 200% 100%;
	transition: var(--wp--custom--transition);
}
.sp-form button:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(124,92,255,.6); }
.sp-form-notice { padding: 1rem 1.25rem; border-radius: 12px; font-weight: 600; margin-bottom: 1rem; }
.sp-form-notice.is-success { background: rgba(18,194,176,.12); color: #0b6b62; border: 1px solid rgba(18,194,176,.35); }
.sp-form-notice.is-error { background: rgba(255,107,91,.1); color: #a3291c; border: 1px solid rgba(255,107,91,.35); }

/* ---------- Footer ---------- */
.sp-footer a { text-decoration: none; transition: color .25s ease; }
.sp-footer a:hover { color: var(--wp--preset--color--teal) !important; }
.sp-footer .wp-block-navigation .wp-block-navigation-item__content { padding: .25rem 0; }
.sp-footer .sp-footer-logo img { max-width: 220px; }

/* ---------- Scroll reveal (only when JS is running; respects reduced motion) ---------- */
.sp-js .sp-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.sp-js .sp-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.sp-js .sp-reveal { opacity: 1; transform: none; }
	.sp-hero::before, .sp-hero::after, .sp-marquee > .wp-block-group { animation: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Mobile ---------- */
@media (max-width: 781px) {
	.sp-hide-mobile { display: none !important; }
	.wp-block-columns.sp-stack-reverse { flex-direction: column-reverse; }
}

/* Full-width sections sit flush against each other */
:where(.wp-block-post-content, main) > .alignfull { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.wp-site-blocks > footer, .wp-site-blocks > main { margin-block-start: 0; }

/* Contact form block inside the editor: show it, but don't let clicks type into it */
.sp-form-editor__inner { pointer-events: none; }
.sp-form .sp-file input[type="file"] {
	padding: .75rem; border-style: dashed; background: var(--wp--preset--color--surface); cursor: pointer;
}
.sp-form .sp-file input[type="file"]::file-selector-button {
	margin-right: 1rem; border: 0; border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer;
	font: inherit; font-weight: 700; font-size: .85rem; color: #fff; background: var(--wp--preset--color--primary);
}

/* =====================================================================
   v1.2 — Motion system: scroll reveals + rich hover on service cards
   (uses individual transform properties so hover and reveal never clash)
   ===================================================================== */
:where([id]) { scroll-margin-top: 110px; }

/* Cards: reveal from below with a soft scale, then lift on hover */
.sp-js .is-style-sp-card.sp-reveal,
.sp-js .is-style-sp-glass.sp-reveal { opacity: 0; transform: translateY(48px) scale(.96); }
.sp-js .is-style-sp-card.sp-reveal.is-visible,
.sp-js .is-style-sp-glass.sp-reveal.is-visible { opacity: 1; transform: none; }

.is-style-sp-card {
	transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1),
		translate .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease, border-color .45s ease;
	background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, -30%), rgba(124,92,255,.10), transparent 45%);
}
.is-style-sp-card:hover { transform: none; translate: 0 -10px; box-shadow: 0 30px 60px -24px rgba(13,38,52,.35), 0 18px 40px -20px rgba(124,92,255,.45); }
.sp-js .is-style-sp-card.sp-reveal.is-visible:hover { transform: none; }
/* Gradient outline that fades in on hover */
.is-style-sp-card::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
	background: var(--wp--preset--gradient--aurora);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	opacity: 0; transition: opacity .45s ease;
}
.is-style-sp-card:hover::after { opacity: 1; }

/* Icons pop in after their card appears, then wiggle on hover */
.sp-js .sp-reveal .sp-icon img { opacity: 0; scale: .3; rotate: -25deg; transition: opacity .6s ease .25s, scale .8s cubic-bezier(.34,1.56,.64,1) .25s, rotate .8s cubic-bezier(.34,1.56,.64,1) .25s; }
.sp-js .sp-reveal.is-visible .sp-icon img { opacity: 1; scale: 1; rotate: 0deg; }
.is-style-sp-card .sp-icon img { transition: scale .5s cubic-bezier(.34,1.56,.64,1), rotate .5s cubic-bezier(.34,1.56,.64,1), box-shadow .4s ease; }
.sp-js .is-style-sp-card.is-visible:hover .sp-icon img,
.is-style-sp-card:hover .sp-icon img { scale: 1.15; rotate: -8deg; box-shadow: 0 12px 24px -8px rgba(124,92,255,.55); }

/* Heading turns to gradient + arrow nudges on hover */
.is-style-sp-card h3 { transition: color .35s ease; }
.is-style-sp-card:not(.sp-dark):hover h3 { color: var(--wp--preset--color--violet); }
.is-style-sp-card:hover .is-style-sp-link .wp-block-button__link::after { margin-left: .45em; }

/* ---------- Services page: rows slide in from the side ---------- */
.sp-js .sp-service-row .wp-block-image.sp-reveal { transform: translateX(-70px) rotate(-3deg); }
.sp-js .sp-service-row .wp-block-column:last-child .wp-block-image.sp-reveal { transform: translateX(70px) rotate(3deg); }
.sp-js .sp-service-row .wp-block-image.sp-reveal.is-visible { transform: none; }
.sp-service-row .wp-block-image img { transition: transform .6s cubic-bezier(.2,.7,.2,1), box-shadow .6s ease; will-change: transform; }
.sp-service-row .wp-block-image:hover img { box-shadow: 0 40px 80px -30px rgba(124,92,255,.6); }
.sp-service-row.is-inview .wp-block-image img { animation: sp-bob 6s ease-in-out 1.2s infinite; }
@keyframes sp-bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -10px; } }

.sp-js .sp-service-row .sp-eyebrow,
.sp-js .sp-service-row h2,
.sp-js .sp-service-row p,
.sp-js .sp-service-row .wp-block-buttons,
.sp-js .sp-service-row li { opacity: 0; translate: 0 18px; transition: opacity .7s ease, translate .7s cubic-bezier(.2,.7,.2,1); }
.sp-js .sp-service-row.is-inview .sp-eyebrow,
.sp-js .sp-service-row.is-inview h2,
.sp-js .sp-service-row.is-inview p,
.sp-js .sp-service-row.is-inview .wp-block-buttons,
.sp-js .sp-service-row.is-inview li { opacity: 1; translate: 0 0; }
.sp-service-row li { transition-delay: calc(var(--i, 0) * 90ms + 300ms) !important; }
.sp-service-row .is-style-sp-checklist li:hover { color: var(--wp--preset--color--violet); }
.sp-service-row .sp-tag { transition: background .3s ease, color .3s ease; }
.sp-service-row .sp-tag:hover { background: var(--wp--preset--color--primary); color: #fff; }

/* ---------- Chips (technologies, skills) ---------- */
p.sp-chip {
	margin: 0; padding: .35rem .8rem; border-radius: 999px; font-size: var(--wp--preset--font-size--x-small); font-weight: 700;
	background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--border); color: var(--wp--preset--color--primary);
	transition: background .3s ease, color .3s ease, border-color .3s ease, translate .3s ease;
}
p.sp-chip:hover { background: var(--wp--preset--color--primary); color: #fff; border-color: transparent; translate: 0 -2px; }
.sp-tech-card:hover p.sp-chip { border-color: rgba(124,92,255,.35); }

/* ---------- Engagement models ---------- */
.sp-model::before { transform: scaleX(1); }
p.sp-model-num {
	margin: 0; font-family: var(--wp--preset--font-family--display); font-size: 2.6rem; line-height: 1; font-weight: 600;
	background: var(--wp--preset--gradient--aurora); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .35;
	transition: opacity .4s ease;
}
.sp-model:hover p.sp-model-num { opacity: 1; }
p.sp-model-best { font-weight: 700; color: var(--wp--preset--color--primary); padding-left: .9rem; border-left: 3px solid var(--wp--preset--color--teal); }
.sp-model-cta { border: 1px solid var(--wp--preset--color--border); }
@media (max-width: 781px) { .sp-model-cta { border-radius: 24px !important; } }

/* ---------- Job board ---------- */
.sp-job-filters { gap: .6rem; }
.sp-job-filters .wp-block-button__link {
	background: var(--wp--preset--color--base); color: var(--wp--preset--color--primary);
	border: 1.5px solid var(--wp--preset--color--border); padding: .6rem 1.2rem; font-size: var(--wp--preset--font-size--x-small);
}
.sp-job-filters .wp-block-button__link:hover { border-color: var(--wp--preset--color--violet); background: var(--wp--preset--color--base); color: var(--wp--preset--color--violet); box-shadow: none; }
.sp-job-filters .is-active .wp-block-button__link { background: var(--wp--preset--gradient--aurora); color: #fff; border-color: transparent; }
.sp-job-filters .wp-block-button__link .sp-count { opacity: .7; margin-left: .35rem; font-weight: 600; }
.sp-job { display: flex; flex-direction: column; }
.sp-job > .wp-block-buttons { margin-top: auto !important; }
.sp-job.is-hidden { display: none; }
.sp-job.is-filtering { animation: sp-pop .5s cubic-bezier(.2,.7,.2,1) both; }
@keyframes sp-pop { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
p.sp-job-meta { margin-top: 0 !important; font-weight: 600; }
.sp-job .wp-block-details { border-top: 1px solid var(--wp--preset--color--border); padding-top: 1rem; padding-bottom: .25rem; border-bottom: 0; }
.sp-job .wp-block-details summary { font-size: var(--wp--preset--font-size--small); color: var(--wp--preset--color--violet); }
.sp-job .wp-block-details summary::after { width: 1.6rem; height: 1.6rem; font-size: 1rem; margin-top: -.8rem; }
.sp-job .wp-block-details ul { font-size: var(--wp--preset--font-size--small); }
p.sp-tag { margin: 0; }
.sp-tag--data-analytics { background: rgba(18,194,176,.14) !important; color: #0b7f74 !important; }
.sp-tag--technology-consulting { background: rgba(245,165,36,.16) !important; color: #9a5d00 !important; }
.sp-tag--app-development { background: rgba(59,123,255,.13) !important; color: #2456c7 !important; }
.sp-tag--project-management { background: rgba(255,107,91,.14) !important; color: #b2392b !important; }
.sp-tag--cloud-computing { background: rgba(124,92,255,.14) !important; color: #5a3ad6 !important; }
.sp-tag--light { background: transparent !important; border: 1px solid var(--wp--preset--color--border); color: var(--wp--preset--color--slate) !important; }
.sp-dark .is-style-sp-checklist li { color: inherit; }

@media (prefers-reduced-motion: reduce) {
	.sp-js .is-style-sp-card.sp-reveal, .sp-js .is-style-sp-glass.sp-reveal, .sp-js .sp-service-row .wp-block-image.sp-reveal { opacity: 1; transform: none; }
	.sp-js .sp-reveal .sp-icon img { opacity: 1; scale: 1; rotate: 0deg; }
	.sp-js .sp-service-row * { opacity: 1 !important; translate: none !important; }
	.sp-service-row.is-inview .wp-block-image img { animation: none; }
	.is-style-sp-card:hover { translate: none; }
}

/* =====================================================================
   v1.3 — Animated hero emblem + Insights
   ===================================================================== */
.sp-hero-visual .wp-block-image img[src*="hero-summit"],
.sp-emblem img { box-shadow: none !important; border-radius: 0 !important; filter: drop-shadow(0 30px 60px rgba(0,0,0,.35)); }
.sp-hero-visual .wp-block-image:has(img[src*="hero-summit"]) { transform-style: preserve-3d; }
@media (max-width: 781px) { .sp-hero-visual img[src*="hero-summit"] { max-width: 520px; margin-inline: auto; } }

/* Category chips */
.sp-cat-bar { flex-wrap: wrap; }
.sp-cat-chips, ul.wp-block-categories-list.sp-cat-chips { list-style: none; margin: 0; padding: 0 !important; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.sp-cat-chips li { margin: 0; }
.sp-cat-chips a, p.sp-chip-all a {
	display: inline-block; padding: .5rem 1.05rem; border-radius: 999px; text-decoration: none; font-weight: 700;
	font-size: var(--wp--preset--font-size--x-small); color: var(--wp--preset--color--primary);
	background: var(--wp--preset--color--base); border: 1.5px solid var(--wp--preset--color--border); transition: all .3s ease;
}
p.sp-chip-all { padding: 0; border: 0; background: none; }
p.sp-chip-all:hover { background: none; translate: none; }
.sp-cat-chips a:hover, p.sp-chip-all a:hover { border-color: var(--wp--preset--color--violet); color: var(--wp--preset--color--violet); }
.category .sp-cat-chips .current-cat a, .blog p.sp-chip-all a { background: var(--wp--preset--gradient--aurora); color: #fff; border-color: transparent; }

/* Post cards */
.sp-post-card { height: 100%; display: flex; flex-direction: column; }
.sp-post-card .wp-block-post-featured-image { overflow: hidden; border-radius: 18px; margin: 0 0 .5rem; }
.sp-post-card .wp-block-post-featured-image img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.sp-post-card:hover .wp-block-post-featured-image img { transform: scale(1.06); }
.sp-post-card .wp-block-post-title { margin: .25rem 0 0; }
.sp-post-card .wp-block-post-title a { text-decoration: none; }
.sp-post-card .wp-block-post-excerpt { color: var(--wp--preset--color--slate); }
.sp-post-card .wp-block-post-excerpt__more-text { display: none; }
.sp-read-more { margin-top: auto !important; font-weight: 700; font-size: var(--wp--preset--font-size--small); text-decoration: none; }
.sp-read-more::after { content: " →"; transition: margin .3s ease; }
.sp-post-card:hover .sp-read-more::after { margin-left: .35em; }
.sp-post-cat a {
	display: inline-block; padding: .25rem .7rem; border-radius: 999px; text-decoration: none; font-weight: 700;
	font-size: var(--wp--preset--font-size--x-small); background: rgba(124,92,255,.12); color: #5a3ad6;
}
.sp-post-cat .wp-block-post-terms__separator { display: none; }
.sp-post-cat--dark a { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); }
.sp-posts .wp-block-post-template { gap: var(--wp--preset--spacing--40); }

/* Featured (newest) article spans the full row on the first page */
body:not(.paged) .sp-posts .wp-block-post-template > li:first-child { grid-column: 1 / -1; }
body:not(.paged) .sp-posts li:first-child .sp-post-card {
	display: grid; grid-template-columns: 1.3fr 1fr; column-gap: var(--wp--preset--spacing--50); align-content: center;
}
body:not(.paged) .sp-posts li:first-child .wp-block-post-featured-image { grid-row: 1 / span 6; margin: 0; align-self: stretch; }
body:not(.paged) .sp-posts li:first-child .wp-block-post-featured-image img { height: 100%; object-fit: cover; }
body:not(.paged) .sp-posts li:first-child .wp-block-post-title { font-size: var(--wp--preset--font-size--xx-large) !important; line-height: 1.1; }
body:not(.paged) .sp-posts li:first-child .wp-block-post-excerpt { font-size: var(--wp--preset--font-size--medium) !important; }
body:not(.paged) .sp-posts li:first-child .sp-read-more { margin-top: var(--wp--preset--spacing--20) !important; align-self: start; }
@media (max-width: 900px) {
	body:not(.paged) .sp-posts li:first-child .sp-post-card { display: flex; }
	body:not(.paged) .sp-posts li:first-child .wp-block-post-title { font-size: var(--wp--preset--font-size--x-large) !important; }
}

/* Article typography */
.sp-article .wp-block-post-content { font-size: 1.125rem; line-height: 1.8; }
.sp-article .wp-block-post-content h2 { font-size: var(--wp--preset--font-size--x-large); margin-top: 2.5rem; }
.sp-article .wp-block-post-content > p:first-child { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--primary); }
.sp-article .wp-block-post-content blockquote { margin: 2.5rem 0; padding: 1.5rem 1.75rem; border-radius: 0 18px 18px 0; background: var(--wp--preset--color--surface); }
.sp-article .wp-block-post-content blockquote p { margin: 0; }
.sp-article .wp-block-post-featured-image img { box-shadow: var(--wp--preset--shadow--lifted); }
.sp-article .post-navigation-link-previous a, .sp-article .post-navigation-link-next a { text-decoration: none; font-weight: 700; }
