:root {
    --orange-main-color: #ff5500;
    --orange-darker-color: #cc4400;
    --dark-grey-color: #1a1a1a;
    --light-grey-color: #adadad;
    
    --header-background-color: #101010;
    
    --section-name-font-size: 2.3rem;
    
    --header-container-height: clamp(80px, 14vh, 140px);
    --navbar-container-height: 3.2rem;
    --pros-container-height: 120px;
    
    --hero-container-height: clamp(400px, calc(100vh 
        - var(--header-container-height) 
        - var(--navbar-container-height) 
        - var(--pros-container-height)), 1200px);
}

@font-face {
    font-family: 'Play';
    src: url('./fonts/Play/Play-Regular.ttf') format('truetype');
    font-weight: normal;
}

@font-face {
    font-family: 'Play';
    src: url('./fonts/Play/Play-Bold.ttf') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: 'Tektur';
    src: url('./fonts/Tektur/Tektur-VariableFont_wdth\,wght.ttf') format('truetype');
    font-weight: 400 900;
}

@font-face {
    font-family: 'Iosevka';
    src: url('./fonts/Iosevka/IosevkaCharonMono-Regular.ttf');
    font-weight: normal;
}

@font-face {
    font-family: 'Iosevka';
    src: url('./fonts/Iosevka/IosevkaCharonMono-Bold.ttf');
    font-weight: bold;
}

@font-face {
    font-family: 'Iosevka';
    src: url('./fonts/Iosevka/IosevkaCharonMono-Light.ttf');
    font-weight: light;
}

@font-face {
    font-family: 'Oswald';
    src: url('./fonts/Oswald/Oswald-VariableFont_wght.ttf');
    font-weight: 300 900;
}

@font-face {
    font-family: 'Zen_Maru';
    src: url('./fonts/Zen_Maru/ZenMaruGothic-Bold.ttf');
    font-weight: bold;
}

@font-face {
    font-family: 'Zen_Maru';
    src: url('./fonts/Zen_Maru/ZenMaruGothic-Regular.ttf');
    font-weight: normal;
}

@font-face {
    font-family: 'Zen_Maru';
    src: url('./fonts/Zen_Maru/ZenMaruGothic-Light.ttf');
    font-weight: light;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

h2 {
    font-family: 'Oswald';
}

#header-main {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    overflow: hidden;
    height: var(--header-container-height);
    background-color: var(--header-background-color);
    width: 100vw;
    font-family: Play;
    transition: 
        height 0.3s ease,
        opacity 0.3s ease;
}

.header-container.hidden {
    height: 0;
    opacity: 0;
}

.header-container > * {
    flex: 1;
    color: white;
}

.header-container > *:not(:first-child) {
    height: 60%;
    border-left: solid 2px var(--light-grey-color);
    font-size: 1.2rem;
    max-width: fit-content;
    padding: 0 2em;
}

.header-logo-container {
    display: flex;
    align-items: center;
    height: 100%;
    width: 39rem;
}

.logo-image {
    height: 100%;
    width: auto;
}

.logo-text {
    min-width: 22em;
    font-size: 2.2rem;
}

.logo-name {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap; /* I like it when the shit wont work the way it suppose to */
    gap: 0.5em;
}

.logo-name>:first-child {
}

.header-lang-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.header-city-container {
    display: flex;
    justify-content: center;
    align-items: center;
    
}

.header-phones-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


