/*
Theme Name: Yonateq
Description: Modern, scroll-animated theme for yonateq.com: light header with the original brand logo, navy circuit-board hero, stacked service panels and article cards.
Version: 2.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: yonateq
*/

/* Layout: light brand header, deep-navy "circuit board" bands (hero, approach, contact)
   framing light content sections; the logo's circuit traces are the motion language. */
:root {
	--navy: #062f48;
	--navy-logo: #094263;
	--lime: #93bd3f;
	--lime-soft: #c9e39a;
	--paper: #f5f8f6;
	--ink: #0b1d29;
	--muted: #4f6473;
	--line: #d4e0e3;
	--on-navy: #eaf2f5;
	--on-navy-muted: #9ab3c2;
	--font-display: "Sora", "Segoe UI", system-ui, sans-serif;
	--font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
	--font-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", monospace;
	--max: 1200px;
	--ease: cubic-bezier(.2, .7, .1, 1);
	--header-h: 84px;
	color-scheme: light;
}
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.mono { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; margin: 0; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.screen-reader-text:focus { clip: auto; width: auto; height: auto; z-index: 100; background: #fff; padding: 10px 14px; left: 10px; top: 10px; }

/* ---------- header (light, so the logo keeps its brand colours) ---------- */
.progress { position: fixed; z-index: 55; top: 0; left: 0; height: 2px; width: 100%; background: var(--lime); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.admin-bar .progress { top: 32px; }
header.site { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px) saturate(150%); -webkit-backdrop-filter: blur(14px) saturate(150%); transition: box-shadow .35s var(--ease), padding .35s var(--ease); padding-block: 18px; }
.admin-bar header.site { top: 32px; }
header.site.scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(6, 47, 72, .35); padding-block: 10px; }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; text-decoration: none; }
.brand img { width: 168px; height: auto; transition: width .35s var(--ease); }
header.scrolled .brand img { width: 140px; }
nav.main ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 34px; }
nav.main a { color: var(--ink); text-decoration: none; font-size: 15px; position: relative; padding-block: 4px; }
nav.main li:not(.menu-cta) a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--lime); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
nav.main li:not(.menu-cta) a:hover::after,
nav.main li.current-menu-item:not(.menu-cta) > a::after,
nav.main li.current_page_parent:not(.menu-cta) > a::after { transform: scaleX(1); transform-origin: left; }
nav.main li.current-menu-item > a, nav.main li.current_page_parent > a { color: var(--navy-logo); }
.btn, nav.main li.menu-cta > a { display: inline-flex; align-items: center; gap: 10px; background: var(--lime); color: var(--navy); padding: 11px 20px; border-radius: 999px; font-weight: 500; font-size: 15px; text-decoration: none; transition: background .25s; border: 0; cursor: pointer; font-family: inherit; }
nav.main li.menu-cta { order: 99; }
nav.main li.menu-cta > a { background: var(--navy-logo); color: #fff; padding: 10px 18px; }
nav.main li.menu-cta > a:hover { background: var(--navy); }
.btn:hover { background: var(--lime-soft); }
.btn svg { transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; }

/* ---------- circuit canvas bands ---------- */
.band { position: relative; background: var(--navy); color: var(--on-navy); overflow: hidden; isolation: isolate; }
.band > canvas.circuit { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.eyebrow { color: var(--lime); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }

/* ---------- home hero ---------- */
.hero { padding-top: 24px; }
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 160px; background: linear-gradient(to bottom, rgba(6,47,72,0), var(--navy)); z-index: -1; pointer-events: none; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: end; padding-block: 72px 88px; }
.hero h1 { font-weight: 300; font-size: clamp(40px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.035em; margin-top: 22px; }
.hero h1 strong { font-weight: 600; color: #fff; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.hero h1 .line:nth-child(2) > span { animation-delay: .08s; }
.hero h1 .line:nth-child(3) > span { animation-delay: .16s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.hero-side { display: grid; gap: 26px; animation: fade 1.2s .35s var(--ease) both; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.hero-side p { margin: 0; color: var(--on-navy-muted); font-size: 18px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.ghost { color: var(--on-navy); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); padding-bottom: 2px; font-size: 15px; transition: border-color .25s; }
.ghost:hover { border-color: var(--lime); }
.hero-photo { position: relative; margin-top: 8px; border-radius: 18px 18px 0 0; overflow: hidden; height: clamp(220px, 34vw, 420px); }
.hero-photo img { width: 100%; height: 125%; object-fit: cover; transform: translateY(var(--py, 0px)); will-change: transform; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,47,72,.35), rgba(6,47,72,0) 40%); }

/* ---------- inner page hero ---------- */
.page-hero .wrap { padding-block: clamp(64px, 9vw, 120px) clamp(56px, 7vw, 96px); }
.page-hero h1 { font-weight: 300; font-size: clamp(40px, 6vw, 76px); line-height: 1.04; letter-spacing: -.035em; margin-top: 18px; max-width: 16ch; animation: fade 1s var(--ease) both; }
.page-hero p.lead { color: var(--on-navy-muted); font-size: 18px; max-width: 56ch; margin: 22px 0 0; animation: fade 1s .15s var(--ease) both; }
.page-hero .meta { color: var(--on-navy-muted); margin-top: 22px; display: block; }

/* ---------- expertise ticker ---------- */
.ticker { background: var(--navy-logo); color: var(--on-navy); overflow: hidden; border-top: 1px solid rgba(255,255,255,.06); }
.ticker-track { display: flex; width: max-content; animation: tick 48s linear infinite; padding-block: 18px; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-family: var(--font-display); font-weight: 300; font-size: 22px; white-space: nowrap; padding-inline: 28px; display: inline-flex; align-items: center; gap: 56px; }
.ticker-track span::after { content: ""; width: 7px; height: 7px; border: 1.5px solid var(--lime); transform: rotate(45deg); }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
section.block { padding-block: clamp(80px, 11vw, 150px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; margin-bottom: 56px; }
.sec-head h2 { font-weight: 400; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.08; letter-spacing: -.025em; }
.sec-head p { margin: 0; color: var(--muted); max-width: 52ch; }
.label { color: var(--navy-logo); display: block; margin-bottom: 18px; }
.band .label { color: var(--lime); }
.band .sec-head p { color: var(--on-navy-muted); }
.text-link { color: var(--navy-logo); font-weight: 500; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.text-link:hover { border-color: var(--lime); }

.rv { transition: opacity .9s var(--ease), transform .9s var(--ease); }
.rv.pre { opacity: .001; transform: translateY(28px); }

/* ---------- about statement ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.statement { font-family: var(--font-display); font-weight: 300; font-size: clamp(26px, 3.6vw, 46px); line-height: 1.28; letter-spacing: -.02em; max-width: 26ch; margin: 0; }
.statement .w { color: var(--ink); transition: color .25s linear; }
.statement .w.dim { color: #9fb2bd; }
.statement em { font-style: normal; color: var(--navy-logo); font-weight: 600; }
.about-notes { display: grid; gap: 22px; padding-top: 10px; }
.about-notes p { margin: 0; color: var(--muted); }
.systems { display: flex; flex-wrap: wrap; gap: 8px; }
.systems span { font-family: var(--font-mono); font-size: 12.5px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy-logo); background: #fff; }

/* ---------- service panels ---------- */
.services-sec { background: #fff; }
.stack { display: grid; gap: 24px; }
.panel { position: sticky; top: calc(var(--header-h) + 16px); background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: clamp(28px, 4vw, 52px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; min-height: 340px; transform-origin: 50% 0; transition: transform .2s linear, filter .2s linear; }
.panel:nth-child(2) { top: calc(var(--header-h) + 32px); }
.panel:nth-child(3) { top: calc(var(--header-h) + 48px); }
.panel:nth-child(4) { top: calc(var(--header-h) + 64px); }
.panel:nth-child(5) { top: calc(var(--header-h) + 80px); }
.panel.dark { background: var(--navy); color: var(--on-navy); border-color: transparent; }
.panel.dark p { color: var(--on-navy-muted); }
.panel.dark .tags span { border-color: rgba(255,255,255,.18); color: var(--lime-soft); }
.panel h3 { font-weight: 400; font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -.02em; line-height: 1.1; }
.panel .icon { width: 54px; height: 54px; margin-bottom: 26px; }
.panel p { margin: 0 0 16px; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tags span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--navy-logo); }

/* ---------- SAP journey ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: relative; }
.steps::before { content: ""; position: absolute; top: 23px; left: 0; right: 0; height: 1px; background: rgba(255,255,255,.14); }
.steps .fill { position: absolute; top: 23px; left: 0; height: 1px; width: 100%; background: var(--lime); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); box-shadow: 0 0 12px var(--lime); }
.step { padding-right: 28px; position: relative; }
.step .dot { width: 47px; height: 47px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: var(--navy); display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; color: var(--on-navy-muted); transition: all .5s var(--ease); position: relative; }
.step.on .dot { border-color: var(--lime); color: var(--navy); background: var(--lime); }
.step h3 { font-weight: 400; font-size: 22px; margin: 26px 0 10px; }
.step p { margin: 0; color: var(--on-navy-muted); font-size: 15.5px; }
.migrate { margin-top: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 300; }
.migrate b { font-weight: 600; color: #fff; }
.migrate .arrow { flex: 1 1 120px; height: 1px; background: linear-gradient(90deg, rgba(147,189,63,0), var(--lime)); position: relative; min-width: 60px; }
.migrate .arrow::after { content: ""; position: absolute; right: 0; top: -4px; border: 4.5px solid transparent; border-left: 8px solid var(--lime); }
.migrate .arrow i { position: absolute; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--lime); animation: travel 2.6s infinite var(--ease); }
@keyframes travel { from { left: 0; opacity: 0; } 15% { opacity: 1; } to { left: calc(100% - 10px); opacity: 0; } }

/* ---------- article cards ---------- */
.carousel-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.carousel-head h2 { font-weight: 400; font-size: clamp(32px, 4.2vw, 54px); letter-spacing: -.025em; line-height: 1.08; }
.arrows { display: flex; gap: 10px; align-items: center; }
.arrows button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--navy-logo); cursor: pointer; display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s; }
.arrows button:hover { background: var(--navy-logo); color: #fff; border-color: var(--navy-logo); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 380px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; overscroll-behavior-x: contain; }
.grid-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.post-card { scroll-snap-align: start; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; text-decoration: none; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.post-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(6,47,72,.35); }
.post-card .thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-card .body { padding: 22px 24px 26px; display: grid; gap: 10px; }
.post-card .meta { color: var(--muted); font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; }
.post-card h3 { font-weight: 400; font-size: 21px; line-height: 1.3; letter-spacing: -.01em; }
.post-card p { margin: 0; color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pagination { margin-top: 56px; display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--navy-logo); }
.pagination .page-numbers.current { background: var(--navy-logo); color: #fff; border-color: var(--navy-logo); }

/* ---------- prose (pages and posts) ---------- */
.prose-wrap { padding-block: clamp(64px, 8vw, 110px); }
.prose { max-width: 740px; font-size: 18px; }
.prose > *:first-child { margin-top: 0; }
.prose p { margin: 0 0 1.3em; color: #22394a; }
.prose h2 { font-weight: 400; font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.2; margin: 1.8em 0 .6em; }
.prose h3 { font-weight: 500; font-size: 22px; line-height: 1.3; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { margin: 0 0 1.4em; padding-left: 1.3em; color: #22394a; }
.prose li { margin: 0 0 .5em; }
.prose li::marker { color: var(--lime); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--navy-logo); text-decoration-color: var(--lime); text-underline-offset: 3px; }
.page-about .prose > p:first-of-type { font-family: var(--font-display); font-weight: 300; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.4; color: var(--ink); letter-spacing: -.01em; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 64px; align-items: start; }
.article aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 18px; font-size: 15px; color: var(--muted); }
.article aside .card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: grid; gap: 12px; }
.article aside h3 { font-size: 18px; font-weight: 500; color: var(--ink); }
.article-photo { border-radius: 18px; overflow: hidden; margin-top: -40px; position: relative; z-index: 2; box-shadow: 0 30px 60px -30px rgba(6,47,72,.45); }
.article-photo img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; }

/* contact page */
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: clamp(26px, 4vw, 44px); display: grid; gap: 14px; }
.contact-card .addr { font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); color: var(--navy-logo); text-decoration: none; word-break: break-word; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: start; }

/* ---------- contact band ---------- */
.contact-band .wrap { position: relative; padding-block: clamp(90px, 12vw, 160px); }
.contact-band > canvas.circuit { opacity: .55; }
.contact-band h2 { font-weight: 300; font-size: clamp(44px, 8vw, 110px); line-height: .98; letter-spacing: -.04em; }
.contact-band h2 strong { font-weight: 600; color: var(--lime); }
.contact-band p { color: var(--on-navy-muted); max-width: 50ch; margin: 28px 0 36px; font-size: 18px; }
.mail { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mail .addr { font-family: var(--font-display); font-size: clamp(22px, 3vw, 34px); color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 4px; }
.mail .addr:hover { border-color: var(--lime); }
.copy { background: transparent; border: 1px solid rgba(255,255,255,.3); color: var(--on-navy); border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 14px; cursor: pointer; transition: all .2s; }
.copy:hover { border-color: var(--lime); color: var(--lime); }
.contact-card .copy { border-color: var(--line); color: var(--navy-logo); justify-self: start; }

/* ---------- footer ---------- */
footer.site { background: #fff; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 30px; }
footer.site img { width: 150px; height: auto; }
footer.site nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; flex-wrap: wrap; }
footer.site nav a { text-decoration: none; color: var(--ink); }
footer.site nav a:hover { color: var(--navy-logo); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
	.grid-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.article { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.article aside { position: static; }
}
@media (max-width: 900px) {
	:root { --header-h: 64px; }
	nav.main { position: fixed; inset: 0 0 auto 0; background: #fff; box-shadow: 0 20px 40px -24px rgba(6, 47, 72, .35); padding: 96px max(24px, env(safe-area-inset-right, 0px)) 36px max(24px, env(safe-area-inset-left, 0px)); transform: translateY(-105%); transition: transform .45s var(--ease); z-index: -1; }
	nav.main ul { flex-direction: column; align-items: flex-start; gap: 22px; }
	nav.main a { font-size: 22px; font-family: var(--font-display); font-weight: 300; }
	nav.main li.menu-cta > a { font-size: 17px; font-family: var(--font-body); font-weight: 500; }
	body.nav-open nav.main { transform: none; }
	.menu-btn { display: inline-block; }
	.hero-inner, .sec-head, .about-grid, .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.hero-inner { padding-block: 40px 56px; }
	.panel { grid-template-columns: minmax(0, 1fr); gap: 8px; min-height: 0; }
	.steps { grid-template-columns: minmax(0, 1fr); gap: 34px; }
	.steps::before, .steps .fill { top: 0; bottom: 0; left: 23px; right: auto; width: 1px; height: auto; }
	.steps .fill { transform-origin: 50% 0; transform: scaleY(var(--p, 0)); height: 100%; }
	.step { padding: 0 0 0 72px; }
	.step .dot { position: absolute; left: 0; top: 0; }
	.step h3 { margin-top: 8px; }
	.article-photo { margin-top: -24px; }
}
@media (max-width: 782px) {
	.admin-bar header.site { top: 46px; }
	.admin-bar .progress { top: 46px; }
}
@media (max-width: 600px) {
	body { font-size: 16px; }
	.brand img { width: 140px; }
	.grid-posts { grid-template-columns: minmax(0, 1fr); }
	.prose { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.rv.pre { opacity: 1; transform: none; }
}
