/*
 * Ship Transport page (page-ship-transport.php — "Brodski transport").
 *
 * Loaded after services.css so the shared layout primitives (.service-hero,
 * .service-sidebar, .service-content, .service-faq, .service-form,
 * .service-poslovnice) come from there. This file adds the page-specific
 * BEM blocks: .ship-intro, .ship-vessels, .ship-specs, .ship-potisnice — and
 * the .cta--ink variant for the dark "DETALJNIJE" PDF buttons.
 *
 * Promoted Figma tokens (also live in global.css :root):
 *   --color-ink (#0a0a0a) — vessel titles, "DETALJNIJE" CTA, spec labels
 *   --color-brand-red (#bb2548) — spec card backgrounds
 *   --color-text-muted (#424242) — spec row values
 */

/* --------------------------------------------------------------
 * Overlay header — matches homepage and services placement. The
 * site-header is lifted out of flow so the hero image extends behind
 * it; .site-main resets top margin so the hero hugs y=0.
 * -------------------------------------------------------------- */
.page-template-page-ship-transport .site-header {
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	z-index: 10;
}

.page-template-page-ship-transport .site-main {
	margin-top: 0;
	overflow-x: clip;
}

/* --------------------------------------------------------------
 * Dark CTA variant — used by vessel "DETALJNIJE" PDF buttons. The
 * existing .cta--dark sits at #111820, the Figma spec is #0a0a0a.
 * -------------------------------------------------------------- */
