/* =========================================================
   Hulda Margrét – útlit
   Ein skrá, engar útfærslur frá síðusmiðum.
   ========================================================= */

:root {
	/* Litir */
	--snow: #EDEFEC;     /* bakgrunnur – kaldur, ljós */
	--paper: #F8F9F7;    /* reitir, tómir myndarammar */
	--basalt: #1F2427;   /* texti */
	--slate: #5B6366;    /* aukatexti */
	--frost: #CDD3D0;    /* línur */
	--glacier: #2F5D62;  /* áherslulitur: tenglar, hnappar */
	--glacier-dark: #234649;
	--on-accent: #FFFFFF;  /* texti á hnöppum */
	--error: #9B3B32;
	--error-bg: #F6ECEA;
	--footer-bg: #1F2427;
	--footer-fg: #EDEFEC;
	--footer-strong: #FFFFFF;
	--footer-muted: #9AA2A4;
	--footer-line: #3A4144;

	/* Letur */
	--serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
	--sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Mál */
	--wide: 1240px;
	--text: 66ch;
	--gutter: clamp(1rem, 4vw, 3rem);
	--space: clamp(3.5rem, 8vw, 7rem);
	--mark: 26px; /* bil fyrir skurðarmerki */
}

/* Dökkur hamur: fylgir stillingu stýrikerfisins (NN/g mælir með ljósu sem sjálfgefnu,
   en að bjóða dökkt fyrir þá sem kjósa það). */
@media (prefers-color-scheme: dark) {
	:root {
		--snow: #1A1F21;
		--paper: #232A2D;
		--basalt: #E4E8E6;
		--slate: #A6AEB0;
		--frost: #384144;
		--glacier: #86BCC1;
		--glacier-dark: #A7D1D5;
		--on-accent: #10282B;
		--error: #E59A90;
		--error-bg: #3A2522;
		--footer-bg: #121618;
		--footer-fg: #E4E8E6;
		--footer-strong: #FFFFFF;
		--footer-muted: #8E979A;
		--footer-line: #2C3437;
		color-scheme: dark;
	}
}

/* Í síma eru skurðarmerkin minni svo þau rúmist innan spássíunnar. */
@media (max-width: 640px) {
	:root { --mark: 14px; }
}

/* ---------- Grunnur ---------- */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: 6rem;
}

body {
	margin: 0;
	background: var(--snow);
	color: var(--basalt);
	font-family: var(--sans);
	font-size: 1.125rem;
	line-height: 1.6;
	font-optical-sizing: auto;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: clip; /* aldrei lárétt skrun á síðunni sjálfri */
}

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

a {
	color: var(--glacier);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}
a:hover { color: var(--glacier-dark); text-decoration-thickness: 2px; }

:focus-visible {
	outline: 2px solid var(--glacier);
	outline-offset: 3px;
}

h1, h2, h3, h4 {
	font-family: var(--serif);
	font-weight: 500;
	line-height: 1.1;
	margin: 0 0 0.5em;
	text-wrap: balance;
}

p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }

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

.hm-skip {
	position: absolute;
	left: 1rem; top: -4rem;
	z-index: 100;
	padding: 0.75rem 1rem;
	background: var(--basalt);
	color: var(--snow);
}
.hm-skip:focus { top: 1rem; }

/* ---------- Haus ---------- */

.hm-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--snow) 94%, transparent);
	backdrop-filter: saturate(1.2) blur(8px);
	border-bottom: 1px solid transparent;
}
.admin-bar .hm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .hm-header { top: 0; position: relative; } }

