/**
 * Sash Millennium — theme styles.
 *
 * Design tokens (colours, type scale, spacing) are defined in theme.json and
 * exposed as --wp--preset--* / --wp--custom--* properties. This file adds the
 * component styling that theme.json cannot express.
 *
 * Sections:
 *  1. Tokens & base
 *  2. Buttons
 *  3. Header & navigation
 *  4. Mobile navigation overlay
 *  5. Hero
 *  6. Product identity strip
 *  7. Footer
 *  7b. Homepage sections
 *  7c. Contact form, Insights, articles
 *  8. Inner pages
 *  9. Motion
 */

/* --------------------------------------------------------------------------
 * 1. Tokens & base
 * ----------------------------------------------------------------------- */

:root {
	--sm-ink: var(--wp--preset--color--ink);
	--sm-charcoal: var(--wp--preset--color--charcoal);
	--sm-muted: var(--wp--preset--color--muted);
	--sm-line: var(--wp--preset--color--line);
	--sm-ivory: var(--wp--preset--color--ivory);
	--sm-sand: var(--wp--preset--color--sand);
	--sm-crimson: var(--wp--preset--color--crimson);
	--sm-crimson-deep: var(--wp--preset--color--crimson-deep);
	--sm-orange: var(--wp--preset--color--orange);
	--sm-ease: var(--wp--custom--ease, cubic-bezier(0.22, 1, 0.36, 1));
	--sm-header-h: var(--wp--custom--header-height, 84px);
	--sm-admin-bar: var(--wp-admin--admin-bar--height, 0px);
	--sm-star: url("../images/star-8.svg");
	--sm-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 8h12M9 3.5 13.5 8 9 12.5' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: "kern", "liga";
}

/* Template parts and main sit flush; sections manage their own rhythm. */
.wp-site-blocks > * + * {
	margin-block-start: 0;
}

.sm-main {
	margin-block: 0;
}

/* Anchored sections land below the sticky header. */
[id] {
	scroll-margin-top: calc(var(--sm-header-h) + var(--sm-admin-bar) + 1.5rem);
}

::selection {
	background: rgba(201, 25, 39, 0.14);
	color: var(--sm-ink);
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--sm-crimson);
	outline-offset: 3px;
	border-radius: 4px;
}

/* Eyebrow label with an eight-point star. */
.sm-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--sm-crimson);
}

.sm-eyebrow::before {
	content: "";
	flex: none;
	width: 0.875rem;
	height: 0.875rem;
	background: var(--sm-orange);
	-webkit-mask: var(--sm-star) center / contain no-repeat;
	mask: var(--sm-star) center / contain no-repeat;
}

/* Official logo: width only, so the 1000×187 proportions are always kept. */
.sm-logo {
	margin: 0;
	line-height: 0;
}

.sm-logo a {
	display: inline-block;
	border-radius: 4px;
}

.sm-logo img {
	display: block;
	width: 196px;
	max-width: 100%;
	height: auto;
	aspect-ratio: 1000 / 187;
}

/* --------------------------------------------------------------------------
 * 2. Buttons
 * ----------------------------------------------------------------------- */

.wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.625rem;
	transition:
		background-color 0.35s var(--sm-ease),
		color 0.35s var(--sm-ease),
		border-color 0.35s var(--sm-ease),
		box-shadow 0.35s var(--sm-ease),
		transform 0.35s var(--sm-ease);
}

.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	box-shadow: 0 12px 28px -14px rgba(155, 23, 30, 0.65);
	transform: translateY(-1px);
}

.wp-block-button .wp-block-button__link:active {
	transform: translateY(0);
	box-shadow: none;
}

/* Arrow affordance that slides on hover. */
.sm-btn-arrow .wp-block-button__link::after {
	content: "";
	flex: none;
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: var(--sm-arrow) center / contain no-repeat;
	mask: var(--sm-arrow) center / contain no-repeat;
	transition: transform 0.35s var(--sm-ease);
}

.sm-btn-arrow .wp-block-button__link:hover::after,
.sm-btn-arrow .wp-block-button__link:focus-visible::after {
	transform: translateX(3px);
}

/* Secondary (outline) button. */
.wp-block-button.is-style-outline > .wp-block-button__link {
	padding: calc(0.95rem - 1px) calc(1.6rem - 1px);
	border: 1px solid rgba(31, 27, 26, 0.24);
	background-color: transparent;
	color: var(--sm-ink);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	border-color: var(--sm-ink);
	background-color: var(--sm-ink);
	color: #fff;
}

/* --------------------------------------------------------------------------
 * 3. Header & navigation
 * ----------------------------------------------------------------------- */

.sm-site-header {
	position: sticky;
	top: var(--sm-admin-bar);
	z-index: 100;
}

/*
 * Frosted background lives on a pseudo-element: a backdrop-filter on the header
 * itself would become the containing block for the fixed mobile overlay.
 */
.sm-site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(255, 255, 255, 0.9);
	-webkit-backdrop-filter: saturate(1.6) blur(16px);
	backdrop-filter: saturate(1.6) blur(16px);
	border-bottom: 1px solid transparent;
	transition: border-color 0.4s var(--sm-ease), box-shadow 0.4s var(--sm-ease);
}

.sm-site-header.is-scrolled::before {
	border-bottom-color: var(--sm-line);
	box-shadow: 0 12px 32px -24px rgba(31, 27, 26, 0.35);
}

.sm-header__bar {
	min-height: var(--sm-header-h);
	gap: 2rem;
	transition: min-height 0.4s var(--sm-ease);
}

.sm-site-header.is-scrolled .sm-header__bar {
	min-height: 70px;
}

.sm-header__actions {
	gap: clamp(1rem, 2.2vw, 2.25rem);
}

.sm-header__cta .wp-block-button__link {
	padding: 0.75rem 1.25rem;
	font-size: 0.875rem;
}

/* Top-level links with an animated underline. */
.sm-nav .wp-block-navigation__container {
	gap: 0.25rem;
}

.sm-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	position: relative;
	padding: 0.625rem 0.75rem;
	color: var(--sm-charcoal);
	letter-spacing: 0.005em;
	transition: color 0.3s var(--sm-ease);
}

.sm-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	bottom: 0.25rem;
	height: 2px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--sm-crimson), var(--sm-orange));
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.4s var(--sm-ease);
}

.sm-nav .wp-block-navigation-item__content:hover,
.sm-nav .wp-block-navigation-item__content:focus-visible,
.sm-nav .wp-block-navigation-item.is-current > .wp-block-navigation-item__content,
.sm-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content {
	color: var(--sm-ink);
}

.sm-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover::after,
.sm-nav .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:focus-visible::after,
.sm-nav .wp-block-navigation__container > .wp-block-navigation-item.is-current > .wp-block-navigation-item__content::after,
.sm-nav .wp-block-navigation__container > .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content::after {
	transform: scaleX(1);
}

/* Solutions submenu toggle. */
.sm-nav .wp-block-navigation-submenu > .wp-block-navigation-item__content {
	padding-right: 0.25rem !important;
}

.sm-nav .wp-block-navigation-submenu > .wp-block-navigation-item__content::after {
	right: 0.25rem !important;
}

.sm-nav .wp-block-navigation__submenu-icon {
	width: 0.75rem;
	height: 0.75rem;
	margin-left: 0.125rem;
	padding: 0.25rem;
	box-sizing: content-box;
	color: var(--sm-muted);
	transition: color 0.3s var(--sm-ease);
}

.sm-nav .wp-block-navigation__submenu-icon svg {
	stroke-width: 1.5;
	transition: transform 0.35s var(--sm-ease);
}

.sm-nav .has-child:hover > .wp-block-navigation__submenu-icon,
.sm-nav .wp-block-navigation__submenu-icon[aria-expanded="true"] {
	color: var(--sm-crimson);
}

