/*
 * TMA-Service Ab — project styles. Loaded after the Louhosteema bundle.
 * Values follow the Figma layout (1920 px desktop, content width 1300 px).
 */

:root {
	/* Brand. #d36e2c is the Figma orange; white text on it is 3.5:1, so
	   buttons with small white text use the darker --tma-orange-strong. */
	--louhos-primary: #d36e2c;
	--louhos-primary-rgb: 211, 110, 44;
	--louhos-primary-dark: #b5551a;
	--louhos-accent: #d36e2c;
	--louhos-link-color: #a14a15;

	--louhos-headings: #141414;
	--louhos-body-color: #6b6662;
	--louhos-grey: #f1edea;
	--louhos-border: #e3ddd8;
	--louhos-border-rgb: 227, 221, 216;

	--louhos-dark-1: #141414;
	--louhos-dark-1-rgb: 20, 20, 20;
	--louhos-dark-2: #0f0f0f;
	--louhos-dark-2-rgb: 15, 15, 15;

	--louhos-header-height: 79px;
	--louhos-radius: 12px;
	--louhos-radius-lg: 16px;

	--louhos-font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

	/* Project tokens */
	--tma-font-display: "Bricolage Grotesque", "Outfit", system-ui, sans-serif;
	--tma-orange: #d36e2c;
	--tma-orange-strong: #b5551a;
	--tma-orange-hover: #9c4815;
	--tma-eyebrow-text: #a14a15;
	--tma-ink: #141414;
	--tma-muted: #6b6662;
	--tma-bg: #faf7f5;
	--tma-bg-alt: #efe7df;
	--tma-card: #f1edea;
	--tma-pill-bg: #fbe9dc;
	--tma-pill-border: rgba(211, 110, 44, 0.25);

	--tma-gutter: clamp(12px, 5.2vw, 100px);       /* hero / contact card inset */
	--tma-card-max: 1720px;                        /* hero / contact card width in Figma */
	--tma-inset: clamp(12px, 1.25vw, 24px);        /* header inset inside hero */
	--tma-pad: clamp(20px, 5vw, 40px);             /* content side padding */
	--tma-section: clamp(56px, 7vw, 90px);
}

/* ------------------------------------------------------------------ base */
body {
	background: var(--tma-bg);
	color: var(--tma-muted);
	font-family: var(--louhos-font-family);
	font-size: 1.0625rem;
	line-height: 1.6;
}

:is(h1, h2, h3, h4),
.tma-contact__bar-text {
	font-family: var(--tma-font-display);
	font-weight: 600;
	/* Optical size follows the font size, like Figma's "auto" optical size. */
	font-optical-sizing: auto;
	color: var(--tma-ink);
}

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

.tma-container {
	width: min(1300px, 100% - 2 * var(--tma-pad));
	margin-inline: auto;
}

.tma-section {
	padding-block: var(--tma-section);
}

