/* -------------------------------------------------
   JP Maskinforretning – base styles
------------------------------------------------- */

:root {
	--color-forest: #1f4d2c;
	--color-forest-dark: #163a20;
	--color-amber: #e8871e;
	--color-amber-dark: #cf7412;
	--color-cream: #faf8f3;
	--color-ink: #1c1e1b;
	--color-ink-soft: #4b5148;
	--color-line: #e4e1d6;
	--radius: 14px;
	--shadow: 0 10px 30px rgba(28, 30, 27, 0.08);
	--wrap: 1180px;
	--font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-base);
	color: var(--color-ink);
	background: var(--color-cream);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

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

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

ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

h1, h2, h3, h4 {
	margin: 0 0 0.5em;
	line-height: 1.15;
	color: var(--color-forest-dark);
	font-weight: 800;
}

p {
	margin: 0 0 1em;
}

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

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

.eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--color-amber-dark);
	margin: 0 0 0.6em;
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.85em 1.6em;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.98rem;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
	border: 2px solid transparent;
}

.btn--accent {
	background: var(--color-amber);
	color: #fff;
	box-shadow: 0 8px 20px rgba(232, 135, 30, 0.35);
}

.btn--accent:hover {
	background: var(--color-amber-dark);
	transform: translateY(-2px);
}

.btn--outline {
	border-color: rgba(255, 255, 255, 0.6);
	color: inherit;
}

.btn--outline:hover {
	border-color: var(--color-forest);
	background: rgba(31, 77, 44, 0.06);
	transform: translateY(-2px);
}

.btn--outline-forest {
	border-color: var(--color-forest);
	color: var(--color-forest-dark);
}

.btn--outline-forest:hover {
	background: rgba(31, 77, 44, 0.06);
	transform: translateY(-2px);
}

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

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(250, 248, 243, 0.92);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 14px;
	padding-bottom: 14px;
}

.site-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 800;
	font-size: 1.1rem;
	color: var(--color-forest-dark);
	white-space: nowrap;
}

.custom-logo-link {
	display: block;
	line-height: 0;
}

.custom-logo {
	display: block;
	height: 54px;
	width: auto;
}

@media (max-width: 720px) {
	.custom-logo {
		height: 42px;
	}
}

.site-logo__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: var(--color-forest);
	color: #fff;
	font-weight: 800;
	font-size: 0.95rem;
	flex-shrink: 0;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 28px;
}

.site-nav__list {
	display: flex;
	align-items: center;
	gap: 26px;
	font-weight: 600;
	font-size: 0.96rem;
}

.site-nav__list a {
	color: var(--color-ink-soft);
	transition: color 0.15s ease;
}

.site-nav__list a:hover {
	color: var(--color-forest);
}

.nav-cta {
	padding: 0.6em 1.3em;
}

.nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid var(--color-line);
	border-radius: 8px;
	cursor: pointer;
}

.nav-toggle span {
	display: block;
	height: 2px;
	background: var(--color-forest-dark);
	border-radius: 2px;
}

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

.hero {
	background: linear-gradient(160deg, var(--color-forest) 0%, var(--color-forest-dark) 65%);
	color: #fff;
	overflow: hidden;
}

.hero__inner {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	align-items: center;
	gap: 40px;
	padding-top: 84px;
	padding-bottom: 84px;
	position: relative;
}

.hero .eyebrow {
	color: #ffd8a3;
}

.hero h1 {
	color: #fff;
	font-size: clamp(2.1rem, 4vw, 3.1rem);
	max-width: 18ch;
}

.hero__lead {
	font-size: 1.08rem;
	color: rgba(255, 255, 255, 0.85);
	max-width: 46ch;
}

.hero__actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 1.6em;
}

.hero__art {
	position: relative;
	height: 320px;
}

.hero__blob {
	position: absolute;
	inset: 0;
	margin: auto;
	width: 280px;
	height: 280px;
	background: radial-gradient(circle at 30% 30%, rgba(232, 135, 30, 0.5), rgba(232, 135, 30, 0) 70%);
	border-radius: 50%;
	filter: blur(4px);
}

.hero__icon {
	position: absolute;
	font-size: 3.4rem;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 24px;
	padding: 20px;
	backdrop-filter: blur(6px);
}

.hero__icon svg {
	display: block;
	width: 56px;
	height: 56px;
	color: #fff;
}