.sm-nav .has-child:hover > .wp-block-navigation__submenu-icon svg,
.sm-nav .wp-block-navigation__submenu-icon[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

/* Dropdown panel. */
.sm-nav .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container {
	top: calc(100% + 0.75rem);
	left: -1rem;
	min-width: 20rem !important;
	padding: 0.5rem !important;
	border: 1px solid var(--sm-line) !important;
	border-radius: 14px;
	background: #fff !important;
	box-shadow: 0 28px 60px -28px rgba(31, 27, 26, 0.35), 0 2px 8px rgba(31, 27, 26, 0.04);
	transform: translateY(6px);
	transition:
		opacity 0.3s var(--sm-ease),
		transform 0.35s var(--sm-ease),
		visibility 0.3s;
}

/* Hover bridge across the gap between the link and the panel. */
.sm-nav .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-container::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -0.875rem;
	height: 0.875rem;
}

.sm-nav .has-child:not(.open-on-click):hover > .wp-block-navigation__submenu-container,
.sm-nav .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within > .wp-block-navigation__submenu-container,
.sm-nav .has-child .wp-block-navigation__submenu-icon[aria-expanded="true"] ~ .wp-block-navigation__submenu-container {
	transform: translateY(0);
}

.sm-nav .wp-block-navigation__submenu-container .wp-block-navigation-item {
	width: 100%;
}

.sm-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
	width: 100%;
	padding: 0.875rem 1rem 0.875rem 2.75rem !important;
	border-radius: 10px;
	transition: background-color 0.25s var(--sm-ease);
}

.sm-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.sm-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
	background: var(--sm-ivory);
}

.sm-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__label {
	font-size: 0.875rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: var(--sm-ink);
}

.sm-nav .wp-block-navigation-item__description {
	display: block;
	font-size: 0.8125rem;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.4;
	color: var(--sm-muted);
}

/* Product star marks in the dropdown — the only place product colours appear in the header. */
.sm-nav-product {
	--sm-product: var(--sm-muted);
}

.sm-nav-product--ababil { --sm-product: var(--wp--preset--color--ababil); }
.sm-nav-product--tahqiq { --sm-product: var(--wp--preset--color--tahqiq); }
.sm-nav-product--sylvia { --sm-product: var(--wp--preset--color--sylvia); }

.sm-nav-product > .wp-block-navigation-item__content::before {
	content: "";
	position: absolute;
	left: 1rem;
	top: 1.1rem;
	width: 0.875rem;
	height: 0.875rem;
	background: var(--sm-product);
	-webkit-mask: var(--sm-star) center / contain no-repeat;
	mask: var(--sm-star) center / contain no-repeat;
	transition: transform 0.5s var(--sm-ease);
}

.sm-nav-product > .wp-block-navigation-item__content:hover::before {
	transform: rotate(45deg);
}

/* Hamburger / open button. */
.sm-nav .wp-block-navigation__responsive-container-open {
	width: 44px;
	height: 44px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--sm-line);
	border-radius: 999px;
	color: var(--sm-ink);
	transition: border-color 0.3s var(--sm-ease), background-color 0.3s var(--sm-ease);
}

.sm-nav .wp-block-navigation__responsive-container-open:hover {
	border-color: var(--sm-ink);
}

/* Keep the full desktop menu only where it fits comfortably. */
@media (min-width: 600px) and (max-width: 1079px) {
	.sm-nav .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.sm-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

@media (max-width: 781px) {
	:root {
		--sm-header-h: 68px;
	}

	.sm-logo img {
		width: 152px;
	}

	.sm-header__actions {
		gap: 0.625rem;
	}

	.sm-header__cta .wp-block-button__link {
		padding: 0.625rem 1rem;
		font-size: 0.8125rem;
	}

	.sm-header__cta .sm-btn-arrow .wp-block-button__link::after {
		display: none;
	}

	.sm-site-header.is-scrolled .sm-header__bar {
		min-height: 60px;
	}
}

@media (max-width: 380px) {
	.sm-logo img {
		width: 132px;
	}

	.sm-header__cta {
		display: none;
	}
}

/* The admin bar scrolls away on small screens, so the header sticks to the top. */
@media (max-width: 600px) {
	.admin-bar .sm-site-header {
		top: 0;
	}
}

/* --------------------------------------------------------------------------
 * 4. Mobile navigation overlay
 * ----------------------------------------------------------------------- */

.sm-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: calc(var(--sm-admin-bar) + 1.25rem) clamp(1.25rem, 6vw, 3rem) 2rem;
	background-color: var(--sm-ivory) !important;
	background-image:
		linear-gradient(180deg, var(--sm-ivory) 40%, rgba(247, 246, 242, 0.88)),
		url("../images/lattice-tile.svg");
	background-size: auto, 96px 96px;
	color: var(--sm-ink) !important;
	animation: sm-overlay-in 0.45s var(--sm-ease) both;
}

.sm-nav .is-menu-open .wp-block-navigation__responsive-container-close {
	top: calc(var(--sm-admin-bar) + 1.25rem);
	right: clamp(1.25rem, 6vw, 3rem);
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--sm-line);
	border-radius: 999px;
	background: #fff;
}

.sm-nav .is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 4.5rem !important;
	align-items: stretch !important;
}

.sm-nav .is-menu-open .wp-block-navigation__container {
	gap: 0 !important;
	width: 100%;
	align-items: stretch !important;
}

.sm-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item {
	width: 100%;
	flex-direction: column;
	align-items: flex-start !important;
	border-bottom: 1px solid var(--sm-line);
	animation: sm-rise 0.5s var(--sm-ease) both;
}

.sm-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(2) { animation-delay: 0.04s; }
.sm-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(3) { animation-delay: 0.08s; }
.sm-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(4) { animation-delay: 0.12s; }
.sm-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item:nth-child(5) { animation-delay: 0.16s; }

.sm-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content {
	padding: 1.125rem 0 !important;
	font-size: 1.5rem;
	font-weight: 600;
	letter-spacing: -0.015em;
	color: var(--sm-ink);
}

.sm-nav .is-menu-open .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content::after {
	display: none;
}

.sm-nav .is-menu-open .wp-block-navigation__submenu-icon {
	display: none;
}

.sm-nav .is-menu-open .wp-block-navigation__submenu-container {
	position: static !important;
	width: 100% !important;
	min-width: 0 !important;
	padding: 0 0 1rem !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	transform: none !important;
	opacity: 1 !important;
	visibility: visible !important;
}

.sm-nav .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 0.75rem 0 0.75rem 1.75rem !important;
}

.sm-nav .is-menu-open .sm-nav-product > .wp-block-navigation-item__content::before {
	left: 0;
	top: 1rem;
}

/* --------------------------------------------------------------------------
 * 5. Hero (full-width video background with HTML overlay)
 * ----------------------------------------------------------------------- */

.sm-hero {
	/* Sampled from the video's background so the overlay and fallbacks blend in. */
	--sm-hero-bg: #0E1218;
	--sm-gold: #D4B26A;
	position: relative;
	isolation: isolate;
	overflow: hidden;
	margin-block: 0;
	padding-block: 0;
	background: var(--sm-hero-bg);
	color: #fff;
}

.sm-hero--video {
	display: flex;
	align-items: center;
	/* 16:9 like the video (no cropping at full width), capped to the viewport below the header. */
	height: min(56.25vw, calc(100svh - var(--sm-header-h) - var(--sm-admin-bar)));
	min-height: 560px;
}

/* The video fills the whole hero, anchored right so the evolution visual is always kept. */
.sm-hero__video {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	max-width: none !important;
	height: 100%;
	margin: 0 !important;
	animation: sm-fade 1.2s var(--sm-ease) both;
}

