/*
 * Technical Services Tatu R. – child theme styles.
 *
 * Source: Figma WEBLAYOUT_Tatur → V1 / Etusivu (1920 px artboard) and the
 * Walkia Design layout notes. Mobile first; desktop from 992 px (Bootstrap lg).
 */

/* ---------------------------------------------------------------------------
 * Tokens
 * ------------------------------------------------------------------------ */
:root {
	--louhos-primary: #e95a0c;
	--louhos-primary-rgb: 233, 90, 12;
	--louhos-primary-dark: #b8430a;
	--louhos-accent: #e95a0c;
	--louhos-link-color: #b8430a;

	--louhos-headings: #141414;
	--louhos-body-color: #141414;
	--louhos-grey: #f2f2f2;
	--louhos-border: #d9d9d9;
	--louhos-border-rgb: 217, 217, 217;

	--louhos-dark-1: #141414;
	--louhos-dark-1-rgb: 20, 20, 20;
	--louhos-dark-2: #2b2b2b;
	--louhos-dark-2-rgb: 43, 43, 43;

	--louhos-header-height: 136px;
	--louhos-radius: 0;
	--louhos-radius-lg: 0;
	--louhos-font-family: "Arimo", Helvetica, Arial, sans-serif;

	--tatur-font-heading: "Archivo", "Arial Black", Arial, sans-serif;
	--tatur-ink-soft: #4a4a4a;
	--tatur-grey-100: #f2f2f2;
	--tatur-grey-200: #e6e6e6;
	--tatur-grey-300: #d9d9d9;
	--tatur-on-dark: #fff;

	/* 1300 px content column, 120 px outer gutter at 1920 px */
	--tatur-content: 1300px;
	--tatur-gutter: clamp(1.25rem, 6.25vw, 7.5rem);
	--tatur-pad-x: clamp(1.25rem, 4.2vw, 5rem);
	--tatur-section-y: clamp(3.5rem, 6.25vw, 7.5rem);

	/* Type scale: 390 px → 1920 px */
	--tatur-fs-h1: clamp(1.75rem, 1.1rem + 2.5vw, 4.125rem);
	--tatur-fs-h2: clamp(1.75rem, 1.5rem + 1.05vw, 2.75rem);
	--tatur-fs-h2-lg: clamp(1.875rem, 1.59rem + 1.18vw, 3rem);
	--tatur-fs-h3: clamp(1.25rem, 1.18rem + 0.39vw, 1.625rem);
	--tatur-fs-body: clamp(1.0625rem, 1rem + 0.2vw, 1.25rem);
	--tatur-fs-lead: clamp(1.125rem, 1.03rem + 0.26vw, 1.375rem);
}

/* ---------------------------------------------------------------------------
 * Base
 * ------------------------------------------------------------------------ */
body {
	font-family: var(--louhos-font-family);
	font-size: var(--tatur-fs-body);
	line-height: 1.6;
	color: var(--louhos-body-color);
}

:is(h1, h2, h3, h4) {
	font-family: var(--tatur-font-heading);
	font-stretch: 125%;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.15;
}

:is(h1, h2) {
	text-transform: uppercase;
}

a {
	text-underline-offset: 0.18em;
}

.tatur-container {
	width: min(var(--tatur-content), 100% - 2 * var(--tatur-gutter));
	margin-inline: auto;
}

/* ---------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------ */
.louhos-btn {
	--bs-btn-padding-x: 1.625rem;
	--bs-btn-padding-y: 1.0625rem;
	--bs-btn-border-radius: 0;
	--bs-btn-border-width: 2px;
	min-height: 56px;
	gap: 0.625rem;
	font-family: var(--tatur-font-heading);
	font-stretch: 125%;
	font-weight: 700;
	font-size: 0.875rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.btn-primary {
	--bs-btn-bg: var(--louhos-primary);
	--bs-btn-border-color: var(--louhos-primary);
	--bs-btn-color: var(--louhos-headings);
	--bs-btn-hover-bg: var(--louhos-headings);
	--bs-btn-hover-border-color: var(--louhos-headings);
	--bs-btn-hover-color: #fff;
	--bs-btn-active-bg: var(--louhos-headings);
	--bs-btn-active-border-color: var(--louhos-headings);
	--bs-btn-active-color: #fff;
}

/* On dark/photo backgrounds the primary button hovers to white. */
:is(.tatur-hero, .tatur-intro, .tatur-stamp) .btn-primary {
	--bs-btn-hover-bg: #fff;
	--bs-btn-hover-border-color: #fff;
	--bs-btn-hover-color: var(--louhos-headings);
	--bs-btn-active-bg: #fff;
	--bs-btn-active-color: var(--louhos-headings);
}

.tatur-btn--dark {
	--bs-btn-bg: var(--louhos-headings);
	--bs-btn-border-color: var(--louhos-headings);
	--bs-btn-color: #fff;
	--bs-btn-hover-bg: #fff;
	--bs-btn-hover-border-color: #fff;
	--bs-btn-hover-color: var(--louhos-headings);
	--bs-btn-active-bg: #fff;
	--bs-btn-active-color: var(--louhos-headings);
	align-self: flex-start;
}

/* ---------------------------------------------------------------------------
 * Header
 * ------------------------------------------------------------------------ */
.tatur-header {
	position: relative;
	z-index: 10;
	background: #fff;
}

.tatur-nav {
	padding: 0;
}

.tatur-nav__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 1rem var(--tatur-gutter);
}