.cta--ink {
	background: var(--color-ink, #0a0a0a);
}

.cta--ink:visited {
	background: var(--color-ink, #0a0a0a);
	color: #fff;
}

.cta--ink:hover,
.cta--ink:focus {
	background: #1f1f1f;
}

/* --------------------------------------------------------------
 * Intro — title + body next to the sidebar, no image.
 * -------------------------------------------------------------- */
.ship-intro {
	padding-top: 0;
}

.ship-intro__title {
	margin: 0 0 24px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 28px;
	line-height: 39px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--color-ink, #0a0a0a);
}

.ship-intro__text {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 26px;
	color: var(--color-text-muted, #424242);
}

.ship-intro__text + .ship-intro__title,
.ship-intro__title--secondary {
	margin-top: 32px;
}

/* --------------------------------------------------------------
 * Vessels — list of cards, each card = media (left) + body (right)
 * with dark CTA pointing to a PDF.
 * -------------------------------------------------------------- */
.ship-vessels__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.ship-vessels__item {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 30px;
	align-items: start;
}

.ship-vessels__media {
	margin: 0;
	border-radius: 10px;
	overflow: hidden;
	aspect-ratio: 372 / 309;
	background: #f0f0f0;
}

.ship-vessels__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.ship-vessels__body {
	display: flex;
	flex-direction: column;
	gap: 16px;
	align-items: flex-start;
	padding-top: 4px;
}

.ship-vessels__title {
	margin: 0;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 22px;
	line-height: 24px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--color-ink, #0a0a0a);
}

.ship-vessels__text {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 26px;
	letter-spacing: 0;
	color: var(--color-text-muted, #424242);
}

.ship-vessels__cta {
	padding: 18px 32px;
	font-size: 13px;
	letter-spacing: 1px;
	margin-top: 4px;
}

/* --------------------------------------------------------------
 * Specifications grid — red cards in a 2-column layout.
 * -------------------------------------------------------------- */
.ship-specs__title {
	margin: 0 0 32px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 28px;
	line-height: 39px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--color-ink, #0a0a0a);
}

.ship-specs__grid {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 30px 24px;
}

.ship-specs__title--secondary {
	margin-top: 0;
	margin-bottom: 16px;
	font-size: 22px;
	line-height: 28px;
	letter-spacing: 1px;
}

.ship-specs__text {
	margin: 0 0 32px;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 26px;
	letter-spacing: 0;
	color: var(--color-text-muted, #424242);
}

.ship-specs__card {
	background: var(--color-brand-red, #bb2548);
	border-radius: var(--radius-md, 10px);
	padding: 0;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.ship-specs__code {
	margin: 0;
	padding: 20px 24px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 22px;
	line-height: 24px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
}

.ship-specs__rows {
	margin: 0;
	background: #e9e9e9;
	border: 1px solid #cacaca;
	display: flex;
	flex-direction: column;
}

.ship-specs__row {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 24px;
	border-bottom: 1px solid #cacaca;
}

.ship-specs__row:last-child {
	border-bottom: none;
}

.ship-specs__row:nth-child(even) {
	background: #fff;
}

.ship-specs__row-label {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 700;
	font-size: 13px;
	line-height: 20px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #0a0a0a;
}

.ship-specs__row-value {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 13px;
	line-height: 20px;
	color: #424242;
}

/* --------------------------------------------------------------
 * Potisnice — white-panel card after the spec grid. Figma node
 * `83:2516` (1440 frame): white fill, 1px #c3c3c3 border, 4px radius.
 * -------------------------------------------------------------- */
.ship-potisnice {
	background: #fff;
	border: 1px solid #c3c3c3;
	border-radius: 4px;
	padding: 32px 32px 28px;
}

.ship-potisnice__title {
	margin: 0 0 17px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 18px;
	line-height: 22px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--color-ink, #0a0a0a);
}

.ship-potisnice__text {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 26px;
	color: var(--color-text-muted, #424242);
}

/* --------------------------------------------------------------
 * Info blocks — three stacked sections rendered after Potisnice:
 *   • .ship-info--process  red panel (process steps)
 *   • .ship-info--why      white panel + checkmark icon per card
 *   • .ship-info--key      red panel (key elements)
 * The shared layout follows the services template (.service-uz /
 * .service-zasto / .service-kljucni) — title + lead outside the
 * panel, cards stacked inside.
 * -------------------------------------------------------------- */
.ship-info__title {
	margin: 0 0 16px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 28px;
	line-height: 39px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: var(--color-ink, #0a0a0a);
}

.ship-info__intro {
	margin: 0 0 32px;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 26px;
	color: var(--color-text-muted, #424242);
}

.ship-info__panel {
	padding: 48px;
	border-radius: var(--radius-md, 10px);
	background: var(--color-brand-red, #bb2548);
	color: #fff;
}

.ship-info--why .ship-info__panel {
	background: #fff;
	border: 1px solid #c3c3c3;
	color: var(--color-ink, #0a0a0a);
}

.ship-info__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 32px;
}

.ship-info--why .ship-info__list {
	gap: 24px;
}

.ship-info__item {
	margin: 0;
	padding: 0;
}

.ship-info--why .ship-info__item {
	display: grid;
	grid-template-columns: 35px 1fr;
	gap: 18px;
	align-items: start;
}

.ship-info__icon {
	display: block;
	width: 35px;
	height: 35px;
	flex: 0 0 35px;
}

.ship-info__copy {
	min-width: 0;
}

.ship-info__item-title {
	margin: 0 0 8px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 22px;
	line-height: 24px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: #fff;
}

.ship-info--why .ship-info__item-title {
	font-size: 18px;
	line-height: 24px;
	color: var(--color-ink, #0a0a0a);
}

.ship-info__item-body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 26px;
	color: #fff;
}

.ship-info--why .ship-info__item-body {
	color: var(--color-text-muted, #424242);
}

/* --------------------------------------------------------------
 * Responsive — services.css already covers the shared blocks. These
 * rules adjust the ship-specific sections at each breakpoint.
 * -------------------------------------------------------------- */
@media screen and (max-width: 991px) {
	.ship-vessels__item {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.ship-vessels__media {
		aspect-ratio: 16 / 10;
	}

	.ship-specs__title,
	.ship-intro__title {
		font-size: 24px;
		line-height: 32px;
		letter-spacing: 1.5px;
	}

	.ship-info__title {
		font-size: 24px;
		line-height: 32px;
		letter-spacing: 1.5px;
	}

	.ship-info__panel {
		padding: 32px;
	}
}

@media screen and (max-width: 767px) {
	.ship-specs__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}
}

@media screen and (max-width: 599px) {
	.ship-vessels__list {
		gap: 28px;
	}

	.ship-vessels__title {
		font-size: 18px;
		line-height: 22px;
	}

	.ship-specs__title,
	.ship-intro__title {
		font-size: 22px;
		line-height: 28px;
		letter-spacing: 1px;
	}

	.ship-specs__code {
		padding: 16px 20px;
		font-size: 18px;
		line-height: 22px;
	}

	.ship-specs__row {
		padding: 10px 20px;
	}

	.ship-potisnice {
		padding: 24px 22px 22px;
	}

	.ship-info__title {
		font-size: 22px;
		line-height: 28px;
		letter-spacing: 1px;
	}

	.ship-info__panel {
		padding: 24px 22px;
	}

	.ship-info__list {
		gap: 24px;
	}

	.ship-info__item-title {
		font-size: 18px;
		line-height: 22px;
	}

	.ship-info--why .ship-info__item {
		grid-template-columns: 28px 1fr;
		gap: 14px;
	}

	.ship-info--why .ship-info__icon {
		width: 28px;
		height: 28px;
		flex: 0 0 28px;
	}
}

@media screen and (min-width: 1500px) {
	.ship-vessels__list {
		gap: 44px;
	}

	.ship-intro__title,
	.ship-specs__title,
	.ship-info__title {
		font-size: 32px;
		line-height: 44px;
	}
}