.sm-hero__video video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 100% 50%;
	background: var(--sm-hero-bg);
}

/* Gentle readability veil over the already-dark left side only; the right-hand visual stays clear. */
.sm-hero--video::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(14, 18, 24, 0.72) 0%, rgba(14, 18, 24, 0.5) 30%, rgba(14, 18, 24, 0.18) 40%, rgba(14, 18, 24, 0) 52%);
	pointer-events: none;
}

/*
 * The video's negative space is measured from the viewport edge, not the page
 * grid. The copy aligns with the header up to ~1440px; on wider screens it stays
 * within the left 6% so it never drifts into the visual.
 */
.sm-hero__content {
	--sm-root-pad: var(--wp--style--root--padding-left, 3rem);
	--sm-hero-inset: min(max(var(--sm-root-pad), (100vw - var(--wp--style--global--wide-size, 1280px)) / 2), 6vw);
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: none !important;
	margin-block: 0 !important;
	margin-left: max(0px, var(--sm-hero-inset) - var(--sm-root-pad)) !important;
	margin-right: 0 !important;
	padding-block: clamp(1.5rem, 3vw, 3rem);
}

/* Keep the copy inside the video's negative space (about the left 36%). */
.sm-hero__content > * {
	max-width: min(32rem, max(26rem, 36vw - var(--sm-hero-inset)));
	margin-block: 0;
}

.sm-hero__eyebrow {
	color: var(--sm-gold);
}

.sm-hero__eyebrow::before {
	background: var(--sm-gold);
}

.sm-hero__title {
	margin-top: 1rem !important;
	font-size: clamp(2rem, 0.85rem + 2.2vw, 2.875rem);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: #fff;
	text-wrap: balance;
}

/*
 * Official ABABIL NG logo (327×240 PNG, shown unaltered). Width only, so its
 * proportions are kept; never enlarged beyond the 327px source (it would blur).
 */
.sm-hero__product-logo {
	margin-top: 0.75rem !important;
	margin-bottom: 0 !important;
}

.sm-hero__product-logo img {
	display: block;
	width: clamp(180px, 16vw, 250px);
	max-width: 100%;
	height: auto;
	aspect-ratio: 327 / 240;
	/* The artwork starts 14px into the 327px file: optically align it with the headline. */
	transform: translateX(-4.3%);
}

.sm-hero__tagline {
	margin-top: 0.875rem !important;
	font-size: 1.0625rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	color: rgba(255, 255, 255, 0.82);
}

/* Overlay layout (desktop and tablet landscape): the supporting line stays on one line. */
@media (min-width: 901px) {
	.sm-hero__tagline {
		max-width: none !important;
		white-space: nowrap;
	}
}

.sm-hero__actions {
	gap: 0.875rem;
	margin-top: 1.5rem !important;
}

/* Secondary button on the dark hero. */
.sm-btn-on-dark.is-style-outline > .wp-block-button__link {
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}

.sm-btn-on-dark.is-style-outline > .wp-block-button__link:hover {
	border-color: #fff;
	background-color: #fff;
	color: var(--sm-ink);
}

.sm-hero :where(a, button):focus-visible {
	outline-color: var(--sm-gold);
}

/* Tablet landscape: stronger veil, as the copy takes a larger share of the width. */
@media (max-width: 1079px) {
	.sm-hero--video::before {
		background: linear-gradient(90deg, rgba(14, 18, 24, 0.86) 0%, rgba(14, 18, 24, 0.62) 36%, rgba(14, 18, 24, 0) 62%);
	}

	.sm-hero__content > * {
		max-width: min(30rem, 46vw);
	}
}

/*
 * Tablet portrait and mobile: the frame is too narrow to overlay text without
 * covering the visual, so the complete, uncropped video leads and the copy follows.
 */
@media (max-width: 900px) {
	.sm-hero--video {
		display: block;
		height: auto;
		min-height: 0;
	}

	.sm-hero--video::before {
		display: none;
	}

	.sm-hero__content {
		padding-block: 1.25rem 3rem;
	}

	.sm-hero__content {
		margin-left: auto !important;
		margin-right: auto !important;
	}

	.sm-hero__content > * {
		max-width: 36rem;
	}

	.sm-hero__video {
		position: relative;
		inset: auto;
		z-index: 0;
		width: auto;
		height: auto;
		margin-inline: calc(-1 * var(--wp--style--root--padding-left, 1.25rem)) calc(-1 * var(--wp--style--root--padding-right, 1.25rem)) !important;
		aspect-ratio: 16 / 9;
	}

	/* Blend the video's bottom edge into the text area below it. */
	.sm-hero__video::after {
		content: "";
		position: absolute;
		inset: auto 0 0;
		height: 22%;
		background: linear-gradient(0deg, var(--sm-hero-bg), rgba(14, 18, 24, 0));
		pointer-events: none;
	}
}

@media (max-width: 480px) {
	.sm-hero__actions .wp-block-button,
	.sm-hero__actions .wp-block-button__link {
		width: 100%;
	}
}

/* --------------------------------------------------------------------------
 * 6. Product identity strip
 * ----------------------------------------------------------------------- */

.sm-products {
	position: relative;
	margin-block: 0;
	padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem);
	background: var(--sm-ivory);
	border-top: 1px solid var(--sm-line);
}

.sm-products__grid {
	display: grid;
	grid-template-columns: 1.15fr repeat(3, 1fr);
	align-items: stretch;
}

.sm-products__grid > * {
	margin-block: 0 !important;
}

.sm-products__intro {
	padding-right: clamp(1.5rem, 3vw, 3rem);
}

.sm-products__label {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.22em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--sm-crimson);
}

.sm-products__note {
	max-width: 17rem;
	margin-block: 0.875rem 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--sm-muted);
}

/* Left box: parent company presentation (MISL). */
.sm-products__byline {
	margin-block: 0.625rem 0;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--sm-ink);
}

.sm-products__parent-logo {
	margin-block: 1.5rem 0 !important;
	line-height: 0;
}

.sm-products__parent-logo a {
	display: inline-block;
	border-radius: 4px;
	transition: opacity 0.3s var(--sm-ease);
}

.sm-products__parent-logo a:hover {
	opacity: 0.82;
}

/* Supplied 2000×290 PNG: width only, so its proportions are kept. */
.sm-products__parent-logo img {
	display: block;
	width: 100%;
	max-width: 300px;
	height: auto;
	aspect-ratio: 2000 / 290;
}

.sm-products__intro .sm-products__note {
	max-width: 19rem;
	margin-block: 1.375rem 0;
	font-size: 0.875rem;
	font-style: italic;
	line-height: 1.6;
}

.sm-product {
	--sm-product: var(--sm-muted);
	position: relative;
	padding: 0.25rem clamp(1.25rem, 2.5vw, 2.5rem);
	border-left: 1px solid var(--sm-line);
}

.sm-product--ababil { --sm-product: var(--wp--preset--color--ababil); }
.sm-product--tahqiq { --sm-product: var(--wp--preset--color--tahqiq); }
.sm-product--sylvia { --sm-product: var(--wp--preset--color--sylvia); }

/* Product-colour rule that draws in along the top edge on hover. */
.sm-product::after {
	content: "";
	position: absolute;
	top: calc(-1 * clamp(2.5rem, 1.5rem + 3vw, 4rem) - 1px);
	left: -1px;
	right: 0;
	height: 2px;
	background: var(--sm-product);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.6s var(--sm-ease);
}

.sm-product:hover::after {
	transform: scaleX(1);
}

.sm-product__index {
	margin: 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.18em;
	font-variant-numeric: tabular-nums;
	color: var(--sm-muted);
}

