/*
Theme Name: JG Vvs
Description: Tema för JG Vvs & Värmepumpar AB – "Lokal hantverkare".
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: jgvvs
*/

:root {
	--ink: #10202E;
	--paper: #F7F5F2;
	--white: #FFFFFF;
	--accent: #C93A1C;
	--accent-dark: #A52E15;
	--link: #0B6E99;
	--link-dark: #08506F;
	--muted: #3D4A55;
	--rule: #D6D2CC;
	--phone: #F39A2B;
	--footer-text: #C9D3DB;
	--display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
	--body: Barlow, system-ui, sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--body);
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
}

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

a {
	color: var(--link);
}

a:hover {
	color: var(--link-dark);
}

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

.wrap {
	max-width: 1280px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100;
	background: var(--white);
	color: var(--ink);
	padding: 12px 16px;
}

.skip-link:focus {
	left: 8px;
	top: 8px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

/* Toppremsa */

.topbar {
	background: var(--ink);
	color: var(--white);
	font-size: 0.9rem;
}

.topbar .wrap {
	padding-top: 8px;
	padding-bottom: 8px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
}

.topbar a {
	color: var(--white);
	font-weight: 600;
	text-decoration: none;
}

.topbar a:hover {
	text-decoration: underline;
}

/* Sidhuvud */

.site-header {
	background: var(--white);
}

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

.site-logo {
	display: block;
}

.site-logo img {
	height: 68px;
	width: auto;
	display: block;
}

.main-nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0 28px;
}

.main-nav a {
	display: block;
	padding: 10px 0;
	font-family: var(--display);
	font-size: 1.25rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--ink);
	text-decoration: none;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
	color: var(--accent);
}

/* Rubriker */

.display {
	font-family: var(--display);
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1;
	margin: 0;
}

/* Knappar */

.btn {
	display: inline-block;
	padding: 16px 28px;
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--white);
	text-decoration: none;
}

.btn:hover {
	color: var(--white);
}

.btn--accent {
	background: var(--accent);
}

.btn--accent:hover {
	background: var(--accent-dark);
}

.btn--ink {
	background: var(--ink);
}

.btn--ink:hover {
	background: #1D3447;
}

.btn-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

/* Hero */

.hero {
	padding-top: 72px;
	padding-bottom: 72px;
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: stretch;
}

.hero__text {
	flex: 1 1 520px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hero__title {
	font-size: clamp(2.7rem, 9vw, 4.6rem);
	line-height: 0.95;
	margin-bottom: 24px;
}

.hero__title span {
	color: var(--accent);
}

.hero__lead {
	margin: 0 0 32px;
	font-size: 1.2rem;
	max-width: 30rem;
}

.hero__media {
	flex: 1 1 420px;
	min-height: 28rem;
	position: relative;
}

.hero__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.photo-placeholder {
	background: repeating-linear-gradient(135deg, #DCD7D0 0 18px, #E6E1DA 18px 36px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	text-align: center;
	color: #4F4A44;
	font-size: 0.9rem;
}

.stripe {
	height: 8px;
	background: linear-gradient(90deg, #E8452C, #F39A2B 50%, #1E9BD7 50%, #1E9BD7);
}

/* Tjänster */

.services {
	background: var(--white);
}

.services .wrap {
	padding-top: 80px;
	padding-bottom: 80px;
}

.services__title {
	font-size: 2.8rem;
	margin-bottom: 40px;
}

.services__list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 2px solid var(--ink);
}

.service-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 32px;
	align-items: baseline;
	padding: 28px 0;
	border-bottom: 1px solid var(--rule);
	text-decoration: none;
	color: var(--ink);
}

.service-row:hover {
	color: var(--ink);
}

.service-row__name {
	flex: 0 1 22rem;
	font-family: var(--display);
	font-size: 2rem;
	font-weight: 700;
	line-height: 1.1;
	text-transform: uppercase;
}

.service-row:hover .service-row__name {
	color: var(--accent);
}

.service-row__text {
	flex: 1 1 320px;
	color: var(--muted);
}

.service-row__more {
	color: var(--accent);
	font-weight: 600;
	white-space: nowrap;
}

/* Om */

.about {
	padding-top: 80px;
	padding-bottom: 80px;
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	align-items: center;
}

.about__media {
	flex: 1 1 380px;
	height: 22rem;
	position: relative;
}

.about__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about__text {
	flex: 1 1 480px;
	min-width: 0;
}

.about__title {
	font-size: 2.6rem;
	margin-bottom: 16px;
}

.about__text p {
	margin: 0 0 16px;
}

.about__text > :last-child {
	margin-bottom: 0;
}

/* Undersidor */

.page-main {
	padding-top: 64px;
	padding-bottom: 80px;
}

.page-main__inner {
	max-width: 46rem;
}

.page-title {
	font-size: clamp(2.4rem, 7vw, 3.6rem);
	margin-bottom: 24px;
}

.page-lead {
	font-size: 1.25rem;
	margin: 0 0 32px;
}

.page-thumb {
	margin: 0 0 32px;
}

.page-thumb img {
	display: block;
	width: 100%;
}

.back-link {
	display: inline-block;
	margin-bottom: 24px;
	font-weight: 600;
	text-decoration: none;
}

.entry-content h2,
.entry-content h3 {
	font-family: var(--display);
	font-weight: 700;
	text-transform: uppercase;
	line-height: 1.1;
	margin: 2em 0 0.5em;
}

.entry-content h2 {
	font-size: 2rem;
}

.entry-content h3 {
	font-size: 1.5rem;
}

.entry-content > :first-child {
	margin-top: 0;
}

.page-cta {
	margin-top: 48px;
	padding-top: 32px;
	border-top: 2px solid var(--ink);
}

.page-cta p {
	margin: 0 0 20px;
	font-weight: 600;
}

.post-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 2px solid var(--ink);
}

.post-list li {
	padding: 20px 0;
	border-bottom: 1px solid var(--rule);
}

/* Sidfot */

.site-footer {
	background: var(--ink);
	color: var(--white);
}

.site-footer .wrap {
	padding-top: 72px;
	padding-bottom: 72px;
	display: flex;
	flex-wrap: wrap;
	gap: 48px;
	justify-content: space-between;
	align-items: flex-end;
}

.site-footer__call {
	flex: 1 1 480px;
	min-width: 0;
}

.site-footer__title {
	font-size: 2.8rem;
	margin-bottom: 16px;
}

.site-footer__phone {
	display: inline-block;
	font-family: var(--display);
	font-size: clamp(3rem, 12vw, 4rem);
	font-weight: 700;
	line-height: 1;
	color: var(--phone);
	text-decoration: none;
}

.site-footer__phone:hover {
	color: var(--white);
}

.site-footer__info {
	flex: 0 1 320px;
	color: var(--footer-text);
}

.site-footer__info p {
	margin: 0;
}

.site-footer__info .site-footer__name {
	margin-bottom: 4px;
	color: var(--white);
	font-weight: 600;
}

.site-footer__info a {
	color: var(--footer-text);
}

.site-footer__info a:hover {
	color: var(--white);
}

@media (max-width: 600px) {
	.site-logo img {
		height: 56px;
	}

	.hero {
		padding-top: 48px;
		padding-bottom: 48px;
	}

	.hero__media {
		min-height: 18rem;
	}

	.services .wrap,
	.about {
		padding-top: 56px;
		padding-bottom: 56px;
	}

	.site-footer .wrap {
		padding-top: 56px;
		padding-bottom: 56px;
	}
}

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