/*
Theme Name:   Aareks Technology
Theme URI:    https://aareks.com/
Description:  Astra child theme for Aareks Technology.
Author:       Aareks Technology
Template:     astra
Version:      1.0.0
Text Domain:  aareks
*/

:root {
	--a-navy: #0a1a33;
	--a-navy-2: #0f2a4f;
	--a-navy-3: #06122a;
	--a-primary: #0ea5e9;
	--a-primary-d: #0284c7;
	--a-blue: #2563eb;
	--a-accent: #f97316;
	--a-head: #0f172a;
	--a-text: #475569;
	--a-muted: #94a3b8;
	--a-bg: #f5f8fc;
	--a-border: #e2e8f0;
	--a-radius: 18px;
	--a-grad: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
	--a-grad-light: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
	--a-shadow: 0 12px 32px -14px rgba(15, 23, 42, .22);
	--a-shadow-lg: 0 30px 60px -24px rgba(15, 23, 42, .35);
	--a-font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--a-font-head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
	--a-header-h: 84px;
}

/* ---------- Base ---------- */
body,
button,
input,
select,
textarea {
	font-family: var(--a-font);
}

body {
	color: var(--a-text);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.entry-content :where(h1, h2, h3, h4, h5, h6) {
	font-family: var(--a-font-head);
	color: var(--a-head);
	letter-spacing: -.02em;
	line-height: 1.2;
	font-weight: 700;
}

.entry-content h2 {
	font-size: clamp(1.9rem, 3.4vw, 2.75rem);
}

.entry-content h3 {
	font-size: 1.25rem;
}

a {
	color: var(--a-primary-d);
	transition: color .2s;
}

::selection {
	background: rgba(14, 165, 233, .2);
}

/* ---------- Layout reset for full-width pages ---------- */
.aareks-page #primary,
.aareks-page .site-main {
	margin: 0 !important;
	padding: 0 !important;
}

.aareks-page .site-content > .ast-container {
	max-width: 100%;
	padding: 0;
	display: block;
}

.aareks-page .entry-header {
	display: none;
}

.aareks-page article.ast-article-single,
.aareks-page .ast-article-single {
	padding: 0 !important;
	margin: 0 !important;
	background: transparent;
}

.aareks-page .entry-content > *,
.aareks-page .entry-content > .wp-block-group {
	margin-top: 0;
	margin-bottom: 0;
	max-width: none;
}

.entry-content .container {
	max-width: 1200px;
	margin-inline: auto !important;
	padding-inline: 24px;
	box-sizing: content-box;
}

.entry-content .container.is-narrow {
	max-width: 860px;
}

body {
	background: #fff;
}

.entry-content > .wp-block-group.section,
.entry-content > .wp-block-group.stats-wrap {
	padding: clamp(72px, 9vw, 120px) 0;
	position: relative;
}

.entry-content > .wp-block-group.section.is-tight {
	padding-block: clamp(56px, 6vw, 80px);
}

.entry-content > .wp-block-group.stats-wrap {
	padding: 0;
}

.section--alt {
	background: var(--a-bg);
}

.section--dark {
	background:
		radial-gradient(900px 500px at 85% 0%, rgba(37, 99, 235, .28), transparent 60%),
		radial-gradient(700px 400px at 0% 100%, rgba(14, 165, 233, .18), transparent 60%),
		var(--a-navy);
	color: #cbd5e1;
}

.section--dark :where(h1, h2, h3, h4) {
	color: #fff;
}

.section-head {
	max-width: 760px;
	margin: 0 auto clamp(40px, 5vw, 64px) !important;
	text-align: center;
}

.section-head.is-left {
	margin-left: 0 !important;
	text-align: left;
}

.section-head > * + * {
	margin-top: 16px !important;
}

.section-head p {
	font-size: 1.125rem;
	line-height: 1.75;
}

.eyebrow {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--a-primary-d);
	background: rgba(14, 165, 233, .1);
	border: 1px solid rgba(14, 165, 233, .22);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 0;
}

.section--dark .eyebrow,
.hero .eyebrow,
.page-hero .eyebrow {
	color: #7dd3fc;
	background: rgba(125, 211, 252, .1);
	border-color: rgba(125, 211, 252, .28);
}