.hm-header__inner {
	max-width: calc(var(--wide) + 2 * var(--gutter));
	margin: 0 auto;
	padding: 1.1rem var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.hm-header__actions {
	display: flex;
	align-items: center;
	gap: 1.25rem;
	flex-shrink: 0;
}
.hm-button--small {
	padding: 0.6rem 1rem;
	font-size: 0.9rem;
}
.hm-nav { flex: 1 1 auto; }

.hm-mark {
	display: flex;
	align-items: baseline;
	gap: 0.6rem;
	color: var(--basalt);
	text-decoration: none;
}
.hm-mark:hover { color: var(--basalt); }
.hm-mark__name {
	font-family: var(--serif);
	font-size: 1.6rem;
	font-weight: 500;
	letter-spacing: -0.01em;
	line-height: 1;
}
.hm-mark__role {
	font-size: 0.875rem;
	color: var(--slate);
}

/* Valmynd */
.hm-nav__list,
.hm-nav__list ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.hm-nav__list {
	display: flex;
	gap: 0.25rem 1.4rem;
	flex-wrap: wrap;
	justify-content: flex-end;
}
.hm-nav__list a {
	display: block;
	padding: 0.35rem 0;
	color: var(--basalt);
	font-size: 0.95rem;
	text-decoration: none;
}
.hm-nav__list a:hover,
.hm-nav__list [aria-current="page"],
.hm-nav__list .current-menu-ancestor > a {
	color: var(--glacier);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.35em;
}
.hm-nav__list > li { position: relative; }
.hm-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: -1rem;
	min-width: 15rem;
	padding: 0.6rem 1rem;
	background: var(--paper);
	border: 1px solid var(--frost);
	visibility: hidden;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.hm-nav__list li:hover > .sub-menu,
.hm-nav__list li:focus-within > .sub-menu {
	visibility: visible;
	opacity: 1;
	transform: none;
}

.hm-nav-toggle {
	display: none;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0;
	background: none;
	border: 0;
	color: var(--basalt);
	font: inherit;
	font-size: 0.95rem;
	cursor: pointer;
}
.hm-nav-toggle__bars,
.hm-nav-toggle__bars::before {
	display: block;
	width: 20px;
	height: 1.5px;
	background: currentColor;
	position: relative;
	transition: transform .2s;
}
.hm-nav-toggle__bars::before {
	content: "";
	position: absolute;
	top: -6px;
}
.hm-nav-toggle[aria-expanded="true"] .hm-nav-toggle__bars { transform: rotate(45deg); }
.hm-nav-toggle[aria-expanded="true"] .hm-nav-toggle__bars::before { transform: translateY(6px) rotate(-90deg); }

/* Spjaldtölvur þversum (t.d. iPad): valmyndin helst sýnileg en þjappast saman. */
@media (min-width: 961px) and (max-width: 1280px) {
	.hm-mark__role { display: none; }
	.hm-nav__list { gap: 0.25rem 1.1rem; flex-wrap: nowrap; }
	.hm-nav__list a { font-size: 0.9rem; }
	.hm-header__inner { gap: 1.25rem; }
}
@media (min-width: 961px) and (max-width: 1100px) {
	.hm-hide-sm { display: none; }
}
.hm-mark__name, .hm-nav__list > li > a { white-space: nowrap; }

@media (max-width: 520px) {
	.hm-hide-sm { display: none; }
	.hm-header__inner { flex-wrap: nowrap; }
	.hm-header__inner:has(.hm-nav.is-open) { flex-wrap: wrap; }
}
@media (max-width: 420px) {
	.hm-mark__role { display: none; }
	.hm-header__actions { gap: 0.75rem; }
	.hm-nav-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.hm-nav-toggle { padding: 0.75rem 0.25rem; }
}

@media (max-width: 960px) {
	.hm-nav-toggle { display: flex; }
	.hm-header__inner { flex-wrap: wrap; gap: 0.75rem 1rem; }
	.hm-nav {
		display: none;
		order: 3;
		flex-basis: 100%;
		padding: 0.5rem 0 1.5rem;
	}
	.hm-nav.is-open { display: block; }
	.hm-nav__list { flex-direction: column; gap: 0; }
	.hm-nav__list > li { border-top: 1px solid var(--frost); }
	.hm-nav__list a { padding: 0.8rem 0; font-size: 1.1rem; }
	.hm-nav__list .sub-menu {
		position: static;
		visibility: visible;
		opacity: 1;
		transform: none;
		background: none;
		border: 0;
		padding: 0 0 0.6rem 1rem;
	}
	.hm-nav__list .sub-menu a { padding: 0.35rem 0; font-size: 1rem; color: var(--slate); }
}

/* ---------- Almennt skipulag ---------- */

.hm-main { display: block; }

.hm-hero,
.hm-paths,
.hm-page,
.hm-content--front {
	max-width: calc(var(--wide) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

/* ---------- Myndarammi með skurðarmerkjum ---------- */

.hm-frame {
	position: relative;
	padding: var(--mark);
	margin: 0;
}
.hm-frame__marks {
	position: absolute;
	inset: 0;
	pointer-events: none;
	--m: var(--mark);
	--l: calc(var(--mark) - 8px);
	--c: var(--basalt);
	background:
		linear-gradient(var(--c), var(--c)) left var(--m) top 0 / 1px var(--l) no-repeat,
		linear-gradient(var(--c), var(--c)) left 0 top var(--m) / var(--l) 1px no-repeat,
		linear-gradient(var(--c), var(--c)) right var(--m) top 0 / 1px var(--l) no-repeat,
		linear-gradient(var(--c), var(--c)) right 0 top var(--m) / var(--l) 1px no-repeat,
		linear-gradient(var(--c), var(--c)) left var(--m) bottom 0 / 1px var(--l) no-repeat,
		linear-gradient(var(--c), var(--c)) left 0 bottom var(--m) / var(--l) 1px no-repeat,
		linear-gradient(var(--c), var(--c)) right var(--m) bottom 0 / 1px var(--l) no-repeat,
		linear-gradient(var(--c), var(--c)) right 0 bottom var(--m) / var(--l) 1px no-repeat;
}
.hm-frame img { width: 100%; }

.hm-frame__blank {
	display: flex;
	align-items: flex-end;
	aspect-ratio: 4 / 5;
	padding: 1.25rem;
	background: var(--paper);
}
.hm-frame__hint {
	font-size: 0.875rem;
	color: var(--slate);
	max-width: 26ch;
}

/* ---------- Forsíða ---------- */

.hm-hero {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
	padding-top: clamp(2rem, 6vw, 5rem);
	padding-bottom: var(--space);
}
.hm-hero__title {
	font-size: clamp(2.6rem, 5.2vw, 4.7rem);
	line-height: 1.02;
	letter-spacing: -0.015em;
	margin-bottom: 0.45em;
}
.hm-hero__lead {
	font-size: 1.2rem;
	color: var(--slate);
	max-width: 36ch;
	margin-bottom: 2rem;
}
.hm-hero__frame {
	margin-right: calc(-1 * var(--mark));
	justify-self: end;
	width: fit-content;
	max-width: calc(100% + var(--mark));
}
/* Myndin sjálf er aldrei skorin, en hún má ekki ýta hnappnum niður fyrir skjáinn. */
.hm-hero__frame img {
	width: auto;
	max-width: 100%;
	max-height: min(78vh, 900px);
}
.hm-hero__frame.hm-frame--blank { width: auto; justify-self: stretch; }
.hm-hero__frame .hm-frame__blank { aspect-ratio: 5 / 6; }

@media (max-width: 900px) {
	.hm-hero { grid-template-columns: 1fr; align-items: start; }
	.hm-hero__frame { margin-inline: calc(-1 * var(--mark)); justify-self: start; }
	.hm-hero__frame img { max-height: 70vh; }
	.hm-hero__frame .hm-frame__blank { aspect-ratio: 4 / 3; }
}

/* Leiðir inn á vefinn */
.hm-paths { padding-bottom: var(--space); }
.hm-paths ul { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--frost); }
.hm-path { border-top: 1px solid var(--frost); }
.hm-path a {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 7.5rem;
	gap: 1.5rem;
	align-items: center;
	padding: 1.6rem 0;
	color: var(--basalt);
	text-decoration: none;
}
.hm-path__title {
	font-family: var(--serif);
	font-size: clamp(1.9rem, 3.8vw, 3.1rem);
	line-height: 1.05;
	letter-spacing: -0.01em;
	transition: color .15s;
}
.hm-path__text { color: var(--slate); font-size: 1rem; max-width: 34ch; }
.hm-path__img { grid-column: 3; }
.hm-path__img img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.hm-path a:hover .hm-path__title { color: var(--glacier); }

@media (max-width: 700px) {
	.hm-path a { grid-template-columns: 1fr 5rem; gap: 0.4rem 1rem; }
	.hm-path__title { grid-column: 1; }
	.hm-path__text { grid-column: 1; grid-row: 2; }
	.hm-path__img { grid-column: 2; grid-row: 1 / span 2; }
}

/* ---------- Síður ---------- */

.hm-page { padding-bottom: var(--space); }

.hm-page__header {
	padding-top: clamp(2rem, 6vw, 4.5rem);
	padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
	max-width: 52rem;
}
.hm-page__title {
	font-size: clamp(2.4rem, 5.4vw, 4.4rem);
	line-height: 1.04;
	letter-spacing: -0.015em;
	margin-bottom: 0.35em;
}
.hm-page__lead {
	font-size: clamp(1.15rem, 1.6vw, 1.35rem);
	color: var(--slate);
	max-width: 46ch;
	margin: 0;
}
.hm-page__intro--image {
	display: grid;
	grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
	gap: clamp(2rem, 5vw, 4.5rem);
	align-items: center;
	padding-top: clamp(2rem, 6vw, 4.5rem);
	margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.hm-page__intro--image .hm-page__header { padding: 0; }
.hm-page__image {
	margin: 0 calc(-1 * var(--mark)) 0 0;
	justify-self: end;
	width: fit-content;
	max-width: calc(100% + var(--mark));
}
/* Myndin efst á síðu má ekki ýta textanum niður fyrir skjábrún – hún er aldrei skorin, bara minnkuð. */
.hm-page__image img {
	width: auto;
	max-width: 100%;
	max-height: min(66vh, 720px);
}
@media (max-width: 900px) {
	.hm-page__intro--image { grid-template-columns: 1fr; }
	.hm-page__image { justify-self: start; margin-inline: calc(-1 * var(--mark)); }
	.hm-page__image img { max-height: 55vh; }
}

.hm-crumbs ol {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0 0 1.25rem;
	padding: 0;
	font-size: 0.9rem;
	color: var(--slate);
}
.hm-crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--frost); }
.hm-crumbs a { color: var(--slate); }

/* ---------- Meginmál úr ritlinum ---------- */

.hm-content > * { max-width: var(--text); }
.hm-content > .alignwide,
.hm-content > .alignfull,
.hm-content > .hm-gallery,
.hm-content > .hm-prices,
.hm-content > .hm-services,
.hm-content > .hm-projects,
.hm-content > .hm-empty,
.hm-content > .hm-clients,
.hm-content > .hm-split,
.hm-content > .wp-block-columns,
.hm-content > .wp-block-gallery,
.hm-content > .wp-block-image.alignwide { max-width: none; }

.hm-content--front { padding-bottom: var(--space); }

.hm-content h2 {
	font-size: clamp(1.8rem, 3vw, 2.4rem);
	margin-top: 2.2em;
	letter-spacing: -0.01em;
}
.hm-content h3 {
	font-size: 1.45rem;
	margin-top: 1.8em;
}
.hm-content > :first-child { margin-top: 0; }
.hm-content ul, .hm-content ol { padding-left: 1.2em; }
.hm-content li { margin-bottom: 0.35em; }
.hm-content li::marker { color: var(--slate); font-variant-numeric: lining-nums; }
.hm-content .hm-services,
.hm-content .hm-projects,
.hm-content .hm-contact-lines { padding-left: 0; }
.hm-content .hm-services li,
.hm-content .hm-projects li { margin-bottom: 0; }
.hm-content blockquote {
	margin: 2.5rem 0;
	padding: 0;
	border: 0;
	font-family: var(--serif);
	font-size: clamp(1.4rem, 2.4vw, 1.9rem);
	line-height: 1.3;
}
.hm-content blockquote cite {
	display: block;
	margin-top: 0.8rem;
	font-family: var(--sans);
	font-size: 0.95rem;
	font-style: normal;
	color: var(--slate);
}
.hm-content figure { margin: 2rem 0; }
.hm-content figcaption,
.hm-content .wp-element-caption {
	font-size: 0.875rem;
	color: var(--slate);
	margin-top: 0.6rem;
}
.hm-content hr {
	border: 0;
	border-top: 1px solid var(--frost);
	margin: 3rem 0;
}

/* Tveir dálkar: texti + listi (t.d. „Hvað er innifalið“) */
.hm-split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	gap: 1rem clamp(2rem, 5vw, 5rem);
	margin: 2.5rem 0;
}
.hm-split > * { margin-top: 0; }

