/* Supplemental styles that cannot be expressed in theme.json. */

/* Language switcher: compact inline list (EN | SV). */
.actual-lang-switcher ul,
ul.actual-lang-switcher {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 0.5rem;
	align-items: center;
	font-size: 0.95rem;
}

.actual-lang-switcher li {
	margin: 0;
}

.actual-lang-switcher li + li::before {
	content: "";
	display: inline-block;
	width: 1px;
	height: 0.85em;
	margin-right: 0.5rem;
	background: var(--wp--preset--color--border);
	vertical-align: middle;
}

.actual-lang-switcher a {
	text-decoration: none;
	color: var(--wp--preset--color--muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-weight: 600;
}

.actual-lang-switcher a:hover,
.actual-lang-switcher .current-lang a,
.actual-lang-switcher .current-lang {
	color: var(--wp--preset--color--primary);
}

/* Footer logo uses the white-knockout asset on the dark footer. */
.footer-logo {
	margin: 0;
}

/* Slightly tighten the outline button used in the hero. */
.wp-block-button.is-style-outline .wp-block-button__link {
	border-width: 1.5px;
}

/* =========================================================================
   Graphical touches
   ========================================================================= */

html { scroll-behavior: smooth; }
::selection { background: var(--wp--preset--color--primary); color: #fff; }

/* --- Buttons: subtle depth + motion --- */
.wp-block-button__link {
	transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
	box-shadow: 0 6px 18px -8px rgba(11, 92, 173, .55);
}
.wp-block-button__link:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 26px -10px rgba(11, 92, 173, .7);
}
.wp-block-button.is-style-outline .wp-block-button__link { box-shadow: none; }
.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background: rgba(255, 255, 255, .12);
	transform: translateY(-2px);
}

/* --- Decorative dot grid + glow over gradient sections (hero, CTA) --- */
.has-deep-gradient-background,
.has-brand-gradient-background { position: relative; overflow: hidden; }
.has-deep-gradient-background > *,
.has-brand-gradient-background > * { position: relative; z-index: 1; }
.has-deep-gradient-background::before,
.has-brand-gradient-background::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px);
	background-size: 22px 22px;
	mask-image: linear-gradient(180deg, #000, transparent 95%);
	-webkit-mask-image: linear-gradient(180deg, #000, transparent 95%);
}
/* Soft accent glow in the hero corner */
.has-deep-gradient-background::after {
	content: "";
	position: absolute;
	z-index: 0;
	top: -180px;
	right: -140px;
	width: 520px;
	height: 520px;
	border-radius: 50%;
	pointer-events: none;
	background: radial-gradient(circle, rgba(0, 166, 166, .38), transparent 68%);
}

/* --- Section headings: gradient accent underline (centered headings) --- */
h2.has-text-align-center {
	position: relative;
	padding-bottom: .6rem;
}
h2.has-text-align-center::after {
	content: "";
	display: block;
	width: 56px;
	height: 4px;
	border-radius: 2px;
	margin: .85rem auto 0;
	background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--accent));
}

/* --- Service cards: lift, shadow and accent border on hover --- */
.wp-block-column.has-surface-background-color {
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	box-shadow: 0 1px 2px rgba(15, 27, 45, .04);
}
.wp-block-column.has-surface-background-color:hover {
	transform: translateY(-4px);
	box-shadow: 0 22px 44px -22px rgba(15, 27, 45, .35);
	border-color: var(--wp--preset--color--accent) !important;
}

/* --- Service-card icons --- */
.svc-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	margin-bottom: 1rem;
	border-radius: 12px;
	color: var(--wp--preset--color--primary);
	background: linear-gradient(135deg, rgba(11, 92, 173, .12), rgba(0, 166, 166, .14));
}
.svc-icon svg { width: 26px; height: 26px; }

/* --- Competence list: accent rule under each area title --- */
.actual-competence h3 {
	position: relative;
	padding-bottom: .5rem;
}
.actual-competence h3::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 34px;
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(90deg, var(--wp--preset--color--primary), var(--wp--preset--color--accent));
}

/* --- Partners: turn names into subtle chips --- */
.actual-partners .wp-block-group > .wp-block-paragraph,
.actual-partners p {
	transition: color .2s ease, transform .2s ease;
}
.actual-partners p:hover { color: var(--wp--preset--color--primary) !important; transform: translateY(-2px); }

/* --- Content links: animated underline --- */
.wp-block-post-content a:not(.wp-block-button__link) {
	background-image: linear-gradient(var(--wp--preset--color--accent), var(--wp--preset--color--accent));
	background-size: 0% 2px;
	background-repeat: no-repeat;
	background-position: left bottom;
	transition: background-size .25s ease;
	text-decoration: none;
}
.wp-block-post-content a:not(.wp-block-button__link):hover { background-size: 100% 2px; }
