/*
Theme Name: NEXUS
Theme URI: https://nexus.co.id
Author: NEXUS
Description: Tema blok resmi NEXUS — Enabling Growth Business. Mengikuti NEXUS Brand Identity Guidelines Vol. 01 · 2026: palet warna, tipografi Display Geometric Bold + Humanist Sans, pola X, connection network dan growth line.
Version: 1.2.0
Requires at least: 6.6
Tested up to: 7.2
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nexus
*/

/* ---------- Brand graphic language ---------- */

/* Pattern A — dark surfaces, low-contrast X motif */
.nexus-pattern-a {
	background-color: var(--wp--preset--color--deep-navy);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg stroke='%234E8FD1' stroke-opacity='.12' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M22 22l12 12M34 22L22 34'/%3E%3C/g%3E%3C/svg%3E");
}

/* Pattern B — hero / accent: light gradient + faint connection network */
.nexus-pattern-b {
	background-color: #F6F9FC;
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='360' viewBox='0 0 520 360'%3E%3Cg stroke='%230D4C92' stroke-opacity='.10' stroke-width='1.2' fill='none'%3E%3Cpath d='M60 250L170 160 300 210 410 90 480 140M170 160L230 60 410 90M300 210L360 300 480 140'/%3E%3C/g%3E%3Cg fill='%2317BFD1' fill-opacity='.35'%3E%3Ccircle cx='60' cy='250' r='4'/%3E%3Ccircle cx='170' cy='160' r='4'/%3E%3Ccircle cx='300' cy='210' r='4'/%3E%3Ccircle cx='410' cy='90' r='4'/%3E%3Ccircle cx='480' cy='140' r='4'/%3E%3Ccircle cx='230' cy='60' r='4'/%3E%3Ccircle cx='360' cy='300' r='4'/%3E%3C/g%3E%3C/svg%3E"),
		linear-gradient(180deg, #EEF5FC 0%, #FFFFFF 100%);
	background-repeat: no-repeat;
	background-position: right -60px top 40px, 0 0;
	background-size: min(520px, 60vw) auto, cover;
}

/* Pattern C — light documents, X motif fading in from the top-right corner */
.nexus-pattern-c {
	position: relative;
	isolation: isolate;
}
.nexus-pattern-c::before {
	content: "";
	position: absolute;
	inset: 0 0 auto auto;
	width: min(420px, 50%);
	height: 260px;
	z-index: -1;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cg stroke='%230D4C92' stroke-opacity='.10' stroke-width='1.2' stroke-linecap='round'%3E%3Cpath d='M15 15l10 10M25 15L15 25'/%3E%3C/g%3E%3C/svg%3E");
	-webkit-mask-image: linear-gradient(225deg, #000 0%, transparent 70%);
	mask-image: linear-gradient(225deg, #000 0%, transparent 70%);
	pointer-events: none;
}

/* Growth line — ascending motion accent (used on dark CTA bands) */
.nexus-growth-line {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='240' viewBox='0 0 1200 240' preserveAspectRatio='none'%3E%3Cpolyline points='0,220 260,190 470,200 700,130 900,110 1200,20' fill='none' stroke='%238FE3EC' stroke-opacity='.45' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: bottom center;
	background-size: 100% 70%;
}
.nexus-pattern-a.nexus-growth-line {
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='240' viewBox='0 0 1200 240' preserveAspectRatio='none'%3E%3Cpolyline points='0,220 260,190 470,200 700,130 900,110 1200,20' fill='none' stroke='%2317BFD1' stroke-opacity='.35' stroke-width='2'/%3E%3C/svg%3E"),
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cg stroke='%234E8FD1' stroke-opacity='.12' stroke-width='1.5' stroke-linecap='round'%3E%3Cpath d='M22 22l12 12M34 22L22 34'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: no-repeat, repeat;
	background-position: bottom center, 0 0;
	background-size: 100% 70%, auto;
}

/* ---------- Typography helpers ---------- */
.nexus-kicker {
	font-family: var(--wp--preset--font-family--body);
	font-size: 0.75rem !important;
	font-weight: 700;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--wp--preset--color--nexus-cyan);
}
.nexus-lead { color: var(--wp--preset--color--neutral-gray); }

/* ---------- Header ---------- */
.nexus-header {
	position: sticky;
	top: 0;
	z-index: 50;
	border-bottom: 1px solid var(--wp--preset--color--line);
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: saturate(140%) blur(6px);
}
.admin-bar .nexus-header { top: var(--wp-admin--admin-bar--height, 0); }
.nexus-header .wp-block-navigation a { color: var(--wp--preset--color--charcoal); text-decoration: none; }
.nexus-header .wp-block-navigation a:hover,
.nexus-header .wp-block-navigation .current-menu-item > a { color: var(--wp--preset--color--nexus-blue); }
.nexus-header .wp-block-navigation__submenu-container {
	border: 1px solid var(--wp--preset--color--line) !important;
	border-radius: 10px;
	padding: 0.4rem 0 !important;
	box-shadow: var(--wp--preset--shadow--card);
	min-width: 230px !important;
}
.nexus-header .wp-block-navigation__submenu-container a { font-weight: 400; padding: 0.45rem 1rem !important; }
.nexus-logo img { display: block; height: auto; }

@media (max-width: 781px) {
	.nexus-header-cta { display: none !important; }
}

/* ---------- Cards ---------- */
.nexus-card {
	height: 100%;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 12px;
	background: var(--wp--preset--color--white);
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.nexus-card:hover { border-color: var(--wp--preset--color--light-blue); transform: translateY(-2px); }
.nexus-card .nexus-icon img { width: 44px; height: 44px; }
.nexus-card a { text-decoration: none; }
.nexus-card .wp-block-heading a { color: inherit; }
.nexus-card .nexus-more a { font-weight: 700; font-size: 0.875rem; }
.wp-block-columns.nexus-equal > .wp-block-column { display: flex; flex-direction: column; }
.wp-block-columns.nexus-equal > .wp-block-column > .nexus-card { flex: 1; }

/* ---------- Growth framework bar (interactive) ---------- */
.nexus-framework-steps {
	display: grid !important;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0 !important;
	position: relative;
	margin-top: 2rem;
}
.nexus-framework-steps::before {
	content: "";
	position: absolute;
	left: 10%;
	right: 10%;
	top: 15px;
	height: 1px;
	background: rgba(143, 227, 236, 0.35);
}
.nexus-step {
	position: relative;
	text-align: center;
	padding: 0 0.75rem 0.5rem;
	border-radius: 10px;
	outline: none;
	cursor: default;
}
.nexus-step::before {
	content: "";
	display: block;
	width: 11px;
	height: 11px;
	margin: 8px auto 1.1rem;
	border-radius: 50%;
	background: var(--wp--preset--color--deep-navy);
	border: 2px solid var(--wp--preset--color--nexus-cyan);
	position: relative;
	z-index: 1;
	transition: background 0.2s ease, transform 0.2s ease;
}
.nexus-step .nexus-step-no { color: var(--wp--preset--color--nexus-cyan); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.15em; margin: 0; }
.nexus-step .nexus-step-name { color: #fff; margin: 0.15rem 0 0.35rem; }
.nexus-step .nexus-step-desc {
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.875rem;
	line-height: 1.55;
	margin: 0;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, opacity 0.3s ease;
}
.nexus-step:hover::before,
.nexus-step:focus-within::before,
.nexus-step.is-active::before { background: var(--wp--preset--color--nexus-cyan); transform: scale(1.25); }
.nexus-step:hover .nexus-step-desc,
.nexus-step:focus .nexus-step-desc,
.nexus-step.is-active .nexus-step-desc { max-height: 8rem; opacity: 1; }

@media (max-width: 781px) {
	.nexus-framework-steps { grid-template-columns: 1fr; text-align: left; }
	.nexus-framework-steps::before { left: 5px; right: auto; top: 8px; bottom: 8px; width: 1px; height: auto; }
	.nexus-step { text-align: left; padding: 0 0 1.25rem 2rem; }
	.nexus-step::before { position: absolute; left: 0; top: 0; margin: 4px 0 0; }
	.nexus-step .nexus-step-desc { max-height: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
	.nexus-card, .nexus-step::before, .nexus-step .nexus-step-desc { transition: none; }
}

/* ---------- Breadcrumb ---------- */
.nexus-breadcrumb { font-size: 0.8125rem; color: var(--wp--preset--color--neutral-gray); margin: 0 0 1rem; }
.nexus-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.nexus-breadcrumb li + li::before { content: "/"; margin-right: 0.35rem; color: var(--wp--preset--color--line); }
.nexus-breadcrumb a { color: var(--wp--preset--color--neutral-gray); text-decoration: none; }
.nexus-breadcrumb a:hover { color: var(--wp--preset--color--nexus-blue); }
.nexus-breadcrumb [aria-current] { color: var(--wp--preset--color--deep-navy); font-weight: 700; }

/* ---------- Footer ---------- */
.nexus-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.nexus-footer a:hover { color: var(--wp--preset--color--light-cyan); }
.nexus-footer .nexus-footer-links { list-style: none; padding: 0; margin: 0; }
.nexus-footer .nexus-footer-links li { margin: 0 0 0.45rem; font-size: 0.9375rem; }
.nexus-footer h4 { color: #fff; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; font-family: var(--wp--preset--font-family--body); }

/* ---------- Posts / query ---------- */
.nexus-post-card .wp-block-post-featured-image img { border-radius: 10px; aspect-ratio: 16/9; object-fit: cover; }
.nexus-post-card .wp-block-post-title a { color: var(--wp--preset--color--deep-navy); text-decoration: none; }
.nexus-post-card .wp-block-post-title a:hover { color: var(--wp--preset--color--nexus-blue); }

.skip-link:focus { z-index: 100000; }

/* ---------- Layout seams ---------- */
.wp-site-blocks > * + * { margin-block-start: 0; }
main.wp-block-group > * + * { margin-block-start: 0; }
.nexus-framework-steps > * { margin-block-start: 0 !important; }
.wp-block-post-content > .alignfull + .alignfull,
.wp-block-post-content > .alignfull + .wp-block-group.alignfull { margin-block-start: 0; }
.wp-block-post-content > .alignfull:last-child { margin-block-end: 0; }

/* ---------- v1.1: stats, pillars, numbered lists, case study ---------- */
.nexus-stat-value {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: clamp(2rem, 3.6vw, 2.75rem);
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--wp--preset--color--nexus-blue);
	margin: 0;
}
.nexus-stat-label { margin: 0; color: var(--wp--preset--color--neutral-gray); font-size: 0.9375rem; }
.nexus-pattern-a .nexus-stat-value { color: var(--wp--preset--color--light-cyan); }
.nexus-pattern-a .nexus-stat-label { color: rgba(255, 255, 255, 0.72); }
.nexus-stat-hero {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 800;
	font-size: clamp(4rem, 10vw, 7rem);
	line-height: 0.95;
	letter-spacing: -0.03em;
	color: #fff;
	margin: 0.75rem 0 0.5rem;
}
.nexus-pillar-no, .nexus-numbered-no {
	font-size: 0.75rem !important;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wp--preset--color--nexus-cyan);
	margin: 0;
}
.nexus-numbered-no { font-size: 0.8125rem !important; }
.nexus-numbered-item { border-top: 1px solid var(--wp--preset--color--line); padding-top: 1rem; }
.nexus-metric { border-top: 1px solid rgba(143, 227, 236, 0.3); padding-top: 0.9rem; }
.nexus-quote {
	margin: 2rem 0 0;
	padding: 0 0 0 1.25rem;
	border-left: 2px solid var(--wp--preset--color--nexus-cyan);
}
.nexus-quote p { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.125rem; line-height: 1.5; color: #fff; }
.nexus-quote cite { display: block; margin-top: 0.6rem; font-style: normal; font-size: 0.875rem; color: rgba(255, 255, 255, 0.65); }

/* Timeline (Our Story) */
.nexus-timeline { list-style: none; margin: 0; padding: 0; }
.nexus-timeline li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--wp--preset--color--line); }
.nexus-timeline li strong { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.25rem; color: var(--wp--preset--color--nexus-blue); }

/* Chips (product names, locations) */
.nexus-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; margin: 0; }
.nexus-chips li { padding: 0.35rem 0.85rem; border: 1px solid var(--wp--preset--color--line); border-radius: 999px; font-size: 0.875rem; font-weight: 700; color: var(--wp--preset--color--deep-navy); background: #fff; }

/* Product rows (Digital Solution / System Integrator) */
.nexus-product { border-top: 1px solid var(--wp--preset--color--line); padding-top: 1.25rem; scroll-margin-top: 6rem; }
.nexus-product .nexus-product-name { margin: 0; }

/* ---------- v1.1 accessibility: contrast & focus ---------- */
/* Cyan (#17BFD1) reaches only 2.2:1 on white, so text labels on light surfaces use NEXUS Blue;
   cyan stays the accent on dark surfaces (6.5:1) and in graphics. */
.nexus-kicker,
.nexus-pillar-no,
.nexus-numbered-no { color: var(--wp--preset--color--nexus-blue); }
.nexus-pattern-a .nexus-kicker,
.nexus-pattern-a .nexus-numbered-no,
.nexus-footer .nexus-kicker,
.has-deep-navy-background-color .nexus-kicker { color: var(--wp--preset--color--nexus-cyan); }
.nexus-field label span { color: var(--wp--preset--color--nexus-blue) !important; }

a:focus-visible,
button:focus-visible,
.wp-element-button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nexus-step:focus-visible {
	outline: 2px solid var(--wp--preset--color--nexus-blue);
	outline-offset: 3px;
	border-radius: 4px;
}
.nexus-pattern-a a:focus-visible,
.nexus-pattern-a .nexus-step:focus-visible,
.nexus-growth-line a:focus-visible,
.nexus-footer a:focus-visible { outline-color: var(--wp--preset--color--light-cyan); }