/* ---------- Hnappar ---------- */

.hm-button,
.wp-block-button__link {
	display: inline-block;
	padding: 0.85rem 1.5rem;
	border: 1px solid var(--glacier);
	border-radius: 2px;
	background: var(--glacier);
	color: var(--on-accent);
	font: inherit;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}
.hm-button:hover,
.wp-block-button__link:hover {
	background: var(--glacier-dark);
	border-color: var(--glacier-dark);
	color: var(--on-accent);
}
.hm-button--light {
	background: var(--footer-fg);
	border-color: var(--footer-fg);
	color: var(--footer-bg);
}
.hm-button--light:hover { background: var(--footer-strong); border-color: var(--footer-strong); color: var(--footer-bg); }
.hm-cta { margin: 2.5rem 0; }

/* ---------- Myndasöfn ---------- */

/* Línur sem halda röðinni (vinstri → hægri); breidd hverrar myndar fer eftir hlutföllum hennar. */
.hm-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 2.5rem 0;
}
.hm-gallery::after { content: ""; flex: 1 1 15rem; }
.hm-gallery__item {
	margin: 0;
	flex: var(--r, 1) 1 calc(var(--r, 1) * 15rem);
	min-width: 0;
}
.hm-gallery__item img { aspect-ratio: var(--r, auto); object-fit: cover; height: auto; }
@media (max-width: 40rem) {
	.hm-gallery { gap: 8px; }
	.hm-gallery::after { flex-basis: 8rem; }
	.hm-gallery__item { flex-basis: calc(var(--r, 1) * 9rem); }
}
.hm-gallery__item a { display: block; cursor: zoom-in; }
.hm-gallery__item img {
	width: 100%;
	background: var(--paper);
	transition: opacity .2s;
}
.hm-gallery__item a:hover img { opacity: 0.88; }
.hm-gallery__item figcaption {
	font-size: 0.85rem;
	color: var(--slate);
	padding-top: 0.4rem;
}
.hm-gallery--wide { gap: 2.5rem; }
.hm-gallery--wide .hm-gallery__item { flex-basis: 100%; }

