/**
 * ViewSource CMS4 App
 *
 * This part of the source code is protected by copyright and belongs to the project ViewSource CMS4. Use, modification and distribution
 * are permitted only in accordance with the terms approved by the owner. Any unauthorized copying, sale or distribution of the code is
 * strictly prohibited.
 *
 * @package   ViewSourceCMS4App\css\
 * @copyright Copyright (c) 2002-2026 ViewSource - All Rights Reserved
 * @author    ViewSource - Marko Jevtić <office@viewsource.biz>
 * @license   Proprietary - copying prohibited without written permission from the author
 * @link      https://www.viewsource.biz/
 */

/* See spec/wwwroot/design.md. */

/* Fonts ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('/include/fonts/source-sans-3-v19-cyrillic_cyrillic-ext_latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('/include/fonts/source-sans-3-v19-cyrillic_cyrillic-ext_latin_latin-ext-italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/include/fonts/source-sans-3-v19-cyrillic_cyrillic-ext_latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('/include/fonts/source-sans-3-v19-cyrillic_cyrillic-ext_latin_latin-ext-700.woff2') format('woff2');
}
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('/include/fonts/source-sans-3-v19-cyrillic_cyrillic-ext_latin_latin-ext-800.woff2') format('woff2');
}

/* Variables ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

:root {
    --site-ink: #2b2825;
    --site-ink-deep: #1f1d1b;
    --site-sand: #f6f3ee;
    --site-sand-line: #e9e3da;
    --site-radius: 14px;
    --site-motif: url('/design/viewsource/motif-squares.svg');

    --bs-body-font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --bs-body-font-size: 1.0625rem;
    --bs-body-line-height: 1.6;

    --bs-body-bg-rgb: 255, 255, 255;
    --bs-secondary-bg-rgb: 236, 231, 224;
    --bs-tertiary-bg-rgb: 255, 255, 255;
    --bs-body-color: #2b2825;
    --bs-body-color-rgb: 43, 40, 37;
    --bs-emphasis-color: #1f1d1b;
    --bs-emphasis-color-rgb: 31, 29, 27;
    --bs-secondary-color: #6b645c;
    --bs-secondary-color-rgb: 107, 100, 92;
    --bs-tertiary-color: #857e75;
    --bs-tertiary-color-rgb: 133, 126, 117;
    --bs-border-color: #e9e3da;
    --bs-heading-color: #1f1d1b;

    --cms-brand-rgb: 255, 136, 0;
    --bs-primary: #ff8800;
    --bs-primary-rgb: 255, 136, 0;
    --bs-primary-bg-subtle: #fff1e0;
    --cms-accent-hover: #ff9a26;
    --cms-accent-active: #e67a00;
    --cms-accent-subtle: #fff1e0;
    --cms-accent-on: #1f1d1b;
    --cms-border-strong: #cfc7bc;
}
[data-bs-theme=dark] {
    --bs-body-bg-rgb: 31, 29, 27;
    --bs-secondary-bg-rgb: 52, 48, 44;
    --bs-tertiary-bg-rgb: 43, 40, 37;
    --bs-body-color: #f1ede8;
    --bs-body-color-rgb: 241, 237, 232;
    --bs-emphasis-color: #ffffff;
    --bs-emphasis-color-rgb: 255, 255, 255;
    --bs-secondary-color: #b8b0a6;
    --bs-secondary-color-rgb: 184, 176, 166;
    --bs-tertiary-color: #958d83;
    --bs-tertiary-color-rgb: 149, 141, 131;
    --bs-border-color: #3d3934;
    --bs-heading-color: #ffffff;

    --cms-brand-rgb: 255, 136, 0;
    --bs-primary: #ff8800;
    --bs-primary-rgb: 255, 136, 0;
    --bs-link-color: #ff9a26;
    --bs-link-color-rgb: 255, 154, 38;
    --bs-link-hover-color: #ffb35c;
    --bs-link-hover-color-rgb: 255, 179, 92;
    --cms-accent-hover: #ff9a26;
    --cms-accent-active: #e67a00;
    --cms-accent-on: #1f1d1b;
}

/* Type /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-weight: 700;
    letter-spacing: -0.015em;
}
[data-vscms-text-block] .btn,
[data-vscms-page-view] .btn,
[data-vscms-contact-form] .btn {
    --bs-btn-font-weight: 600;
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-padding-y: .7rem;
    --bs-btn-border-radius: 10px;
}

/* Header ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

.site-header {
    background-color: rgba(var(--bs-body-bg-rgb), .96);
    border-bottom: 1px solid var(--bs-border-color);
}
.site-header .navbar {
    min-height: 76px;
}
.site-header .navbar-brand img {
    display: block;
    width: auto;
    height: 30px;
}
.site-header .nav-link {
    font-weight: 600;
    color: var(--bs-body-color);
}
.site-header .nav-link:hover,
.site-header .nav-link.active {
    color: var(--bs-emphasis-color);
}
.site-languages a {
    display: block;
    padding: .2rem .45rem;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--bs-tertiary-color);
    text-decoration: none;
}
.site-languages a:hover {
    color: var(--bs-body-color);
}
.site-languages a.active {
    color: var(--bs-emphasis-color);
    background-color: var(--site-sand);
}
@media (min-width: 992px) {
    .site-header .nav-link {
        position: relative;
        padding-inline: .9rem !important;
    }
    .site-header .nav-link::after {
        content: '';
        position: absolute;
        left: .9rem;
        right: .9rem;
        bottom: -.15rem;
        height: 2px;
        border-radius: 2px;
        background-color: var(--cms-brand);
        transform: scaleX(0);
        transition: transform .2s ease;
    }
    .site-header .nav-link:hover::after,
    .site-header .nav-link.active::after {
        transform: scaleX(1);
    }
    .site-header .nav-item:last-child .nav-link {
        margin-left: .5rem;
        padding-inline: 1.15rem !important;
        border-radius: 10px;
        color: #ffffff;
        background-color: var(--site-ink);
        transition: background-color .2s ease, color .2s ease;
    }
    .site-header .nav-item:last-child .nav-link:hover,
    .site-header .nav-item:last-child .nav-link.active {
        color: var(--cms-accent-on);
        background-color: var(--cms-brand);
    }
    .site-header .nav-item:last-child .nav-link::after {
        display: none;
    }
}

/* Home: hero, solutions, clients ///////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

.site-hero {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 4rem;
    background-color: var(--site-sand);
    border-bottom: 1px solid var(--site-sand-line);
}
.site-hero > .container {
    position: relative;
}
.site-hero [data-vscms-text-block="home_intro"] > h1 {
    max-width: 54rem;
    margin-bottom: 1.25rem;
    font-size: clamp(2.1rem, 1.2rem + 3vw, 3.6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.site-hero [data-vscms-text-block="home_intro"] > .lead {
    max-width: 40rem;
    font-size: 1.3rem;
    line-height: 1.5;
    color: var(--bs-secondary-color);
}
.site-hero [data-vscms-text-block="home_intro"] > .row {
    margin-top: 2.5rem !important;
    counter-reset: site-card;
}
.site-hero [data-vscms-text-block="home_intro"] > .row > * {
    position: relative;
    isolation: isolate;
    padding-top: 2rem;
    padding-bottom: 1.75rem;
    counter-increment: site-card;
}
.site-hero [data-vscms-text-block="home_intro"] > .row > *::before {
    content: '';
    position: absolute;
    inset: 0 calc(var(--bs-gutter-x) * .5);
    z-index: -1;
    border: 1px solid var(--site-sand-line);
    border-radius: var(--site-radius);
    background-color: #ffffff;
    box-shadow: 0 1px 2px rgba(31, 29, 27, .04), 0 8px 24px -12px rgba(31, 29, 27, .12);
}
.site-hero [data-vscms-text-block="home_intro"] > .row > * > * {
    margin-inline: 1.75rem;
}
.site-hero [data-vscms-text-block="home_intro"] > .row h2 {
    margin-bottom: .6rem;
    font-size: 1.45rem;
}
.site-hero [data-vscms-text-block="home_intro"] > .row h2::before {
    content: counter(site-card, decimal-leading-zero);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 1.25rem;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--cms-accent-on);
    background-color: var(--cms-brand);
}
.site-hero [data-vscms-text-block="home_intro"] > .row p {
    margin-bottom: 0;
    color: var(--bs-secondary-color);
}
.site-hero [data-vscms-text-block="home_intro"] > h2:last-child {
    margin-top: 4.5rem !important;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}
.site-hero [data-vscms-text-block="home_intro"] > h2:last-child::before,
[data-vscms-page-view] h2::before {
    content: '';
    display: block;
    width: 2rem;
    height: 4px;
    margin-bottom: .9rem;
    border-radius: 2px;
    background-color: var(--cms-brand);
}
@media (min-width: 992px) {
    .site-hero {
        padding: 6rem 0 6rem;
    }
    .site-hero::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 300px;
        height: 240px;
        background: var(--site-motif) no-repeat top right / contain;
        pointer-events: none;
    }
}
@media (min-width: 1200px) {
    .site-hero::before {
        width: 440px;
        height: 352px;
    }
}

/* Client logos /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

.vscms-banner-logos {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}
.vscms-banner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 7rem;
    padding: 1rem 1.25rem;
    border: 1px solid var(--site-sand-line);
    border-radius: var(--site-radius);
    background-color: #ffffff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.vscms-banner-logo .vscms-banner-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
}
.vscms-banner-logo img {
    max-height: 5rem;
    filter: grayscale(1);
    opacity: .75;
    transition: filter .2s ease, opacity .2s ease;
}
.vscms-banner-logo:hover {
    border-color: rgba(var(--cms-brand-rgb), .5);
    box-shadow: 0 8px 24px -12px rgba(31, 29, 27, .2);
}
.vscms-banner-logo:hover img {
    filter: none;
    opacity: 1;
}
.vscms-banner-logos:has(.vscms-banner-caption-alone) {
    align-items: stretch !important;
}
.vscms-banner-logo:has(.vscms-banner-caption-alone) {
    height: 100%;
    min-height: 4.5rem;
    padding: .75rem 1rem;
}
.vscms-banner-logo .vscms-banner-caption-alone {
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 600;
    color: var(--site-ink);
    background: transparent;
}
@media (min-width: 992px) {
    .vscms-banner-logos.row-cols-lg-6 > * {
        flex: 0 0 auto;
        width: 20%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .vscms-banner-logo,
    .vscms-banner-logo img,
    .site-header .nav-link::after {
        transition: none;
    }
}

/* Call to action ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

.site-cta {
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
    background-color: var(--site-ink);
}
.site-cta::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 440px;
    height: 352px;
    background: var(--site-motif) no-repeat bottom left / contain;
    transform: rotate(180deg);
    opacity: .2;
    pointer-events: none;
}
.site-cta > .container {
    position: relative;
}
.site-cta h2 {
    max-width: 36rem;
    margin: 0 auto 1.75rem;
    font-size: clamp(1.75rem, 1rem + 2vw, 2.5rem);
}
.site-cta p:last-child {
    margin-bottom: 0;
}
.site-cta .btn {
    --bs-btn-padding-x: 2rem;
    --bs-btn-padding-y: .85rem;
    font-size: 1.1rem;
}

/* Page head and content ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

.vscms-page-head {
    position: relative;
    overflow: hidden;
    padding-bottom: 3rem;
    background-color: var(--site-sand);
    border-bottom: 1px solid var(--site-sand-line);
}
.vscms-page-head > .container {
    position: relative;
    padding-top: 2.5rem !important;
}
.vscms-page-head h1 {
    font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}
.vscms-page-head .breadcrumb {
    margin-bottom: 1.25rem;
    font-size: .9rem;
}
.vscms-page-head .breadcrumb a {
    color: var(--bs-secondary-color);
    text-decoration: none;
}
.vscms-page-head .breadcrumb a:hover {
    color: var(--bs-link-color);
}
@media (min-width: 992px) {
    .vscms-page-head {
        padding-bottom: 4rem;
    }
    .vscms-page-head::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 260px;
        height: 208px;
        background: var(--site-motif) no-repeat top right / contain;
        pointer-events: none;
    }
}
[data-vscms-page-view] {
    padding: 3rem 0 4rem !important;
}
[data-vscms-page-view] .clearfix {
    font-size: 1.125rem;
    line-height: 1.7;
}
[data-vscms-page-view] .clearfix > p,
[data-vscms-page-view] .clearfix > ul,
[data-vscms-page-view] .clearfix > ol,
[data-vscms-page-view] .clearfix > h2,
[data-vscms-page-view] .clearfix > h3 {
    max-width: 46rem;
}
[data-vscms-page-view] .clearfix > p:first-child {
    font-size: 1.3rem;
    line-height: 1.55;
    color: var(--bs-emphasis-color);
}
[data-vscms-page-view] h2 {
    margin-top: 3rem;
    margin-bottom: .75rem;
    font-size: 1.6rem;
}
[data-vscms-page-view] h2:first-child {
    margin-top: 0;
}
[data-vscms-page-view] p.fw-semibold {
    display: inline-block;
    padding: .8rem 1.25rem;
    border-left: 4px solid var(--cms-brand);
    border-radius: 0 10px 10px 0;
    background-color: var(--site-sand);
}
[data-vscms-page-view] .clearfix > p:last-child {
    margin-top: 2.5rem;
}

/* Contact //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

[data-vscms-contact-page] {
    padding: 3rem 0 4rem !important;
}
[data-vscms-contact-form] {
    padding: 2rem;
    border: 1px solid var(--site-sand-line);
    border-radius: var(--site-radius);
    background-color: #ffffff;
    box-shadow: 0 8px 24px -12px rgba(31, 29, 27, .12);
}

/* Footer ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// */

.site-footer {
    margin-top: 4rem;
    padding: 4.5rem 0 2rem;
    color: var(--bs-secondary-color);
    background-color: var(--site-ink-deep);
}
main:has(> .site-cta:last-child) + .site-footer {
    margin-top: 0;
}
.site-footer img {
    display: block;
    width: auto;
    height: 30px;
}
.site-footer .nav-link {
    padding: .3rem 0;
    font-weight: 600;
    color: var(--bs-body-color);
}
.site-footer .nav-link:hover,
.site-footer .nav-link.active {
    color: var(--cms-brand);
}
