/* ==========================================================================
   Willem Olaf — v2.0 homepage (ported from approved concept)
   Loaded only on the front page. Inner pages keep main.css styling.
   ========================================================================== */
:root {
	--wo2-navy: #1B3A6B;
	--wo2-navy-deep: #0E2142;
	--wo2-navy-ink: #091630;
	--wo2-terra: #C0502A;
	--wo2-terra-bright: #E2653A;
	--wo2-paper: #F7F5F1;
	--wo2-mut: #5C6678;
	--wo2-radius: 14px;
	--wo2-font-d: 'Sora', 'Montserrat', sans-serif;
	--wo2-font-b: 'Inter', 'Open Sans', sans-serif;
	--wo2-ease: cubic-bezier(.22, .61, .36, 1);
}

body.home {
	background: var(--wo2-navy-ink);
	font-family: var(--wo2-font-b);
}

/* ---------- transparent fixed header over the hero ---------- */
body.home .site-header {
	position: fixed;
	left: 0;
	right: 0;
	top: 0;
	background: transparent;
	border-bottom-color: transparent;
	transition: background .35s, border-color .35s, box-shadow .35s;
}

body.home .site-header.is-scrolled {
	background: rgba(9, 22, 48, .92);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom-color: var(--color-accent);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}

/* ---------- reveal animation ---------- */
.js .wo2r {
	opacity: 0;
	transform: translateY(34px);
	transition: opacity .8s var(--wo2-ease), transform .8s var(--wo2-ease);
}

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

.wo2r.d1 { transition-delay: .1s; }
.wo2r.d2 { transition-delay: .22s; }
.wo2r.d3 { transition-delay: .34s; }

@media (prefers-reduced-motion: reduce) {
	.wo2-mq .track, .wo2-marquee .track, .wo2-scroll, .wo2-scroll * { animation: none !important; }
	.js .wo2r { opacity: 1; transform: none; transition: none; }
	.wo2-hero-bg { animation: none !important; }
}

/* ---------- shared ---------- */
.wo2-sec { padding: 110px 0; }

.wo2-sec-head { max-width: 720px; margin-bottom: 60px; }

.wo2-sec-head h2 {
	font-family: var(--wo2-font-d);
	font-size: clamp(1.9rem, 3.6vw, 2.9rem);
	font-weight: 800;
	line-height: 1.08;
	color: var(--wo2-navy);
}

.wo2-sec-head p { margin: 16px 0 0; color: var(--wo2-mut); font-size: 1.05rem; line-height: 1.7; }

.wo2-dark .wo2-sec-head h2 { color: #fff; }
.wo2-dark .wo2-sec-head p { color: #9DB0CC; }

.wo2-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--wo2-font-b);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: .22em;
	color: #F0B9A2;
	text-transform: uppercase;
}

.wo2-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--wo2-terra-bright); }

.wo2-eyebrow.on-light { color: var(--wo2-terra); }
.wo2-eyebrow.on-light::before { background: var(--wo2-terra); }

.wo2-btn {
	font-family: var(--wo2-font-b);
	font-weight: 600;
	font-size: 15px;
	padding: 16px 30px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: transform .25s var(--wo2-ease), background .25s, color .25s, border-color .25s;
	cursor: pointer;
}

.wo2-btn svg { transition: transform .25s var(--wo2-ease); }
.wo2-btn:hover svg { transform: translateX(4px); }