/* Undirsíður sem spjöld (Fyrirtækjaþjónusta, Einstaklingar) */
.hm-services,
.hm-projects {
	list-style: none;
	margin: 2.5rem 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2.5rem 1.5rem;
}
@media (max-width: 900px) { .hm-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .hm-services { grid-template-columns: 1fr; } }
.hm-projects { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
.hm-service a,
.hm-project a {
	display: block;
	color: var(--basalt);
	text-decoration: none;
}
.hm-service__img,
.hm-project__img {
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--paper);
	margin-bottom: 0.9rem;
}
.hm-project__img { aspect-ratio: 3 / 2; }
.hm-service__img img,
.hm-project__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s ease;
}
.hm-service a:hover img,
.hm-project a:hover img { transform: scale(1.025); }
.hm-service__img--empty,
.hm-project__img--empty {
	border: 1px solid var(--frost);
}
.hm-service__title,
.hm-project__title {
	display: block;
	font-family: var(--serif);
	font-size: 1.6rem;
	line-height: 1.1;
	margin-bottom: 0.3rem;
}
.hm-service a:hover .hm-service__title,
.hm-project a:hover .hm-project__title { color: var(--glacier); }
.hm-service__text,
.hm-project__text {
	display: block;
	font-size: 0.975rem;
	color: var(--slate);
}