.tatur-brand {
	display: block;
	line-height: 0;
}

.tatur-brand__img {
	width: auto;
	height: clamp(52px, 3.5rem + 1.3vw, 80px);
}

.tatur-brand__text {
	font-family: var(--tatur-font-heading);
	font-stretch: 125%;
	font-weight: 700;
	color: var(--louhos-headings);
}

.tatur-nav__toggle {
	border: 0;
	padding: 0.5rem 0.75rem;
	font-size: 1.5rem;
	color: var(--louhos-headings);
}

.tatur-nav__toggle:focus {
	box-shadow: none;
}

.tatur-nav__toggle:focus-visible {
	outline: 3px solid var(--louhos-primary);
	outline-offset: 2px;
}

.tatur-nav .nav-link {
	position: relative;
	padding: 0.875rem 0;
	font-family: var(--tatur-font-heading);
	font-stretch: 125%;
	font-weight: 700;
	font-size: 0.9375rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--louhos-headings);
}

.tatur-nav .nav-link:hover,
.tatur-nav .nav-link:focus-visible {
	color: var(--louhos-primary-dark);
}

.tatur-nav .is-active .nav-link::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0.25rem;
	width: 28px;
	height: 3px;
	background: var(--louhos-primary);
}

@media (min-width: 992px) {
	.tatur-nav__inner {
		padding-block: 1.75rem;
	}

	.tatur-nav__list {
		gap: 3.25rem;
	}

	.tatur-nav .nav-link {
		padding: 0.5rem 0 0.875rem;
	}

	.tatur-nav .is-active .nav-link::after {
		left: 50%;
		bottom: 0;
		transform: translateX(-50%);
	}
}

/* ---------------------------------------------------------------------------
 * Rock edges (Walkia graphic elements, used as masks so they take the token colour)
 * ------------------------------------------------------------------------ */
.tatur-rock-edge,
.tatur-rock-edge-v {
	position: absolute;
	pointer-events: none;
	background: var(--louhos-primary);
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: 100% 100%;
	mask-size: 100% 100%;
}

.tatur-rock-edge {
	left: 0;
	right: 0;
	bottom: -1px;
	height: clamp(24px, 3.5vw, 67px);
	-webkit-mask-image: url("../img/rock-edge-h.svg");
	mask-image: url("../img/rock-edge-h.svg");
}

.tatur-rock-edge-v {
	top: 0;
	bottom: 0;
	/* Overlap the panel seam so no hairline of the photo shows at the edge. */
	left: -4px;
	width: 58px;
	-webkit-mask-image: url("../img/rock-edge-v.svg");
	mask-image: url("../img/rock-edge-v.svg");
}

/* ---------------------------------------------------------------------------
 * Hero
 * ------------------------------------------------------------------------ */
.tatur-hero {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	background: var(--louhos-dark-1);
	color: #fff;
}

.tatur-hero__media,
.tatur-hero::before {
	position: absolute;
	inset: 0;
	z-index: -1;
}

.tatur-hero__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tatur-hero::before {
	content: "";
	z-index: 0;
	background: linear-gradient(90deg, rgba(13, 13, 13, 0.88) 0%, rgba(13, 13, 13, 0.55) 60%, rgba(13, 13, 13, 0.25) 100%);
}

.tatur-hero__content {
	position: relative;
	z-index: 1;
	padding: clamp(4.5rem, 10.4vw, 12.5rem) var(--tatur-gutter) clamp(6rem, 11.5vw, 13.75rem);
}

.tatur-hero__title {
	max-width: 16em;
	margin: 0;
	font-size: var(--tatur-fs-h1);
	line-height: 1.12;
	color: #fff;
}

