/* =============================================================== */
/*                                                                 */
/*   PROJECT:     CTM WEBSITE                                      */
/*   VERSION:     3.0 (release date: 30.11.2025)                   */
/*                                                                 */
/*   CLIENT:      OBR CTM S.A. (ctm.gdynia.pl)                     */
/*   AUTHOR:      Szymon Rzepnikowski                              */
/*                                                                 */
/* =============================================================== */


/* ====================== TABLE OF CONTENTS ====================== */
/*
   1. MISJA SPÓŁKI ............... Sekcja hero z misją
   2. OBSZARY INNOWACJI .......... Karty/tilesy obszarów
   3. STATYSTYKI SPÓŁKI .......... KPI i statystyki
   4. NAJWAŻNIEJSZE WYDARZENIA ... Karty newsów
   5. ROZWÓJ ZAWODOWY ............ Kariera / rekrutacja
*/
/* =============================================================== */


/* ====================== SECTION 1: MISJA SPÓŁKI ====================== */
/* === MOBILE === */
.mission {
	padding: 0;
	text-transform: uppercase;
	color: #E5E9EE;
	font-size: 1.9em;
	font-family: "PT Sans Narrow", sans-serif !important;
	line-height: 1.1em;
}

.mission-down {
	font-size: 0.9em;
	line-height: 2em;
	color: rgb(255 255 255 / 50%);
	margin-bottom: 3%;
}

img.main-image {
	width: 100%;
	left: 0;
	position: relative;
}

/* === TABLET === */
@media (min-width: 768px) {
	.mission {
		padding: 140px 0 0 0;
		font-size: 2.4em;
	}

	.mission-down {
		font-size: 0.8em;
		line-height: 3em;
	}

	img.main-image {
		width: 55%;
		left: 20%;
	}

	h2 {
		font-size: 36px;
	}
}

/* === DESKTOP === */
@media (min-width: 1200px) {}


/* ====================== SECTION 2: OBSZARY INNOWACJI ====================== */
/* === MOBILE === */
.card-tile {
	position: relative;
	overflow: hidden;
	background: #ffffff;
	border-radius: 0.5rem;
	border: 1px solid rgba(15, 23, 42, 0.09) !important;
	transition: box-shadow .35s ease, border-color .35s ease, transform .35s ease, opacity .55s ease-in-out, filter .55s ease-in-out;
	will-change: box-shadow, transform;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important
}

.card-tile:hover {
	z-index: 1;
	transform: none;
	border-color: #cfd7e2;
	box-shadow:
		0 0 0 2px #00263d inset,
		0 20px 60px -10px rgba(0, 38, 61, .40),
		0 10px 28px -8px rgba(0, 38, 61, .28),
		0 2px 6px rgba(0, 0, 0, .06);
}

.card-tile::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 2px;
	background-color: #29abe2;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform .4s cubic-bezier(.4, 0, .2, 1);
	z-index: 2;
}

.card-tile:hover::after {
	transform: scaleX(1);
}

.card-tile .ratio {
	position: relative;
}

.card-tile .ratio::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: linear-gradient(90deg, rgba(16, 24, 40, .06) 0%, rgba(16, 24, 40, .12) 50%, rgba(16, 24, 40, .06) 100%);
	pointer-events: none;
}

.card-tile .ratio img {
	object-fit: cover;
	transition: transform .6s ease, filter .6s ease;
	transform: scale(1.02);
	position: relative;
	z-index: 0;
}

.card-tile .ratio::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(0, 38, 61, .15) 0%, rgba(0, 38, 61, .60) 100%);
	z-index: 1;
	pointer-events: none;
}

.card-tile:hover .ratio img {
	transform: scale(1.05);
	filter: brightness(1.04) saturate(1.06) contrast(1.03);
}

.card-tile .badge {
	z-index: 2;
	position: relative;
	text-transform: uppercase;
	font-weight: 400;
	font-family: "PT Sans Narrow", sans-serif !important;
	font-size: 0.8em;
}

