/* Updated: 2026-10-03 16:30 (Europe/Zurich) */
/* KS Investments SA, single stylesheet (replaces Bootstrap, template CSS and icon fonts) */

/* ========== Tokens ========== */
:root {
	--blue: #1a76d1;
	--ink: #2c2d3f;
	--blue-dark: #1560ab;
	--blue-deep: #0f4c8a;
	--text: #5f6368;
	--muted: #6b6f76;
	--grey-bg: #f0f0f0;
	--font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--ease: .4s ease;
}

/* ========== Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { font: 400 14px/24px var(--font); color: var(--muted); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: all .3s ease; }
ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); font-weight: 500; line-height: 1.2; }
p { color: var(--text); }
strong { font-weight: 700; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.skip-link { position: absolute; left: 15px; top: -60px; z-index: 10000; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 4px; }
.skip-link:focus { top: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; margin: 0 auto; padding: 0 15px; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

.section { padding: 100px 0; }
.section + .section { padding-top: 0; }

/* ========== Animations ========== */
@keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, -100%, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }
@keyframes dash { 62.5% { opacity: 0; } to { stroke-dashoffset: 0; } }

/* ========== Preloader ========== */
.preloader { position: fixed; inset: 0; z-index: 99999; text-align: center; transition: .9s; }
.preloader::before, .preloader::after { content: ''; position: absolute; top: 0; left: 0; z-index: -1; width: 60%; height: 100%; background: var(--blue); transition: .9s; }
.preloader::after { left: auto; right: 0; }
.preloader .loader { position: absolute; left: 0; right: 0; top: 45%; width: 80px; height: 80px; margin: 0 auto; transform: translateY(-45%); transition: .5s; }
.loader-outer, .loader-inner { position: absolute; border: 4px solid #fff; border-radius: 50%; animation: spin 1s cubic-bezier(.42, .61, .58, .41) infinite; }
.loader-outer { width: 100%; height: 100%; border-left-color: transparent; border-bottom: 0; }
.loader-inner { width: 60px; height: 60px; left: calc(40% - 21px); top: calc(40% - 21px); border-right: 0; border-top-color: transparent; animation-name: spin-reverse; }
.preloader .indicator { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%) scale(1.5); }
.preloader .indicator svg { display: inline-block; }
.preloader polyline { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.preloader .back { stroke: #fff; }
.preloader .front { stroke: var(--blue); stroke-dasharray: 12, 36; stroke-dashoffset: 48; animation: dash 1s linear infinite; }
.preloader.is-done { visibility: hidden; }
.preloader.is-done::before, .preloader.is-done::after { width: 0; }
.preloader.is-done .loader { opacity: 0; visibility: hidden; }

/* ========== Header ========== */
.header { position: relative; background: #fff; }
.header-inner { position: relative; z-index: 999; width: 100%; background: var(--grey-bg); padding-bottom: 6px; }
.header.sticky .header-inner { position: fixed; top: 0; left: 0; box-shadow: 0 0 13px rgba(0, 0, 0, .33); animation: fadeInDown .5s both .1s; }
.header .bar { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; }
.logo { margin-top: 18px; width: 255px; }
.logo img { width: 255px; }

.menu-toggle { display: none; }
.navigation { flex: 0 0 100%; }
.nav-wrap { display: block; }
.nav { display: flex; flex-wrap: wrap; }
.nav li { margin-right: 15px; }
.nav li:last-child { margin-right: 0; }
.nav a { position: relative; display: inline-block; padding: 25px 12px; color: var(--ink); font-size: 14px; font-weight: 500; transition: all var(--ease); }
.nav a::before { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: var(--blue); border-radius: 5px 5px 0 0; opacity: 0; visibility: hidden; transition: all var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.nav a:hover::before, .nav a[aria-current="page"]::before { width: 100%; opacity: 1; visibility: visible; }

/* ========== Hero slider ========== */
.slider { position: relative; overflow: hidden; touch-action: pan-y; }
.slider-track { display: flex; transition: transform .5s ease; will-change: transform; }
.slider-track.no-transition { transition: none; }
.slide { position: relative; flex: 0 0 100%; min-height: 400px; background: center / cover no-repeat; }
.slide-1 { background-image: url('../img/slider.jpg'); background-image: image-set(url('../img/slider.webp') type('image/webp'), url('../img/slider.jpg') type('image/jpeg')); }
.slide-2 { background-image: url('../img/slider2.jpg'); background-image: image-set(url('../img/slider2.webp') type('image/webp'), url('../img/slider2.jpg') type('image/jpeg')); }
.slide-3 { background-image: url('../img/slider3.jpg'); background-image: image-set(url('../img/slider3.webp') type('image/webp'), url('../img/slider3.jpg') type('image/jpeg')); }
.slide .text { position: relative; max-width: calc((100% + 30px) * 7 / 12 - 30px); padding: 80px 0 40px; }
.slide h1, .slide .title { margin: 0; color: var(--ink); font-size: 38px; font-weight: 600; line-height: 42px; }
.slide h1 span, .slide .title span { color: var(--blue); }
.slide p { margin-top: 32px; color: var(--ink); font-size: 20px; font-weight: 500; line-height: 2em; }
.slide.is-active h1, .slide.is-active .title { animation: fadeInUp 1s both .6s; }
.slide.is-active p { animation: fadeInUp 1s both 1s; }
.slide.is-static h1, .slide.is-static .title, .slide.is-static p { animation: none; }

.slider-nav { position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -25px; border: 0; border-radius: 50%; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; transition: all var(--ease); }
.slider-nav:hover { background: var(--blue); }
.slider-nav svg { width: 14px; height: 14px; }
.slider-nav.prev { left: 20px; }
.slider-nav.next { right: 20px; }

/* ========== Content ========== */
.content { margin-left: 22px; font-size: 18px; }
.content h3 { position: relative; margin-bottom: 24px; padding-bottom: 20px; font-size: 24px; font-weight: 600; }
.content h3::before { content: ''; position: absolute; left: 0; bottom: 0; width: 50px; height: 2px; background: var(--blue); }
.content h4 { margin-bottom: 8px; font-size: 20px; }
.content p { margin-bottom: 35px; font-size: 18px; line-height: 24px; }
.content p.lead { margin-bottom: 24px; }
.content ul { margin-bottom: 35px; }
.content li { color: var(--muted); }
.content a:hover { color: var(--ink); }

/* Bullet lists (text bullet kept as in the original design) */
.bullets li { position: relative; padding-left: 14px; }
.bullets li::before { content: '\2022'; position: absolute; left: 0; }
.bullets .bullets { margin: 0 0 0 27px; }
.bullets em { font-style: italic; }

/* Two column check list on the home page */
.checklist { display: grid; gap: 12px 30px; }
.checklist ul { margin-bottom: 0; }
.checklist li { margin-bottom: 12px; color: #868686; font-size: 18px; }
.checklist li::before { content: ''; display: inline-block; vertical-align: -1px; width: 15px; height: 15px; margin-right: 16px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M6 4l4 3.5L6 11z' fill='%23fff'/%3E%3C/svg%3E") center / 15px no-repeat; }
.checklist li:last-child { margin-bottom: 0; }
@media (min-width: 992px) { .checklist { grid-template-columns: 1fr 1fr; } }

/* ========== Reserved area / 404 ========== */
.error-page { text-align: center; border-top: 1px solid #eee; }
.error-page h1 { font-size: 140px; line-height: 1.2; font-weight: 700; color: var(--blue); text-shadow: 3px 5px 2px rgba(51, 51, 51, .2); }
.error-page h1 span { display: block; font-size: 25px; font-weight: 600; color: #333; text-shadow: none; }
.error-page .back-home { display: inline-block; margin-top: 30px; }
.login-form { display: inline-flex; flex-direction: column; align-items: center; gap: 24px; }
.login-form input { width: 400px; max-width: 100%; height: 50px; padding: 0 30px; border: 0; border-radius: 5px; background: #f6f6f6; font: inherit; color: var(--ink); transition: all var(--ease); }
.login-form input:hover { padding-left: 35px; }
.login-form .message { min-height: 24px; color: #c0392b; }

.btn { position: relative; z-index: 0; display: inline-block; width: 120px; height: 50px; border: 0; border-radius: 5px; background: var(--blue); color: #fff; font: 500 14px var(--font); cursor: pointer; overflow: hidden; }
.btn::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleX(0); transition: all var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.back-home.btn { width: auto; height: auto; padding: 13px 25px; }

/* ========== Footer ========== */
.footer-top { position: relative; padding: 100px 0; background: var(--blue); }
.footer-top::before { content: ''; position: absolute; inset: 0; background: #000; opacity: .1; }
.footer-top .grid { position: relative; display: grid; gap: 0 30px; }
.footer h2 { position: relative; margin-bottom: 40px; padding-bottom: 20px; color: #fff; font-size: 20px; font-weight: 600; line-height: 24px; }
.footer h2::before { content: ''; position: absolute; left: 0; bottom: 0; width: 50px; height: 3px; background: #fff; }
.footer p { color: #fff; font-size: 16px; }
.footer-links li { margin-bottom: 12px; }
.footer-links li:last-child { margin-bottom: 0; }
.footer-links a { display: block; color: #fff; font-size: 14px; transition: all var(--ease); }
.footer-links a:hover { padding-left: 8px; }
.copyright { padding: 25px 0; background: var(--blue); text-align: center; }
.copyright p { color: #fff; }
@media (min-width: 768px) { .footer-top .grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .footer-top .grid { grid-template-columns: minmax(0, 73fr) minmax(0, 35fr); } }

/* ========== Scroll to top ========== */
.scroll-up { position: fixed; right: 15px; bottom: 15px; z-index: 2147483647; width: 45px; height: 45px; border: 0; border-radius: 3px; background: var(--blue); color: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, .15); cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s, background .3s; }
.scroll-up.is-visible { opacity: 1; visibility: visible; }
.scroll-up:hover { background: var(--ink); }
.scroll-up svg { width: 20px; height: 20px; }

/* ========== Tablet ========== */
@media (max-width: 991px) {
	.section { padding: 70px 0; }
	.logo, .logo img { width: 150px; }
	.nav a { font-size: 13px; padding: 20px 4px; }
	.slide { min-height: 380px; }
	.slide::before { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .5); }
	.slide .text { max-width: none; }
	.slide h1, .slide .title { font-size: 28px; line-height: 35px; }
	.footer-top { padding: 65px 0; }
	.footer .col { margin: 20px 0; }
}

/* ========== Mobile ========== */
@media (max-width: 767px) {
	.section { padding: 50px 0; }
	.header-inner { padding-bottom: 20px; }
	.logo, .logo img { width: 260px; max-width: calc(100vw - 80px); }
	.menu-toggle { display: flex; flex-direction: column; gap: 3.75px; margin-top: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
	.menu-toggle span { display: block; width: 22.5px; height: 3px; border-radius: 1px; background: var(--blue); }
	.nav-wrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
	.nav-wrap > .nav { overflow: hidden; }
	.navigation.is-open .nav-wrap { grid-template-rows: 1fr; }
	.nav { display: block; }
	.nav li { margin: 0; }
	.nav a { display: block; padding: 8px 10px; font-size: 17.5px; font-weight: 400; }
	.nav a::before { display: none; }
	.nav a[aria-current="page"] { color: var(--ink); }
	.nav a:hover { color: var(--blue); }
	.slide .text { padding-top: 80px; }
	.slider-nav { border-radius: 4px; }
	.error-page h1 { font-size: 80px; }
	.error-page h1 span { font-size: 17px; }
	.login-form { display: flex; }
	.login-form input, .btn { width: 100%; }
	.footer-top { padding: 50px 0 60px; }
	.footer .col { margin: 15px 0; }
	.footer h2 { margin-bottom: 20px; }
	.footer-links a { display: inline-block; }
	.copyright { padding: 20px 0; }
}

@media (max-width: 450px) {
	.slide { min-height: 280px; }
	.slide h1, .slide .title { line-height: 34px; }
	.slide p { font-size: 16px; line-height: 28px; }
	.slide .text { padding-top: 20px; font-size: 18px; }
	.footer-top { padding: 65px 0; }
	.footer .col { margin: 20px 0; }
}

/* ========== Visual polish (colours, depth, legibility; no size or spacing changes) ========== */
/* ---------- Rendering ---------- */
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: var(--blue); color: #fff; }
p, li { text-wrap: pretty; }

/* ---------- Header ---------- */
.header-inner { background: linear-gradient(180deg, #f5f6f8 0%, #eceef1 100%); box-shadow: inset 0 -1px 0 rgba(44, 45, 63, .06); }
.header.sticky .header-inner { background: rgba(240, 242, 245, .92); -webkit-backdrop-filter: saturate(160%) blur(10px); backdrop-filter: saturate(160%) blur(10px); box-shadow: 0 6px 24px rgba(15, 30, 60, .12); }
.nav a::before { background: linear-gradient(90deg, var(--blue), #3d9be9); }

/* ---------- Hero ---------- */
.slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .82) 0%, rgba(255, 255, 255, .6) 40%, rgba(255, 255, 255, 0) 75%); pointer-events: none; }
.slide h1, .slide .title { letter-spacing: -.01em; text-wrap: balance; }
.slider-nav { background: rgba(20, 30, 50, .28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.slider-nav:hover { background: var(--blue); box-shadow: 0 4px 14px rgba(26, 118, 209, .45); }

/* ---------- Content ---------- */
.content h3 { letter-spacing: .03em; }
.content h3::before { height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), #3d9be9); }
.content li { color: var(--muted); }
.bullets li::before { color: var(--blue); }
.checklist li { color: var(--muted); }
.checklist li::before { box-shadow: 0 0 0 3px rgba(26, 118, 209, .15); }
.content a { text-decoration: underline; text-decoration-color: rgba(26, 118, 209, .35); text-underline-offset: 3px; }
.content a:hover { text-decoration-color: currentColor; }

/* ---------- Forms and buttons ---------- */
.login-form input { box-shadow: inset 0 0 0 1px rgba(44, 45, 63, .06); }
.login-form input:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1px var(--blue), 0 0 0 4px rgba(26, 118, 209, .15); }
.btn { box-shadow: 0 4px 14px rgba(26, 118, 209, .3); transition: box-shadow var(--ease); }
.btn:hover { box-shadow: 0 6px 18px rgba(44, 45, 63, .3); }
.error-page h1 { background: linear-gradient(180deg, #3d9be9, var(--blue-dark)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; text-shadow: none; filter: drop-shadow(3px 5px 2px rgba(51, 51, 51, .15)); }
.error-page h1 span { -webkit-text-fill-color: #333; }

/* ---------- Footer ---------- */
.footer-top { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); }
.footer-top::before { opacity: .06; }
.footer p { color: rgba(255, 255, 255, .9); }
.footer-links a { color: rgba(255, 255, 255, .9); }
.footer-links a:hover { color: #fff; }
.copyright { background: var(--blue-deep); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.copyright p { color: rgba(255, 255, 255, .8); }

/* ---------- Scroll to top ---------- */
.scroll-up { border-radius: 6px; box-shadow: 0 6px 18px rgba(26, 118, 209, .35); }

/* ---------- Tablet / mobile hero overlay (replaces the flat 50% white) ---------- */
@media (max-width: 991px) {
	.slide::before { background: linear-gradient(180deg, rgba(255, 255, 255, .78) 0%, rgba(255, 255, 255, .6) 100%); }
	/* arrows sit over the text on narrow screens: icon only, no plate */
	.slider-nav { background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; color: var(--ink); opacity: .45; }
	.slider-nav:hover { background: transparent; box-shadow: none; color: var(--blue); opacity: 1; }
}

/* ========== Reduced motion ========== */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