.lead {
	font-size: clamp(1.05rem, 1.4vw, 1.2rem);
	line-height: 1.75;
}

.text-gradient {
	background: var(--a-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.hero .text-gradient,
.page-hero .text-gradient,
.section--dark .text-gradient {
	background-image: var(--a-grad-light);
}

/* ---------- Buttons ---------- */
.entry-content .wp-block-buttons {
	gap: 14px;
}

.wp-block-button .wp-block-button__link,
.aareks-submit {
	font-family: var(--a-font);
	font-weight: 600;
	font-size: 16px;
	line-height: 1.2;
	padding: 16px 28px;
	border-radius: 12px;
	border: 2px solid transparent;
	background: var(--a-grad);
	color: #fff;
	box-shadow: 0 10px 24px -10px rgba(37, 99, 235, .6);
	transition: transform .2s, box-shadow .2s, background .2s;
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus,
.aareks-submit:hover,
.aareks-submit:focus {
	transform: translateY(-2px);
	box-shadow: 0 16px 32px -12px rgba(37, 99, 235, .7);
	color: #fff;
	background: var(--a-grad);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent !important;
	color: var(--a-head) !important;
	border-color: #cbd5e1 !important;
	box-shadow: none;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: #fff !important;
	color: var(--a-head) !important;
	border-color: var(--a-primary) !important;
}

:is(.hero, .page-hero, .section--dark, .cta-band) .wp-block-button.is-style-outline .wp-block-button__link {
	color: #fff !important;
	border-color: rgba(255, 255, 255, .35) !important;
}

:is(.hero, .page-hero, .section--dark, .cta-band) .wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, .1) !important;
	color: #fff !important;
	border-color: #fff !important;
}

.cta-band .wp-block-button:not(.is-style-outline) .wp-block-button__link {
	background: #fff;
	color: var(--a-navy);
}

.cta-band .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
	background: #fff;
	color: var(--a-blue);
}

.link-arrow a {
	font-weight: 600;
	text-decoration: none;
	color: var(--a-primary-d);
}

.link-arrow a::after {
	content: '→';
	display: inline-block;
	margin-left: 6px;
	transition: transform .2s;
}

.link-arrow a:hover::after,
.card:hover .link-arrow a::after {
	transform: translateX(4px);
}

/* ---------- Header ---------- */
#masthead {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}

.admin-bar #masthead {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar #masthead {
		top: 46px;
	}
}

@media (max-width: 600px) {
	.admin-bar #masthead {
		top: 0;
	}

	.admin-bar.is-scrolled #masthead {
		top: 0;
	}
}

#masthead .main-header-bar,
#masthead .ast-primary-header-bar,
#masthead .ast-mobile-header-wrap .ast-primary-header-bar,
#masthead .ast-above-header-bar,
#masthead .ast-below-header-bar {
	background: transparent !important;
	border-bottom: 1px solid transparent !important;
	transition: border-color .3s;
}

#masthead .site-primary-header-wrap {
	min-height: var(--a-header-h);
}

body:not(.aareks-page) #masthead,
.is-scrolled #masthead {
	background: rgba(10, 26, 51, .88);
	backdrop-filter: saturate(160%) blur(14px);
	-webkit-backdrop-filter: saturate(160%) blur(14px);
	box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}

.is-scrolled #masthead .ast-primary-header-bar {
	border-bottom-color: rgba(255, 255, 255, .06) !important;
}

body:not(.aareks-page) .site-content {
	padding-top: calc(var(--a-header-h) + 40px);
}

.aareks-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
}

.aareks-logo__mark svg {
	display: block;
	width: 42px;
	height: 42px;
	filter: drop-shadow(0 6px 14px rgba(14, 165, 233, .45));
}

.aareks-logo__text {
	display: flex;
	flex-direction: column;
	line-height: 1;
}

.aareks-logo__text strong {
	font-family: var(--a-font-head);
	font-weight: 800;
	font-size: 22px;
	letter-spacing: .08em;
	color: #fff;
}

.aareks-logo__text small {
	font-size: 9.5px;
	font-weight: 600;
	letter-spacing: .42em;
	color: #7dd3fc;
	margin-top: 5px;
}

