/**
 * FINIX theme base styles and Figma design tokens.
 *
 * Token names match the FINIX Figma file (FACELIFT → FINIX - Hjem) Styles panel.
 *
 * @package Staging_Finix_NO
 */

@font-face {
	font-family: "Poppins Fallback";
	src: local("Arial");
	size-adjust: 100%;
	ascent-override: 105%;
	descent-override: 35%;
	line-gap-override: 10%;
}

:root {
	/* Colors — confirmed from FINIX - Hjem NAV (944:41) */
	--color-bg-primary: #ffffff;
	--color-txt-body: #999999;
	--color-txt-heading: #ffffff;
	--color-accent: #eba53c;
	--color-border: #b3b9be;

	/* Footer copyright / footer nav / org.nr — Figma style --color-bg-tertiary */
	--color-bg-tertiary: #696969;

	/*
	 * Dark overlay for the mobile menu. Not painted on the NAV or Footer frames.
	 * Taken from the Figma Styles panel (--color-bg-quaternary) so the overlay
	 * is not an invented hex. Confirm if a different overlay token is preferred.
	 */
	--color-bg-quaternary: #071a45;

	/* Hero badge fill — Figma style --color-bg-light */
	--color-bg-light: #fef5e7;

	/* Hvorfor oss section fill — Figma style --color-bg-secondary (1110:82) */
	--color-bg-secondary: #f5f5f5;

	/* Layout — max-widths, never fixed bar widths */
	--finix-nav-width: 1680px;
	--finix-content-width: 1280px;
	--finix-nav-height: 80px;

	/* Hero Body (944:58) at 1920 artboard */
	--finix-hero-left-column: 864px;
	--finix-hero-image-width: 1056px;
	--finix-hero-image-height: 717px;
	--finix-hero-content-max: 680px;

	/* Typography */
	--finix-font-family: "Poppins", "Poppins Fallback", system-ui, sans-serif;
}

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

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	min-height: 100vh;
	background-color: var(--color-bg-primary);
	color: var(--color-txt-body);
	font-family: var(--finix-font-family);
	line-height: 1.5;
}

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

a {
	color: inherit;
}

button {
	font: inherit;
	cursor: pointer;
}

.site {
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 100vh;
}

.site-main {
	flex: 1 0 auto;
	width: 100%;
}

.txt-nav-links {
	font-family: var(--finix-font-family);
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
}

.txt-btn {
	font-family: var(--finix-font-family);
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
}

.txt-badge {
	font-family: var(--finix-font-family);
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
}

.H1 {
	font-family: var(--finix-font-family);
	font-size: clamp(2rem, 5vw + 1rem, 56px);
	font-weight: 600;
	line-height: 1.16;
	letter-spacing: -0.05em;
	color: var(--color-bg-quaternary);
}

.H2 {
	font-family: var(--finix-font-family);
	font-size: clamp(1.75rem, 4vw + 0.5rem, 44px);
	font-weight: 500;
	line-height: 1.14;
	letter-spacing: 0;
	color: var(--color-bg-quaternary);
}

.H3 {
	font-family: var(--finix-font-family);
	font-size: clamp(1.375rem, 2vw + 0.75rem, 28px);
	font-weight: 700;
	line-height: 1.29;
	letter-spacing: 0;
	color: var(--color-bg-quaternary);
}

.H5 {
	font-family: var(--finix-font-family);
	font-size: 18px;
	font-weight: 700;
	line-height: 28px;
	letter-spacing: 0;
}

.txt-body-primary {
	font-family: var(--finix-font-family);
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: 0;
	color: var(--color-txt-body);
}

.txt-body-secondary {
	font-family: var(--finix-font-family);
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	letter-spacing: 0;
}

.txt-list {
	font-family: var(--finix-font-family);
	font-size: 14px;
	font-weight: 400;
	line-height: 22px;
	letter-spacing: 0;
	color: var(--color-txt-body);
}

.txt-faq {
	font-family: var(--finix-font-family);
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0;
}

@media (min-width: 1025px) {
	.H1 {
		font-size: 56px;
		line-height: 65px;
	}

	.H2 {
		font-size: 44px;
		line-height: 50px;
	}

	.H3 {
		font-size: 28px;
		line-height: 36px;
	}
}

.skip-link {
	position: absolute;
	top: -100%;
	left: 1rem;
	z-index: 10000;
	padding: 0.75rem 1rem;
	background: var(--color-accent);
	color: var(--color-txt-heading);
	text-decoration: none;
	border-radius: 999px;
}

.skip-link:focus {
	top: 1rem;
	outline: 2px solid var(--color-txt-heading);
	outline-offset: 2px;
}

:focus-visible {
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
