/* ==========================================================================
   DYREKT theme — main styles
   ========================================================================== */

:root {
	--color-brand: #3c12a7;
	--color-brand-dark: #2a0b7a;
	--color-accent: #42fefd;
	--color-highlight: #fab437;
	--color-ink: #1d1838;
	--color-text: #4a4a5a;
	--color-muted-bg: #f5f5f5;
	--color-surface: #ffffff;
	--color-on-brand: #ffffff;
	--color-on-brand-soft: rgba(255, 255, 255, 0.85);
	--color-border: #e4e1ee;

	--font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

	--container: 1200px;
	--container-narrow: 860px;
	--gutter: clamp(1rem, 4vw, 2rem);
	--section-space: clamp(3.5rem, 8vw, 7rem);
	--radius: 12px;
	--header-height: 72px;
}

/* Base ------------------------------------------------------------------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-height) + 1rem);
	-webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	margin: 0;
	background: var(--color-surface);
	color: var(--color-text);
	font-family: var(--font-sans);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-brand);
}

a:focus-visible,
button:focus-visible {
	outline: 3px solid var(--color-highlight);
	outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
	color: var(--color-ink);
	line-height: 1.15;
	margin: 0 0 0.75rem;
}

p {
	margin: 0 0 1rem;
}

figure {
	margin: 0;
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.container--narrow {
	max-width: var(--container-narrow);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	left: 1rem;
	top: -100px;
	z-index: 1000;
	padding: 0.75rem 1rem;
	background: var(--color-highlight);
	color: var(--color-ink);
	font-weight: 600;
	border-radius: 6px;
}

.skip-link:focus {
	top: 1rem;
}

.button {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	border-radius: 999px;
	background: var(--color-brand);
	color: var(--color-on-brand);
	font-weight: 600;
	text-decoration: none;
}

.button:hover {
	background: var(--color-brand-dark);
}

/* Header ------------------------------------------------------------------ */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: var(--color-brand);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 0);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--header-height);
	gap: 1rem;
}

.site-header__brand {
	display: inline-flex;
	align-items: center;
}

.site-header__logo {
	height: 35px;
	width: auto;
}

.site-nav__list {
	display: flex;
	gap: 0.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	display: block;
	padding: 0.5rem 0.875rem;
	border-radius: 6px;
	color: var(--color-on-brand);
	font-size: 0.9375rem;
	font-weight: 600;
	text-decoration: none;
}

.site-nav__list a:hover,
.site-nav__list a[aria-current="page"],
.site-nav__list .current-menu-item > a {
	background: rgba(255, 255, 255, 0.12);
}

.site-nav__toggle {
	display: none;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
}

.site-nav__toggle-bar,
.site-nav__toggle-bar::before,
.site-nav__toggle-bar::after {
	display: block;
	width: 24px;
	height: 2px;
	margin-inline: auto;
	background: var(--color-on-brand);
	border-radius: 2px;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-nav__toggle-bar {
	position: relative;
}

.site-nav__toggle-bar::before,
.site-nav__toggle-bar::after {
	content: "";
	position: absolute;
	left: 0;
}

.site-nav__toggle-bar::before {
	top: -7px;
}

.site-nav__toggle-bar::after {
	top: 7px;
}

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar {
	background: transparent;
}

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar::before {
	transform: translateY(7px) rotate(45deg);
}

.site-nav__toggle[aria-expanded="true"] .site-nav__toggle-bar::after {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 860px) {
	.site-nav__toggle {
		display: inline-flex;
		align-items: center;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		background: var(--color-brand);
		border-top: 1px solid rgba(255, 255, 255, 0.12);
		box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
	}

	.site-nav.is-open {
		display: block;
	}

	/* Without JS the toggle cannot work, so keep the menu visible. */
	.no-js .site-nav {
		position: static;
		display: block;
	}

	.no-js .site-nav__toggle {
		display: none;
	}

	.site-nav__list {
		flex-direction: column;
		padding: 0.5rem var(--gutter) 1rem;
	}

	.site-nav__list a {
		padding: 0.875rem 0.5rem;
	}
}

/* Hero -------------------------------------------------------------------- */

.hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: clamp(360px, 45vw, 560px);
	background-color: var(--color-brand);
	background-image: linear-gradient(90deg, rgba(60, 18, 167, 0.92) 0%, rgba(60, 18, 167, 0.55) 55%, rgba(60, 18, 167, 0.15) 100%), var(--hero-image);
	background-size: cover;
	background-position: center right;
	color: var(--color-on-brand);
}

.hero__inner {
	padding-block: clamp(3rem, 8vw, 6rem);
}

.hero__logo {
	width: clamp(140px, 18vw, 211px);
	height: auto;
	margin-bottom: 1.5rem;
}

.hero__title {
	max-width: 14ch;
	color: var(--color-on-brand);
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.hero__title span {
	display: block;
}

.hero__lead {
	max-width: 32rem;
	color: var(--color-on-brand-soft);
	font-size: clamp(1.05rem, 1.8vw, 1.35rem);
	font-weight: 500;
}

/* Bands & split layout ---------------------------------------------------- */

.band {
	padding-block: var(--section-space);
}

.band--brand {
	background: var(--color-brand);
	color: var(--color-on-brand-soft);
}

.band--brand h2,
.band--brand h3 {
	color: var(--color-on-brand);
}

.band--muted {
	background: var(--color-muted-bg);
}

.split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: clamp(2rem, 6vw, 5rem);
}