.tma-h2 {
	margin: 0;
	font-size: clamp(2rem, 1.25rem + 2.3vw, 3.3125rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.tma-h3 {
	margin: 0;
	font-size: clamp(1.625rem, 1.3rem + 0.9vw, 2.1875rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.tma-lead {
	margin: 0;
	max-width: 45rem;
	font-size: 1.0625rem;
	line-height: 1.6;
}

.tma-icon {
	width: 1em;
	height: 1em;
	flex: none;
}

.tma-icon--flip {
	transform: scaleX(-1);
}

/* Same column as Complianz documents (#cmplz-document, 800px). */
.tma-page-head,
.tma-no-hero .entry-content > :where(:not(.alignfull):not(section)) {
	max-width: min(800px, calc(100% - 2 * var(--tma-pad)));
	margin-inline: auto;
}

.tma-page-head {
	margin-bottom: 2rem;
}

/* Pages without a hero: room for the floating header. */
.tma-no-hero .site-main {
	padding-top: calc(var(--louhos-header-height) + 2 * var(--tma-inset) + 2rem);
}

/* --------------------------------------------------------------- eyebrow */
.tma-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 18px;
	padding: 7px 16px 7px 12px;
	border: 1px solid var(--tma-pill-border);
	border-radius: 999px;
	background: var(--tma-pill-bg);
	color: var(--tma-eyebrow-text);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
}

.tma-eyebrow__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--tma-orange);
	box-shadow: 0 0 0 3px rgba(211, 110, 44, 0.22);
}

/* --------------------------------------------------------------- buttons */
.tma-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.tma-btn {
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 48px;
	padding: 6px 6px 6px 24px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tma-btn__badge {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	color: var(--tma-ink);
	font-size: 16px;
	transition: transform 0.2s ease;
}

.tma-btn:hover .tma-btn__badge,
.tma-btn:focus-visible .tma-btn__badge {
	transform: rotate(-12deg);
}

.tma-btn--primary {
	background: var(--tma-orange-strong);
	color: #fff;
}

.tma-btn--primary .tma-btn__badge {
	color: var(--tma-orange-strong);
}

.tma-btn--primary:hover,
.tma-btn--primary:focus-visible {
	background: var(--tma-orange-hover);
	color: #fff;
}

.tma-btn--outline,
.tma-btn--outline-light {
	border-color: currentColor;
	color: inherit;
	background: transparent;
}

.tma-btn--outline-light {
	color: #fff;
}

.tma-btn--outline:hover,
.tma-btn--outline:focus-visible,
.tma-btn--outline-light:hover,
.tma-btn--outline-light:focus-visible {
	background: rgba(255, 255, 255, 0.12);
	color: inherit;
}

.tma-btn--outline-light:hover,
.tma-btn--outline-light:focus-visible {
	color: #fff;
}

.tma-btn--dark {
	background: var(--tma-ink);
	color: #fff;
}

.tma-btn--dark .tma-btn__badge {
	background: var(--tma-orange);
	color: #fff;
}

.tma-btn--dark:hover,
.tma-btn--dark:focus-visible {
	background: #2b2b2b;
	color: #fff;
}

.tma-round-btn {
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid var(--louhos-border);
	border-radius: 50%;
	background: #fff;
	color: var(--tma-ink);
	font-size: 18px;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.tma-round-btn:hover {
	background: var(--tma-card);
}

.tma-round-btn--dark {
	border-color: var(--tma-ink);
	background: var(--tma-ink);
	color: #fff;
}

.tma-round-btn--dark:hover {
	background: #2b2b2b;
}

.tma-round-btn:disabled {
	opacity: 0.4;
	cursor: default;
}

/* ---------------------------------------------------------------- header */
html {
	scroll-padding-top: calc(var(--louhos-header-height) + 32px);
}

.tma-header {
	position: fixed;
	inset: calc(24px + var(--tma-inset)) 0 auto;
	z-index: 1030;
	/* Same box as the hero card, inset by --tma-inset. */
	max-width: calc(var(--tma-card-max) + 2 * var(--tma-gutter));
	margin-inline: auto;
	padding-inline: calc(var(--tma-gutter) + var(--tma-inset));
	transition: top 0.3s ease;
}

.tma-header.is-scrolled {
	top: 12px;
}

@media (min-width: 783px) {
	.admin-bar .tma-header {
		top: calc(32px + 24px + var(--tma-inset));
	}

	.admin-bar .tma-header.is-scrolled {
		top: 44px;
	}
}

.tma-header__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: var(--louhos-header-height);
	padding: 12px 14px 12px clamp(16px, 2vw, 28px);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	background: rgba(20, 20, 20, 0.55);
	box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.tma-header.is-scrolled .tma-header__bar,
.tma-no-hero .tma-header__bar,
.tma-header.is-open .tma-header__bar {
	background: rgba(20, 20, 20, 0.9);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.tma-header__brand {
	display: inline-flex;
	border-radius: 6px;
}

.tma-header__brand img {
	display: block;
	width: auto;
	height: clamp(36px, 3vw, 48px);
}

.tma-header__brand-text {
	color: #fff;
	font-family: var(--tma-font-display);
	font-size: 1.5rem;
	font-weight: 700;
}

.tma-header__toggle {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 999px;
	background: transparent;
	color: #fff;
	transition: background-color 0.2s ease;
}

.tma-header__toggle:hover {
	background: rgba(255, 255, 255, 0.1);
}

.tma-header__toggle-bars,
.tma-header__toggle-bars::before,
.tma-header__toggle-bars::after {
	display: block;
	width: 18px;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.tma-header__toggle-bars {
	position: relative;
}

.tma-header__toggle-bars::before,
.tma-header__toggle-bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.tma-header__toggle-bars::before { top: -6px; }
.tma-header__toggle-bars::after { top: 6px; }

.is-open .tma-header__toggle-bars { background: transparent; }
.is-open .tma-header__toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.is-open .tma-header__toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile panel */
.tma-header__menu {
	display: none;
	flex-basis: 100%;
	flex-direction: column;
	gap: 20px;
	max-height: calc(100vh - var(--louhos-header-height) - 64px);
	max-height: calc(100dvh - var(--louhos-header-height) - 64px);
	padding: 12px 0 8px;
	overflow-y: auto;
}

.tma-header.is-open .tma-header__menu {
	display: flex;
}

.tma-nav {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tma-nav__item {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.tma-nav__link {
	display: inline-flex;
	align-items: center;
	padding: 10px 16px;
	border-radius: 999px;
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.9375rem;
	line-height: 1.2;
	text-decoration: none;
	transition: color 0.2s ease, background-color 0.2s ease;
}

/* Orange dot grows in on hover and marks the current page. */
.tma-nav__link::before {
	content: "";
	width: 0;
	height: 6px;
	margin-right: 0;
	border-radius: 50%;
	background: var(--tma-orange);
	transform: scale(0);
	transition: width 0.2s ease, margin 0.2s ease, transform 0.2s ease;
}

.tma-nav__link:hover,
.tma-nav__link:focus-visible,
.tma-nav__item.has-children:hover > .tma-nav__link {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.tma-nav__link:hover::before,
.tma-nav__link:focus-visible::before,
.tma-nav__item.has-children:hover > .tma-nav__link::before,
.tma-nav__item.is-active > .tma-nav__link::before {
	width: 6px;
	margin-right: 8px;
	transform: scale(1);
}

.tma-nav__item.is-active > .tma-nav__link {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-weight: 500;
}

/* Items with a submenu: link + chevron share one pill. */
.tma-nav__item.has-children {
	border-radius: 999px;
	transition: background-color 0.2s ease;
}

.tma-nav__item.has-children > .tma-nav__link {
	padding-right: 6px;
}

@media (min-width: 1200px) {
	.tma-nav__item.has-children:hover,
	.tma-nav__item.has-children:focus-within {
		background: rgba(255, 255, 255, 0.08);
	}

	.tma-nav__item.has-children.is-active {
		background: rgba(255, 255, 255, 0.12);
	}
}

.tma-nav__item.has-children > .tma-nav__link,
.tma-nav__item.has-children:hover > .tma-nav__link,
.tma-nav__item.has-children.is-active > .tma-nav__link {
	background: transparent;
}

.tma-nav__sub-toggle {
	display: inline-grid;
	place-items: center;
	width: 32px;
	height: 32px;
	margin-right: 4px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: rgba(255, 255, 255, 0.78);
	font-size: 16px;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.tma-nav__sub-toggle:hover {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.tma-nav__sub-toggle .tma-icon {
	transition: transform 0.25s ease;
}

.is-sub-open > .tma-nav__sub-toggle .tma-icon {
	transform: rotate(180deg);
}

.tma-nav__sub {
	display: none;
	flex-basis: 100%;
	margin: 4px 0 8px;
	padding: 6px;
	list-style: none;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
}

.is-sub-open > .tma-nav__sub {
	display: block;
}

.tma-nav__sub a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	color: #fff;
	font-size: 0.9375rem;
	text-decoration: none;
	transition: background-color 0.2s ease;
}

.tma-nav__sub a:hover,
.tma-nav__sub a:focus-visible {
	background: rgba(255, 255, 255, 0.08);
}

.tma-nav__sub-icon {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	background: rgba(211, 110, 44, 0.18);
	color: var(--tma-orange);
	font-size: 18px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.tma-nav__sub a:hover .tma-nav__sub-icon,
.tma-nav__sub a:focus-visible .tma-nav__sub-icon,
.tma-nav__sub a[aria-current] .tma-nav__sub-icon {
	background: var(--tma-orange);
	color: #fff;
}

.tma-header__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

/* Language flags */
.tma-lang {
	display: flex;
	gap: 4px;
	margin: 0;
	padding: 5px;
	list-style: none;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
}

.tma-lang a {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	opacity: 0.6;
	transition: opacity 0.2s ease, background-color 0.2s ease;
}

.tma-lang__flag {
	display: block;
	width: 22px;
	height: 22px;
	overflow: hidden;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
	transition: transform 0.2s ease;
}

.tma-lang__flag .tma-icon {
	display: block;
	width: 100%;
	height: 100%;
}

.tma-lang a:hover,
.tma-lang a:focus-visible {
	opacity: 1;
}

.tma-lang a:hover .tma-lang__flag {
	transform: scale(1.1);
}

.tma-lang a[aria-current] {
	background: rgba(255, 255, 255, 0.14);
	opacity: 1;
}

.tma-lang a[aria-current] .tma-lang__flag {
	box-shadow: 0 0 0 2px #fff;
}

/* Desktop: logo | centred menu | actions */
@media (min-width: 1200px) {
	.tma-header__bar {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		gap: 16px;
	}

	.tma-header__brand {
		justify-self: start;
	}

	.tma-header__toggle {
		display: none;
	}

	.tma-header__menu,
	.tma-header.is-open .tma-header__menu {
		display: contents;
	}

	.tma-nav {
		flex-direction: row;
		gap: 2px;
		padding: 6px;
		border: 1px solid rgba(255, 255, 255, 0.1);
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.06);
	}

	.tma-nav__item {
		flex-wrap: nowrap;
	}

	/* Submenu opens on hover (and on the chevron button for keyboards). */
	.tma-nav__sub,
	.is-sub-open > .tma-nav__sub {
		position: absolute;
		top: calc(100% + 14px);
		left: 50%;
		display: block;
		width: 300px;
		margin: 0;
		background: rgba(20, 20, 20, 0.94);
		box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
		opacity: 0;
		visibility: hidden;
		transform: translate(-50%, 8px);
		transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
		-webkit-backdrop-filter: blur(12px);
		backdrop-filter: blur(12px);
	}

	/* Bridge over the gap so the pointer can travel to the submenu. */
	.tma-nav__sub::before {
		content: "";
		position: absolute;
		inset: -16px 0 auto;
		height: 16px;
	}

	.tma-nav__item.has-children:hover > .tma-nav__sub,
	.tma-nav__item.is-sub-open > .tma-nav__sub {
		opacity: 1;
		visibility: visible;
		transform: translate(-50%, 0);
	}

	.tma-nav__item.has-children:hover > .tma-nav__sub-toggle .tma-icon {
		transform: rotate(180deg);
	}

	.tma-header__actions {
		flex-wrap: nowrap;
		justify-self: end;
	}
}

@media (min-width: 1200px) and (max-width: 1399px) {
	.tma-nav__link {
		padding-inline: 12px;
	}

	/* Phone button collapses to its icon; the label stays for screen readers. */
	.tma-header__phone {
		gap: 0;
		padding: 6px;
	}

	.tma-header__phone-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0 0 0 0);
		white-space: nowrap;
	}
}

/* ------------------------------------------------------------------ hero */
.tma-hero {
	padding: 24px var(--tma-gutter) 0;
}

.tma-hero__card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	max-width: var(--tma-card-max);
	min-height: clamp(620px, 43vw, 820px);
	margin-inline: auto;
	overflow: hidden;
	border-radius: var(--louhos-radius-lg);
	background: var(--tma-ink);
	color: #fff;
}

.tma-hero__card::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(15, 15, 15, 0.35) 0%, rgba(15, 15, 15, 0.15) 30%, rgba(15, 15, 15, 0.88) 100%);
}

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

/*
 * Figma frames the hero photo at 104.64 % width, offset −0.56 % / −1.76 %
 * inside the 1720 × 820 card. Same result: align the cover image to the top
 * left and scale it from the point that keeps that offset.
 */
@media (min-width: 992px) {
	.tma-hero__media {
		object-position: 0 0;
		transform: scale(1.0464);
		transform-origin: 12% 37.8%;
	}
}

.tma-hero__content {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	gap: 28px;
	padding: 140px clamp(20px, 4.2vw, 80px) clamp(32px, 3.75vw, 72px);
}

.tma-hero__title {
	max-width: 980px;
	margin: 0;
	color: #fff;
	font-size: clamp(2.375rem, 1rem + 3.2vw, 4.1875rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
	text-wrap: balance;
}

.tma-hero__aside {
	display: flex;
	flex-direction: column;
	gap: 28px;
	max-width: 420px;
}

.tma-hero__text,
.tma-hero__text p {
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	font-size: 1.0625rem;
	line-height: 1.55;
}

.tma-hero .tma-btn {
	flex: 1 1 auto;
}

@media (min-width: 992px) {
	.tma-hero__content {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 48px;
	}

	.tma-hero__aside {
		flex: 0 0 420px;
	}
}

/* Subpages: lower hero. */
body:not(.home) .tma-hero__card {
	min-height: clamp(480px, 32vw, 620px);
}

/* ----------------------------------------------------------------- intro */
.tma-intro__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	margin-bottom: clamp(36px, 4vw, 60px);
	text-align: center;
}

.tma-intro__head .tma-eyebrow {
	margin: 0;
}

.tma-intro__head .tma-h2 {
	max-width: 1000px;
	text-wrap: balance;
}

.tma-intro__row {
	display: grid;
	gap: 16px;
}

.tma-intro__image {
	width: 100%;
	height: 100%;
	min-height: 280px;
	max-height: 440px;
	object-fit: cover;
	border-radius: var(--louhos-radius);
}

.tma-intro__card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	padding: clamp(28px, 2.5vw, 40px);
	border-radius: var(--louhos-radius);
	background: var(--tma-card);
}

.tma-intro__card p {
	margin: 14px 0 0;
	font-size: 1rem;
	line-height: 1.6;
}

.tma-intro__card-link {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: -8px;
	border-radius: 50%;
	color: var(--tma-ink);
	font-size: 28px;
	transition: transform 0.2s ease;
}

.tma-intro__card-link:hover {
	transform: translateX(4px);
}

.tma-intro__features {
	display: grid;
	gap: 16px;
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}

.tma-feature {
	padding: 28px;
	border-radius: var(--louhos-radius);
	background: var(--tma-card);
}

.tma-feature__icon {
	display: block;
	color: var(--tma-orange);
	font-size: 28px;
	line-height: 1;
}

.tma-feature__title {
	margin: clamp(32px, 3.3vw, 64px) 0 8px;
	font-size: clamp(1.5rem, 1.3rem + 0.5vw, 1.75rem);
	line-height: 1.15;
	letter-spacing: -0.01em;
}

.tma-feature p {
	margin: 0;
	font-size: 0.9375rem;
	line-height: 1.5;
}

@media (min-width: 768px) {
	.tma-intro__features {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 992px) {
	.tma-intro__row {
		grid-template-columns: 1fr 1fr;
		min-height: 440px;
	}

	.tma-intro__image {
		max-height: none;
	}
}

/* -------------------------------------------------------------- services */
.tma-services {
	background: var(--tma-bg-alt);
}

.tma-split-head {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: clamp(32px, 2.5vw, 48px);
}

.tma-split-head__intro {
	max-width: 460px;
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
}

@media (min-width: 992px) {
	.tma-split-head {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 48px;
	}
}

.tma-services__grid {
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 992px) {
	.tma-services__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.tma-service {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	min-height: clamp(480px, 34vw, 660px);
	overflow: hidden;
	border-radius: var(--louhos-radius);
	background: var(--tma-ink);
	color: #fff;
	isolation: isolate;
}

.tma-service::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(180deg, rgba(15, 15, 15, 0.12) 0%, rgba(15, 15, 15, 0.2) 40%, rgba(15, 15, 15, 0.85) 100%);
}

.tma-service__image {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.tma-service:hover .tma-service__image {
	transform: scale(1.03);
}

.tma-service__number {
	position: absolute;
	top: clamp(20px, 2vw, 40px);
	left: clamp(20px, 2vw, 40px);
	display: inline-flex;
	gap: 10px;
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	background: rgba(20, 20, 20, 0.3);
	font-size: 0.8125rem;
	line-height: 1.3;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.tma-service__arrow {
	position: absolute;
	top: clamp(20px, 2vw, 40px);
	right: clamp(20px, 2vw, 40px);
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: var(--tma-orange);
	color: #fff;
	font-size: 22px;
	transition: transform 0.2s ease;
}

.tma-service:hover .tma-service__arrow {
	transform: rotate(45deg);
}

.tma-service__body {
	padding: clamp(24px, 2vw, 40px);
}

.tma-service__title {
	margin: 0 0 14px;
	color: #fff;
	font-size: clamp(2rem, 1.4rem + 1.6vw, 2.875rem);
	line-height: 1.05;
	letter-spacing: -0.03em;
}

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

.tma-service__title a:focus-visible {
	outline: none;
}

.tma-service:focus-within {
	outline: 3px solid var(--tma-orange);
	outline-offset: 3px;
}

.tma-service__body p {
	max-width: 560px;
	margin: 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.9375rem;
	line-height: 1.6;
}

.tma-service__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.tma-service__tags li {
	padding: 8px 15px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	background: rgba(20, 20, 20, 0.35);
	font-size: 0.8125rem;
	line-height: 1.2;
}

/* --------------------------------------------------------------- gallery */
.tma-gallery__head {
	margin-bottom: clamp(28px, 2.1vw, 40px);
}

.tma-gallery__head .tma-h2 {
	margin-bottom: 14px;
}

.tma-gallery__intro-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}

.tma-gallery__intro {
	max-width: 460px;
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
}

.tma-gallery__nav {
	display: flex;
	flex: none;
	gap: 10px;
}

.tma-gallery__track {
	display: flex;
	gap: 16px;
	margin: 0;
	padding: 0 0 4px;
	overflow-x: auto;
	list-style: none;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

.tma-gallery__track::-webkit-scrollbar {
	display: none;
}

.tma-gallery__item {
	flex: 0 0 min(80%, 340px);
	scroll-snap-align: start;
}

@media (min-width: 768px) {
	.tma-gallery__item {
		flex-basis: calc((100% - 16px) / 2);
	}
}

@media (min-width: 992px) {
	.tma-gallery__item {
		flex-basis: calc((100% - 32px) / 3);
	}
}

.tma-gallery__open {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: var(--louhos-radius);
	background: var(--tma-card);
	aspect-ratio: 422 / 560;
	cursor: zoom-in;
}

.tma-gallery__open img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.4s ease;
}

/* Hover: image zooms, a warm shade rises from the bottom and the badge turns. */
.tma-gallery__open::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(20, 20, 20, 0) 40%, rgba(20, 20, 20, 0.55) 100%), rgba(211, 110, 44, 0.12);
	opacity: 0;
	transition: opacity 0.4s ease;
}

.tma-gallery__open:hover img,
.tma-gallery__open:focus-visible img {
	transform: scale(1.06);
	filter: saturate(1.08);
}

.tma-gallery__open:hover::after,
.tma-gallery__open:focus-visible::after {
	opacity: 1;
}

.tma-gallery__badge {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 1;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--tma-orange);
	color: #fff;
	font-size: 18px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.2s ease;
}

.tma-gallery__open:hover .tma-gallery__badge,
.tma-gallery__open:focus-visible .tma-gallery__badge {
	background: #fff;
	color: var(--tma-orange-strong);
	transform: scale(1.15) rotate(45deg);
}

/* Lightbox */
.tma-lightbox {
	width: min(1400px, 94vw);
	max-width: none;
	max-height: 94vh;
	padding: 0;
	overflow: visible;
	border: 0;
	background: transparent;
}

.tma-lightbox::backdrop {
	background: rgba(10, 10, 10, 0.88);
}

/* Image sized by its own aspect ratio so the rounded corners sit on the photo. */
.tma-lightbox__img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 86vh;
	margin-inline: auto;
	border-radius: var(--louhos-radius-lg);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.tma-lightbox__count {
	margin: 12px 0 0;
	color: rgba(255, 255, 255, 0.8);
	font-size: 0.875rem;
	text-align: center;
}

.tma-lightbox .tma-round-btn {
	position: absolute;
	width: 48px;
	height: 48px;
}

.tma-lightbox__prev,
.tma-lightbox__next {
	top: calc(50% - 24px);
}

.tma-lightbox__prev { left: 8px; }
.tma-lightbox__next { right: 8px; }

.tma-lightbox__close {
	top: 8px;
	right: 8px;
	font-size: 28px;
	line-height: 1;
}

/* --------------------------------------------------------------- contact */
.tma-contact {
	padding: 0 var(--tma-gutter);
	background: linear-gradient(180deg, var(--tma-bg) 0 50%, var(--tma-ink) 50% 100%);
}

.tma-contact__card {
	position: relative;
	display: flex;
	flex-direction: column;
	max-width: var(--tma-card-max);
	min-height: 500px;
	margin-inline: auto;
	overflow: hidden;
	border-radius: var(--louhos-radius-lg);
	background: var(--tma-ink);
	color: rgba(255, 255, 255, 0.9);
	isolation: isolate;
}

.tma-contact__card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(15, 15, 15, 0.7) 0%, rgba(15, 15, 15, 0.35) 60%, rgba(15, 15, 15, 0.45) 100%);
}