.card-tile:focus-within,
.card-tile:focus-visible {
	outline-offset: 2px;
}

.tiles-animate>.col {
	opacity: 0;
	transform: translateY(14px);
	animation: tilesIn .6s cubic-bezier(.2, .7, .2, 1) both;
}

.tiles-animate>.col:nth-child(1) {
	animation-delay: .05s;
}

.tiles-animate>.col:nth-child(2) {
	animation-delay: .12s;
}

.tiles-animate>.col:nth-child(3) {
	animation-delay: .19s;
}

.tiles-animate>.col:nth-child(4) {
	animation-delay: .26s;
}

.tiles-animate>.col:nth-child(5) {
	animation-delay: .33s;
}

.tiles-animate>.col:nth-child(6) {
	animation-delay: .40s;
}

@keyframes tilesIn {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.row:has(.card-tile:hover) .card-tile:not(:hover) {
	opacity: .65;
	filter: brightness(.92);
}

@media (prefers-reduced-motion: reduce) {

	.card-tile,
	.card-tile .ratio img,
	.tiles-animate>.col {
		transition: none !important;
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* === TABLET === */
@media (min-width: 768px) {}

/* === DESKTOP === */
@media (min-width: 1200px) {}


/* ====================== SECTION 3: STATYSTYKI SPÓŁKI ====================== */
/* === MOBILE === */
.stats-inline {
	padding-top: .25rem;
	padding-bottom: .25rem;
}

.kpi {
	display: grid;
	gap: .25rem;
	justify-items: center;
	padding-top: .3rem;
}

.kpi-icon {
	font-size: 1.8rem;
	line-height: 1;
	color: #00263d;
	opacity: .6;
	margin-bottom: .35rem;
}

.kpi-value {
	line-height: 1;
	letter-spacing: .2px;
	color: #0f172a;
	margin: 0;
	font-size: clamp(2rem, 4.6vw, 3.5rem);
	font-family: "PT Sans Narrow", sans-serif !important;
	font-weight: 900;
}

.kpi-label {
	margin: 0;
	font-weight: 700;
	color: #152238;
	font-size: clamp(.95rem, 1.6vw, 1.05rem);
}

.kpi-sub {
	margin: 0;
	color: #64748b;
	font-size: clamp(.85rem, 1.4vw, .95rem);
}

.kpi:hover .kpi-value,
.kpi:focus-within .kpi-value {
	color: #00263d;
}

.kpi:hover .kpi-label,
.kpi:focus-within .kpi-label {
	color: #0f2840;
}

/* === TABLET === */
@media (min-width: 768px) {}

/* === DESKTOP === */
@media (min-width: 992px) {
	.stats-inline .row>*:not(:last-child) {
		position: relative;
	}

	.stats-inline .row>*:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 12%;
		right: -.5rem;
		height: 76%;
		width: 1px;
		background: linear-gradient(to bottom, rgba(0, 0, 0, .06), rgba(0, 0, 0, .12), rgba(0, 0, 0, .06));
	}
}


/* ====================== SECTION 4: NAJWAŻNIEJSZE WYDARZENIA ====================== */
/* === MOBILE === */
.news-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	color: #333;
	border-radius: 0.5rem;
	overflow: hidden;
	border: 1px solid rgba(15, 23, 42, 0.09);
	transition: transform .3s ease, box-shadow .3s ease;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

.news-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.news-card:focus-within,
.news-card:focus-visible {
	outline-offset: 2px;
}

.news-media {
	position: relative;
	overflow: hidden;
}

.news-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.news-media::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 4px;
	background: #00263d;
}

.news-body {
	padding: 1.25rem 1.25rem .5rem;
}

.news-title {
	font-weight: 600;
	margin-bottom: .5rem;
}

.news-title a {
	color: #1a1a1a;
	text-decoration: none;
}

.news-title a:hover {
	color: #29abe2;
}

.news-excerpt {
	color: #555;
	font-size: .95rem;
}

.news-meta-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: .85rem 1.25rem 1.1rem;
	border-top: 1px solid #eef0f4;
}

