/* ==========================================================================
   TSMI – the light design, on top of the shared styles in main.css.
   Colours come from the same variables (Website settings → Colours).
   ========================================================================== */

body {
	background: var(--tsm-bg);
}

.bg-white { background: #fff; }
.bg-light { background: var(--tsm-light); }
.bg-blue { background: linear-gradient(90deg, var(--tsm-btn-a) -20%, var(--tsm-btn-b) 50%); }

.eyebrow {
	color: var(--tsm-primary);
}

/* Keyboard focus: dark blue on light backgrounds, light blue on photos and dark areas */
:focus-visible {
	outline: 2px solid var(--tsm-primary);
	outline-offset: 2px;
}

.site-header :focus-visible,
.hero-slider :focus-visible,
.tsm-banner :focus-visible,
.home-banner :focus-visible,
.bg-blue :focus-visible {
	outline-color: #fff;
}

/* Text on photos and on blue stays white */
.hero-slide__title,
.hero-slide__text,
.tsm-banner__title,
.home-banner__title,
.bg-blue h2,
.bg-blue h3 {
	color: #fff;
}

.eyebrow--light,
.tsm-banner .eyebrow {
	color: #fff;
	border-left-color: var(--tsm-secondary);
}

/* ---------- Header logo: shown in its own colours (not turned white) ---------- */

.tsm-logo img {
	filter: none;
}

/* ---------- Header dropdown: light, like the footer ---------- */

.dropdown__inner {
	background: var(--tsm-light) url("../img/footer-bg.png") center / cover no-repeat;
}

.dropdown__heading {
	color: var(--tsm-heading);
}

.dropdown__links a {
	color: var(--tsm-heading);
}

.dropdown__links a:hover,
.dropdown__links a:focus-visible {
	color: var(--tsm-primary);
}

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

/* The slider fades into the blue partners strip below it */
.hero-slider::after {
	background: linear-gradient(90deg, var(--tsm-btn-a) -20%, var(--tsm-btn-b) 50%);
}

.tsm-banner::after {
	display: none;
}

/* ---------- Official partners strip (Homepage) ---------- */

.partners-strip__inner {
	display: flex;
	align-items: center;
	gap: 40px;
}

.partners-strip__title {
	flex: 0 0 35%;
	padding: 0 10px;
}

.partners-strip__title .h2 {
	color: rgba(255, 255, 255, .96);
}

.partners-strip__logos {
	flex: 1 1 80%;
	width: auto;
	justify-content: space-between;
}

.partners-strip__logos img {
	height: 90px;
	opacity: 1;
}

/* ---------- Photos ---------- */

.media-500 {
	display: block;
	width: 100%;
	height: 500px;
	object-fit: cover;
	object-position: top center;
}

.media-round {
	border-radius: 20px;
	box-shadow: 0 0 10px 5px rgba(0, 0, 0, .07);
}

.media-tall {
	height: 600px;
}

/* Partners card on the About photo */
.overlap-card {
	background: #fff;
}

.overlap-card__title {
	color: var(--tsm-text);
}

.tsm-partners .tsm-partners__logos img {
	opacity: 1;
}

/* ---------- Cards ---------- */

.card {
	gap: 30px;
	padding: 40px;
	background: #F3F7FA;
	border-radius: 30px;
	box-shadow: 0 0 10px 5px rgba(0, 0, 0, .05);
	transition: background .3s;
}

.card:hover {
	background: #fff;
}

.card__image {
	height: 220px;
	border-radius: 20px;
}

.card__body {
	width: 100%;
	margin-top: 0;
	padding: 0;
	background: none;
	border-radius: 0;
}

.card--business .card__body {
	min-height: 0;
}

.card__top {
	min-height: 235px;
	gap: 10px;
}

.cards--compact .card__top {
	min-height: 235px;
}

/* ---------- Photo banner (Homepage) ---------- */

.home-banner {
	background-position: top center;
}

.home-banner::before {
	background: linear-gradient(0deg, rgba(10, 10, 10, .75) 0%, rgba(10, 10, 10, 0) 70%);
	opacity: 1;
}

.home-banner__title {
	font-weight: 600;
	font-size: 2rem;
	line-height: 1.4;
}

/* ---------- Our mother company (Homepage) ---------- */

.mother-logo {
	align-items: center;
}

.mother-logo img {
	display: block;
	width: 45%;
	min-width: 180px;
	margin: 0 auto;
}

.mother-logo a {
	display: block;
	width: 100%;
}

/* ---------- Vision and mission (About) ---------- */

.vision-mission .row {
	gap: 20px;
}

.vision-mission .col {
	gap: 20px;
}

/* ---------- History road (About) ---------- */

.sec--history {
	overflow: hidden;
}

.sec--history .sec-head {
	padding: 10px;
}

.vrt {
	--road: #14366B;
	position: relative;
	padding: 40px 0 90px;
}

.vrt-canvas {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	aspect-ratio: 1200 / 900;
}

.vrt-road {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.vrt-asphalt { fill: none; stroke: var(--road); stroke-width: 46; stroke-linecap: round; opacity: .92; }
.vrt-marks { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 16 14; stroke-linecap: round; opacity: .65; }
.vrt-progress { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 255, 255, .9)); }
.vrt-car { fill: #fff; }
.vrt-car-glow { fill: rgba(255, 255, 255, .4); }

.vrt-start,
.vrt-flag {
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	font-family: var(--tsm-font-head);
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .12em;
	color: #fff;
	text-shadow: 0 1px 6px rgba(13, 43, 78, .6);
	text-align: center;
}

.vrt-start { top: 1%; }
.vrt-flag { top: 95%; font-size: 30px; line-height: 1; }
.vrt-flag em { display: block; font-style: normal; font-size: 13px; margin-top: 2px; }

.vrt-dot {
	position: absolute;
	left: 50%;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	border: 3px solid var(--road);
	box-shadow: 0 0 0 4px rgba(255, 255, 255, .25);
}

.vrt-stop {
	position: absolute;
	display: flex;
	align-items: center;
	gap: 18px;
	width: min(42%, 480px);
	transform: translateY(-50%);
	opacity: 0;
	transition: opacity .7s ease, transform .7s ease;
}

.vrt-stop.is-right {
	left: calc(50% + 48px);
	transform: translateY(-50%) translateX(30px);
}

.vrt-stop.is-left {
	right: calc(50% + 48px);
	flex-direction: row-reverse;
	text-align: right;
	transform: translateY(-50%) translateX(-30px);
}

.vrt-stop.is-visible {
	opacity: 1;
	transform: translateY(-50%) translateX(0);
}

.vrt-logo {
	width: 72px;
	height: 72px;
	flex: none;
	border-radius: 14px;
	background: #fff;
	border: 1.5px dashed rgba(255, 255, 255, .7);
	box-shadow: 0 6px 16px rgba(13, 43, 78, .25);
	display: flex;
	align-items: center;
	justify-content: center;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
}

.vrt-logo img { max-width: 56px; max-height: 56px; object-fit: contain; }
.vrt-logo span { font-size: 11px; color: rgba(33, 33, 33, .6); }
.vrt-year { font-family: var(--tsm-font-head); font-weight: 600; font-size: 30px; line-height: 1.1; color: #fff; }
.vrt-desc { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .85); }

.vrt-mobile { display: none; }

.vrt-noscript {
	max-width: 600px;
	margin: 0 auto;
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.vrt-stop, .vrt-mstop { opacity: 1 !important; transition: none; }
	.vrt-stop { transform: translateY(-50%) !important; }
	.vrt-mstop { transform: none !important; }
	.vrt-progress, .vrt-car, .vrt-car-glow { display: none; }
}

/* ---------- Core values (About) ---------- */

.values-photo {
	position: relative;
	padding: 10px;
}

.values-photo__image {
	display: block;
	width: 100%;
	height: auto;
}

.values-photo__label {
	position: relative;
	width: 250px;
	margin-top: -90px;
	padding: 20px 0 30px;
	background: #fff;
	border-radius: 0 15px 0 0;
}

.values-intro {
	margin: 55px 0 75px;
	padding: 0 10px;
}

.values-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	row-gap: 21px;
}

