/* Tómatur Studio — minimal white landing (mockup-faithful) */

:root {
	--bg: #ffffff;
	--text: #111111;
	--dark: #101014;
	--tomato: #e50914;
	--secondary: #606773;
	--border: #e7e7ea;
	--btn-text: #ffffff;
	--font: "Inter", system-ui, -apple-system, sans-serif;
	--header-h: 160px;
	--logo-h: 110px;
	--max: 1200px;
	--gutter: clamp(1.25rem, 4vw, 3rem);
	--radius-btn: 999px;
	--ease: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-weight: 400;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

a {
	color: inherit;
	text-decoration: none;
}

.skip-link {
	position: absolute;
	left: -9999px;
	z-index: 1000;
	background: var(--tomato);
	color: #fff;
	padding: 0.75rem 1rem;
}

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

.anchor-target {
	position: relative;
	top: calc(var(--header-h) * -1);
	height: 0;
	width: 0;
	overflow: hidden;
	pointer-events: none;
}

/* —— Header —— */

.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	min-height: var(--header-h);
	height: auto;
	overflow: visible;
	background: var(--bg);
	border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
	border-bottom-color: var(--border);
}

.site-header__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 1rem var(--gutter);
	min-height: var(--header-h);
	height: auto;
	overflow: visible;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 1.5rem;
}

.brand {
	display: inline-flex;
	align-items: center;
	overflow: visible;
	line-height: 0;
}

/* Single supplied logo file (cropped empty canvas only) */
.brand__logo {
	display: block;
	height: var(--logo-h);
	width: auto;
	max-width: none;
	object-fit: contain;
	object-position: left center;
}

.site-nav {
	justify-self: center;
}

.nav-list {
	display: flex;
	align-items: center;
	gap: clamp(1.1rem, 2vw, 1.85rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-list > li {
	position: relative;
}

.nav-list a,
.nav-list .nav-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--text);
	padding: 0.35rem 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	line-height: inherit;
}

.nav-list .is-active > a::after,
.nav-list a[aria-current="page"]::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 2px;
	background: var(--tomato);
	border-radius: 1px;
}

.nav-list a:hover,
.nav-list .nav-link:hover,
.nav-list .nav-link[aria-expanded="true"],
.nav-item--has-dropdown:hover > .nav-link,
.nav-item--has-dropdown:focus-within > .nav-link {
	color: var(--tomato);
}

.nav-chevron {
	display: inline-block;
	width: 0.45rem;
	height: 0.45rem;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-1px);
	transition: transform 0.2s var(--ease);
}

.nav-link[aria-expanded="true"] .nav-chevron {
	transform: rotate(225deg) translateY(-1px);
}

/* —— Þjónusta classic text dropdown —— */

.nav-dropdown {
	display: none;
	position: absolute;
	top: calc(100% + 0.65rem);
	left: 0;
	z-index: 120;
	min-width: 15.5rem;
	margin: 0;
	padding: 0.55rem 0;
	list-style: none;
	background: var(--bg);
	border: 1px solid var(--border);
	border-radius: 10px;
	box-shadow: 0 12px 28px rgba(16, 16, 20, 0.08);
}

.nav-dropdown a {
	display: block;
	padding: 0.7rem 1.15rem;
	font-size: 0.95rem;
	font-weight: 500;
	color: var(--text);
	white-space: nowrap;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
	color: var(--tomato);
	background: #fafafa;
}

@media (hover: hover) and (pointer: fine) {
	.nav-item--has-dropdown:hover > .nav-dropdown,
	.nav-item--has-dropdown:focus-within > .nav-dropdown,
	.nav-item--has-dropdown.is-open > .nav-dropdown {
		display: block;
	}
}

.header-cta {
	justify-self: end;
}

.nav-toggle {
	display: none;
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	padding: 11px;
	cursor: pointer;
	flex-direction: column;
	justify-content: center;
	gap: 7px;
	justify-self: end;
}

.nav-toggle span {
	display: block;
	height: 2px;
	width: 100%;
	background: var(--text);
	border-radius: 1px;
	transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
	transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
	transform: translateY(-4.5px) rotate(-45deg);
}

/* —— Buttons —— */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	font-family: inherit;
	font-weight: 600;
	font-size: 0.98rem;
	line-height: 1;
	border-radius: var(--radius-btn);
	padding: 0.9rem 1.45rem;
	border: 1.5px solid transparent;
	cursor: pointer;
	transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn--red {
	background: var(--tomato);
	color: var(--btn-text);
	border-color: var(--tomato);
}

.btn--red:hover,
.btn--red:focus-visible {
	background: #c90812;
	border-color: #c90812;
}

.btn--outline {
	background: transparent;
	color: var(--text);
	border-color: var(--text);
}

.btn--outline:hover,
.btn--outline:focus-visible {
	background: var(--text);
	color: #fff;
}

.btn__arrow {
	display: inline-block;
}

/* —— Hero —— */

.hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--bg);
	min-height: clamp(560px, 74vh, 740px);
	margin: 0;
}

.hero__curve {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
	pointer-events: none;
}

.hero__curve path {
	fill: var(--dark);
}

/* Soft red wash only on the dark side (no glass/ribbons) */
.hero::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 48%;
	height: 40%;
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(ellipse at 60% 90%, rgba(229, 9, 20, 0.22), transparent 65%);
}

.hero__inner {
	position: relative;
	z-index: 1;
	max-width: var(--max);
	margin: 0 auto;
	padding: clamp(3rem, 7vh, 5rem) var(--gutter) clamp(3.5rem, 8vh, 5.5rem);
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	align-items: center;
	gap: clamp(1.5rem, 4vw, 3rem);
	min-height: inherit;
}

.hero__content {
	max-width: 34rem;
	padding-right: 1rem;
}