#masthead .main-header-menu > .menu-item > .menu-link,
#masthead .main-header-menu > .menu-item > .ast-menu-toggle {
	color: rgba(255, 255, 255, .86);
	font-weight: 500;
	font-size: 15.5px;
}

#masthead .main-header-menu > .menu-item > .menu-link {
	padding-inline: 16px;
	position: relative;
}

#masthead .main-header-menu > .menu-item:not(.menu-cta) > .menu-link::after {
	content: '';
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 22px;
	height: 2px;
	border-radius: 2px;
	background: var(--a-grad-light);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s;
}

#masthead .main-header-menu > .menu-item:hover > .menu-link,
#masthead .main-header-menu > .current-menu-item > .menu-link,
#masthead .main-header-menu > .current-menu-ancestor > .menu-link,
#masthead .main-header-menu > .current_page_parent > .menu-link {
	color: #fff;
}

#masthead .main-header-menu > .menu-item:hover > .menu-link::after,
#masthead .main-header-menu > .current-menu-item > .menu-link::after,
#masthead .main-header-menu > .current-menu-ancestor > .menu-link::after {
	transform: scaleX(1);
}

#masthead .main-header-menu .menu-item svg,
#masthead .ast-header-navigation-arrow svg {
	fill: currentColor;
}

/* Dropdown */
#masthead .main-header-menu .sub-menu {
	background: #fff;
	border: 1px solid var(--a-border);
	border-radius: 14px;
	box-shadow: var(--a-shadow-lg);
	padding: 10px;
	width: 290px;
	top: calc(100% - 10px);
}

#masthead .main-header-menu .sub-menu .menu-item .menu-link {
	color: var(--a-head);
	font-weight: 500;
	font-size: 15px;
	padding: 11px 14px;
	border-radius: 9px;
	border: 0;
}

#masthead .main-header-menu .sub-menu .menu-item:hover > .menu-link,
#masthead .main-header-menu .sub-menu .current-menu-item > .menu-link {
	background: var(--a-bg);
	color: var(--a-primary-d);
}

/* CTA menu item */
#masthead .main-header-menu > .menu-cta {
	margin-left: 12px;
	display: flex;
	align-items: center;
}

#masthead .main-header-menu > .menu-cta > .menu-link {
	background: var(--a-grad);
	color: #fff;
	border-radius: 11px;
	padding: 0 22px;
	height: 46px;
	line-height: 46px;
	font-weight: 600;
	box-shadow: 0 10px 24px -10px rgba(14, 165, 233, .8);
	transition: transform .2s, box-shadow .2s;
}

#masthead .main-header-menu > .menu-cta > .menu-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 30px -12px rgba(14, 165, 233, .9);
}

/* Mobile header */
#masthead .ast-mobile-header-wrap .menu-toggle,
#masthead .ast-mobile-header-wrap .menu-toggle:focus {
	color: #fff;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 10px;
	padding: 8px 10px;
}

#masthead .ast-mobile-header-wrap .menu-toggle .ast-mobile-svg {
	fill: #fff;
}

#masthead .ast-mobile-header-content {
	background: var(--a-navy) !important;
	border-top: 1px solid rgba(255, 255, 255, .08);
	padding: 8px 12px 20px;
	max-height: calc(100vh - var(--a-header-h));
	overflow-y: auto;
}

#masthead .ast-mobile-header-content .menu-item .menu-link,
#masthead .ast-mobile-header-content .menu-item .ast-menu-toggle {
	color: #e2e8f0 !important;
	border-color: rgba(255, 255, 255, .07) !important;
	background: transparent !important;
}

#masthead .ast-mobile-header-content .sub-menu {
	background: rgba(255, 255, 255, .03) !important;
}

#masthead .ast-mobile-header-content .menu-cta > .menu-link {
	background: var(--a-grad) !important;
	color: #fff !important;
	border-radius: 10px;
	margin-top: 14px;
	text-align: center;
}

@media (max-width: 921px) {
	body.ast-header-break-point.ast-main-header-nav-open #masthead,
	.ast-main-header-nav-open #masthead {
		background: var(--a-navy);
	}
}