.sm-product__name {
	display: flex;
	align-items: center;
	gap: 0.3em;
	margin-block: 0.875rem 0;
	font-size: clamp(1.25rem, 1rem + 0.6vw, 1.5rem);
	font-weight: 800;
	letter-spacing: 0.08em;
	line-height: 1.2;
	color: var(--sm-ink);
}

.sm-product__name::before {
	content: "";
	flex: none;
	width: 0.8em;
	height: 0.8em;
	margin-right: 0.35em;
	background: var(--sm-product);
	-webkit-mask: var(--sm-star) center / contain no-repeat;
	mask: var(--sm-star) center / contain no-repeat;
	transition: transform 0.8s var(--sm-ease);
}

.sm-product:hover .sm-product__name::before {
	transform: rotate(45deg);
}

.sm-product__name mark {
	background: none;
	font-weight: 600;
}

.sm-product__name a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s var(--sm-ease);
}

.sm-product__name a:hover,
.sm-product__name a:focus-visible {
	color: var(--sm-product);
	text-decoration: none;
}

/*
 * Official product logos (used in place of the text names here and in the
 * Solutions section). Height-based sizing keeps each file's own aspect ratio;
 * --sm-logo-h gives all three the same visual height.
 */
.sm-product-logo {
	display: block;
	width: auto;
	max-width: 100%;
	height: var(--sm-logo-h, 48px);
	object-fit: contain;
}

/*
 * Optical matching: the files carry different amounts of transparent margin
 * (ABABIL NG none; SYLVIA NG 7.4% top/bottom, 2.5% left; TAHQIQ 12.7% top,
 * 11.3% bottom, 6.1% left). Each is scaled so its visible artwork is exactly
 * --sm-logo-h tall, and negative margins cancel the empty space so all three
 * occupy the same height and align flush left with the text.
 */
/* ABABIL NG is a tall, stacked mark: 10pt extra height balances it with the wide wordmarks. */
.sm-product-logo--ababil {
	height: calc(var(--sm-logo-h) + 10pt);
}

.sm-product-logo--sylvia {
	height: calc(var(--sm-logo-h) * 1.176);
	margin: calc(var(--sm-logo-h) * -0.087) 0 calc(var(--sm-logo-h) * -0.087) calc(var(--sm-logo-h) * -0.073);
}

.sm-product-logo--tahqiq {
	height: calc(var(--sm-logo-h) * 1.316);
	margin: calc(var(--sm-logo-h) * -0.167) 0 calc(var(--sm-logo-h) * -0.149) calc(var(--sm-logo-h) * -0.138);
}

.sm-product__name--logo,
.sm-solution__name--logo {
	line-height: 0;
}

.sm-product__name--logo::before,
.sm-solution__name--logo::before {
	display: none;
}

.sm-product__name--logo {
	--sm-logo-h: 52px;
}

.sm-product__name--logo a {
	display: inline-block;
	border-radius: 6px;
	transition: opacity 0.3s var(--sm-ease);
}

.sm-product__name--logo a:hover {
	opacity: 0.82;
}

.sm-product__desc {
	margin-block: 0.5rem 0;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--sm-charcoal);
}

/*
 * Flagship strip: the logos are the focus. Each product column has the same
 * fixed logo area; the logo is centred in it with object-fit: contain, so its
 * proportions are kept and every description starts at the same height.
 */
.sm-products {
	--sm-strip-logo-h: clamp(100px, 30px + 6vw, 124px);
}

.sm-products .sm-product {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.sm-products .sm-product__index {
	align-self: flex-start;
}

.sm-products .sm-product__name--logo {
	width: 100%;
	margin-block: 0.75rem 0;
}

.sm-products .sm-product__name--logo a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: var(--sm-strip-logo-h);
}

.sm-products .sm-product__name--logo .sm-product-logo {
	width: 100%;
	max-width: none;
	height: 100%;
	margin: 0;
	object-fit: contain;
}

/*
 * Equal visual weight: the TAHQIQ and SYLVIA NG files include transparent
 * margins (ABABIL NG has none), so their artwork is scaled up slightly inside
 * the same area. Visual only; layout and the files are unchanged.
 */
.sm-products .sm-product-logo--tahqiq {
	transform: scale(1.14);
}

.sm-products .sm-product-logo--sylvia {
	transform: scale(1.06);
}

.sm-products .sm-product__desc {
	margin-block: 1rem 0;
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--sm-ink);
}

/*
 * One EXPLORE button per product. Pinned to the bottom of each card (the cards
 * stretch to equal height), so all three line up even though the descriptions
 * have different lengths. Sized like the hero's "Talk to Us" button (the
 * site's standard outline button); identical across all three products.
 */
.sm-products .sm-product__cta {
	justify-content: center;
	width: 100%;
	margin-top: auto !important;
	padding-top: 1.5rem;
}

.sm-products .sm-product__cta .wp-block-button__link {
	letter-spacing: 0.06em;
}

@media (max-width: 781px) {
	.sm-products .sm-product__cta {
		padding-top: 1.25rem;
	}
}

@media (max-width: 1079px) {
	.sm-products__grid {
		grid-template-columns: repeat(3, 1fr);
		row-gap: 2rem;
	}

	.sm-products__intro {
		grid-column: 1 / -1;
		display: block;
		padding-right: 0;
	}

	.sm-products__parent-logo img {
		max-width: 280px;
	}

	.sm-products__intro .sm-products__note {
		max-width: 34rem;
	}

	.sm-product:nth-child(2) {
		padding-left: 0;
		border-left: 0;
	}

	.sm-product::after {
		display: none;
	}
}

@media (max-width: 781px) {
	.sm-products__grid {
		grid-template-columns: 1fr;
		row-gap: 0;
	}

	.sm-products__intro {
		display: block;
		margin-bottom: 1.25rem !important;
	}

	.sm-products__note {
		margin-top: 0.625rem;
	}

	.sm-product {
		padding: 1.5rem 0;
		border-left: 0;
		border-top: 1px solid var(--sm-line);
	}

	.sm-product:nth-child(2) {
		padding-left: 0;
	}

	/* Mobile: each product is a centred card with the same logo area. */
	.sm-products {
		--sm-strip-logo-h: 96px;
	}

	.sm-products .sm-product__name--logo a {
		max-width: 260px;
		margin-inline: auto;
	}
}

/* --------------------------------------------------------------------------
 * 7. Footer
 * ----------------------------------------------------------------------- */

.sm-footer {
	margin-block: 0;
	padding-block: 0;
	background: #fff;
	border-top: 1px solid var(--sm-line);
	font-size: 0.9375rem;
}