.wo2-btn-fill { background: var(--wo2-terra); color: #fff; }
.wo2-btn-fill:hover, .wo2-btn-fill:focus { background: var(--wo2-terra-bright); color: #fff; transform: translateY(-3px); }

.wo2-btn-ghost { border: 1.5px solid rgba(255, 255, 255, .45); color: #fff; }
.wo2-btn-ghost:hover, .wo2-btn-ghost:focus { border-color: #fff; background: rgba(255, 255, 255, .08); color: #fff; transform: translateY(-3px); }

.wo2-btn-white { background: #fff; color: var(--wo2-terra); }
.wo2-btn-white:hover, .wo2-btn-white:focus { background: #FFF3ED; color: var(--wo2-terra); transform: translateY(-3px); }

.wo2-btn-wa { background: var(--color-whatsapp, #25D366); color: #fff; }
.wo2-btn-wa:hover, .wo2-btn-wa:focus { background: #1DA851; color: #fff; transform: translateY(-3px); }

/* ---------- hero ---------- */
.wo2-hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	isolation: isolate;
}

.wo2-hero-slides { position: absolute; inset: 0; z-index: -2; }
.wo2-hero-bg {
	position: absolute;
	inset: 0;
	background: var(--wo2-hero-img, none) center 40% / cover no-repeat;
	opacity: 0;
	transition: opacity 1.1s ease;
}
.wo2-hero-bg.is-active { opacity: 1; animation: wo2kb 6s var(--wo2-ease) both; }
.wo2-hero-meta { position: absolute; right: 40px; bottom: 36px; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; max-width: min(520px, 46vw); }
.wo2-hero-cap { display: none; color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.35; text-align: right; background: rgba(9, 22, 48, .55); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 8px 16px; backdrop-filter: blur(4px); text-decoration: none; }
.wo2-hero-cap.is-active { display: inline-block; }
.wo2-hero-cap:hover, .wo2-hero-cap:focus-visible { background: rgba(192, 80, 42, .85); border-color: transparent; color: #fff; }
.wo2-hero-dots { display: flex; gap: 8px; }
.wo2-hero-dot { width: 26px; height: 26px; padding: 0; border: 0; background: transparent; cursor: pointer; position: relative; }
.wo2-hero-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: rgba(255, 255, 255, .45); transition: background .25s, transform .25s; }
.wo2-hero-dot.is-active::before { background: #fff; transform: scale(1.35); }
.wo2-hero-dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 50%; }

@keyframes wo2kb { from { transform: scale(1.08); } to { transform: scale(1); } }

.wo2-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(180deg, rgba(9, 22, 48, .55) 0%, rgba(9, 22, 48, .18) 40%, rgba(9, 22, 48, .88) 100%),
		linear-gradient(100deg, rgba(9, 22, 48, .72) 0%, rgba(9, 22, 48, .1) 65%);
}

.wo2-hero-inner { padding-top: 150px; padding-bottom: 120px; color: #fff; }

.wo2-hero h1 {
	font-family: var(--wo2-font-d);
	font-size: clamp(2.6rem, 6.2vw, 4.9rem);
	font-weight: 800;
	line-height: 1.08;
	margin: 22px 0;
	max-width: 15ch;
	color: #fff;
}

.wo2-hero h1 em {
	font-style: normal;
	color: var(--wo2-terra-bright);
	position: relative;
	white-space: nowrap;
}

.wo2-hero h1 em::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: .06em;
	height: .1em;
	background: var(--wo2-terra);
	opacity: .5;
	border-radius: 3px;
}

.wo2-hero p { font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 54ch; color: #C9D4E6; line-height: 1.65; }

.wo2-hero-ctas { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }

.wo2-scroll {
	position: absolute;
	right: 46px;
	bottom: 42px;
	color: #fff;
	opacity: .65;
	font-size: 12px;
	letter-spacing: .2em;
	writing-mode: vertical-rl;
	display: flex;
	align-items: center;
	gap: 10px;
}

.wo2-scroll::after {
	content: "";
	width: 1.5px;
	height: 54px;
	background: linear-gradient(#fff, transparent);
	animation: wo2drip 2s infinite;
}

@keyframes wo2drip {
	0% { transform: scaleY(0); transform-origin: top; }
	45% { transform: scaleY(1); transform-origin: top; }
	55% { transform: scaleY(1); transform-origin: bottom; }
	100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- stats band ---------- */
.wo2-stats { background: var(--wo2-navy-deep); color: #fff; }

.wo2-stats .container > .wo2-stats-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1px;
	background: rgba(255, 255, 255, .08);
	transform: translateY(-62px);
	border-radius: var(--wo2-radius);
	overflow: hidden;
	box-shadow: 0 30px 60px rgba(0, 0, 0, .35);
}

.wo2-stat { background: var(--wo2-navy-deep); padding: 34px 30px; }

.wo2-stat b {
	font-family: var(--wo2-font-d);
	font-size: clamp(1.7rem, 2.8vw, 2.5rem);
	font-weight: 800;
	display: block;
	color: #fff;
}

.wo2-stat b .unit { color: var(--wo2-terra-bright); font-size: .6em; font-weight: 700; margin-left: 4px; }

.wo2-stat small { color: #8FA3C4; font-size: 13.5px; line-height: 1.45; display: block; margin-top: 8px; }

/* ---------- applications ---------- */
.wo2-apps { background: var(--wo2-navy-ink); }

.wo2-app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.wo2-app-card {
	position: relative;
	border-radius: var(--wo2-radius);
	overflow: hidden;
	aspect-ratio: 3 / 4.1;
	display: flex;
	align-items: flex-end;
	color: #fff;
}

.wo2-app-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .9s var(--wo2-ease), filter .5s;
}

.wo2-app-card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(185deg, rgba(9, 22, 48, 0) 32%, rgba(9, 22, 48, .92) 88%);
}

.wo2-app-card:hover img, .wo2-app-card:focus img { transform: scale(1.07); filter: saturate(1.1); }

.wo2-app-card .tx { position: relative; z-index: 2; padding: 26px; }

.wo2-app-card h3 { font-family: var(--wo2-font-d); font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; color: #fff; }

.wo2-app-card .tx p {
	font-size: 13.5px;
	color: #BFCCE2;
	line-height: 1.5;
	margin: 0;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height .5s var(--wo2-ease), opacity .5s;
}

.wo2-app-card:hover .tx p, .wo2-app-card:focus .tx p { max-height: 90px; opacity: 1; }
@media (hover: none) { .wo2-app-card .tx p { max-height: none; opacity: 1; } }

.wo2-app-card .go {
	position: absolute;
	top: 18px;
	right: 18px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	display: grid;
	place-items: center;
	transition: background .3s, transform .3s var(--wo2-ease);
}

.wo2-app-card:hover .go { background: var(--wo2-terra); transform: rotate(45deg); }

/* ---------- featured project ---------- */
.wo2-feature { background: var(--wo2-paper); }

.wo2-feat-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; align-items: center; }

.wo2-feat-media {
	position: relative;
	border-radius: var(--wo2-radius);
	overflow: hidden;
	box-shadow: 0 40px 80px rgba(14, 33, 66, .25);
}

.wo2-feat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--wo2-ease); }
.wo2-feat-media:hover img { transform: scale(1.04); }

.wo2-chip-float {
	position: absolute;
	left: 26px;
	bottom: 26px;
	background: rgba(9, 22, 48, .85);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: #fff;
	border-radius: 12px;
	padding: 16px 22px;
	border-left: 4px solid var(--wo2-terra);
}

.wo2-chip-float b { font-family: var(--wo2-font-d); font-size: 1.6rem; display: block; }
.wo2-chip-float small { color: #9DB0CC; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

.wo2-feat-tx h2 {
	font-family: var(--wo2-font-d);
	font-size: clamp(1.8rem, 3vw, 2.5rem);
	font-weight: 800;
	color: var(--wo2-navy);
	margin: 18px 0 20px;
	line-height: 1.12;
}

.wo2-feat-tx > p { color: var(--wo2-mut); line-height: 1.75; }

.wo2-feat-list { list-style: none; margin: 26px 0 34px; padding: 0; display: grid; gap: 14px; }

.wo2-feat-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; }
.wo2-feat-list svg { flex-shrink: 0; margin-top: 2px; }

.wo2-link-arrow { color: var(--wo2-terra); font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.wo2-link-arrow svg { transition: transform .25s var(--wo2-ease); }
.wo2-link-arrow:hover { color: var(--wo2-terra-bright); }
.wo2-link-arrow:hover svg { transform: translateX(5px); }

/* ---------- products ---------- */
.wo2-products { background: #fff; }

.wo2-prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.wo2-prod-card {
	border-radius: var(--wo2-radius);
	overflow: hidden;
	background: var(--wo2-paper);
	transition: transform .35s var(--wo2-ease), box-shadow .35s;
	border: 1px solid #ECE8E1;
	display: block;
}

.wo2-prod-card:hover { transform: translateY(-8px); box-shadow: 0 30px 50px rgba(14, 33, 66, .14); }

.wo2-prod-card .ph { height: 170px; overflow: hidden; }
.wo2-prod-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--wo2-ease); }
.wo2-prod-card:hover .ph img { transform: scale(1.08); }

.wo2-prod-card .tx { padding: 22px 22px 26px; }
.wo2-prod-card h3 { font-family: var(--wo2-font-d); font-size: 1.08rem; color: var(--wo2-navy); font-weight: 700; margin: 0; }
.wo2-prod-card .tx p { font-size: 13.5px; color: var(--wo2-mut); line-height: 1.55; margin: 10px 0 16px; }
.wo2-prod-card .dl { font-size: 13px; font-weight: 600; color: var(--wo2-terra); display: inline-flex; gap: 7px; align-items: center; }

/* ---------- standards marquee ---------- */
.wo2-marquee { background: var(--wo2-navy); padding: 34px 0; overflow: hidden; }

.wo2-marquee .track { display: flex; gap: 14px; width: max-content; animation: wo2slide 36s linear infinite; }
.wo2-marquee:hover .track { animation-play-state: paused; }

@keyframes wo2slide { to { transform: translateX(-50%); } }

.wo2-mq-chip {
	border: 1px solid rgba(255, 255, 255, .22);
	color: #C9D4E6;
	border-radius: 999px;
	padding: 10px 22px;
	font-size: 13.5px;
	white-space: nowrap;
	font-weight: 500;
}

.wo2-mq-chip b { color: #fff; }

/* ---------- process ---------- */
.wo2-process { background: var(--wo2-navy-ink); }

.wo2-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: wo2step; }

.wo2-step {
	background: rgba(255, 255, 255, .04);
	border: 1px solid rgba(255, 255, 255, .09);
	border-radius: var(--wo2-radius);
	padding: 38px 32px;
	transition: background .35s, transform .35s var(--wo2-ease);
}

.wo2-step:hover { background: rgba(255, 255, 255, .07); transform: translateY(-6px); }

.wo2-step::before {
	counter-increment: wo2step;
	content: "0" counter(wo2step);
	font-family: var(--wo2-font-d);
	font-weight: 800;
	font-size: 3rem;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--wo2-terra-bright);
	display: block;
	margin-bottom: 18px;
}

.wo2-step h3 { color: #fff; font-family: var(--wo2-font-d); font-size: 1.15rem; margin: 0 0 12px; }
.wo2-step p { color: #9DB0CC; font-size: 14.5px; line-height: 1.65; margin: 0; }

/* ---------- CTA band ---------- */
.wo2-ctaband {
	background: linear-gradient(115deg, var(--wo2-terra) 0%, #A03E1E 100%);
	color: #fff;
	position: relative;
	overflow: hidden;
}

.wo2-ctaband::after {
	content: "";
	position: absolute;
	right: -120px;
	top: -120px;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	border: 60px solid rgba(255, 255, 255, .07);
}

.wo2-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; position: relative; z-index: 2; }

.wo2-cta-inner h2 {
	font-family: var(--wo2-font-d);
	font-size: clamp(1.7rem, 3vw, 2.4rem);
	font-weight: 800;
	max-width: 22ch;
	color: #fff;
	line-height: 1.12;
}

.wo2-cta-inner p { margin: 12px 0 0; color: #FFD9C8; max-width: 48ch; line-height: 1.6; }

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
	.wo2-stats .container > .wo2-stats-grid { grid-template-columns: repeat(2, 1fr); transform: translateY(-40px); }
	.wo2-app-grid, .wo2-prod-grid { grid-template-columns: repeat(2, 1fr); }
	.wo2-feat-grid { grid-template-columns: 1fr; gap: 44px; }
	.wo2-steps { grid-template-columns: 1fr; }
	.wo2-scroll { display: none; }
}

@media (max-width: 600px) {
	.wo2-app-grid, .wo2-prod-grid { grid-template-columns: 1fr; }
	.wo2-stats .container > .wo2-stats-grid { grid-template-columns: 1fr 1fr; }
	.wo2-hero-inner { padding-top: 130px; padding-bottom: 90px; }
	.wo2-sec { padding: 76px 0; }
}

/* v2.2 product-card photo captions */
.wo2-prod-card .ph { position: relative; display: block; }
.wo2-prod-card .ph-cap {
	position: absolute; left: 0; right: 0; bottom: 0;
	padding: 18px 12px 8px;
	font-size: 11.5px; line-height: 1.35; color: #fff;
	background: linear-gradient(180deg, rgba(9, 22, 48, 0) 0%, rgba(9, 22, 48, .82) 70%);
	opacity: .95;
}
.wo2-prod-card .ph-icon { display: grid; place-items: center; background: linear-gradient(135deg, var(--wo2-navy) 0%, var(--wo2-navy-deep) 100%); }
.wo2-prod-card .ph-icon .icon { width: 54px; height: 54px; color: #F0B9A2; }

/* v2.2.2 hero slides on small screens: caption sits under the text, centred */
@media (max-width: 760px) and (orientation: portrait) {
	.wo2-hero-bg { background-image: var(--wo2-hero-img-m, var(--wo2-hero-img, none)); }
}
@media (max-width: 760px) {
	.wo2-hero-meta { left: 16px; right: 16px; bottom: 18px; max-width: none; align-items: center; }
	.wo2-hero-cap { font-size: 12.5px; text-align: center; }
	.wo2-hero-inner { padding-bottom: 130px; }
}