/* ---------- Hero ---------- */
.hero,
.page-hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(1100px 600px at 85% -10%, rgba(37, 99, 235, .42), transparent 60%),
		radial-gradient(800px 500px at -5% 105%, rgba(14, 165, 233, .28), transparent 60%),
		var(--a-navy);
	color: #cbd5e1;
	isolation: isolate;
}

.hero::before,
.page-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
	mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}

.hero::after,
.page-hero::after {
	content: '';
	position: absolute;
	width: 520px;
	height: 520px;
	right: -160px;
	bottom: -260px;
	z-index: -1;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(249, 115, 22, .22), transparent 65%);
	animation: aareks-drift 14s ease-in-out infinite alternate;
}

@keyframes aareks-drift {
	to {
		transform: translate(-120px, -80px) scale(1.15);
	}
}

.entry-content > .wp-block-group.hero {
	padding: calc(var(--a-header-h) + clamp(56px, 8vw, 110px)) 0 clamp(96px, 10vw, 150px);
}

.hero h1 {
	color: #fff;
	font-size: clamp(2.5rem, 5.2vw, 4.1rem);
	line-height: 1.07;
	letter-spacing: -.03em;
	font-weight: 800;
	margin: 22px 0 22px !important;
}

.hero .lead {
	color: #cbd5e1;
	max-width: 580px;
}

.hero .wp-block-buttons {
	margin-top: 34px !important;
}

.hero .wp-block-columns {
	align-items: center !important;
	gap: clamp(32px, 4vw, 64px);
}

.hero-art img {
	width: 100%;
	height: auto;
	filter: drop-shadow(0 40px 60px rgba(2, 6, 23, .45));
}

.hero-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 22px;
	list-style: none;
	padding: 0 !important;
	margin: 34px 0 0 !important;
	font-size: 14.5px;
	color: #94a3b8;
}

.hero-chips li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.hero-chips li::before {
	content: '';
	width: 18px;
	height: 18px;
	flex: none;
	background: var(--icon-check-light) center/14px no-repeat;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(125, 211, 252, .35);
}

.entry-content > .wp-block-group.page-hero {
	padding: calc(var(--a-header-h) + clamp(56px, 7vw, 96px)) 0 clamp(64px, 7vw, 100px);
	text-align: center;
}

.page-hero h1 {
	color: #fff;
	font-size: clamp(2.2rem, 4.4vw, 3.4rem);
	font-weight: 800;
	letter-spacing: -.03em;
	margin: 20px auto 18px !important;
	max-width: 900px;
}

.page-hero .lead {
	color: #cbd5e1;
	max-width: 720px;
	margin-inline: auto !important;
}

.page-hero .wp-block-buttons {
	justify-content: center;
	margin-top: 30px !important;
}

/* ---------- Stats ---------- */
.stats-wrap {
	position: relative;
	z-index: 2;
	margin-top: -64px !important;
}

.stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: #fff;
	border: 1px solid var(--a-border);
	border-radius: 22px;
	box-shadow: var(--a-shadow-lg);
	overflow: hidden;
}

.stats > * {
	margin: 0 !important;
}

.stat {
	padding: 32px 28px;
	text-align: center;
	border-right: 1px solid var(--a-border);
}

.stat:last-child {
	border-right: 0;
}

