/*
Theme Name: Coleoidea Blocks
Theme URI: https://coleoidea.fi/
Author: Coleoidea
Description: Coleoidean täysin lohkopohjainen WordPress-teema. Kaikki sivupohjat, osat, värit ja typografia ovat muokattavissa WordPressin sivustoeditorissa.
Version: 2.1.0
Requires at least: 6.6
Requires PHP: 7.4
Text Domain: coleoidea-blocks
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
	--coleoidea-line: rgba(184, 196, 214, 0.18);
	--coleoidea-shadow: 0 20px 55px rgba(5, 9, 15, 0.28);
}

html {
	scroll-behavior: smooth;
}

body {
	-webkit-font-smoothing: antialiased;
}

a {
	text-underline-offset: 0.18em;
}

.wp-site-blocks {
	overflow: hidden;
}

.coleoidea-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid var(--coleoidea-line);
	backdrop-filter: blur(18px);
}

.coleoidea-header .wp-block-navigation-item__content {
	position: relative;
	padding-block: 1.7rem;
}

.coleoidea-header .wp-block-navigation-item__content::after {
	content: "";
	position: absolute;
	right: 100%;
	bottom: 1.25rem;
	left: 0;
	height: 1px;
	background: var(--wp--preset--color--accent);
	transition: right 180ms ease;
}

.coleoidea-header .wp-block-navigation-item__content:hover::after,
.coleoidea-header .current-menu-item .wp-block-navigation-item__content::after {
	right: 0;
}

.coleoidea-brand {
	gap: 0.75rem;
}

.coleoidea-mark {
	position: relative;
	width: 2rem;
	height: 2rem;
	min-width: 2rem;
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 50%;
	transform: rotate(-18deg);
}

.coleoidea-mark::before,
.coleoidea-mark::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

.coleoidea-mark::before {
	width: 1.3rem;
	height: 0.62rem;
}

.coleoidea-mark::after {
	width: 0.62rem;
	height: 1.3rem;
}

.coleoidea-hero,
.coleoidea-page-hero {
	position: relative;
	overflow: hidden;
}

.coleoidea-hero {
	min-height: 43rem;
	background:
		linear-gradient(90deg, rgba(13, 19, 30, 0.98), rgba(18, 24, 36, 0.78)),
		radial-gradient(circle at 78% 30%, rgba(122, 84, 34, 0.22), transparent 35%);
}

.coleoidea-hero::before,
.coleoidea-page-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.18;
	background-image:
		linear-gradient(rgba(184, 196, 214, 0.12) 1px, transparent 1px),
		linear-gradient(90deg, rgba(184, 196, 214, 0.12) 1px, transparent 1px);
	background-size: 5rem 5rem;
	mask-image: linear-gradient(90deg, transparent 7%, #000 65%, transparent);
	pointer-events: none;
}

.coleoidea-hero-content,
.coleoidea-page-hero-content {
	position: relative;
	z-index: 2;
}

.coleoidea-kicker {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
}

.coleoidea-kicker::before {
	content: "";
	display: inline-block;
	width: 1.9rem;
	height: 1px;
	background: var(--wp--preset--color--accent);
}

.coleoidea-hero h1,
.coleoidea-page-hero h1 {
	letter-spacing: -0.055em;
}

.coleoidea-hero h1 em {
	color: var(--wp--preset--color--accent);
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 400;
}

.coleoidea-orbit {
	position: relative;
	width: min(35vw, 29rem);
	aspect-ratio: 1;
	margin-inline: auto;
	border: 1px solid rgba(184, 196, 214, 0.2);
	border-radius: 50%;
	background:
		radial-gradient(circle, rgba(198, 140, 56, 0.12) 0 12%, transparent 13% 32%, rgba(198, 140, 56, 0.27) 32.4% 32.7%, transparent 33% 49%, rgba(184, 196, 214, 0.18) 49.4% 49.7%, transparent 50% 66%, rgba(198, 140, 56, 0.18) 66.4% 66.7%, transparent 67%);
	box-shadow: 0 0 5rem rgba(122, 84, 34, 0.14);
}

.coleoidea-orbit::before,
.coleoidea-orbit::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 82%;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(184, 196, 214, 0.22), transparent);
	transform: translate(-50%, -50%) rotate(60deg);
}

.coleoidea-orbit::after {
	transform: translate(-50%, -50%) rotate(-60deg);
}

.coleoidea-orbit-core {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 5.7rem;
	height: 5.7rem;
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

.coleoidea-assurance {
	border-top: 1px solid var(--coleoidea-line);
}

.coleoidea-assurance > .wp-block-column + .wp-block-column {
	border-left: 1px solid var(--coleoidea-line);
}

.coleoidea-service-grid,
.coleoidea-values-grid {
	border: 1px solid var(--coleoidea-line);
}

.coleoidea-service-card,
.coleoidea-value-card {
	min-height: 19rem;
	background: rgba(24, 34, 51, 0.48);
	transition: background 180ms ease, transform 180ms ease;
}

.coleoidea-service-card + .coleoidea-service-card,
.coleoidea-value-card + .coleoidea-value-card {
	border-left: 1px solid var(--coleoidea-line);
}

.coleoidea-service-card:hover {
	background: var(--wp--preset--color--surface);
	transform: translateY(-0.25rem);
}

.coleoidea-service-card.is-highlighted {
	box-shadow: inset 0 -3px var(--wp--preset--color--accent);
}

.coleoidea-card-number {
	font-family: var(--wp--preset--font-family--serif);
}

.coleoidea-dark-panel {
	position: relative;
	overflow: hidden;
}

.coleoidea-dark-panel::after {
	content: "";
	position: absolute;
	right: -16rem;
	bottom: -16rem;
	width: 32rem;
	height: 32rem;
	border: 1px solid rgba(198, 140, 56, 0.13);
	border-radius: 50%;
	box-shadow:
		0 0 0 5rem rgba(198, 140, 56, 0.025),
		0 0 0 10rem rgba(198, 140, 56, 0.018);
	pointer-events: none;
}

.coleoidea-quote {
	border-right: 1px solid var(--coleoidea-line);
}

.coleoidea-process {
	border-top: 1px solid var(--coleoidea-line);
}

.coleoidea-process > .wp-block-column + .wp-block-column {
	border-left: 1px solid var(--coleoidea-line);
}

.coleoidea-journal-card {
	min-height: 21rem;
	border: 1px solid var(--coleoidea-line);
	background: rgba(13, 19, 30, 0.42);
}

.coleoidea-journal-card.is-featured {
	background:
		linear-gradient(145deg, rgba(122, 84, 34, 0.2), rgba(13, 19, 30, 0.68)),
		var(--wp--preset--color--ink);
}

.coleoidea-cta {
	background:
		linear-gradient(105deg, rgba(122, 84, 34, 0.3), transparent 48%),
		var(--wp--preset--color--ink);
}

.coleoidea-page-hero {
	background:
		radial-gradient(circle at 82% 44%, rgba(122, 84, 34, 0.18), transparent 30%),
		var(--wp--preset--color--ink);
	border-bottom: 1px solid var(--coleoidea-line);
}

.coleoidea-detail-row {
	border-top: 1px solid var(--coleoidea-line);
}

.coleoidea-detail-row:last-child {
	border-bottom: 1px solid var(--coleoidea-line);
}

.coleoidea-stat {
	min-height: 22rem;
	border: 1px solid var(--coleoidea-line);
	background:
		radial-gradient(circle at 50% 20%, rgba(198, 140, 56, 0.17), transparent 42%),
		var(--wp--preset--color--surface);
}

.coleoidea-stat .wp-block-heading {
	font-family: var(--wp--preset--font-family--serif);
	font-weight: 400;
	line-height: 0.9;
}

.coleoidea-form-slot {
	border: 1px solid var(--coleoidea-line);
	background: var(--wp--preset--color--surface);
}

.coleoidea-form-slot input:not([type="checkbox"]):not([type="radio"]),
.coleoidea-form-slot textarea,
.coleoidea-form-slot select {
	width: 100%;
	padding: 0.9rem 1rem;
	border: 1px solid rgba(184, 196, 214, 0.28);
	border-radius: 0;
	outline: none;
	background: rgba(13, 19, 30, 0.58);
	color: var(--wp--preset--color--paper);
	font: inherit;
}

.coleoidea-form-slot input:focus,
.coleoidea-form-slot textarea:focus,
.coleoidea-form-slot select:focus {
	border-color: var(--wp--preset--color--accent);
	box-shadow: 0 0 0 3px rgba(198, 140, 56, 0.12);
}

.coleoidea-form-slot button,
.coleoidea-form-slot input[type="submit"] {
	padding: 1rem 1.4rem;
	border: 1px solid var(--wp--preset--color--accent);
	border-radius: 0;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--ink);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.coleoidea-query-card {
	height: 100%;
	border: 1px solid var(--coleoidea-line);
	background: rgba(24, 34, 51, 0.48);
}

.coleoidea-query-card .wp-block-post-featured-image img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.coleoidea-post-content {
	font-size: 1.08rem;
	line-height: 1.82;
}

.coleoidea-post-content > * {
	max-width: 49rem;
	margin-right: auto;
	margin-left: auto;
}

.coleoidea-post-content > .alignwide {
	max-width: var(--wp--style--global--wide-size);
}

.coleoidea-post-content > .alignfull {
	max-width: none;
}

.coleoidea-post-content h2,
.coleoidea-post-content h3 {
	margin-top: 2.1em;
}

.coleoidea-footer {
	border-top: 1px solid var(--coleoidea-line);
}

.coleoidea-footer a:hover {
	color: var(--wp--preset--color--paper);
}

@media (max-width: 960px) {
	.coleoidea-orbit {
		position: absolute;
		right: -12rem;
		bottom: -3rem;
		width: 31rem;
		opacity: 0.38;
	}

	.coleoidea-hero .wp-block-columns {
		position: relative;
	}

	.coleoidea-service-grid,
	.coleoidea-values-grid,
	.coleoidea-process {
		flex-wrap: wrap !important;
	}

	.coleoidea-service-grid > .wp-block-column,
	.coleoidea-values-grid > .wp-block-column,
	.coleoidea-process > .wp-block-column {
		flex-basis: calc(50% - 1px) !important;
	}

	.coleoidea-service-card:nth-child(3),
	.coleoidea-value-card:nth-child(3),
	.coleoidea-process > .wp-block-column:nth-child(3) {
		border-top: 1px solid var(--coleoidea-line);
		border-left: 0;
	}

	.coleoidea-quote {
		padding-bottom: 3rem !important;
		border-right: 0;
		border-bottom: 1px solid var(--coleoidea-line);
	}
}

@media (max-width: 720px) {
	.coleoidea-header {
		padding-block: 0.65rem !important;
	}

	.coleoidea-hero {
		min-height: auto;
	}

	.coleoidea-assurance {
		flex-direction: column;
	}

	.coleoidea-assurance > .wp-block-column + .wp-block-column {
		border-top: 1px solid var(--coleoidea-line);
		border-left: 0;
	}

	.coleoidea-service-grid > .wp-block-column,
	.coleoidea-values-grid > .wp-block-column,
	.coleoidea-process > .wp-block-column {
		flex-basis: 100% !important;
	}

	.coleoidea-service-card + .coleoidea-service-card,
	.coleoidea-value-card + .coleoidea-value-card,
	.coleoidea-process > .wp-block-column + .wp-block-column {
		border-top: 1px solid var(--coleoidea-line);
		border-left: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		scroll-behavior: auto !important;
		transition: none !important;
	}
}
