/**
 * 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;

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

	/* 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;
}

.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;
	}
}