@media (max-width: 790px) {
    :root {
        --header-container-height: clamp(140px, 20vh, 240px);
    }
    
    .header-container {
        height: var(--header-container-height);
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-logo-container {
        max-height: 60%;
    }
    
    .logo-text > * {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }
    
    .header-container > *:not(:first-child) {
        align-self: flex-end;
        border-left: none;
    }
    
}

.navbar-container {
    font-family: 'Oswald';
    
    display: flex;
    flex-direction: row;
    
    align-items: center;
    
    height: var(--navbar-container-height);
    background-color: var(--orange-main-color);
}

.navbar-container ul {
    padding: 0;
    list-style-type: none;
    display: flex;
    flex-direction: row;
    font-weight: 400;
}

.navbar-item {
    color: white;
    padding: 0 5vw;
    position: relative;
    flex: 1;
}

.navbar-item:not(:last-child)::after {
    content: "";
    position: absolute;
    
    top: 50%;
    right: 0;
    height: 100%;
    width: 1px;
    transform: translateY(-50%);
    background-color: white;
}

.navbar-item a {
    text-decoration: none;
    color: inherit;
    position: relative;
}

.navbar-item a::after {
    content: "";
    position: absolute;
    
    left: 0;
    bottom: -6px;
    
    width: 0;
    height: 2px;
    
    background: white;
    transition: width 0.3s ease;
}

.navbar-item a:hover::after,
.navbar-item a.active::after {
    width: 100%;
}

.navbar-socials {
    display: flex;
    flex-direction: row;
    height: 60%;
    margin-left: auto;
    justify-self: flex-end;
}

.socials-option {
    margin: 0 0.5em;
}

.socials-option svg {
    height: 100%;
}

@media (max-width: 790px) {
    .navbar-item {
        font-size: clamp(0.5rem, 3vw, 1rem);
    }
}

/* -------------------------------------- */

#hero-main {
    height: var(--hero-container-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    color: white;
    text-shadow: 0px 0px 16px black;

    background-image: url('./src/background_website_main.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: max(100%, 1022px) auto;
}

.hero-name {
    font-size: 3rem;
    letter-spacing: 0.04em;
    line-height: 2em;
    transform: scaleY(1.3);
}

.hero-slogan {
    font-size: 1.8rem;
    letter-spacing: -0.05em;
}

.hero-button {
    background-color: #000000bf;
    font-size: 1em;
    color: white;
    padding: 1em 2em;
    border: 4px solid;
    border-image-source: radial-gradient(#ffb638 60%, var(--orange-main-color));
    border-image-slice: 1;
}

/* -------------------------------------- */

#pros-line {
    font-family: 'Iosevka';
    
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    
    place-items: center;
    
    min-height: var(--pros-container-height);
    
    column-gap: 1em;

    background-color: var(--header-background-color);
}

@media (max-width: 1050px) {
    #pros-line {
        grid-template-columns: repeat(2, 1fr);
    }
}

#pros-line .pros-container {
    align-self: stretch;
    justify-self: stretch;
    padding: 0.5em;
    
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    
    gap: 1em;

    position: relative;
    
    --card-size: clamp(0.8rem, 1vw + 0.5rem, 1.2rem);
    font-size: var(--card-size);
    
    color: white;
}

#pros-line .pros-container svg {
    height: calc(var(--card-size) * 5);
    aspect-ratio: 1 / 1;
    justify-self: center;
}

#pros-line .pros-container span {
    text-align: center;
    width: 60%;
}

#pros-line .pros-container.smaller svg {
    --card-size: clamp(0.8rem, 1vw + 0.5rem, 1.2rem);
    height: calc(var(--card-size * 1));
}

.pros-container:not(:nth-child(4n + 6))::before {
    content: "";
    position: absolute;
    
    transform: translateX(0.5em);

    top: 25%;
    right: 1px;

    width: 1px;
    height: 50%;

    background-color: grey;
}

@media (max-width: 700px) {
    #pros-line {
        display: flex;
        flex-direction: column;
    }
    
    .hero-name {
        font-size: clamp(2rem, 7vw, 3rem);
    }
    
    .hero-slogan {
        font-size: clamp(0.9rem, 4.2vw, 1.8rem);
    }
}

/* ----------------------- */

#about-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    
    --about-bg-height: 360px;
    /*! min-height: var(--about-bg-height); */
}

.about-main {
    display: flex;
    flex-direction: column;
    max-width: 32rem;
}

.about-main h2 {
    font-size: var(--section-name-font-size);
    
    position: relative;
    padding-bottom: 0.6em;
}

.about-main h2::after {
    content: "";
    position: absolute;
    
    left: 0;
    bottom: 0;
    
    width: 3em;
    height: 0.2em;
    background: var(--orange-main-color);
}

.about-main-text {
    display: flex;
    flex-direction: column;
}

.about-main-text > * {
    padding: 0.6em 0;
}

/* -------------------------------------- */

#solutions-section {
    background-color: #ebebeb;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.solutions-premise {

}

.solutions-premise h2 {
    font-size: var(--section-name-font-size);
    
    position: relative;
    display: inline-block;
    padding-bottom: 0.6em;
}

.solutions-premise h2::after {
    content: "";
    position: absolute;
    
    left: 0;
    bottom: 0;
    
    width: 3em;
    height: 0.2em;
    background: var(--orange-main-color);
}

.solutions-premise-description {

}

.solutions-items-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

    
.solutions-item {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    width: fit-content;
    
    background-color: white;
    padding: 0.8rem;
    border: 2px solid white;
    border-radius: 6px;
    box-shadow: 0px 0px 4px #8f8f8f;
}

.solutions-item-image {
}

.solutions-item-image > * {
    border: 2px solid white;
    border-radius: 16px;
    max-height: 240px;
    width: auto;
    
}