.value__icon {
	width: 50px;
}

/* ---------- Business pages: photo grid ---------- */

.photo-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.photo-grid__item {
	display: block;
	aspect-ratio: 6 / 5;
	overflow: hidden;
}

.photo-grid__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

.photo-grid__item:hover img {
	transform: scale(1.04);
}

/* ---------- Management ---------- */

.person {
	padding: 40px;
	background: var(--tsm-light);
	border-radius: 30px;
}

.person__photo {
	border-radius: 20px;
}

.person__card {
	min-height: 180px;
	background: none;
}

.person__position {
	color: var(--tsm-primary);
}

/* ---------- Contact & forms ---------- */

.icon-list svg {
	color: var(--tsm-heading);
}

.icon-list a:hover {
	color: var(--tsm-primary);
}

.form-field label {
	color: var(--tsm-text);
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea,
.form-field input[type="file"] {
	color: var(--tsm-heading);
	background: var(--tsm-light);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
	color: rgba(33, 33, 33, .45);
}

.form-message {
	color: var(--tsm-heading);
}

.social-icon {
	color: var(--tsm-heading);
}

a.social-icon:hover {
	color: var(--tsm-primary);
}

/* ---------- Page text (Privacy Policy) ---------- */

.entry-content h2 {
	color: var(--tsm-heading);
}

.entry-content a,
.tsm-text a {
	color: var(--tsm-primary);
}

/* ---------- Footer: light, with the blue texture ---------- */

.site-footer {
	background: #fff url("../img/footer-bg.png") center / cover no-repeat;
}

.footer-main {
	padding-top: 3.55vw;
	padding-bottom: 3.55vw;
	background: none;
	border-bottom: 0;
}

.footer-logo img {
	filter: none;
	mix-blend-mode: multiply; /* the logo file has a white background */
}

.footer-title {
	color: var(--tsm-heading);
}

.footer-title a:hover,
.footer-list a:hover,
.footer-privacy a:hover {
	color: var(--tsm-primary);
}

/* ==========================================================================
   Tablet (≤1200px)
   ========================================================================== */

@media (max-width: 1200px) {
	/* Mobile menu panel: light, with dark links */
	.menu-list {
		background: var(--tsm-light) url("../img/footer-bg.png") center / cover no-repeat;
	}
	.menu-link,
	.dropdown__links a {
		color: var(--tsm-heading);
	}
	.menu-link:hover,
	.menu-link:focus-visible,
	.menu-item.is-open > .menu-link,
	.dropdown__links a:hover {
		color: var(--tsm-primary);
	}
	.site-header .menu-list :focus-visible {
		outline-color: var(--tsm-primary);
	}
	.partners-strip__inner { gap: 30px; }
	.partners-strip__logos img { height: 65px; }
	.card { padding: 30px; }
	.card__top, .cards--compact .card__top { min-height: 0; }
	.photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1023px) {
	.vrt-canvas { display: none; }
	.vrt-mobile {
		display: block;
		position: relative;
		max-width: 480px;
		margin: 30px auto 0;
		padding: 0 24px;
	}
	.vrt-mobile::before {
		content: "";
		position: absolute;
		left: 34px;
		top: 10px;
		bottom: 10px;
		border-left: 3px dashed rgba(255, 255, 255, .6);
	}
	.vrt-mstop {
		position: relative;
		padding: 0 0 34px 46px;
		opacity: 0;
		transform: translateY(20px);
		transition: opacity .6s ease, transform .6s ease;
	}
	.vrt-mstop.is-visible { opacity: 1; transform: none; }
	.vrt-mstop::before {
		content: "";
		position: absolute;
		left: 2px;
		top: 6px;
		width: 14px;
		height: 14px;
		border-radius: 50%;
		background: #fff;
		border: 3px solid var(--road);
	}
	.vrt-mstop .vrt-logo { width: 56px; height: 56px; margin-bottom: 8px; }
	.vrt-mstop .vrt-logo img { max-width: 42px; max-height: 42px; }
	.vrt-mstop .vrt-year { font-size: 24px; }
}

/* ==========================================================================
   Mobile (≤767px)
   ========================================================================== */

@media (max-width: 767px) {
	.partners-strip__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
	.partners-strip__title { flex: none; }
	.partners-strip__logos { width: 100%; gap: 20px; }
	.partners-strip__logos img { height: 55px; }
	.media-500 { height: 300px; }
	.card { padding: 20px; gap: 20px; }
	.vision-mission .row { flex-direction: column; }
	.values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.values-photo__label { width: 180px; margin-top: -70px; padding: 14px 0 10px; }
	.photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.person { padding: 20px; }
	.mother-logo img { width: 60%; }
}