.sm-footer__top {
	display: grid;
	grid-template-columns: 1.7fr 0.9fr 0.9fr 1.1fr;
	gap: 2.5rem clamp(2rem, 4vw, 4.5rem);
	padding-block: clamp(3.5rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.sm-footer__cta {
	margin-top: 1.75rem !important;
}

.sm-footer__cta .wp-block-button__link {
	padding: 0.7rem 1.2rem;
	font-size: 0.875rem;
}

@media (max-width: 1079px) {
	.sm-footer__top {
		grid-template-columns: repeat(3, 1fr);
	}

	.sm-footer__brand {
		grid-column: 1 / -1;
	}
}

.sm-footer__top > * {
	margin-block: 0 !important;
}

.sm-logo--footer img {
	width: 176px;
}

.sm-footer__about {
	max-width: 24rem;
	margin-block: 1.5rem 0;
	color: var(--sm-muted);
	line-height: 1.65;
}

.sm-footer__label {
	margin: 0 0 1.125rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--sm-muted);
}

.sm-footer__address {
	margin: 0;
	font-style: normal;
	line-height: 1.75;
	color: var(--sm-charcoal);
}

.sm-footer__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sm-footer__menu li + li {
	margin-top: 0.5rem;
}

.sm-footer__menu a {
	color: var(--sm-charcoal);
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: color 0.3s var(--sm-ease), background-size 0.4s var(--sm-ease);
}

.sm-footer__menu a:hover,
.sm-footer__menu a:focus-visible {
	color: var(--sm-crimson);
	text-decoration: none;
	background-size: 100% 1px;
}

.sm-footer__bottom {
	gap: 0.5rem 2rem;
	padding-block: 1.5rem;
	border-top: 1px solid var(--sm-line);
	font-size: 0.8125rem;
	color: var(--sm-muted);
}

.sm-footer__bottom p {
	margin: 0;
}

@media (max-width: 781px) {
	.sm-footer__top {
		grid-template-columns: 1fr 1fr;
	}

	.sm-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (max-width: 480px) {
	.sm-footer__top {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------------------------------------
 * 7b. Homepage sections (About, Solutions, Expertise, Experience, Contact)
 * ----------------------------------------------------------------------- */

.sm-section {
	position: relative;
	isolation: isolate;
	overflow-x: clip;
	margin-block: 0;
	padding-block: clamp(5rem, 3rem + 6vw, 9rem);
}

.sm-section > * {
	margin-block: 0;
}

.sm-h2 {
	max-width: 18em;
	margin-block: 1.25rem 0;
	font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem);
	line-height: 1.08;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.sm-lede {
	max-width: 36rem;
	margin-block: 1.5rem 0;
	font-size: var(--wp--preset--font-size--large);
	line-height: 1.6;
	color: var(--sm-charcoal);
}

.sm-section p:not([class]) {
	max-width: 36rem;
	margin-block: 1.25rem 0;
	color: var(--sm-charcoal);
}

/* Text link with sliding arrow. */
.sm-text-link {
	margin-block: 2rem 0;
}

.sm-text-link a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-weight: 600;
	color: var(--sm-crimson);
	text-decoration: none;
}

.sm-text-link a::after {
	content: "";
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: var(--sm-arrow) center / contain no-repeat;
	mask: var(--sm-arrow) center / contain no-repeat;
	transition: transform 0.35s var(--sm-ease);
}

.sm-text-link a:hover {
	color: var(--sm-crimson-deep);
	text-decoration: none;
}

.sm-text-link a:hover::after {
	transform: translateX(4px);
}

/* Faint eight-point lattice used behind selected panels. */
.sm-expertise::before,
.sm-contact::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: url("../images/lattice-tile.svg") 0 0 / 96px 96px repeat;
	opacity: 0.05;
	pointer-events: none;
}

/* ---- About ---- */

/*
 * About and Our Solutions are both white, so the standard section padding at
 * the end of About and the start of Solutions stacked into one ~280px band.
 * A shorter bottom padding here keeps a single, deliberate gap.
 */
.sm-section.sm-about {
	padding-bottom: clamp(2rem, 1rem + 2.5vw, 3rem);
}

.sm-about__grid {
	gap: clamp(3rem, 6vw, 6.5rem) !important;
	align-items: center !important;
	margin-block: 0 !important;
}

.sm-about__content > :first-child {
	margin-top: 0;
}

/* One shared measure for every text element in the left column, so all lines
   start on the same left edge and end on a consistent right edge. */
.sm-about .sm-about__content > * {
	max-width: 36rem !important;
}

/* Paragraphs are justified for even left and right edges; hyphenation keeps word spacing even. */
.sm-about .sm-about__content > p.wp-block-paragraph:not(.sm-eyebrow):not(.sm-text-link) {
	text-align: justify;
	-webkit-hyphens: auto;
	hyphens: auto;
	hyphenate-limit-chars: 7 3 3;
}

/* Phones: the column is too narrow for even word spacing when justified. */
@media (max-width: 600px) {
	.sm-about .sm-about__content > p.wp-block-paragraph:not(.sm-eyebrow):not(.sm-text-link) {
		text-align: left;
	}
}

/*
 * About video: fills the right-hand visual area at its native 16:9 shape, so
 * the timeline captions are never cropped. Played by theme.js while visible.
 */
.sm-about__video {
	position: relative;
	overflow: hidden;
	width: 100%;
	margin: 0 !important;
	border-radius: 24px;
	background: #0b0f14;
	box-shadow: 0 30px 60px -36px rgba(31, 27, 26, 0.38);
	aspect-ratio: 16 / 9;
}

.sm-about__video video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---- About: credibility row ---- */

.sm-proof {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	margin-top: clamp(3.5rem, 6vw, 6rem) !important;
	border-top: 1px solid var(--sm-line);
}

.sm-proof__item {
	position: relative;
	margin: 0 !important;
	padding: 1.75rem clamp(1rem, 2vw, 2rem) 0.25rem;
	border-left: 1px solid var(--sm-line);
}

.sm-proof__item:first-child {
	padding-left: 0;
	border-left: 0;
}

/* Short brand accent along the top rule. */
.sm-proof__item::before {
	content: "";
	position: absolute;
	top: -1px;
	left: clamp(1rem, 2vw, 2rem);
	width: 2.25rem;
	height: 2px;
	background: linear-gradient(90deg, var(--sm-crimson), var(--sm-orange));
}

.sm-proof__item:first-child::before {
	left: 0;
}

.sm-proof__item > * {
	margin: 0 !important;
}

.sm-proof__value {
	font-size: clamp(1.125rem, 0.9rem + 0.7vw, 1.5rem);
	font-weight: 800;
	letter-spacing: 0.01em;
	white-space: nowrap;
	line-height: 1.15;
	color: var(--sm-ink);
}

.sm-proof__label {
	margin-top: 0.5rem !important;
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--sm-muted);
}

/* ---- About: regional ecosystem ---- */

/* Open row on the same left edge as the copy and credibility row above. */
.sm-regional {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 2rem clamp(2rem, 5vw, 5rem);
	margin-top: clamp(3rem, 5vw, 4.5rem) !important;
	padding-top: clamp(2rem, 3vw, 2.5rem);
	border-top: 1px solid var(--sm-line);
}

.sm-regional > *,
.sm-regional__intro > * {
	margin: 0 !important;
}

.sm-regional__title {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--sm-crimson);
}

.sm-regional__text {
	max-width: 28rem;
	margin-top: 0.6rem !important;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--sm-charcoal);
}

/* Two identical display tiles; each logo is contained, never stretched or enlarged past its file. */
.sm-regional__logos {
	display: grid;
	grid-template-columns: repeat(2, 220px);
	gap: 1rem;
}

.sm-regional__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 120px;
	margin: 0 !important;
	padding: 0.75rem 1.5rem;
	border: 1px solid var(--sm-line);
	border-radius: 14px;
	background: #fff;
}

.sm-regional__logo img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Equal visual weight: the wide wordmark is capped lower than the circular mark. */
.sm-regional__logo--indonesian-cloud img {
	max-height: 56px;
}

.sm-regional__logo--digital-mind-system img {
	max-height: 92px;
}

@media (max-width: 1079px) {
	.sm-proof {
		grid-template-columns: repeat(2, 1fr);
	}

	.sm-proof__item {
		padding-bottom: 1.5rem;
	}

	.sm-proof__item:nth-child(odd) {
		padding-left: 0;
		border-left: 0;
	}

	.sm-proof__item:nth-child(odd)::before {
		left: 0;
	}

	.sm-proof__item:nth-child(n + 3) {
		border-top: 1px solid var(--sm-line);
	}

	.sm-regional {
		grid-template-columns: 1fr;
	}

	.sm-regional__logos {
		grid-template-columns: repeat(2, minmax(0, 220px));
	}
}