.tatur-hero__text {
	max-width: 38.75rem;
	margin-top: 2rem;
	font-size: var(--tatur-fs-lead);
	line-height: 1.55;
}

.tatur-hero__text p:last-child {
	margin-bottom: 0;
}

.tatur-hero .louhos-buttons {
	margin-top: 2.5rem;
}

.tatur-hero .tatur-rock-edge {
	z-index: 2;
}

@media (min-width: 992px) {
	.tatur-hero::before {
		background: linear-gradient(90deg, rgba(13, 13, 13, 0.85) 0%, rgba(13, 13, 13, 0.35) 60%, rgba(13, 13, 13, 0) 100%);
	}
}

/* ---------------------------------------------------------------------------
 * Intro
 * ------------------------------------------------------------------------ */
.tatur-intro {
	padding-block: var(--tatur-section-y) calc(var(--tatur-section-y) + 0.625rem);
	background: var(--louhos-dark-1);
	color: #fff;
}

.tatur-intro__grid {
	display: grid;
	gap: 1.5rem;
}

.tatur-intro__title {
	margin: 0;
	font-size: var(--tatur-fs-h2);
	line-height: 1.18;
	color: var(--louhos-primary);
}

.tatur-intro__text {
	font-size: var(--tatur-fs-body);
	line-height: 1.6;
}

.tatur-intro__text > :first-child {
	font-size: var(--tatur-fs-lead);
}

.tatur-intro__text p {
	margin-bottom: 1.5rem;
}

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

.tatur-intro__text ul {
	padding-left: 1.25rem;
}

.tatur-intro__text li {
	margin-bottom: 0.75rem;
}

.tatur-intro__text a {
	color: #fff;
}

@media (min-width: 992px) {
	.tatur-intro__grid {
		grid-template-columns: minmax(0, 520fr) minmax(0, 660fr);
		gap: 7.5rem;
		align-items: start;
	}
}

/* ---------------------------------------------------------------------------
 * Services
 * ------------------------------------------------------------------------ */
.tatur-services {
	background: var(--tatur-grey-200);
}

.tatur-services__head {
	padding: clamp(3rem, 3.3vw, 4rem) var(--tatur-gutter) clamp(2.5rem, 2.9vw, 3.5rem);
	text-align: center;
}

.tatur-services__title {
	margin: 0;
	font-size: var(--tatur-fs-h2-lg);
}

.tatur-services__intro {
	max-width: 40rem;
	margin: 1rem auto 0;
}

.tatur-services__cols {
	display: grid;
}

.tatur-service {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	padding: clamp(3rem, 3.75vw, 4.5rem) var(--tatur-pad-x) clamp(3.5rem, 4.6vw, 5.5rem);
	background: var(--tatur-grey-300);
}

.tatur-service:nth-child(3n + 2) {
	background: var(--tatur-grey-200);
}

.tatur-service:nth-child(3n) {
	background: var(--tatur-grey-100);
}

.tatur-boulder {
	display: block;
	width: 60px;
	height: 62px;
	background: url("../img/boulder.svg") no-repeat center / contain;
}

.tatur-service__title {
	margin: 0;
	font-size: var(--tatur-fs-h3);
	line-height: 1.3;
}

.tatur-service__title a {
	color: inherit;
	text-decoration: none;
}

.tatur-service__title a:hover,
.tatur-service__title a:focus-visible {
	text-decoration: underline;
}

.tatur-service__list {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 1.125rem;
	line-height: 1.45;
}

.tatur-service__list li {
	position: relative;
	padding-left: 1.75rem;
}

.tatur-service__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.3em;
	width: 14px;
	height: 14.5px;
	background: url("../img/boulder.svg") no-repeat center / contain;
}

@media (min-width: 992px) {
	.tatur-services__cols {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* ---------------------------------------------------------------------------
 * Profile (Who I am)
 * ------------------------------------------------------------------------ */
.tatur-profile {
	display: grid;
}

.tatur-profile__name {
	padding: clamp(3.5rem, 5.7vw, 6.875rem) var(--tatur-gutter) clamp(3rem, 4vw, 4rem);
	background: var(--louhos-dark-1);
	color: #fff;
}

.tatur-profile__title {
	margin: 0 0 1.75rem;
	font-size: var(--tatur-fs-h2);
	color: var(--louhos-primary);
}

.tatur-profile__contact {
	display: grid;
	gap: 0.375rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-weight: 700;
	font-size: var(--tatur-fs-body);
}

.tatur-profile__contact a {
	color: #fff;
	text-decoration: none;
}

.tatur-profile__contact a:hover,
.tatur-profile__contact a:focus-visible {
	color: var(--louhos-primary);
	text-decoration: underline;
}

.tatur-profile__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2rem;
	padding: clamp(3rem, 5.7vw, 6.875rem) clamp(1.25rem, 4.7vw, 5.625rem);
	background: var(--louhos-primary);
	color: var(--louhos-headings);
}

.tatur-profile__body {
	font-size: var(--tatur-fs-lead);
	line-height: 1.55;
}

.tatur-profile__body p:last-child {
	margin-bottom: 0;
}

.tatur-profile__body a {
	color: var(--louhos-headings);
}

.tatur-profile__media {
	position: relative;
	min-height: 360px;
	background: var(--tatur-grey-100);
}

.tatur-profile__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 20%;
}

