/* =========================================================
   Railship — main stylesheet (corporate edition)
   All visual rules live here. WordPress updates never touch this file.
   Palette (dark): base #0a1520 · raised #0f1e2c · panel #13263a · steel #4f8fc8 · text #e7edf3
   Type: IBM Plex Sans (self-hosted, assets/fonts), one family, two weights.
   ========================================================= */

@font-face {
	font-family: "Plex";
	font-style: normal; font-weight: 400; font-display: swap;
	src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Plex";
	font-style: normal; font-weight: 400; font-display: swap;
	src: url(../fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format("woff2");
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Plex";
	font-style: normal; font-weight: 600; font-display: swap;
	src: url(../fonts/ibm-plex-sans-latin-600-normal.woff2) format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Plex";
	font-style: normal; font-weight: 600; font-display: swap;
	src: url(../fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format("woff2");
	unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	--base: #0a1520;      /* page background */
	--raised: #0f1e2c;    /* alternate sections */
	--panel: #13263a;     /* form, inputs */
	--deep: #060e16;      /* top bar, footer */
	--steel: #4f8fc8;     /* single accent */
	--steel-hover: #24598a;
	--text: #e7edf3;
	--muted: #93a4b6;
	--line: rgba(231,237,243,.12);
	--line-strong: rgba(231,237,243,.28);
	--container: 1200px;
	--gutter: 32px;
	--font: "Plex", "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background: var(--base);
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.15; letter-spacing: -.015em; }
h2 { font-size: clamp(30px, 3.4vw, 42px); max-width: 20ch; }
h3 { font-size: 19px; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--steel); outline-offset: 3px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding: clamp(72px, 9vw, 128px) 0; }
.section--mist { background: var(--raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lead { font-size: 19px; line-height: 1.65; color: var(--muted); max-width: 60ch; }

.skip-link { position: absolute; left: -9999px; top: 8px; background: var(--text); color: var(--base); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* section heading block: short navy rule + title, used identically everywhere */
.heading { max-width: 760px; }
.heading::before { content: ""; display: block; width: 48px; height: 2px; background: var(--steel); margin-bottom: 28px; }
.heading .lead { margin-top: 18px; }

/* ---- buttons ---- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 28px;
	font-weight: 600; font-size: 16px;
	border: 1px solid transparent; border-radius: 2px;
	cursor: pointer; white-space: nowrap;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn--primary { background: #2c6aa3; color: #fff; }
.btn--primary:hover { background: var(--steel-hover); }
.btn--light { background: var(--text); color: var(--base); }
.btn--light:hover { background: #fff; }
.btn--outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--text); }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 15px; }
.textlink { font-weight: 600; color: var(--text); border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.textlink:hover { border-color: var(--text); }

/* ---- utility bar + header ---- */
.topbar { background: var(--deep); color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar a:hover { color: var(--text); }
.topbar__meta { display: flex; gap: 28px; }

.site-header {
	position: sticky; top: 0; z-index: 50;
	background: rgba(10,21,32,.94);
	backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 76px; }
.logo__svg { width: 192px; height: 34px; }
.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav__list { display: flex; gap: 32px; }
.site-nav__list a { font-size: 15px; font-weight: 600; color: var(--text); padding: 26px 0; position: relative; }
.site-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; height: 2px; background: var(--steel); transform: scaleX(0); transform-origin: left; transition: transform .18s; }
.site-nav__list a:hover::after { transform: scaleX(1); }
.nav-toggle { display: none; }

/* language switcher — plain text links with flags, as on corporate sites */
.langs { display: inline-flex; align-items: center; gap: 14px; }
.langs__item { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: inherit; opacity: .85; }
.langs__item:hover, .langs__item.is-active { opacity: 1; }
.langs__item.is-active span { text-decoration: underline; text-underline-offset: 4px; }
.flag { width: 18px; height: 12px; }
.site-header .langs { display: none; } /* shown only in the mobile menu; desktop uses the top bar */

/* ---- hero ---- */
.hero {
	position: relative; overflow: hidden;
	background: var(--base); color: var(--text);
	padding: clamp(96px, 12vw, 180px) 0 clamp(72px, 9vw, 120px);
	border-bottom: 1px solid var(--line);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; opacity: .9; pointer-events: none; }
.hero__inner { position: relative; }
.hero__title { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.05; letter-spacing: -.025em; max-width: 14ch; }
.hero__text { margin-top: 28px; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--muted); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 44px; }
.hero__strip { position: relative; border-top: 1px solid var(--line); margin-top: clamp(56px, 7vw, 96px); padding-top: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.hero__strip li { font-size: 15px; color: var(--muted); padding-left: 16px; border-left: 1px solid var(--line); }
.hero__strip li strong { display: block; color: var(--text); font-weight: 600; font-size: 16px; }

/* ---- about ---- */
.about__inner { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.about__body p + p { margin-top: 18px; }
.about__body .lead { max-width: none; color: var(--text); font-size: 19px; }
.about__body p { color: var(--muted); }
.member { display: flex; gap: 18px; align-items: center; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.member__mark { flex: none; width: 56px; height: 56px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--steel); }
.member__mark .icon { width: 28px; height: 28px; }
.member strong { display: block; font-weight: 600; color: var(--text); }
.member span { color: var(--muted); font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.facts__item { padding: 26px 24px 26px 0; border-right: 1px solid var(--line); }
.facts__item + .facts__item { padding-left: 24px; }
.facts__item:last-child { border-right: 0; }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { font-size: 22px; font-weight: 600; margin-top: 6px; color: var(--text); }

/* ---- services: hairline grid, no cards ---- */
.services__list { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { padding: 36px 32px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; }
.services__list > .service:last-child:nth-child(3n+2) { grid-column: span 2; }
.service__icon { width: 40px; height: 40px; color: var(--steel); margin-bottom: 26px; }
.service__icon .icon { width: 40px; height: 40px; }
.service p { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* ---- process: numbered because it is a sequence ---- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 28px; margin-top: clamp(40px, 5vw, 64px); }
.step { border-top: 1px solid var(--line-strong); padding: 20px 0 36px; }
.step__num { display: block; font-size: 14px; font-weight: 600; color: var(--steel); font-variant-numeric: tabular-nums; }
.step h3 { margin-top: 12px; font-size: 19px; color: var(--text); }
.step p { margin-top: 8px; font-size: 16px; color: var(--muted); }

/* ---- contact ---- */
.contact { background: var(--raised); border-top: 1px solid var(--line); }
.contact__inner { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__list { margin-top: 40px; border-top: 1px solid var(--line); }
.contact__list li { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.contact__list span { color: var(--muted); }
.contact__list a { color: var(--text); font-weight: 600; }
.contact__list a:hover { text-decoration: underline; }

.form { background: var(--panel); padding: clamp(28px, 3.5vw, 44px); border: 1px solid var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__field { display: block; margin-bottom: 20px; }
.form__field span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form input[type="text"], .form input[type="email"], .form textarea {
	width: 100%; font: inherit; color: var(--text);
	padding: 13px 14px; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--base);
	transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--steel); box-shadow: 0 0 0 3px rgba(79,143,200,.25); }
.form textarea { resize: vertical; min-height: 140px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.form__status { font-size: 15px; min-height: 1em; }
.form__status.is-ok { color: #7fd1a4; }
.form__status.is-error { color: #f08b80; }
.form__note { margin-top: 16px; font-size: 13px; color: var(--muted); }
.form.is-sending button { opacity: .6; pointer-events: none; }

/* ---- footer ---- */
.site-footer { background: var(--deep); color: var(--muted); font-size: 15px; border-top: 1px solid var(--line); }
.site-footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 64px 0 48px; }
.site-footer__brand .logo__svg { width: 170px; height: 30px; margin-bottom: 22px; }
.site-footer__brand p { margin-top: 4px; max-width: 36ch; }
.site-footer a { color: var(--text); }
.site-footer a:hover { text-decoration: underline; }
.site-footer h3 { font-size: 14px; color: var(--muted); font-weight: 600; margin-bottom: 16px; }
.site-footer__col > a { display: block; padding: 5px 0; }
.site-footer .langs { flex-direction: column; align-items: flex-start; gap: 8px; }
.site-footer .langs__item { font-size: 15px; }
.site-footer__bottom {
	display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
	padding: 22px 0 28px; border-top: 1px solid var(--line); font-size: 13px;
}
.to-top { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.to-top .icon { width: 14px; height: 14px; }

/* ---- 404 ---- */
.notfound { min-height: 50vh; }
.notfound h1 { font-size: clamp(32px, 4vw, 48px); }
.notfound .lead { margin: 16px 0 28px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
	.services__list { grid-template-columns: repeat(2, 1fr); }
	.services__list > .service:last-child:nth-child(3n+2) { grid-column: auto; }
	.services__list > .service:last-child:nth-child(2n+1) { grid-column: span 2; }
	.steps { grid-template-columns: repeat(3, 1fr); }
	.hero__strip { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
}

@media (max-width: 880px) {
	:root { --gutter: 24px; }
	.topbar__meta { display: none; }
	.about__inner, .contact__inner { grid-template-columns: 1fr; }
	.facts { grid-template-columns: 1fr; }
	.facts__item { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px 0; }
	.facts__item + .facts__item { padding-left: 0; }
	.contact__list li { grid-template-columns: 1fr; gap: 4px; }

	/* mobile navigation */
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 2px;
		background: transparent; color: var(--text); cursor: pointer;
	}
	.nav-toggle .icon { width: 22px; height: 22px; }
	.nav-toggle .icon--close { display: none; }
	.nav-toggle[aria-expanded="true"] .icon--menu { display: none; }
	.nav-toggle[aria-expanded="true"] .icon--close { display: block; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 20px;
		background: var(--base); border-bottom: 1px solid var(--line);
		padding: 8px var(--gutter) 28px;
		display: none;
	}
	.site-nav.is-open { display: flex; }
	.site-nav__list { flex-direction: column; gap: 0; }
	.site-nav__list a { display: block; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
	.site-nav__list a::after { display: none; }
	.site-header .langs { display: inline-flex; }
	.site-nav .btn { align-self: flex-start; }
}

@media (max-width: 600px) {
	body { font-size: 16px; }
	.hero__strip { grid-template-columns: 1fr; }
	.services__list, .steps, .form__row { grid-template-columns: 1fr; }
	.services__list > .service:last-child:nth-child(n) { grid-column: auto; }
	.service { padding: 28px 22px 30px; }
	.hero__actions .btn { width: 100%; }
	.site-footer__inner { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 32px; }
	.lead { font-size: 17px; }
}

/* ---- legal pages (privacy policy) ---- */
.legal__inner { max-width: 820px; }
.legal h1 { font-size: clamp(32px, 4vw, 48px); }
.legal__body { margin-top: 48px; border-top: 1px solid var(--line); padding-top: 8px; }
.legal__body h2 { font-size: 20px; margin-top: 36px; max-width: none; }
.legal__body p { margin-top: 10px; color: var(--muted); max-width: 68ch; }
.legal__updated { font-size: 14px; margin: 40px 0 28px; }
.form__note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* larger touch targets for the language switcher on phones and tablets */
@media (max-width: 880px) {
	.topbar__inner { min-height: 44px; justify-content: flex-end; }
	.langs { gap: 4px; }
	.langs__item { padding: 12px 10px; font-size: 14px; }
	.site-footer .langs__item { padding: 8px 0; }
}