.hero__icon--1 {
	top: 8%;
	left: 6%;
}

.hero__icon--2 {
	bottom: 10%;
	left: 30%;
}

.hero__icon--3 {
	top: 32%;
	right: 4%;
}

/* -------------------------------------------------
   Sub pages (e.g. local landing pages)
------------------------------------------------- */

.hero--compact .hero__inner {
	grid-template-columns: 1fr;
	padding-top: 64px;
	padding-bottom: 64px;
}

.hero--compact h1 {
	max-width: 24ch;
}

.page-section {
	padding: 72px 0;
}

.page-section--white {
	background: #fff;
	border-bottom: 1px solid var(--color-line);
}

.page-section .section-heading {
	margin-bottom: 28px;
}

.page-section__content {
	max-width: 720px;
	color: var(--color-ink-soft);
}

.page-section__content .btn {
	margin-top: 10px;
}

/* -------------------------------------------------
   Trust strip
------------------------------------------------- */

.trust-strip {
	background: #fff;
	border-bottom: 1px solid var(--color-line);
}

.trust-strip__inner {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
	padding-top: 22px;
	padding-bottom: 22px;
}

.trust-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--color-ink-soft);
	justify-content: center;
	text-align: center;
}

.trust-item__icon {
	font-size: 1.3rem;
}

/* -------------------------------------------------
   Section heading
------------------------------------------------- */

.section-heading {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 44px;
}

.section-heading--left {
	text-align: left;
	margin-left: 0;
}

.section-heading__lead {
	color: var(--color-ink-soft);
}

/* -------------------------------------------------
   Products
------------------------------------------------- */

.products {
	padding: 90px 0;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

.product-card {
	background: #fff;
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	padding: 28px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow);
	border-color: transparent;
}

.product-card__icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.6rem;
	border-radius: 14px;
	background: rgba(31, 77, 44, 0.08);
	margin-bottom: 18px;
}

.product-card__icon svg {
	width: 34px;
	height: 34px;
	color: var(--color-forest);
}

.product-card h3 {
	font-size: 1.1rem;
	margin-bottom: 0.4em;
}

.product-card p {
	color: var(--color-ink-soft);
	margin-bottom: 0;
	font-size: 0.96rem;
}

.product-card--more {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	background: rgba(31, 77, 44, 0.05);
	border: 1.5px dashed rgba(31, 77, 44, 0.35);
}

.product-card--more:hover {
	border-color: rgba(31, 77, 44, 0.35);
}

.product-card--more p {
	max-width: 46ch;
}

.product-card__more-link {
	display: inline-block;
	margin-top: 14px;
	font-weight: 600;
	color: var(--color-amber-dark);
	text-decoration: none;
}

.product-card__more-link:hover {
	text-decoration: underline;
}

/* -------------------------------------------------
   Service
------------------------------------------------- */

.service {
	background: #fff;
	padding: 90px 0;
	border-top: 1px solid var(--color-line);
	border-bottom: 1px solid var(--color-line);
}

.service__inner {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 50px;
	align-items: center;
}

.service__list {
	margin: 1.4em 0 1.8em;
	display: grid;
	gap: 12px;
}

.service__list li {
	position: relative;
	padding-left: 28px;
	font-weight: 600;
	color: var(--color-ink);
}

.service__list li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--color-amber-dark);
	font-weight: 800;
}

.service__art {
	display: flex;
	align-items: center;
	justify-content: center;
}

.service__icon-circle {
	width: 220px;
	height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, #fff3e2, #fce2bd 70%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 5rem;
	box-shadow: var(--shadow);
}

/* -------------------------------------------------
   About
------------------------------------------------- */

.about {
	padding: 90px 0;
}

.about__content {
	max-width: 780px;
	margin: 0 auto;
	text-align: center;
	font-size: 1.08rem;
	color: var(--color-ink-soft);
}

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

.contact {
	background: var(--color-forest-dark);
	color: #fff;
	padding: 90px 0;
}

.contact .eyebrow {
	color: #ffd8a3;
}

.contact h2 {
	color: #fff;
}

.contact .section-heading__lead {
	color: rgba(255, 255, 255, 0.75);
}

.contact__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin-bottom: 32px;
}

.contact-card {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: var(--radius);
	padding: 22px;
}

.contact-card h3 {
	color: #fff;
	font-size: 0.98rem;
	margin-bottom: 0.5em;
}