.tma-contact__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tma-contact__grid {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 32px;
	padding: clamp(28px, 2.7vw, 52px) clamp(20px, 4.2vw, 80px) 32px;
}

.tma-contact .tma-eyebrow {
	border-color: rgba(255, 255, 255, 0.18);
	background: rgba(20, 20, 20, 0.55);
	color: #fff;
}

.tma-contact__title {
	margin: 0 0 18px;
	color: #fff;
	font-size: clamp(2.25rem, 1.4rem + 2.2vw, 3.5rem);
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.tma-contact__text p:not(.tma-eyebrow) {
	max-width: 460px;
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
}

.tma-contact__cards {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tma-contact__item {
	position: relative;
	display: flex;
	flex-direction: column;
	padding: 20px 22px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: var(--louhos-radius);
	background: rgba(255, 255, 255, 0.1);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}

.tma-contact__icon {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin-bottom: 22px;
	border-radius: 50%;
	background: #fff;
	color: var(--tma-ink);
	font-size: 16px;
}

.tma-contact__label {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.875rem;
}

.tma-contact__value {
	color: #fff;
	font-size: 1.25rem;
	font-weight: 500;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.tma-contact__value::after {
	content: "";
	position: absolute;
	inset: 0;
}

.tma-contact__item:hover {
	background: rgba(255, 255, 255, 0.16);
}

.tma-contact__item:focus-within {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

.tma-contact__value:focus-visible {
	outline: none;
}

.tma-contact__bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	margin: 0 var(--tma-inset) var(--tma-inset);
	padding: 12px 12px 12px clamp(18px, 1.5vw, 28px);
	border-radius: var(--louhos-radius);
	background: var(--tma-orange);
}

.tma-contact__bar-text {
	margin: 0;
	color: #fff;
	font-family: var(--tma-font-display);
	font-size: clamp(1.25rem, 1rem + 0.6vw, 1.5rem);
	font-weight: 600;
	line-height: 1.2;
}

@media (min-width: 992px) {
	.tma-contact__grid {
		flex-direction: row;
		justify-content: space-between;
	}

	.tma-contact__cards {
		flex: 0 0 320px;
		align-self: flex-start;
	}
}

/* ---------------------------------------------------------------- footer */
.tma-footer {
	padding: var(--tma-section) 0 0;
	border-top: 0;
	background: var(--tma-ink);
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.875rem;
	line-height: 1.6;
}

.tma-footer a {
	color: rgba(255, 255, 255, 0.78);
	text-decoration: none;
}

.tma-footer a:hover,
.tma-footer a:focus-visible {
	color: #fff;
}

.tma-footer__columns {
	display: grid;
	gap: 40px;
}

@media (min-width: 768px) {
	.tma-footer__columns {
		grid-template-columns: repeat(3, 1fr);
	}

	.tma-footer__brand {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1200px) {
	/* Brand left; the three link columns grouped tightly on the right. */
	.tma-footer__columns {
		grid-template-columns: minmax(0, 400px) 1fr repeat(3, auto);
		column-gap: clamp(40px, 4vw, 72px);
	}

	.tma-footer__brand {
		grid-column: 1;
	}

	.tma-footer__brand + * {
		grid-column: 3;
	}
}

.tma-footer__brand img {
	display: block;
	width: 124px;
	height: auto;
}

.tma-footer__brand p {
	max-width: 400px;
	margin: 20px 0 0;
}

.tma-footer__social {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 20px 0 0;
	padding: 0;
	list-style: none;
}

.tma-footer__social a {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border: 1px solid rgba(211, 110, 44, 0.35);
	border-radius: 50%;
	background: rgba(211, 110, 44, 0.14);
	color: var(--tma-orange);
	font-size: 14px;
}

.tma-footer__social a:hover,
.tma-footer__social a:focus-visible {
	background: var(--tma-orange);
	color: #fff;
}

.tma-footer__heading {
	margin: 0 0 22px;
	color: #fff;
	font-family: var(--louhos-font-family);
	font-size: 0.9375rem;
	font-weight: 600;
}

.tma-footer__list {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.tma-footer__list li,
.tma-footer__list a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.tma-footer__list .tma-icon {
	color: var(--tma-orange);
	font-size: 16px;
}

.tma-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	margin-top: clamp(40px, 4vw, 64px);
	/* Bottom room so the fixed cookie button never covers this row. */
	padding-block: 26px 88px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.8125rem;
}

.tma-footer__bottom p {
	margin: 0;
}

.tma-footer__bottom a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ------------------------------------------------- cookie banner (Complianz) */
/* Complianz prints its banner settings as :root variables; html:root wins. */
html:root {
	--cmplz_banner_width: 460px;
	--cmplz_banner_background_color: rgba(20, 20, 20, 0.94);
	--cmplz_banner_border_color: rgba(255, 255, 255, 0.12);
	--cmplz_banner_border_width: 1px;
	--cmplz_banner_border_radius: 16px;
	--cmplz_banner_margin: 16px;
	--cmplz_title_font_size: 20px;
	--cmplz_text_color: rgba(255, 255, 255, 0.82);
	--cmplz_hyperlink_color: #fff;
	--cmplz_text_font_size: 13px;
	--cmplz_link_font_size: 13px;
	--cmplz_category_body_font_size: 13px;
	--cmplz_button_accept_background_color: var(--tma-orange-strong);
	--cmplz_button_accept_border_color: var(--tma-orange-strong);
	--cmplz_button_accept_text_color: #fff;
	--cmplz_button_deny_background_color: transparent;
	--cmplz_button_deny_border_color: rgba(255, 255, 255, 0.6);
	--cmplz_button_deny_text_color: #fff;
	--cmplz_button_settings_background_color: transparent;
	--cmplz_button_settings_border_color: rgba(255, 255, 255, 0.2);
	--cmplz_button_settings_text_color: #fff;
	--cmplz_button_border_radius: 999px;
	--cmplz_button_font_size: 14px;
	--cmplz_category_header_always_active_color: #f0a46e;
	--cmplz_category_header_title_font_size: 14px;
	--cmplz_slider_active_color: var(--tma-orange);
	--cmplz_slider_inactive_color: rgba(255, 255, 255, 0.25);
	--cmplz_slider_bullet_color: #fff;
}

.cmplz-cookiebanner {
	font-family: var(--louhos-font-family);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
}

.cmplz-cookiebanner .cmplz-header .cmplz-title {
	color: #fff;
	font-family: var(--tma-font-display);
	font-weight: 600;
	letter-spacing: -0.01em;
	text-align: left;
}

.cmplz-cookiebanner .cmplz-close {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	color: #fff;
	transition: background-color 0.2s ease;
}

.cmplz-cookiebanner .cmplz-close:hover {
	background: rgba(255, 255, 255, 0.1);
}

.cmplz-cookiebanner .cmplz-close svg {
	width: 12px;
	height: 12px;
}

.cmplz-cookiebanner .cmplz-divider {
	border-color: rgba(255, 255, 255, 0.1);
}

.cmplz-cookiebanner .cmplz-buttons {
	gap: 8px;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
	min-height: 44px;
	padding: 10px 18px;
	border-width: 1px;
	font-weight: 500;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept:hover {
	border-color: var(--tma-orange-hover);
	background: var(--tma-orange-hover);
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn:not(.cmplz-accept):hover {
	border-color: #fff;
	background: rgba(255, 255, 255, 0.1);
}

.cmplz-cookiebanner .cmplz-links .cmplz-link {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* body prefix: Complianz's own stylesheet loads after this one. */
body .cmplz-cookiebanner .cmplz-categories .cmplz-category {
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
}

.cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-category-header .cmplz-category-title {
	color: #fff;
}

.cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-category-header .cmplz-icon.cmplz-open svg {
	fill: #fff;
}

.cmplz-cookiebanner .cmplz-categories .cmplz-category .cmplz-description {
	color: rgba(255, 255, 255, 0.75);
}

.cmplz-cookiebanner :focus-visible,
.cmplz-manage-consent:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

/* Complianz's own "manage consent" tab is replaced by .tma-cookie-btn. */
#cmplz-manage-consent {
	display: none;
}

/* Always-visible cookie settings button: icon, label slides out on hover. */
.tma-cookie-btn {
	position: fixed;
	bottom: 16px;
	left: 16px;
	z-index: 1020;
	display: inline-flex;
	align-items: center;
	height: 48px;
	padding: 0 6px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(20, 20, 20, 0.88);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
	color: #fff;
	font-family: var(--louhos-font-family);
	font-size: 0.875rem;
	font-weight: 500;
	cursor: pointer;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.tma-cookie-btn__icon {
	display: grid;
	flex: none;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(211, 110, 44, 0.18);
	color: var(--tma-orange);
	font-size: 20px;
	transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), background-color 0.25s ease, color 0.25s ease;
}

.tma-cookie-btn__label {
	max-width: 0;
	overflow: hidden;
	white-space: nowrap;
	opacity: 0;
	transition: max-width 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.25s ease, padding 0.35s ease;
}

.tma-cookie-btn:hover,
.tma-cookie-btn:focus-visible {
	background: var(--tma-ink);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
	transform: translateY(-2px);
}

.tma-cookie-btn:hover .tma-cookie-btn__icon,
.tma-cookie-btn:focus-visible .tma-cookie-btn__icon {
	background: var(--tma-orange);
	color: #fff;
	transform: rotate(-20deg);
}

.tma-cookie-btn:hover .tma-cookie-btn__label,
.tma-cookie-btn:focus-visible .tma-cookie-btn__label {
	max-width: 12rem;
	padding: 0 12px 0 10px;
	opacity: 1;
}

/* ------------------------------------------------------- accessibility */
:focus-visible {
	outline: 3px solid var(--tma-orange-strong);
	outline-offset: 2px;
}

.tma-header :focus-visible,
.tma-hero :focus-visible,
.tma-service :focus-visible,
.tma-contact :focus-visible,
.tma-footer :focus-visible,
.tma-lightbox :focus-visible {
	outline-color: #fff;
}

.tma-contact__bar :focus-visible {
	outline-color: var(--tma-ink);
}

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