.news-date {
	display: flex;
	align-items: center;
	gap: .45rem;
	color: #6b7280;
	font-size: .88rem;
}

.news-date i {
	font-size: .95em;
	color: #9ca3af;
}

.btn-news {
	background: #00263d;
	color: #fff;
	font-weight: 600;
	padding: .45rem .9rem;
	border-radius: .4rem;
	text-decoration: none;
	font-size: .9rem;
	transition: background .25s ease;
}

.btn-news:hover {
	background: #2563eb;
}

.news-tiles>[class*="col-"] {
	opacity: 0;
	transform: translateY(14px);
	animation: tilesIn .6s cubic-bezier(.2, .7, .2, 1) both;
}

.news-tiles>[class*="col-"]:nth-child(1) {
	animation-delay: .05s;
}

.news-tiles>[class*="col-"]:nth-child(2) {
	animation-delay: .12s;
}

.news-tiles>[class*="col-"]:nth-child(3) {
	animation-delay: .19s;
}

.news-tiles>[class*="col-"]:nth-child(4) {
	animation-delay: .26s;
}

@media (prefers-reduced-motion: reduce) {
	.news-tiles>[class*="col-"] {
		transition: none !important;
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* === TABLET === */
@media (min-width: 768px) {}

/* === DESKTOP === */
@media (min-width: 1200px) {}


/* ====================== SECTION 5: ROZWÓJ ZAWODOWY ====================== */
/* === MOBILE === */
#kariera {
	scroll-margin-top: 80px;
}

.career-row {
	--bs-gutter-y: 1.5rem;
}

.career-intro {
	margin: 0 0 .85rem;
	font-size: clamp(.95rem, .95vw, 1rem);
	color: #5b6472;
}

.career-checklist {
	display: grid;
	grid-template-columns: 1fr;
	gap: .65rem 1.25rem;
	margin: 0;
	padding: 0;
}

.career-checklist li {
	display: flex;
	align-items: center;
	gap: .6rem;
	font-weight: 300;
	color: #6c757d !important;
}

.check-badge {
	width: 30px;
	height: 30px;
	border-radius: 0.5rem;
	display: inline-grid;
	place-items: center;
	background: #fff;
	border: 1px solid #d9e1ea;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.check-badge i {
	color: #29abe2;
	font-size: .95rem;
	line-height: 1;
}

.career-checklist li:hover .check-badge,
.career-checklist li:focus-within .check-badge {
	border-color: #bfd0ea;
	background: #f7f9fc;
}

#kariera .btn.btn-outline-secondary {
	border: 0.1px solid lightgray;
	color: #334155;
	background: #fff;
}

#kariera .img-cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.career-visual {
	border-radius: .75rem;
	overflow: hidden;
}

.career-copy,
.career-visual {
	opacity: 0;
	transform: translateY(14px);
	animation: tilesIn .6s cubic-bezier(.2, .7, .2, 1) .12s both;
}

.career-visual {
	animation-delay: .2s;
}

@media (prefers-reduced-motion: reduce) {

	.career-copy,
	.career-visual {
		transition: none !important;
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}
}

/* === TABLET === */
@media (min-width: 768px) {
	.career-checklist {
		grid-template-columns: 1fr;
	}
}

/* === DESKTOP === */
@media (min-width: 992px) {
	.career-checklist {
		grid-template-columns: repeat(2, 1fr);
		grid-auto-rows: auto;
	}

	.career-checklist li:nth-child(3n+1) {
		grid-column: 1;
	}

	.career-checklist li:nth-child(3n+4) {
		grid-column: 2;
	}
}

#kariera .btn.btn-outline-secondary:hover {
	border-color: #E5E9EE;
	color: #0f172a;
	background: rgba(229, 229, 229, 0.3);
}