/* ---------- Verðskrá ---------- */

.hm-prices {
	margin: 2.5rem 0 3rem;
	max-width: 52rem;
}
.hm-prices__heading {
	font-size: 1.6rem;
	margin: 0 0 0.6rem;
}
.hm-prices__list { margin: 0; border-top: 1px solid var(--basalt); }
.hm-price {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 0.25rem 2rem;
	align-items: baseline;
	padding: 1rem 0;
	border-bottom: 1px solid var(--frost);
}
.hm-price__name { font-weight: 500; }
.hm-price__desc {
	display: block;
	font-weight: 400;
	font-size: 0.95rem;
	color: var(--slate);
	margin-top: 0.15rem;
}
.hm-price__amount {
	margin: 0;
	font-variant-numeric: lining-nums;
	text-align: right;
	white-space: nowrap;
	font-weight: 500;
}
.hm-price__amount--ask { color: var(--slate); font-weight: 400; font-style: italic; }
.hm-price__incl {
	margin: 0.4rem 0 0;
	padding-left: 1.1em;
	font-weight: 400;
	font-size: 0.95rem;
	color: var(--slate);
}
.hm-price__incl li { margin: 0 0 0.15rem; }
.hm-prices__note {
	margin: 0.9rem 0 0;
	font-size: 0.9rem;
	color: var(--slate);
}

/* Pakkar hlið við hlið */
.hm-packages {
	list-style: none;
	margin: 0;
	padding: 0 !important;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 1rem;
}
.hm-package {
	margin: 0 !important;
	padding: 1.5rem;
	background: var(--paper);
	border-top: 2px solid var(--basalt);
}
.hm-package__name {
	font-family: var(--serif);
	font-size: 1.5rem;
	font-weight: 500;
	margin: 0 0 0.2rem;
}
.hm-package__price {
	font-size: 1.25rem;
	font-weight: 500;
	font-variant-numeric: lining-nums;
	margin: 0 0 1rem;
}
.hm-package .hm-price__incl { color: var(--basalt); font-size: 0.95rem; }
.hm-package .hm-price__incl li { margin-bottom: 0.35rem; }
.hm-content > .hm-prices:has(.hm-packages) { max-width: none; }
.hm-prices:has(.hm-packages) { max-width: none; }

/* Prentverð: tafla */
.hm-table-wrap { overflow-x: auto; }
.hm-print-table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: lining-nums;
}
.hm-print-table th,
.hm-print-table td {
	padding: 0.75rem 1rem 0.75rem 0;
	border-bottom: 1px solid var(--frost);
	text-align: right;
	white-space: nowrap;
}
.hm-print-table th:first-child { text-align: left; }
.hm-print-table thead th {
	border-bottom: 1px solid var(--basalt);
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--slate);
}
.hm-print-table tbody th { font-weight: 500; }

/* Viðskiptavinir */
.hm-clients {
	margin: 3rem 0;
	padding-top: 2rem;
	border-top: 1px solid var(--frost);
}
.hm-clients__heading {
	font-family: var(--sans);
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--slate);
	margin: 0 0 1.25rem;
}
.hm-clients__logos {
	list-style: none;
	margin: 0;
	padding: 0 !important;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
	gap: 0.75rem;
}
.hm-clients__logos li { margin: 0; }
.hm-clients__logos img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 2;
	object-fit: contain;
	background: #fff;
	border: 1px solid var(--frost);
	border-radius: 6px;
}
@media (max-width: 30rem) {
	.hm-clients__logos { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
}
.hm-clients__names {
	columns: 3 12rem;
	column-gap: 2rem;
	margin: 0;
	padding: 0 !important;
	list-style: none;
	font-size: 0.975rem;
}
.hm-clients__names li { margin: 0 0 0.3rem; break-inside: avoid; }
.hm-content > .hm-clients { max-width: none; }

.hm-inline-price { white-space: nowrap; font-variant-numeric: lining-nums; }

@media (max-width: 520px) {
	.hm-price { grid-template-columns: 1fr; }
	.hm-price__amount { text-align: left; }
}

/* ---------- Form ---------- */

.hm-form {
	max-width: 46rem;
	margin: 2rem 0;
}
.hm-form__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
	gap: 0 1.25rem;
}
.hm-field { margin: 0 0 1.25rem; }
.hm-field label,
.hm-field legend {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.95rem;
	font-weight: 500;
}
.hm-field__opt { font-weight: 400; color: var(--slate); }
.hm-field input[type="text"],
.hm-field input[type="email"],
.hm-field input[type="tel"],
.hm-field input[type="date"],
.hm-field textarea {
	width: 100%;
	padding: 0.75rem 0.85rem;
	border: 1px solid var(--frost);
	border-radius: 2px;
	background: var(--paper);
	color: var(--basalt);
	font: inherit;
	font-size: 1rem;
}
.hm-field input:focus,
.hm-field textarea:focus {
	border-color: var(--glacier);
	outline: 2px solid color-mix(in srgb, var(--glacier) 25%, transparent);
	outline-offset: 0;
}
.hm-field textarea { min-height: 9rem; resize: vertical; }
.hm-field input:user-invalid,
.hm-field textarea:user-invalid { border-color: var(--error); }