.solutions-item-text {
    display: flex;
    flex-direction: column;
}

.solutions-item-description > * {
    padding: 0.3rem 0;
}

.solutions-item-description {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.solutions-item-description h3 {
    margin: 0;
}

.solutions-item-stats {
    display: flex;
    flex-direction: row;
}

.solution-stats {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
    border-right: 1px solid black;
    
    margin: 0.6em 0;
}

.solution-stats:last-child {
    border-right: none;
}

.solutions-item-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem; 
}

.solutions-item-buttons button {
    flex: 1;
    padding: 0.4em 0;
    border: solid 2px var(--orange-main-color);
    border-radius: 4px;
    transition: background-color 0.3s ease,
                border-color 0.3s ease;
}

.solutions-item-buttons button:hover {
    cursor: pointer;
    border-color: var(--orange-darker-color);
}

.solutions-item-buttons button:first-child:hover {
    background-color: #f5f5f5;
}

.solutions-item-buttons button:last-child:hover {
    background-color: var(--orange-darker-color);
}

.solutions-item-buttons button:first-child {
    background-color: inherit;
}

.solutions-item-buttons button:nth-child(2) {
    background-color: var(--orange-main-color);
    color: white;
}

/* -------------------------------------- */

#info-section {
    background-color: var(--dark-grey-color);
    display: flex;
    flex-direction: column;
}

#info-section > :first-child {
    padding-top: 0;
}

#info-section > :last-child {
    padding-bottom: 0;
}

.documents-container {
    position: relative;
}

.documents-container,
.articles-container {
    padding: 2em 0;
    display: flex;
    flex-direction: column;
}

.documents-container::after {
    content: "";
    position: absolute;

    bottom: -1em;
    left: 0%;

    width: 100%;
    max-width: 48rem;

    height: 2px;
    background: var(--orange-main-color);
}

.documents-content-container,
.articles-content-container {
    max-width: 48rem;
}

.documents-container a {
    text-decoration: none;
}

.articles-container h2,
.documents-container h2 {
    color: white;
    font-size: var(--section-name-font-size);
}

.articles-premise h2,
.documents-premise h2 {
    margin: 0;
}

.documents-premise-description,
.articles-premise-description {
    padding: 1em 0;
}

.documents-content-container,
.articles-content-container {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

.article-content-item, .document-content-item {
    border: solid 2px #4f4f4f;
    border-radius: 8px;
    background-color: #202020;
    
    transition: box-shadow 0.1s ease-out, border-color 0.1s ease;
    padding: 1rem;
    
}

.article-content-item:hover, .document-content-item:hover {
    box-shadow: 0 0 8px var(--orange-main-color), inset 0 0 4px var(--orange-main-color);
    border-color: var(--orange-main-color);
}

.article-item-info, .document-item-info {
    font-family: 'Zen_Maru';
    display: flex;
    flex-direction: row;
}

.article-item-info  > :last-child::before,
.document-item-info > :last-child::before {
    content: "•";
    padding: 0.5em;
}

.article-item-tag, .document-item-tag {
    font-family: 'Oswald';
    color: white;
    font-size: 1.6rem;
    margin: 0;
}

.article-item-content, .document-item-content {
    font-family: 'Play';
    color: var(--light-grey-color);
    padding: 1em 0;
}

.article-item-button, .document-item-button {
    color: var(--orange-main-color);
    background-color: inherit;
    border: solid 2px var(--orange-main-color);
    border-radius: 2px;
    padding: 0.6em 2em;
}

.document-item-interactive {
    display: flex;
    flex-direction: row;
    gap: 1em;
    flex-wrap: wrap;
    align-items: center;
}

.document-item-interactive,
.article-item-interactive {
    font-family: 'Zen_Maru';
}

.article-item-button {
    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease;
    text-decoration: none;
}

.article-item-button:hover,
.document-item-button:hover {
    cursor: pointer;
    color: var(--orange-darker-color);
    background-color: #202020;
    border-color: var(--orange-darker-color);
    
}
/* -------------------------------------- */

section:not(:first-child) {
    padding: 3em;
}

.bold {
    font-weight: bold;
}

.orange {
    color: var(--orange-main-color);
}

.wide-spacing {
    letter-spacing: 0.05em;
}

.light-grey {
    color: var(--light-grey-color);
}

.iosevka-style {
    font-family: 'Iosevka';
}

.tektur-style {
    font-family: 'Tektur';
}

.play-style {
    font-family: 'Play';
}

.oswald-style {
    font-family: 'Oswald';
}

.zenmaru-style {
    font-family: 'Zen_Maru';
}