.hero__eyebrow {
	margin: 0 0 1.1rem;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--secondary);
}

.hero__title {
	margin: 0 0 1.25rem;
	font-size: clamp(2.6rem, 5.5vw, 4.9rem);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.05;
	color: var(--text);
}

.hero__lead {
	margin: 0 0 2rem;
	max-width: 28rem;
	font-size: 1.08rem;
	font-weight: 400;
	line-height: 1.55;
	color: var(--secondary);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.85rem 1rem;
}

.hero__visual {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: 460px;
	padding-bottom: 1.5rem;
}

.hero__glow {
	position: absolute;
	bottom: 8%;
	left: 50%;
	width: 50%;
	height: 64px;
	transform: translateX(-50%);
	background: radial-gradient(ellipse at center, rgba(229, 9, 20, 0.5), transparent 72%);
	filter: blur(14px);
	pointer-events: none;
}

.hero__tomato {
	position: relative;
	z-index: 1;
	width: min(92%, 360px);
	height: auto;
	/* preserve original proportions — no stretch / distort */
	object-fit: contain;
}

/* —— Services —— */

.services {
	background: var(--bg);
	border-top: 1px solid var(--border);
}

.services__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: clamp(2.75rem, 6vh, 4rem) var(--gutter);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

.service {
	padding: 0.5rem clamp(1rem, 2vw, 1.75rem);
	border-right: 1px solid var(--border);
	display: flex;
	flex-direction: column;
}

.service:first-child {
	padding-left: 0;
}

.service:last-child {
	border-right: 0;
	padding-right: 0;
}

.service__icon {
	display: inline-flex;
	color: var(--tomato);
	margin-bottom: 1.15rem;
}

.service__title {
	margin: 0 0 0.55rem;
	font-size: 1.12rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
	color: var(--text);
	min-height: 2.5em;
}

.service__desc {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.45;
	color: var(--secondary);
}

/* —— Footer (minimal) —— */

.site-footer {
	border-top: 1px solid var(--border);
	padding: 1.75rem 0;
	background: var(--bg);
}

.site-footer__inner {
	max-width: var(--max);
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
}

.site-footer__brand {
	margin: 0;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--text);
}

.site-footer__copy {
	margin: 0;
	font-size: 0.88rem;
	color: var(--secondary);
}

/* —— Content pages —— */

.site-main--content {
	padding: 4rem 0 5rem;
}

.content-wrap {
	max-width: 720px;
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.content-article__title {
	font-size: clamp(2rem, 4vw, 2.6rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	margin: 0 0 1.25rem;
}

.content-article__body {
	color: var(--secondary);
	font-size: 1.05rem;
	line-height: 1.7;
}

/* —— Responsive —— */

@media (max-width: 980px) {
	:root {
		--header-h: 128px;
		--logo-h: 88px;
	}

	.header-cta {
		display: none;
	}

	.nav-toggle {
		display: flex;
	}

	.site-nav {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--bg);
		border-bottom: 1px solid var(--border);
		padding: 0.75rem var(--gutter) 1.25rem;
		justify-self: stretch;
	}

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

	.nav-list {
		flex-direction: column;
		align-items: stretch;
		gap: 0.35rem;
		width: 100%;
	}

	.nav-list > li > a,
	.nav-list > li > .nav-link {
		width: 100%;
		justify-content: space-between;
		padding: 0.65rem 0;
	}

	/* Mobile: Þjónusta nested text list */
	.nav-dropdown {
		position: static;
		left: auto;
		top: auto;
		min-width: 0;
		width: 100%;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		background: transparent;
		display: none;
		padding: 0.15rem 0 0.35rem 0.75rem;
		border-top: 1px solid var(--border);
	}

	.nav-item--has-dropdown.is-open > .nav-dropdown {
		display: block;
	}

	.nav-dropdown a {
		padding: 0.55rem 0;
		white-space: normal;
	}

	.hero {
		min-height: 0;
	}

	.hero__curve {
		display: none;
	}

	.hero__inner {
		grid-template-columns: 1fr;
		padding-bottom: 0;
		gap: 2rem;
		min-height: 0;
	}

	.hero__content {
		max-width: none;
		padding-right: 0;
	}

	.hero__visual {
		margin-left: calc(var(--gutter) * -1);
		margin-right: calc(var(--gutter) * -1);
		padding: 2.5rem var(--gutter) 3rem;
		background: var(--dark);
		min-height: 340px;
	}

	.services__inner {
		grid-template-columns: 1fr 1fr;
		gap: 0;
	}

	.service {
		padding: 1.5rem 1.25rem;
		border-right: 0;
		border-bottom: 1px solid var(--border);
	}

	.service:nth-child(odd) {
		border-right: 1px solid var(--border);
	}

	.service:nth-child(3),
	.service:nth-child(4) {
		border-bottom: 0;
	}

	.service:first-child,
	.service:last-child {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}
}

@media (max-width: 640px) {
	.hero__title {
		font-size: clamp(2.2rem, 9vw, 2.8rem);
	}

	.hero__actions {
		flex-direction: column;
		align-items: stretch;
	}

	.hero__actions .btn {
		width: 100%;
	}

	.hero__visual {
		min-height: 280px;
	}

	.hero__tomato {
		width: min(70%, 280px);
	}

	.services__inner {
		grid-template-columns: 1fr;
	}

	.service,
	.service:nth-child(odd),
	.service:first-child,
	.service:last-child {
		border-right: 0;
		border-bottom: 1px solid var(--border);
		padding: 1.5rem 0;
	}

	.service:last-child {
		border-bottom: 0;
	}

	:root {
		--header-h: 112px;
		--logo-h: 72px;
	}
}

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

	*,
	*::before,
	*::after {
		transition: none !important;
	}
}