.stat h3 {
	font-size: clamp(1.6rem, 2.6vw, 2.2rem) !important;
	font-weight: 800;
	margin: 0 0 6px !important;
	background: var(--a-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent !important;
}

.stat p {
	margin: 0 !important;
	font-size: 15px;
	font-weight: 500;
}

/* ---------- Grids & cards ---------- */
.grid {
	display: grid;
	gap: 24px;
}

.grid > * {
	margin: 0 !important;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.split.align-top {
	align-items: flex-start !important;
}

.tech-block {
	margin-top: 48px !important;
	text-align: center;
}

.tech-block > p {
	font-family: var(--a-font-head);
	font-weight: 700;
	color: var(--a-head);
	margin-bottom: 16px;
}

.tech-block .chips,
.section .container.is-narrow > .chips {
	justify-content: center;
}

.map-block h3 {
	margin: 0 0 16px !important;
}

.map-block > * {
	margin-top: 0 !important;
}

.card {
	position: relative;
	background: #fff;
	border: 1px solid var(--a-border);
	border-radius: var(--a-radius);
	padding: 32px 30px;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, border-color .35s;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.card > * {
	margin: 0 !important;
}

.card > * + * {
	margin-top: 12px !important;
}

.card::after {
	content: '';
	position: absolute;
	inset: 0 0 auto;
	height: 3px;
	background: var(--a-grad);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .4s;
}

.card:hover {
	transform: translateY(-6px);
	box-shadow: var(--a-shadow-lg);
	border-color: transparent;
}

.card:hover::after {
	transform: scaleX(1);
}

.card h3 {
	font-size: 1.22rem;
}

.card p {
	font-size: 15.5px;
	line-height: 1.7;
}

.card .link-arrow {
	margin-top: auto !important;
	padding-top: 14px;
}

.card[class*='icon-']::before {
	content: '';
	display: block;
	width: 56px;
	height: 56px;
	flex: none;
	margin-bottom: 22px;
	border-radius: 15px;
	background: var(--icon) center / 26px no-repeat, var(--a-grad);
	box-shadow: 0 12px 24px -10px rgba(37, 99, 235, .55);
	transition: transform .35s;
}

.card:hover[class*='icon-']::before {
	transform: rotate(-6deg) scale(1.06);
}

.card.is-accent[class*='icon-']::before {
	background: var(--icon) center / 26px no-repeat, linear-gradient(135deg, #fb923c, #f97316);
	box-shadow: 0 12px 24px -10px rgba(249, 115, 22, .6);
}

.card.is-compact {
	padding: 26px 24px;
}

.card.is-compact[class*='icon-']::before {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background-size: 22px, auto;
	margin-bottom: 16px;
}

.card.is-compact h3 {
	font-size: 1.08rem;
}

.card.is-compact p {
	font-size: 15px;
}

.section--dark .card {
	background: rgba(255, 255, 255, .04);
	border-color: rgba(255, 255, 255, .09);
}

.section--dark .card:hover {
	background: rgba(255, 255, 255, .07);
	border-color: rgba(125, 211, 252, .3);
	box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}

.section--dark .card p {
	color: #94a3b8;
}

.card.is-featured {
	background: var(--a-navy);
	border-color: var(--a-navy);
	color: #cbd5e1;
}

.card.is-featured h3 {
	color: #fff;
}

/* ---------- Split / feature ---------- */
.split {
	gap: clamp(32px, 5vw, 80px) !important;
	align-items: center !important;
}

.split > .wp-block-column > * + * {
	margin-top: 18px !important;
}

.check-list {
	list-style: none;
	padding: 0 !important;
	margin-left: 0 !important;
}

.check-list li {
	position: relative;
	padding-left: 34px;
	margin: 0 0 12px;
	line-height: 1.6;
}

.check-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 2px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--icon-check) center / 13px no-repeat, rgba(14, 165, 233, .12);
}

.check-list.is-two-col {
	columns: 2;
	column-gap: 28px;
}

.check-list.is-two-col li {
	break-inside: avoid;
}

.section--dark .check-list li::before,
.panel-dark .check-list li::before {
	background: var(--icon-check-light) center / 13px no-repeat, rgba(125, 211, 252, .12);
}

.panel {
	background: #fff;
	border: 1px solid var(--a-border);
	border-radius: 22px;
	padding: clamp(28px, 3.5vw, 44px);
	box-shadow: var(--a-shadow);
}

.panel-dark {
	background:
		radial-gradient(500px 300px at 100% 0%, rgba(37, 99, 235, .4), transparent 60%),
		var(--a-navy);
	border-radius: 22px;
	padding: clamp(28px, 3.5vw, 44px);
	color: #cbd5e1;
	box-shadow: var(--a-shadow-lg);
}

.panel > * + *,
.panel-dark > * + * {
	margin-top: 16px !important;
}

.panel-dark :where(h2, h3, h4) {
	color: #fff;
}

.panel-dark h3,
.panel h3 {
	font-size: 1.35rem;
}

/* ---------- Steps ---------- */
.steps {
	list-style: none;
	counter-reset: step;
	padding: 0 !important;
	margin: 0 !important;
	display: grid;
	gap: 14px;
}

.steps li {
	counter-increment: step;
	position: relative;
	padding: 18px 20px 18px 74px;
	border-radius: 14px;
	background: rgba(255, 255, 255, .05);
	border: 1px solid rgba(255, 255, 255, .08);
	margin: 0;
	line-height: 1.55;
}

.steps li::before {
	content: counter(step, decimal-leading-zero);
	position: absolute;
	left: 18px;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border-radius: 11px;
	display: grid;
	place-items: center;
	font-family: var(--a-font-head);
	font-weight: 800;
	font-size: 14px;
	color: #fff;
	background: var(--a-grad);
}

.steps li strong {
	color: #fff;
	display: block;
}

.steps.is-light li {
	background: #fff;
	border-color: var(--a-border);
}

.steps.is-light li strong {
	color: var(--a-head);
}

.steps.is-row {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.steps.is-row li {
	padding: 70px 20px 22px;
}

.steps.is-row li::before {
	top: 20px;
	transform: none;
	left: 20px;
}

/* ---------- Tech chips ---------- */
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
	padding: 0 !important;
	margin: 0 !important;
}

.chips li {
	margin: 0;
	padding: 8px 16px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--a-border);
	font-weight: 600;
	font-size: 14px;
	color: var(--a-head);
	transition: border-color .2s, color .2s;
}

.chips li:hover {
	border-color: var(--a-primary);
	color: var(--a-primary-d);
}

/* ---------- Products ---------- */
.browser-frame {
	border-radius: 16px;
	overflow: hidden;
	background: #0f2a4f;
	box-shadow: var(--a-shadow-lg);
	padding-top: 34px;
	position: relative;
	margin: 0 !important;
	transition: transform .5s;
}

.browser-frame::before {
	content: '';
	position: absolute;
	top: 13px;
	left: 16px;
	width: 50px;
	height: 9px;
	background:
		radial-gradient(circle at 4.5px 4.5px, #f97316 4.5px, transparent 5px),
		radial-gradient(circle at 20.5px 4.5px, #facc15 4.5px, transparent 5px),
		radial-gradient(circle at 36.5px 4.5px, #22c55e 4.5px, transparent 5px);
}

.browser-frame img {
	display: block;
	width: 100%;
	height: auto;
}

.browser-frame:hover {
	transform: translateY(-6px) rotate(-.4deg);
}

.product + .product {
	margin-top: clamp(64px, 8vw, 110px) !important;
}

/* ---------- Clients ---------- */
.client-logos {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 16px;
}

@media (max-width: 1100px) {
	.client-logos {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 640px) {
	.client-logos {
		grid-template-columns: repeat(2, 1fr);
	}
}

.product h3 {
	font-size: clamp(1.6rem, 2.6vw, 2.1rem) !important;
}

.client-logos > * {
	margin: 0 !important;
}

.client-logo {
	background: #fff;
	border: 1px solid var(--a-border);
	border-radius: 16px;
	height: 104px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 18px 22px;
	transition: transform .3s, box-shadow .3s;
}

.client-logo img {
	max-height: 56px;
	width: auto;
	max-width: 100%;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .75;
	transition: filter .3s, opacity .3s;
}

.client-logo:hover {
	transform: translateY(-4px);
	box-shadow: var(--a-shadow);
}

.client-logo:hover img {
	filter: none;
	opacity: 1;
}

.client-logo.is-text p {
	margin: 0;
	font-family: var(--a-font-head);
	font-weight: 800;
	font-size: 18px;
	color: #64748b;
	letter-spacing: -.01em;
}

/* ---------- CTA band ---------- */
.cta-band {
	position: relative;
	overflow: hidden;
	border-radius: 28px;
	padding: clamp(40px, 6vw, 72px) clamp(28px, 6vw, 80px);
	background:
		radial-gradient(600px 300px at 100% 0%, rgba(255, 255, 255, .18), transparent 60%),
		linear-gradient(120deg, #0284c7 0%, #2563eb 55%, #4f46e5 100%);
	color: #e0f2fe;
	isolation: isolate;
	box-shadow: 0 40px 80px -40px rgba(37, 99, 235, .8);
}

.cta-band::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: radial-gradient(rgba(255, 255, 255, .18) 1.2px, transparent 1.2px);
	background-size: 22px 22px;
	-webkit-mask-image: linear-gradient(90deg, transparent 30%, #000);
	mask-image: linear-gradient(90deg, transparent 30%, #000);
}

.cta-band .wp-block-columns {
	align-items: center !important;
	margin: 0 !important;
}

.cta-band h2 {
	color: #fff !important;
	font-size: clamp(1.7rem, 3vw, 2.4rem) !important;
	margin: 0 0 10px !important;
}

.cta-band p {
	margin: 0;
	font-size: 1.08rem;
}

.cta-band .wp-block-buttons {
	justify-content: flex-end;
}

/* ---------- FAQ ---------- */
.faq {
	display: grid;
	gap: 14px;
}

.faq > * {
	margin: 0 !important;
}

.faq .wp-block-details {
	background: #fff;
	border: 1px solid var(--a-border);
	border-radius: 14px;
	padding: 0;
	transition: box-shadow .3s;
}

.faq .wp-block-details[open] {
	box-shadow: var(--a-shadow);
}

.faq summary {
	list-style: none;
	cursor: pointer;
	padding: 20px 56px 20px 24px;
	font-family: var(--a-font-head);
	font-weight: 700;
	color: var(--a-head);
	font-size: 1.05rem;
	position: relative;
}

.faq summary::-webkit-details-marker {
	display: none;
}

.faq summary::after {
	content: '+';
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 24px;
	font-weight: 400;
	color: var(--a-primary-d);
	transition: transform .3s;
}

.faq details[open] summary::after {
	transform: translateY(-50%) rotate(45deg);
}

.faq .wp-block-details > p {
	padding: 0 24px 22px;
	margin: 0;
}

/* ---------- Contact ---------- */
.office-card {
	position: relative;
}

.office-card p {
	margin: 0 !important;
}

.office-card a {
	text-decoration: none;
	font-weight: 600;
}

.map-embed iframe {
	display: block;
	width: 100%;
	height: 340px;
	border: 0;
	border-radius: 18px;
	filter: saturate(.85);
	box-shadow: var(--a-shadow);
}

/* ---------- Forms ---------- */
.aareks-form-wrap,
#apply {
	scroll-margin-top: calc(var(--a-header-h) + 24px);
}

.aareks-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px 20px;
}

.aareks-field {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

.aareks-field.is-wide {
	grid-column: 1 / -1;
}

.aareks-field label {
	font-weight: 600;
	font-size: 14px;
	color: var(--a-head);
}

.aareks-field label span {
	color: var(--a-accent);
}

.aareks-form input:not([type='file']),
.aareks-form select,
.aareks-form textarea {
	width: 100%;
	padding: 13px 16px;
	font-size: 15.5px;
	color: var(--a-head);
	background: var(--a-bg);
	border: 1.5px solid var(--a-border);
	border-radius: 11px;
	transition: border-color .2s, box-shadow .2s, background .2s;
	box-shadow: none;
	height: auto;
	min-height: 50px;
	line-height: 1.4;
}

.aareks-form input[type='file'] {
	padding: 14px;
	border: 1.5px dashed #cbd5e1;
	border-radius: 11px;
	background: var(--a-bg);
	width: 100%;
}

.aareks-form :is(input, select, textarea):focus {
	outline: none;
	background: #fff;
	border-color: var(--a-primary);
	box-shadow: 0 0 0 4px rgba(14, 165, 233, .15);
}

.aareks-field.has-error :is(input, select, textarea) {
	border-color: #ef4444;
}

.aareks-field__error {
	color: #dc2626;
	font-size: 13.5px;
}

.aareks-submit {
	cursor: pointer;
	justify-self: start;
	width: auto;
}

.aareks-hp {
	position: absolute !important;
	left: -9999px;
	height: 1px;
	overflow: hidden;
}

.aareks-form-notice {
	padding: 16px 20px;
	border-radius: 12px;
	margin-bottom: 22px;
	font-size: 15.5px;
}

.aareks-form-notice.is-success {
	background: #ecfdf5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.aareks-form-notice.is-error {
	background: #fef2f2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* ---------- Footer ---------- */
#colophon {
	background: var(--a-navy-3);
	color: #94a3b8;
	position: relative;
}

#colophon::before {
	content: '';
	position: absolute;
	inset: 0 0 auto;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(56, 189, 248, .5), transparent);
}

.aareks-footer {
	padding: clamp(56px, 7vw, 88px) 0 40px;
}

.aareks-footer .footer-grid {
	max-width: 1200px;
	margin: 0 auto;
	padding-inline: 24px;
	box-sizing: content-box;
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
	gap: 40px;
}

.aareks-footer .footer-grid > * {
	margin: 0;
}

.aareks-footer h4 {
	color: #fff;
	font-size: 15px;
	letter-spacing: .08em;
	text-transform: uppercase;
	margin: 0 0 20px;
}

.aareks-footer p {
	margin: 0 0 12px;
	font-size: 15px;
	line-height: 1.7;
}

.aareks-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.aareks-footer li {
	margin: 0 0 11px;
	font-size: 15px;
}

.aareks-footer a {
	color: #cbd5e1;
	text-decoration: none;
}

.aareks-footer a:hover {
	color: #7dd3fc;
}

.aareks-footer .footer-brand {
	font-family: var(--a-font-head);
	font-weight: 800;
	font-size: 24px;
	letter-spacing: .08em;
	color: #fff;
	margin-bottom: 16px;
}

.aareks-footer .footer-brand span {
	color: #7dd3fc;
}

.aareks-footer .social {
	display: flex;
	gap: 10px;
	margin-top: 22px;
}

.aareks-footer .social li {
	margin: 0;
}

.aareks-footer .social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	padding: 0 14px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 600;
	background: rgba(255, 255, 255, .06);
	border: 1px solid rgba(255, 255, 255, .1);
	transition: background .2s, border-color .2s;
}

.aareks-footer .social a:hover {
	background: rgba(56, 189, 248, .12);
	border-color: rgba(56, 189, 248, .4);
}

#colophon .site-below-footer-wrap,
#colophon .site-primary-footer-wrap,
#colophon .site-above-footer-wrap {
	background: transparent !important;
	border-top: 1px solid rgba(255, 255, 255, .07) !important;
}

#colophon .ast-footer-copyright,
#colophon .ast-footer-copyright p {
	color: #64748b;
	font-size: 14px;
}

#colophon .ast-footer-copyright a {
	color: #94a3b8;
}