.hm-choice { border: 0; padding: 0; margin-inline: 0; }
.hm-choice legend { padding: 0; }
.hm-choice__options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.hm-choice__opt { position: relative; }
.hm-choice__opt input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}
.hm-choice__opt span {
	display: block;
	padding: 0.5rem 0.9rem;
	border: 1px solid var(--frost);
	border-radius: 2px;
	background: var(--paper);
	font-size: 0.95rem;
	font-weight: 400;
}
.hm-choice__opt input:checked + span {
	border-color: var(--glacier);
	background: var(--glacier);
	color: var(--on-accent);
}
.hm-choice__opt input:focus-visible + span {
	outline: 2px solid var(--glacier);
	outline-offset: 2px;
}

.hm-form__note { font-size: 0.875rem; color: var(--slate); }
.hm-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.hm-form__errors {
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	border-left: 3px solid var(--error);
	background: var(--error-bg);
}
.hm-form__errors p { margin-bottom: 0.4rem; font-weight: 500; }
.hm-form__errors ul { margin: 0; padding-left: 1.1rem; }

.hm-form-done {
	margin: 2rem 0;
	padding: 2rem;
	background: var(--paper);
	border-left: 3px solid var(--glacier);
	max-width: 46rem;
}
.hm-form-done h2 { margin-top: 0; font-size: 1.8rem; }

/* Upplýsingar við hlið forms á Hafa samband */
.hm-contact-lines { list-style: none; padding: 0 !important; margin: 0 0 1rem; }
.hm-contact-lines li { margin: 0 0 0.3rem; }

/* ---------- Tómt efni (aðeins innskráðir sjá) ---------- */

.hm-empty {
	margin: 2rem 0;
	padding: 1.5rem;
	border: 1px dashed var(--slate);
	background: var(--paper);
	color: var(--slate);
	font-size: 0.95rem;
}
.hm-empty p { margin: 0 0 0.4rem; }
.hm-empty__note { font-size: 0.8rem; }

/* ---------- Fótur ---------- */

.hm-footer {
	background: var(--footer-bg);
	color: var(--footer-fg);
	margin-top: var(--space);
}
.hm-footer a:not(.hm-button) { color: var(--footer-fg); }
.hm-footer a:not(.hm-button):hover { color: var(--footer-strong); }
.hm-footer__inner {
	max-width: calc(var(--wide) + 2 * var(--gutter));
	margin: 0 auto;
	padding: var(--space) var(--gutter) 2rem;
}
.hm-footer__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid var(--footer-line);
}
.hm-footer__big {
	font-family: var(--serif);
	font-size: clamp(2rem, 4.6vw, 3.6rem);
	line-height: 1.05;
	margin: 0;
}
.hm-footer__cols {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: 2rem 2.5rem;
	padding: 2.5rem 0;
	font-size: 0.975rem;
}
.hm-footer__cols p { margin: 0 0 0.35rem; }
.hm-footer__heading {
	font-family: var(--sans);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	margin: 0 0 0.6rem;
	color: var(--footer-strong);
}
.hm-footer__menu,
.hm-social { list-style: none; margin: 0; padding: 0; }
.hm-footer__menu li,
.hm-social li { margin-bottom: 0.35rem; }
.hm-footer__legal {
	margin: 0;
	font-size: 0.85rem;
	color: var(--footer-muted);
}

/* ---------- Forsíða: markhópar ---------- */

.hm-hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.75rem;
}
.hm-hero__contact {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 1.5rem;
	margin: 1.5rem 0 0;
	font-size: 0.975rem;
	color: var(--slate);
}
.hm-hero__contact a { color: var(--basalt); }
.hm-hero__contact a:hover { color: var(--glacier); }

.hm-textlink {
	font-weight: 500;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.3em;
}

.hm-audience {
	max-width: calc(var(--wide) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
	padding-bottom: var(--space);
}
.hm-audience__head {
	display: grid;
	grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 0.5rem 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--frost);
}
.hm-audience__title {
	font-size: clamp(2rem, 3.6vw, 3rem);
	letter-spacing: -0.01em;
	margin: 0;
}
.hm-audience__title a { color: var(--basalt); text-decoration: none; }
.hm-audience__title a:hover { color: var(--glacier); }
.hm-audience__text { margin: 0; color: var(--slate); max-width: 46ch; }
.hm-audience .hm-services { margin-top: 2rem; margin-bottom: 0; }
.hm-audience .hm-projects { margin-top: 2rem; margin-bottom: 0; }
@media (max-width: 760px) {
	.hm-audience__head { grid-template-columns: 1fr; }
}