/* On mobile the photo sits under the orange panel – no side edge there. */
.tatur-profile__media .tatur-rock-edge-v {
	display: none;
}

@media (min-width: 992px) {
	.tatur-profile {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		min-height: clamp(28rem, 29.2vw, 35rem);
	}

	.tatur-profile__name {
		padding-right: 3.75rem;
	}

	.tatur-profile__media .tatur-rock-edge-v {
		display: block;
	}
}

/* ---------------------------------------------------------------------------
 * Drawing + stamp
 * ------------------------------------------------------------------------ */
.tatur-stamp {
	overflow: hidden;
	background: var(--louhos-dark-1);
}

.tatur-stamp__inner {
	position: relative;
	aspect-ratio: 1920 / 760;
	min-height: 300px;
}

.tatur-stamp__drawing {
	position: absolute;
	left: 0;
	top: -1.3%;
	width: 73%;
	height: auto;
	mix-blend-mode: lighten;
}

.tatur-stamp__stamp {
	position: absolute;
	left: 47%;
	top: 59%;
	width: 49%;
	height: auto;
	transform: rotate(7deg);
	transform-origin: left top;
}

@media (max-width: 767.98px) {
	.tatur-stamp__inner {
		aspect-ratio: auto;
		min-height: 0;
		padding: 2rem 0 4rem;
	}

	.tatur-stamp__drawing {
		position: static;
		width: 110%;
		max-width: none;
		margin-left: -5%;
	}

	.tatur-stamp__stamp {
		position: relative;
		left: auto;
		top: auto;
		display: block;
		width: 88%;
		margin: -18% auto 0;
		transform: rotate(-5deg);
		transform-origin: center;
	}
}

/* ---------------------------------------------------------------------------
 * CTA strip
 * ------------------------------------------------------------------------ */
.tatur-cta {
	padding: clamp(3rem, 3.75vw, 4.5rem) var(--tatur-gutter);
	background: var(--tatur-grey-100);
}

.tatur-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1.5rem 3.5rem;
	text-align: center;
}

.tatur-cta__title {
	margin: 0;
	font-size: clamp(1.25rem, 1.12rem + 0.52vw, 1.625rem);
	letter-spacing: 0.02em;
}

.tatur-cta__text p:last-child {
	margin-bottom: 0;
}

.tatur-cta .louhos-buttons {
	margin-top: 0;
	justify-content: center;
}

/* ---------------------------------------------------------------------------
 * Footer
 * ------------------------------------------------------------------------ */
.tatur-footer {
	background: var(--louhos-dark-2);
	color: #fff;
	font-size: 1.0625rem;
	line-height: 1.65;
}

.tatur-footer a {
	color: #fff;
	text-decoration: none;
}

.tatur-footer a:hover,
.tatur-footer a:focus-visible {
	color: var(--louhos-primary);
	text-decoration: underline;
}

.tatur-footer :focus-visible {
	outline-color: #fff;
}

.tatur-footer__main {
	padding-block: clamp(3.5rem, 4.6vw, 5.5rem);
}

.tatur-footer__cols {
	display: grid;
	gap: 2.5rem;
}

.tatur-footer__heading {
	margin-bottom: 1.25rem;
	font-size: 0.875rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: #fff;
}

.tatur-footer__col p,
.tatur-footer__address {
	margin: 0;
	font-style: normal;
	line-height: 1.7;
}

.tatur-footer__bottom {
	padding-block: 1.5rem;
	background: var(--louhos-dark-1);
	font-size: 0.875rem;
}

.tatur-footer__bottom-inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem 2rem;
}

.tatur-footer__bottom p {
	margin: 0;
}

@media (min-width: 768px) {
	.tatur-footer__cols {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 7.5rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.louhos-btn .fa-solid {
		transition: none;
	}
}