/* ---------- Reveal animation ---------- */
.reveal {
	opacity: 0;
	transform: translateY(26px);
	transition-property: opacity, transform, box-shadow, border-color, background;
	transition-duration: .8s, .8s, .35s, .35s, .35s;
	transition-timing-function: cubic-bezier(.2, .8, .2, 1);
}

.reveal.in {
	opacity: 1;
	transform: none;
}

.card.reveal.in:hover {
	transform: translateY(-6px);
	transition-delay: 0s !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.grid-4 { grid-template-columns: repeat(2, 1fr); }
	.grid-5 { grid-template-columns: repeat(3, 1fr); }

	.aareks-footer .footer-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 921px) {
	:root {
		--a-header-h: 72px;
	}

	.grid-3 { grid-template-columns: repeat(2, 1fr); }

	.stats {
		grid-template-columns: repeat(2, 1fr);
	}

	.stat:nth-child(2) {
		border-right: 0;
	}

	.stat:nth-child(-n+2) {
		border-bottom: 1px solid var(--a-border);
	}

	.cta-band .wp-block-buttons {
		justify-content: flex-start;
	}

	.hero-art {
		max-width: 560px;
		margin-inline: auto;
	}
}

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

@media (max-width: 640px) {
	.grid-2,
	.grid-3,
	.grid-4,
	.grid-5 {
		grid-template-columns: 1fr;
	}

	.aareks-form {
		grid-template-columns: 1fr;
	}

	.check-list.is-two-col {
		columns: 1;
	}

	.aareks-footer .footer-grid {
		grid-template-columns: 1fr;
	}

	.aareks-logo__text strong {
		font-size: 19px;
	}

	.aareks-logo__mark svg {
		width: 36px;
		height: 36px;
	}
}

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