.hm-quotes {
	list-style: none;
	margin: 2rem 0 0;
	padding: 0 !important;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
	gap: 2rem 2.5rem;
}
.hm-quote { margin: 0; }
.hm-quote figure { margin: 0; }
.hm-quote blockquote {
	margin: 0 0 0.9rem;
	padding: 0;
	font-family: var(--serif);
	font-size: 1.35rem;
	line-height: 1.35;
}
.hm-quote blockquote p { margin: 0; }
.hm-quote blockquote p::before { content: "„"; }
.hm-quote blockquote p::after { content: "“"; }
.hm-quote figcaption { font-size: 0.95rem; }
.hm-quote__name { display: block; font-weight: 500; }
.hm-quote__context { display: block; color: var(--slate); }
.hm-quotes__more { margin: 1.75rem 0 0; }
.hm-content > .hm-quotes-wrap { max-width: none; }

.hm-service__price {
	display: block;
	margin-top: 0.4rem;
	font-weight: 500;
	font-variant-numeric: lining-nums;
	color: var(--basalt);
}

/* „Sýna fleiri“ í stórum myndasöfnum (í stað endalauss skruns, svo fóturinn náist) */
.hm-gallery__item[hidden] { display: none; }
.hm-more {
	display: flex;
	justify-content: center;
	margin: 1rem 0 2.5rem;
}
.hm-more button {
	padding: 0.8rem 1.4rem;
	border: 1px solid var(--basalt);
	border-radius: 2px;
	background: transparent;
	color: var(--basalt);
	font: inherit;
	font-size: 0.95rem;
	cursor: pointer;
}
.hm-more button:hover { background: var(--paper); }

/* ---------- Ljósakassi ---------- */

.hm-lightbox {
	width: 100vw;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(23, 27, 29, 0.97);
	color: var(--snow);
}
.hm-lightbox::backdrop { background: rgba(23, 27, 29, 0.97); }
.hm-lightbox[open] { display: grid; place-items: center; }
.hm-lightbox__figure {
	margin: 0;
	padding: 4rem 4.5rem 3.5rem;
	display: grid;
	place-items: center;
	max-height: 100dvh;
}
.hm-lightbox__img {
	max-width: 100%;
	max-height: calc(100dvh - 8rem);
	width: auto;
	height: auto;
	object-fit: contain;
}
.hm-lightbox__caption {
	margin-top: 0.8rem;
	font-size: 0.9rem;
	color: #B9C0C2;
	text-align: center;
}
.hm-lightbox__caption:empty { display: none; }
.hm-lightbox__count {
	position: absolute;
	top: 1.2rem;
	left: 1.5rem;
	margin: 0;
	font-size: 0.875rem;
	color: #B9C0C2;
	font-variant-numeric: tabular-nums;
}
.hm-lightbox__btn {
	position: absolute;
	width: 3rem;
	height: 3rem;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--snow);
	font-size: 2.2rem;
	line-height: 1;
	cursor: pointer;
}
.hm-lightbox__btn:hover { background: rgba(255, 255, 255, 0.08); }
.hm-lightbox__close { top: 0.75rem; right: 0.75rem; font-size: 2rem; }
.hm-lightbox__prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.hm-lightbox__next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
.hm-lightbox.is-single .hm-lightbox__prev,
.hm-lightbox.is-single .hm-lightbox__next,
.hm-lightbox.is-single .hm-lightbox__count { display: none; }

@media (max-width: 640px) {
	.hm-lightbox__figure { padding: 3.5rem 0.5rem 4.5rem; }
	.hm-lightbox__prev, .hm-lightbox__next { top: auto; bottom: 0.75rem; transform: none; }
	.hm-lightbox__prev { left: calc(50% - 3.5rem); }
	.hm-lightbox__next { right: calc(50% - 3.5rem); }
}

/* ---------- Kubbar úr ritlinum ---------- */

.wp-block-image img { height: auto; }
.wp-block-columns { gap: clamp(1.5rem, 4vw, 3rem); margin: 2.5rem 0; }
.wp-block-separator { border: 0; border-top: 1px solid var(--frost); }
.has-basalt-color { color: var(--basalt); }
.has-grjot-color { color: var(--slate); }
.has-jokull-color { color: var(--glacier); }
.has-snjor-background-color { background-color: var(--snow); }
.has-pappir-background-color { background-color: var(--paper); }

/* ---------- Minni hreyfing ---------- */

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

/* ---------- Prentun ---------- */