@media (max-width: 480px) {
	.sm-proof {
		grid-template-columns: 1fr;
	}

	.sm-proof__item,
	.sm-proof__item:nth-child(n) {
		padding-left: 0;
		border-left: 0;
	}

	.sm-proof__item:nth-child(n)::before {
		left: 0;
	}

	.sm-proof__item:nth-child(n + 2) {
		border-top: 1px solid var(--sm-line);
	}

	.sm-regional__logos {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.sm-regional__logo {
		height: 104px;
		padding: 0.75rem;
	}
}

/* ---- Solutions ---- */

.sm-section-head--split {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	align-items: end;
	gap: 1.5rem clamp(2rem, 6vw, 6rem);
	margin-bottom: clamp(3rem, 5vw, 5rem) !important;
}

.sm-section-head > *,
.sm-section-head__main > :first-child {
	margin-top: 0 !important;
}

.sm-section-head--split .sm-lede {
	margin: 0;
}

/*
 * Product showcase: three editorial product sections, alternating
 * text/image, divided by hairlines.
 */
.sm-showcase {
	--sm-product: var(--sm-crimson);
	margin-block: 0 !important;
	padding-block: clamp(3rem, 2rem + 3.5vw, 5.5rem);
	border-top: 1px solid var(--sm-line);
}

.sm-showcase:last-child {
	padding-bottom: 0;
}

.sm-showcase--ababil { --sm-product: var(--wp--preset--color--ababil); }
.sm-showcase--tahqiq { --sm-product: #107A66; }
.sm-showcase--sylvia { --sm-product: #A51C48; }

.sm-showcase__grid {
	gap: clamp(2.5rem, 6vw, 6.5rem) !important;
	align-items: center !important;
	margin-block: 0 !important;
}

.sm-showcase--reverse .sm-showcase__grid {
	flex-direction: row-reverse;
}

.sm-showcase__content > * {
	margin-block: 0 !important;
}

/* 01 — CATEGORY */
.sm-showcase__kicker {
	display: flex;
	align-items: center;
	gap: 0.875rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.4;
	color: var(--sm-muted);
}

.sm-showcase__num {
	display: inline-flex;
	align-items: center;
	gap: 0.875rem;
	font-variant-numeric: tabular-nums;
	color: var(--sm-product);
}

.sm-showcase__num::after {
	content: "";
	width: 2rem;
	height: 1px;
	background: currentColor;
	opacity: 0.6;
}

.sm-showcase__product {
	margin-top: 1.5rem !important;
	font-size: 0.9375rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	color: var(--sm-ink);
}

.sm-showcase__title {
	max-width: 15em;
	margin-top: 0.75rem !important;
	font-size: clamp(1.875rem, 1.2rem + 1.8vw, 2.75rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.sm-showcase__text {
	max-width: 34rem;
	margin-top: 1.25rem !important;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--sm-charcoal);
}

/* Capabilities: a two-column hairline list, not cards. */
.sm-showcase__caps {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 2rem;
	max-width: 34rem;
	margin-top: 2rem !important;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--sm-line);
}

.sm-showcase__caps li {
	position: relative;
	margin: 0;
	padding: 0.85rem 0 0.85rem 1.25rem;
	border-bottom: 1px solid var(--sm-line);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--sm-ink);
}

.sm-showcase__caps li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 1.3rem;
	width: 0.4rem;
	height: 0.4rem;
	background: var(--sm-product);
	transform: rotate(45deg);
}

.sm-showcase__actions {
	gap: 0.875rem;
	margin-top: 2.25rem !important;
}

/* Product image: supplied files shown whole, at their own aspect ratio. */
.sm-showcase__image {
	margin: 0 !important;
}

.sm-showcase__image img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 16px;
	box-shadow: 0 30px 60px -40px rgba(31, 27, 26, 0.4);
}

/* The square ABABIL NG suite graphic is capped so it does not dwarf its text. */
.sm-showcase--ababil .sm-showcase__image img {
	max-width: 560px;
	margin-inline: auto;
}

@media (max-width: 781px) {
	.sm-showcase__grid,
	.sm-showcase--reverse .sm-showcase__grid {
		flex-direction: column;
	}

	/* Image leads on small screens for every product. */
	.sm-showcase__media {
		order: -1;
	}
}

@media (max-width: 480px) {
	.sm-showcase__caps {
		column-gap: 1rem;
	}

	.sm-showcase__caps li {
		font-size: 0.875rem;
	}

	.sm-showcase__actions .wp-block-button,
	.sm-showcase__actions .wp-block-button__link {
		width: 100%;
	}
}

/* ---- Expertise ---- */

.sm-expertise {
	background: var(--sm-ivory);
}

.sm-expertise::before {
	opacity: 0.045;
	-webkit-mask-image: radial-gradient(ellipse at 0 100%, #000, transparent 60%);
	mask-image: radial-gradient(ellipse at 0 100%, #000, transparent 60%);
}

.sm-expertise__grid {
	gap: clamp(3rem, 6vw, 7rem) !important;
	align-items: flex-start !important;
	margin-block: 0 !important;
}

.sm-expertise__intro {
	position: sticky;
	top: calc(var(--sm-header-h) + var(--sm-admin-bar) + 2.5rem);
}

.sm-expertise__intro > :first-child {
	margin-top: 0;
}

.sm-expertise__list {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 clamp(2rem, 4vw, 4rem);
}

.sm-capability {
	position: relative;
	margin: 0 !important;
	padding: 1.75rem 0 3rem;
	border-top: 1px solid rgba(31, 27, 26, 0.14);
}

.sm-capability::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--sm-crimson), var(--sm-orange));
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.7s var(--sm-ease);
}

.sm-capability:hover::before {
	transform: scaleX(1);
}

.sm-capability > * {
	margin: 0 !important;
}

.sm-capability__index {
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	font-variant-numeric: tabular-nums;
	color: var(--sm-crimson);
}

.sm-capability__title {
	margin-top: 2.25rem !important;
	font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
	letter-spacing: -0.02em;
}

.sm-capability__text {
	max-width: 26rem;
	margin-top: 0.875rem !important;
	font-size: 0.975rem;
	line-height: 1.65;
	color: var(--sm-charcoal);
}

/* ---- Backed by experience ---- */

.sm-experience__grid {
	gap: clamp(2.5rem, 6vw, 7rem) !important;
	align-items: center !important;
	margin-block: 0 !important;
}

.sm-experience__figure > *,
.sm-experience__content > :first-child {
	margin-top: 0;
}

.sm-bignum {
	position: relative;
	margin: 0;
	font-size: clamp(8rem, 4rem + 12vw, 15rem);
	font-weight: 800;
	line-height: 0.82;
	letter-spacing: -0.065em;
	color: var(--sm-ink);
}

.sm-bignum::after {
	content: "";
	display: block;
	width: 4.5rem;
	height: 3px;
	margin-top: 2rem;
	border-radius: 3px;
	background: linear-gradient(90deg, var(--sm-crimson), var(--sm-orange));
}

.sm-bignum__caption {
	max-width: 17rem;
	margin-block: 1.25rem 0;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--sm-muted);
}

.sm-credentials {
	display: grid;
	gap: 2rem;
	margin-top: clamp(4rem, 7vw, 7rem) !important;
	padding: clamp(1.75rem, 3.5vw, 3rem);
	border: 1px solid var(--sm-line);
	border-radius: 24px;
}

.sm-credentials > *,
.sm-credentials__head > *,
.sm-credentials__group > * {
	margin: 0 !important;
}

.sm-credentials__head {
	display: grid;
	grid-template-columns: minmax(12rem, auto) 1fr;
	align-items: baseline;
	gap: 0.5rem clamp(2rem, 5vw, 5rem);
}

.sm-credentials__title {
	font-size: 1.25rem;
	letter-spacing: -0.01em;
}