.split--top {
	align-items: start;
}

.feature--reverse .split__media {
	order: 2;
}

/* Size by width (not width:auto + max-height) so the width/height attributes
   reserve space before lazy images load; otherwise #anchor links land short. */
.split__media img {
	margin-inline: auto;
	max-width: min(100%, 480px);
}

@media (max-width: 860px) {
	.split {
		grid-template-columns: 1fr;
	}

	.feature--reverse .split__media {
		order: 0;
	}

	.split__media img {
		max-width: min(100%, 360px);
	}
}

/* Typography helpers ------------------------------------------------------ */

.display {
	color: var(--color-brand);
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.display--light {
	color: var(--color-on-brand);
	font-size: clamp(2.75rem, 7vw, 4.5rem);
}

.display--accent,
.band--brand .display--accent {
	color: var(--color-accent);
}

.lead {
	color: var(--color-ink);
	font-size: clamp(1.1rem, 1.8vw, 1.35rem);
	font-weight: 600;
	line-height: 1.4;
}

.lead--light {
	color: var(--color-on-brand);
}

.subheading {
	margin-top: 2rem;
	font-size: 1.25rem;
	font-weight: 700;
}

.check-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.check-list li {
	position: relative;
	padding-left: 1.75rem;
	margin-bottom: 0.625rem;
}

.check-list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.45em;
	width: 0.875rem;
	height: 0.875rem;
	border-radius: 50%;
	background: var(--color-brand);
	box-shadow: inset 0 0 0 3px #e6e1f3;
}

/* Intro ------------------------------------------------------------------- */

.intro__media {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.intro__captions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1.5rem;
	margin-top: 1.5rem;
	font-size: 0.875rem;
	text-align: center;
}

.intro__captions strong {
	display: block;
	color: var(--color-accent);
}

.store-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1.5rem;
}

.store-badges img {
	height: 52px;
	width: auto;
}

/* Components -------------------------------------------------------------- */

.components__title {
	color: var(--color-ink);
	font-size: clamp(1.5rem, 3vw, 2.25rem);
	font-weight: 700;
	text-align: right;
}

.components__brand {
	display: block;
	color: var(--color-brand);
	font-size: clamp(2.75rem, 6vw, 4rem);
	font-weight: 800;
	letter-spacing: -0.02em;
}

.components__list {
	display: grid;
	gap: 1.75rem;
	margin: 0;
}

.components__list dt {
	color: var(--color-brand);
	font-size: 1.125rem;
	font-weight: 700;
}

.components__list dd {
	margin: 0.25rem 0 0;
}

@media (max-width: 860px) {
	.components__title {
		text-align: left;
	}
}

/* Protect ----------------------------------------------------------------- */

.protect__title {
	margin-bottom: 3rem;
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 800;
	text-align: center;
	text-transform: uppercase;
}

.protect__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
}

.protect__item img {
	height: 80px;
	width: auto;
	margin: 0 auto 1.25rem;
}

.protect__item h3,
.band--brand .protect__item h3 {
	margin-bottom: 0.375rem;
	color: var(--color-highlight);
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.protect__item p {
	max-width: 18rem;
	margin-inline: auto;
	color: var(--color-on-brand);
	font-weight: 600;
}

@media (max-width: 700px) {
	.protect__grid {
		grid-template-columns: 1fr;
		gap: 2.5rem;
	}
}

/* Contact ----------------------------------------------------------------- */

.contact {
	background: var(--color-muted-bg);
}

.contact__title {
	color: var(--color-brand);
	font-size: clamp(2rem, 5vw, 3.25rem);
	font-weight: 800;
	text-align: center;
	text-transform: uppercase;
}

.contact__intro {
	max-width: 36rem;
	margin: 0 auto 2.5rem;
	text-align: center;
}

.contact__card {
	max-width: 520px;
	margin-inline: auto;
	padding: clamp(1.5rem, 4vw, 2.25rem);
	background: var(--color-surface);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
}

.contact-details {
	display: grid;
	gap: 1.25rem;
	margin: 0 0 1.75rem;
	padding: 0;
	list-style: none;
	color: var(--color-ink);
	font-weight: 500;
}

.contact-details__label {
	display: block;
	color: var(--color-brand);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.contact-details a {
	color: var(--color-ink);
	font-weight: 600;
	overflow-wrap: anywhere;
}

/* Content pages ----------------------------------------------------------- */

.site-main--content,
.site-main--policy {
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.entry + .entry {
	margin-top: 3rem;
}

.entry__title {
	color: var(--color-brand);
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	font-weight: 800;
}

/* Footer ------------------------------------------------------------------ */

.site-footer {
	background: var(--color-ink);
	color: rgba(255, 255, 255, 0.75);
	font-size: 0.9375rem;
}

.site-footer__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer a {
	color: var(--color-on-brand);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--color-accent);
	text-decoration: underline;
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem 1.5rem;
	padding-block: 1.5rem;
	font-size: 0.875rem;
}

.site-footer__powered a {
	font-weight: 600;
}

.site-footer__legal p {
	margin: 0;
}

@media (max-width: 700px) {
	.site-footer__legal {
		flex-direction: column;
		align-items: flex-start;
	}
}