.contact-card h3:not(:first-child) {
	margin-top: 1em;
}

.contact-card p {
	margin-bottom: 0;
}

.placeholder-text {
	color: #ffd8a3;
	font-weight: 600;
	font-size: 0.92rem;
	margin-bottom: 0;
}

.opening-hours {
	display: grid;
	gap: 6px;
	font-size: 0.88rem;
}

.opening-hours li {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	color: rgba(255, 255, 255, 0.85);
}

.opening-hours li span:last-child {
	font-weight: 600;
	color: #ffd8a3;
	white-space: nowrap;
}

.contact__map {
	height: 340px;
	border-radius: var(--radius);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.14);
}

.contact__map iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

.contact__map-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 16px;
}

.contact__map-actions .contact__map-link {
	margin: 0;
}

.contact__map-link {
	margin: 14px 0 0;
	text-align: right;
	font-size: 0.92rem;
}

.contact__map-link a {
	color: #ffd8a3;
	font-weight: 600;
}

.contact__map-link a:hover {
	color: #fff;
}

/* -------------------------------------------------
   Reviews
------------------------------------------------- */

.reviews {
	background: #fff;
	border-top: 1px solid var(--color-line);
}

.reviews__inner {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 56px;
	align-items: center;
	padding-top: 90px;
	padding-bottom: 90px;
}

.reviews__score {
	background: var(--color-cream);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	padding: 48px 32px;
	text-align: center;
	box-shadow: var(--shadow);
}

.reviews__number {
	display: block;
	font-size: 4.6rem;
	font-weight: 800;
	line-height: 1;
	color: var(--color-forest-dark);
}

.reviews__stars {
	display: flex;
	justify-content: center;
	gap: 5px;
	margin: 16px 0 12px;
	color: var(--color-amber);
}

.reviews__stars svg {
	width: 27px;
	height: 27px;
	fill: currentColor;
}

.reviews__count {
	margin: 0;
	color: var(--color-ink-soft);
	font-size: 0.95rem;
}

.reviews__content p {
	color: var(--color-ink-soft);
	max-width: 54ch;
}

.reviews__actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 1.5em;
}

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

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

.site-footer__inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: 40px;
	padding-top: 60px;
	padding-bottom: 40px;
}

.site-logo--footer {
	color: #fff;
	margin-bottom: 14px;
}

.site-footer__tagline {
	font-size: 0.92rem;
	max-width: 40ch;
}

.site-footer__heading {
	color: #fff;
	font-size: 0.96rem;
	margin-bottom: 1em;
}

.site-footer__links {
	display: grid;
	gap: 10px;
	font-size: 0.92rem;
}

.site-footer__links a:hover {
	color: #fff;
}

.site-footer__placeholder {
	color: rgba(255, 255, 255, 0.5);
}

.contact-card__link:hover {
	color: #ffd8a3;
}

.site-footer__bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 20px;
	padding-bottom: 24px;
	font-size: 0.85rem;
}

.back-to-top {
	font-weight: 600;
	color: rgba(255, 255, 255, 0.75);
}

.back-to-top:hover {
	color: #fff;
}

/* -------------------------------------------------
   Basic content (fallback template)
------------------------------------------------- */

.basic-content {
	padding: 80px 0;
}

/* -------------------------------------------------
   Responsive
------------------------------------------------- */

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

	.hero__art {
		height: 220px;
	}

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

	.service__art {
		order: -1;
	}

	.trust-strip__inner {
		grid-template-columns: repeat(2, 1fr);
	}

	.product-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.product-card--more {
		grid-column: 1 / -1;
	}

	.reviews__inner {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.reviews__score {
		max-width: 380px;
		margin: 0 auto;
		width: 100%;
	}

	.contact__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.site-footer__inner {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 720px) {
	.nav-toggle {
		display: flex;
	}

	.site-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--color-cream);
		border-bottom: 1px solid var(--color-line);
		flex-direction: column;
		align-items: flex-start;
		gap: 18px;
		padding: 20px 24px 26px;
		display: none;
	}

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

	.site-nav__list {
		flex-direction: column;
		align-items: flex-start;
		gap: 14px;
	}

	.nav-cta {
		width: 100%;
	}
}

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

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

	.site-footer__inner {
		grid-template-columns: 1fr;
	}
}