.sm-credentials__note {
	max-width: 42rem;
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--sm-muted);
}

.sm-credentials__group {
	display: grid;
	grid-template-columns: 12rem 1fr;
	gap: 1rem clamp(2rem, 5vw, 5rem);
	align-items: start;
	padding-top: 2rem;
	border-top: 1px solid var(--sm-line);
}

.sm-credentials__label {
	padding-top: 0.25rem;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--sm-charcoal);
}

.sm-slots {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.75rem;
}

.sm-credentials__group--clients .sm-slots {
	grid-template-columns: repeat(6, 1fr);
}

.sm-slot {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 5.5rem;
	margin: 0 !important;
	padding: 1rem;
	border: 1px dashed #D6CEC8;
	border-radius: 12px;
	background: var(--sm-ivory);
	text-align: center;
}

.sm-slot > * {
	margin: 0 !important;
}

.sm-slot__label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--sm-charcoal);
}

.sm-slot__status {
	margin-top: 0.25rem !important;
	font-size: 0.6875rem;
	letter-spacing: 0.04em;
	color: var(--sm-muted);
}

/* ---- Contact ---- */

.sm-contact {
	background: var(--sm-ivory);
}

.sm-contact::before {
	opacity: 0.05;
	-webkit-mask-image: radial-gradient(ellipse at 100% 50%, #000, transparent 60%);
	mask-image: radial-gradient(ellipse at 100% 50%, #000, transparent 60%);
}

.sm-contact__grid {
	gap: clamp(3rem, 6vw, 7rem) !important;
	align-items: center !important;
	margin-block: 0 !important;
}

.sm-contact__content > :first-child {
	margin-top: 0;
}

.sm-contact__title {
	max-width: 13em;
	font-size: clamp(2.25rem, 1.4rem + 2.8vw, 4rem);
	line-height: 1.04;
	letter-spacing: -0.035em;
}

.sm-contact-card {
	position: relative;
	overflow: hidden;
	padding: clamp(1.75rem, 3.5vw, 2.75rem);
	border: 1px solid var(--sm-line);
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 30px 70px -44px rgba(31, 27, 26, 0.35);
}

.sm-contact-card::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--sm-crimson), var(--sm-orange));
}

.sm-contact-card > *,
.sm-contact-row > * {
	margin: 0 !important;
}

.sm-contact-row {
	display: grid;
	grid-template-columns: 6.5rem 1fr;
	gap: 1rem;
	padding-block: 1rem;
	border-top: 1px solid var(--sm-line);
}

.sm-contact-row__label {
	font-size: 0.8125rem;
	color: var(--sm-muted);
}

.sm-contact-row__value {
	font-weight: 600;
	color: var(--sm-ink);
}

/* Unconfirmed details: visibly provisional until replaced. */
.sm-placeholder {
	font-weight: 500 !important;
	font-style: italic;
	color: var(--sm-muted) !important;
}

/* ---- Responsive ---- */

@media (max-width: 1079px) {
	.sm-section-head--split {
		grid-template-columns: 1fr;
	}

	.sm-credentials__group--clients .sm-slots {
		grid-template-columns: repeat(3, 1fr);
	}

	.sm-credentials__head,
	.sm-credentials__group {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 781px) {
	.sm-expertise__intro {
		position: static;
	}

	.sm-expertise__list {
		grid-template-columns: 1fr;
	}

	.sm-capability {
		padding-bottom: 2.25rem;
	}

	.sm-capability__title {
		margin-top: 1.25rem !important;
	}

	.sm-bignum::after {
		margin-top: 1.25rem;
	}

}

@media (max-width: 600px) {
	.sm-slots,
	.sm-credentials__group--clients .sm-slots {
		grid-template-columns: repeat(2, 1fr);
	}

	.sm-contact-row {
		grid-template-columns: 1fr;
		gap: 0.25rem;
	}
}

/* --------------------------------------------------------------------------
 * 7c. Contact form, office details, Insights and articles
 * ----------------------------------------------------------------------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ---- Office details (Contact, left column) ---- */

.sm-office {
	max-width: 30rem;
	margin-top: 2.5rem !important;
	padding-top: 1.75rem;
	border-top: 1px solid rgba(31, 27, 26, 0.12);
}

.sm-office > * {
	margin: 0 !important;
}

.sm-office__label {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--sm-crimson);
}

.sm-office__address {
	margin-top: 0.875rem !important;
	margin-bottom: 1.25rem !important;
	line-height: 1.75;
	color: var(--sm-charcoal);
}

.sm-office__address strong {
	font-weight: 700;
	color: var(--sm-ink);
}

.sm-office .sm-contact-row:last-of-type {
	border-bottom: 1px solid rgba(31, 27, 26, 0.12);
}

.sm-office .sm-contact-row {
	border-top-color: rgba(31, 27, 26, 0.12);
}

.sm-office .sm-text-link {
	margin-top: 1.5rem !important;
}

/* ---- Enquiry form ---- */

.sm-contact-card__label {
	margin: 0 0 1.5rem !important;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--sm-crimson);
}

.sm-form-wrap {
	margin: 0 !important;
}

.sm-form__intro {
	margin: 0 0 1.25rem;
	font-size: 0.8125rem;
	color: var(--sm-muted);
}

.sm-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.125rem 1rem;
}

.sm-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	min-width: 0;
}

.sm-form__field--full {
	grid-column: 1 / -1;
}

.sm-form label {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--sm-ink);
}

.sm-form input,
.sm-form select,
.sm-form textarea {
	width: 100%;
	min-height: 3rem;
	padding: 0.75rem 0.95rem;
	border: 1px solid #D9D2CC;
	border-radius: 10px;
	background: #fff;
	font: inherit;
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--sm-ink);
	transition: border-color 0.25s var(--sm-ease), box-shadow 0.25s var(--sm-ease);
	box-sizing: border-box;
}

.sm-form select {
	appearance: none;
	padding-right: 2.5rem;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1.5 4 6 8l4.5-4' fill='none' stroke='%236B6360' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") right 0.95rem center / 0.75rem no-repeat;
}

.sm-form textarea {
	min-height: 8.5rem;
	resize: vertical;
}

.sm-form input:hover,
.sm-form select:hover,
.sm-form textarea:hover {
	border-color: #B9B1AB;
}

.sm-form input:focus-visible,
.sm-form select:focus-visible,
.sm-form textarea:focus-visible {
	outline: none;
	border-color: var(--sm-crimson);
	box-shadow: 0 0 0 3px rgba(201, 25, 39, 0.16);
}

.sm-form [aria-invalid="true"] {
	border-color: var(--sm-crimson);
}

.sm-form__error {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--sm-crimson-deep);
}

.sm-form__trap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.sm-form__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin-top: 1.5rem;
}

.sm-form__privacy {
	flex: 1 1 14rem;
	margin: 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--sm-muted);
}

.sm-form__submit {
	display: inline-flex;
	align-items: center;
	gap: 0.625rem;
	cursor: pointer;
	transition: background-color 0.35s var(--sm-ease), box-shadow 0.35s var(--sm-ease), transform 0.35s var(--sm-ease);
}

.sm-form__submit::after {
	content: "";
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: var(--sm-arrow) center / contain no-repeat;
	mask: var(--sm-arrow) center / contain no-repeat;
	transition: transform 0.35s var(--sm-ease);
}

.sm-form__submit:hover {
	box-shadow: 0 12px 28px -14px rgba(155, 23, 30, 0.65);
	transform: translateY(-1px);
}

.sm-form__submit:hover::after {
	transform: translateX(3px);
}

.sm-form__alert,
.sm-form__success {
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	border-radius: 12px;
	font-size: 0.9375rem;
}

.sm-form__alert {
	border: 1px solid rgba(201, 25, 39, 0.3);
	background: #FDF3F3;
	color: var(--sm-crimson-deep);
}