@media print {
	.hm-header, .hm-footer, .hm-lightbox, .hm-form, .hm-cta { display: none; }
	body { background: #fff; }
}

/* ---------- Um mig: texti við hlið myndar ---------- */

.hm-story__grid {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: clamp(2rem, 6vw, 5.5rem);
	align-items: start;
	padding-top: clamp(2rem, 6vw, 4.5rem);
}
.hm-story__grid--noimg { grid-template-columns: 1fr; }
.hm-story .hm-page__header { padding-top: 0; }
.hm-story__text .hm-content > * { max-width: 62ch; }
.hm-story__media {
	position: sticky;
	top: clamp(1.5rem, 4vw, 3rem);
}
.hm-story__image { margin: 0 calc(-1 * var(--mark)) 0 0; }
.hm-story__image img {
	width: 100%;
	height: auto;
	max-height: calc(100vh - 6rem);
	object-fit: cover;
}
.hm-story__after { margin-top: var(--space); }
@media (max-width: 900px) {
	.hm-story__grid { grid-template-columns: 1fr; }
	/* Á síma: myndin kemur strax á eftir fyrirsögninni, svo textinn. */
	.hm-story__text { display: contents; }
	.hm-story .hm-page__header { order: 1; }
	.hm-story__media { order: 2; position: static; }
	.hm-story__text .hm-content { order: 3; }
	.hm-story__image { margin-inline: calc(-1 * var(--mark)); }
	.hm-story__image img { max-height: 70vh; }
}

/* ---------- Forsíða: Um mig með mynd ---------- */

.hm-content > .hm-about { max-width: none; }
.hm-about {
	display: grid;
	grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
	gap: clamp(2rem, 6vw, 5rem);
	align-items: center;
	margin: var(--space) 0 0;
}
.hm-about > .wp-block-group__inner-container,
.hm-about__text > .wp-block-group__inner-container { display: contents; }
.hm-about__img { margin: 0; }
.hm-about__img img {
	display: block;
	width: 100%;
	max-width: 26rem;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: 50% 30%;
}
.hm-about__text > * { max-width: var(--text); }
.hm-about__text > :first-child,
.hm-about h2:first-child { margin-top: 0; }
@media (max-width: 700px) {
	.hm-about { grid-template-columns: 1fr; }
	.hm-about__img img { max-width: 20rem; }
}

/* ---------- Heiti undir aðalmynd á forsíðu ---------- */

.hm-hero__figure {
	margin: 0;
	justify-self: end;
	width: fit-content;
	max-width: 100%;
	display: grid;
}
.hm-hero__figure .hm-hero__frame { justify-self: stretch; }
.hm-hero__caption {
	padding: 0.4rem var(--mark) 0;
}
.hm-hero__caption-title {
	display: block;
	font-family: var(--serif);
	font-size: 1.6rem;
	line-height: 1.1;
	margin-bottom: 0.3rem;
}
.hm-hero__caption-text {
	display: block;
	font-size: 0.85rem;
	letter-spacing: 0.01em;
	color: var(--slate);
}
/* Myndin minnkar aðeins svo heitið sjáist án þess að skruna. */
.hm-hero__figure .hm-hero__frame img { max-height: max(26rem, min(calc(100vh - 19rem), 820px)); }
@media (max-width: 900px) {
	.hm-hero__figure { justify-self: start; }
	.hm-hero__figure .hm-hero__frame img { max-height: 70vh; }
	.hm-hero__caption { padding-inline: 0; }
}

.hm-prices-note {
	font-size: 0.9rem;
	color: var(--slate);
	margin-top: 1rem;
}

/* ---------- Vefkökuborði ---------- */

.hm-button--ghost {
	background: transparent;
	color: var(--basalt);
	border-color: var(--frost);
}
.hm-button.hm-button--ghost:hover,
.hm-button.hm-button--ghost:focus,
.hm-button.hm-button--ghost:active {
	background: transparent;
	color: var(--basalt);
	border-color: var(--basalt);
}
.hm-linkbutton {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	cursor: pointer;
}
.hm-consent {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 1000;
	padding: 0 var(--gutter) var(--gutter);
	pointer-events: none;
}
.hm-consent__inner {
	pointer-events: auto;
	max-width: 46rem;
	margin-left: auto;
	background: var(--paper);
	color: var(--basalt);
	border: 1px solid var(--frost);
	border-radius: 4px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
	padding: 1.25rem 1.5rem;
	max-height: calc(100vh - 2rem);
	overflow: auto;
}
.hm-consent__title {
	font-family: var(--serif);
	font-size: 1.4rem;
	margin: 0 0 0.4rem;
}
.hm-consent__text { margin: 0 0 1rem; font-size: 0.975rem; }
.hm-consent__text a { color: var(--glacier); }
.hm-consent__choices { border: 0; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.75rem; }
.hm-consent__choice { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.95rem; cursor: pointer; }
.hm-consent__choice input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--glacier); flex: none; }
.hm-consent__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hm-consent__actions .hm-button { padding: 0.7rem 1.2rem; }
@media (max-width: 640px) {
	.hm-consent { padding: 0; }
	.hm-consent__inner { border-radius: 0; border-width: 1px 0 0; }
	.hm-consent__actions .hm-button { flex: 1 1 auto; }
}
@media print { .hm-consent { display: none; } }
.hm-consent[hidden],
.hm-consent [hidden] { display: none !important; }
.hm-consent__id { margin: 0; font-size: 0.8rem; color: var(--slate); }
.hm-consent__id code { font-size: 0.8rem; word-break: break-all; }

/* Myndavörn: ekki hægt að velja myndir eða halda inni til að vista (iPhone/Android) */
img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