.sm-form__alert p,
.sm-form__alert ul {
	margin: 0;
}

.sm-form__alert ul {
	margin-top: 0.5rem;
	padding-left: 1.25rem;
}

.sm-form__alert a {
	color: inherit;
	text-decoration: underline;
}

.sm-form__success {
	padding: 1.75rem;
	border: 1px solid rgba(14, 110, 85, 0.25);
	background: #F1F7F4;
	color: var(--sm-charcoal);
}

.sm-form__success p {
	margin: 0.5rem 0 0;
}

.sm-form__success-title {
	margin-top: 0 !important;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--sm-ink);
}

.sm-form__again {
	font-weight: 600;
}

@media (max-width: 600px) {
	.sm-form__grid {
		grid-template-columns: 1fr;
	}

	.sm-form__submit {
		width: 100%;
		justify-content: center;
	}
}

/* ---- Insights ---- */

.sm-insights__query {
	margin-top: 0 !important;
}

.sm-insights__list {
	gap: clamp(1.5rem, 3vw, 2.5rem) !important;
	margin: 0 !important;
	padding: 0;
	list-style: none;
}

.sm-insight {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0 !important;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(31, 27, 26, 0.14);
}

.sm-insight::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, var(--sm-crimson), var(--sm-orange));
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform 0.7s var(--sm-ease);
}

.sm-insight:hover::before,
.sm-insight:focus-within::before {
	transform: scaleX(1);
}

.sm-insight > * {
	margin: 0 !important;
}

.sm-insight__date {
	font-size: 0.8125rem;
	color: var(--sm-muted);
}

/* Card category and author (small text lines in the existing card style). */
.sm-insight__cat {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--sm-crimson);
}

.sm-insight__cat a {
	color: inherit;
	text-decoration: none;
}

.sm-insight__meta {
	gap: 0 0.5rem;
	margin-top: 0.5rem !important;
	font-size: 0.8125rem;
	color: var(--sm-muted);
}

.sm-insight__meta > * {
	margin: 0 !important;
}

.sm-insight__author::before {
	content: "·";
	margin-right: 0.5rem;
}

.sm-insight__title {
	margin-top: 0.875rem !important;
	font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
	line-height: 1.25;
	letter-spacing: -0.015em;
}

.sm-insight__title a {
	color: var(--sm-ink);
	text-decoration: none;
}

.sm-insight__title a:hover {
	color: var(--sm-crimson);
	text-decoration: none;
}

.sm-insight__excerpt {
	margin-top: 0.75rem !important;
	font-size: 0.9375rem;
	color: var(--sm-charcoal);
}

.sm-insight__excerpt p {
	margin: 0;
}

.sm-insight__more {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: auto !important;
	padding-top: 1.25rem;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--sm-crimson);
	text-decoration: none;
}

.sm-insight__more::after {
	content: "";
	width: 1em;
	height: 1em;
	background: currentColor;
	-webkit-mask: var(--sm-arrow) center / contain no-repeat;
	mask: var(--sm-arrow) center / contain no-repeat;
	transition: transform 0.35s var(--sm-ease);
}

.sm-insight__more:hover {
	color: var(--sm-crimson-deep);
	text-decoration: none;
}

.sm-insight__more:hover::after {
	transform: translateX(4px);
}

.sm-insights__empty {
	max-width: none !important;
	margin: 0 !important;
	padding: 2rem;
	border: 1px dashed #D6CEC8;
	border-radius: 16px;
	background: var(--sm-ivory);
	text-align: center;
	color: var(--sm-muted) !important;
}

@media (max-width: 900px) {
	.sm-insights__list {
		grid-template-columns: 1fr !important;
	}
}

/* Tablet: give the form the full width rather than a narrow column. */
@media (max-width: 1079px) {
	.sm-contact__grid {
		flex-wrap: wrap !important;
	}

	.sm-contact__grid > .wp-block-column {
		flex-basis: 100% !important;
	}

	.sm-office {
		max-width: 36rem;
	}
}

/* ---- Single articles ---- */

.sm-article__date {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sm-crimson);
}

.sm-article__title {
	margin-top: 1rem !important;
}

.sm-article__image {
	margin-block: 2rem 2.5rem !important;
}

.sm-article__image img {
	border-radius: 16px;
}

.sm-article__content {
	font-size: 1.0625rem;
	line-height: 1.75;
}

/* Article category, byline and label. */
.sm-article__cat {
	margin-top: 0 !important;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--sm-crimson);
}

.sm-article__cat a {
	color: inherit;
	text-decoration: none;
}

.sm-article__meta {
	gap: 0 0.6rem;
	margin-top: 0 !important;
	font-size: 0.8125rem;
	color: var(--sm-muted);
}

.sm-article__meta > * {
	margin: 0 !important;
}

.sm-article__meta .sm-article__date {
	letter-spacing: 0.12em;
}

.sm-article__author {
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--sm-charcoal);
}

.sm-article__author::before {
	content: "·";
	margin-right: 0.6rem;
	color: var(--sm-muted);
}

.sm-article__content > .sm-article__label {
	font-size: 1.125rem;
	font-style: italic;
	color: var(--sm-muted);
}

/* Tables in articles. */
.sm-article__content .wp-block-table table {
	font-size: 0.9375rem;
	line-height: 1.5;
	border-collapse: collapse;
}

.sm-article__content .wp-block-table th,
.sm-article__content .wp-block-table td {
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--sm-line);
	text-align: left;
	vertical-align: top;
}

.sm-article__content .wp-block-table thead th {
	background: var(--sm-ivory);
	font-weight: 700;
	color: var(--sm-ink);
}

@media (max-width: 600px) {
	.sm-article__content .wp-block-table {
		overflow-x: auto;
	}

	.sm-article__content .wp-block-table table {
		min-width: 560px;
	}
}

/* --------------------------------------------------------------------------
 * 8. Inner pages
 * ----------------------------------------------------------------------- */

.sm-page {
	padding-block: clamp(3rem, 2rem + 4vw, 6rem);
}

.sm-page__title {
	font-size: var(--wp--preset--font-size--xx-large);
	letter-spacing: -0.03em;
	margin-block: 1rem 2rem;
}

.sm-post-list .wp-block-post {
	padding-block: 1.75rem;
	border-top: 1px solid var(--sm-line);
}

.sm-post-list__date {
	font-size: 0.8125rem;
	color: var(--sm-muted);
}

.sm-post-list__title {
	margin-block: 0.5rem;
	font-size: var(--wp--preset--font-size--x-large);
}

.sm-post-list__title a {
	color: var(--sm-ink);
}

/* --------------------------------------------------------------------------
 * 9. Motion
 * ----------------------------------------------------------------------- */

@keyframes sm-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes sm-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}


@keyframes sm-overlay-in {
	from { opacity: 0; }
	to { opacity: 1; }
}

/* Hero entrance — staggered, once, on load. */
.sm-hero__content > * {
	animation: sm-rise 0.9s var(--sm-ease) both;
}

.sm-hero__content > :nth-child(1) { animation-delay: 0.05s; }
.sm-hero__content > :nth-child(2) { animation-delay: 0.15s; }
.sm-hero__content > :nth-child(3) { animation-delay: 0.3s; }
.sm-hero__content > :nth-child(4) { animation-delay: 0.42s; }


/* Scroll reveal (armed by theme.js only when JS runs and motion is allowed). */
.js .sm-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.8s var(--sm-ease), transform 0.8s var(--sm-ease);
	transition-delay: var(--sm-reveal-delay, 0s);
}

.js .sm-reveal.is-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-delay: 0s !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}

	.js .sm-reveal {
		opacity: 1;
		transform: none;
	}
}
