@import 'https://www.nerdfonts.com/assets/css/webfont.css';

@font-face {
    font-family: 'Montserrat';
    src: url('/static/fonts/Montserrat-VariableFont_wght.ttf')
        format('truetype-variations');
    font-weight: 100 900;
}

:root {
    --base: #ffffff;
    --surface: #fdfbfb;
    --overlay: #fdfbfb;

    --text: oklch(0.235 0 0);
    --subtle: oklch(0.54 0 0);
    --muted: oklch(0.65 0 0);

    --hl-low: oklch(0.95 0 0);
    --hl-med: oklch(0.892 0 0);
    --hl-high: oklch(0.843 0 0);

    --red-base: oklch(0.577 0.2339 27.95);
    --red-50: oklch(0.95 0.025 27.954);
    --red-100: oklch(0.857 0.077 27.954);
    --red-200: oklch(0.763 0.14 27.954);
    --red-300: oklch(0.67 0.215 27.954);
    --red-500: oklch(0.577 0.234 27.954);
    --red-700: oklch(0.477 0.193 27.954);
    --red-800: oklch(0.377 0.153 27.954);
    --red-900: oklch(0.277 0.112 27.954);
    --red-950: oklch(0.177 0.072 27.954);

    --blue-base: oklch(0.7233 0.0708 193.36);
    --blue-50: oklch(0.95 0.043 193.364);
    --blue-100: oklch(0.893 0.087 193.364);
    --blue-200: oklch(0.837 0.082 193.364);
    --blue-300: oklch(0.837 0.082 193.364);
    --blue-500: oklch(0.723 0.071 193.364);
    --blue-700: oklch(0.623 0.061 193.364);
    --blue-800: oklch(0.523 0.051 193.364);
    --blue-900: oklch(0.423 0.041 193.364);
    --blue-950: oklch(0.323 0.032 193.364);

    --font-body: 'Montserrat', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    --font-mono: monospaced;

    font-family: var(--font-body);
    font-weight: 400;

    color-scheme: light;

    color: var(--text);
    background-color: var(--base);

    --padding-25: 2px;
    --padding-100: 8px;
    --padding-200: 16px;
    --padding-300: 24px;
    --padding-600: 48px;
    --padding-800: 64px;
    --padding-1000: 80px;

    --padding-text: 2rem;
    --padding-img: 0.5rem;
    --padding-gap: var(--padding-1000);
    --padding-spacing: var(--padding-300);
    --padding-page: var(--padding-800);

    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    font-size: 20px;
}

* {
    -webkit-box-sizing: border-box;
    /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;
    /* Firefox, other Gecko */
    box-sizing: border-box;
    /* Opera/IE 8+ */
}

@media (max-width: 800px) {
    :root {
        --padding-text: 18px;
        --padding-gap: var(--padding-600);
        --padding-spacing: var(--padding-100);
        --padding-page: var(--padding-300);
    }
}

/* --- TYPOGRAFIA --- */

p,
ul,
h1,
h2,
h3,
h4 {
    margin-block-start: 0;
    margin-block-end: 0;
    line-height: 1.4;
}

h2 {
    font-size: 2rem;
    font-weight: 575;
}

.subtitle {
    color: var(--red-300);
    font-size: 1rem;
    font-weight: 600;
}

a {
    text-decoration: none;
    color: var(--text);
}

.logo-header {
    color: var(--red-base);
    font-size: 18px;
    font-weight: 700;
    display: inline;
}

.cover-content {
    position: absolute;
    z-index: 4;
    left: 0;
    bottom: 0;

    padding: var(--padding-page);
    gap: var(--padding-300);

    border-radius: 12px;

    display: flex;
    flex-flow: column nowrap;
    align-items: flex-start;
}

.cover-text {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 600;
    color: white;

    /*text-transform: uppercase;*/
    max-width: 700px;
}

.pic-text {
    position: absolute;
    z-index: 6;
    bottom: 0;
    width: 100%;

    box-sizing: border-box;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--base);
}

.linkki {
    transition-duration: 0.1s;
    text-decoration: underline;
    color: var(--text);
}

.linkki:hover {
    text-decoration: none;
    color: var(--red-base);
}

button,
input,
textarea {
    font-family: 'Montserrat';
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
}

.paragraph {
    display: flex;
    flex-flow: column nowrap;
    gap: 0.75rem;

    max-width: 700px;
}

.big-text {
    font-size: 23px;
}

h3 {
    font-size: 1.7rem;
    font-weight: 575;
    width: 100%;
}

h4 {
    font-size: 1.15rem;
}

ul {
    list-style-type: none;
    padding-inline-start: 0;
    font-size: 0.75rem;
}

.label {
    font-weight: 500;
    color: var(--subtle);
}

#contact-info h3 {
    font-size: 16px;
    text-transform: uppercase;
    border-bottom: none;
}

/* --- RUNKO --- */

body {
    width: 100%;
    margin: 0;

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

main {
    display: flex;
    top: 0;
    left: 0;

    flex-flow: column nowrap;
    align-items: center;
    justify-content: center;

    gap: var(--padding-gap);
    padding-top: var(--padding-gap);
    padding-bottom: var(--padding-gap);

    min-height: 80vh;
}

/* --- YLÄTUNNISTE --- */

.header-slot {
    display: relative;
    top: 0;
}

.header-container {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;

    background-color: var(--base);

    padding: 8px;
    border-bottom: 1px solid var(--hl-med);
    box-shadow: 0 0 30px oklch(0.1 0 0 / 0.08);
}

header {
    transition-duration: 0.125s;
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 15;
}

.header-left {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    align-content: center;
    gap: 8px;
}

#header-right {
    display: flex;
    flex-flow: row nowrap;
    justify-content: flex-end;
    align-items: center;
    align-content: center;
    gap: 3px;

    font-size: 0.85rem;
    font-weight: 500;
    list-style-type: none;
}

#logo {
    max-width: 36px;
}

.nav-link a,
.hamburger,
#menu-lang {
    transition-duration: 0.125s;
    border-radius: 6px;
    padding: 7px 10px;

    background: none;
    border: none;
}

#menu-lang {
    display: none;
}

.nav-link a:hover,
.hamburger:hover {
    background-color: var(--red-100);
}

/* --- VALIKKO (YLÄTUNNISTE) --- */

.dropdown-content {
    display: none;
    position: absolute;
    z-index: 10;

    min-width: 200px;
    padding: 5px;
    margin-left: -5px;
    margin-top: 4px;
    border-radius: 12px;

    background-color: var(--base);
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
}

.dropdown-content a {
    display: block;

    padding: 8px 10px;
    border-radius: 8px;

    color: var(--text);
    text-decoration: none;
}

.dropdown-content a:hover {
    background-color: var(--red-100);
}

.dropdown-right {
    right: 0;
    min-width: 40px;
}

#menu-diagnostics:hover .dropdown-content {
    display: block;
}

#menu-lang:hover .dropdown-content {
    display: block;
}

/* --- BREADCRUMB --- */

.breadcrumb-container {
    padding: 12px 0 0 12px;
    display: flex;
    width: 100%;
}

.breadcrumb {
    font-size: 15px;
}

.breadcrumb-link {
    transition-duration: 0.125s;
    color: var(--subtle);

    border-radius: 6px;
}

.breadcrumb-link:hover {
    color: var(--blue-base);
    text-decoration: none;
}

.bc-padding {
    padding: 2px 4px;
}

/* --- HAMPPARIVALIKKO --- */

.menu-toggle:checked ~ header {
    position: fixed;
}

.menu-toggle {
    display: none;
}

.menu-button {
    position: fixed;
    top: 5px;
    right: 5px;

    background: red;
    cursor: pointer;
    font-size: 24px;

    border-radius: 9999px;
    padding: 8px 18px;
    z-index: 120;

    border: none;
    user-select: none;
}

.menu-button:hover {
    background: #f5f5f5;
}

.nav-menu-upper {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    align-content: center;

    background: none;
    color: var(--base);

    padding: 8px;
    margin-bottom: 3rem;
}

.nav-hamburger {
    color: var(--base);
    transition-duration: 0.125s;
    border-radius: 6px;
    padding: 0.4em 0.6em;

    background: none;
    border: none;
}

.nav-hamburger:hover {
    background-color: var(--red-300);
}

/* --- KANSIKUVA --- */

.link-button {
    z-index: 5;

    transition-duration: 0.125s;
    border-radius: 6px;
    padding: 0.75em 1em;
    border-radius: 90px;

    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.25rem;

    color: #fff;
    background-color: var(--red-base);

    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    /* Standard syntax */
}

.link-button:hover {
    transform: scale(0.975);
}

.dimming {
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    z-index: 3;
    background: linear-gradient(#00000060, #00000020, #00000060);
}

/* --- SISÄLTÖ --- */

.interactive {
    transition-duration: 0.125s;

    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    /* Standard syntax */
}

.interactive:hover {
    transform: scale(0.975);
}

.interactive:hover .int-title {
    text-decoration: underline;
}

.int-title {
    font-size: 1.5rem;
    padding: 1.5rem;
    line-height: 1.5rem;
}

.card {
    display: flex;
    flex-flow: column nowrap;
    border-radius: 12px;
}

.card-content {
    padding: var(--padding-text);
}

.dimming-card {
    object-fit: cover;
    object-position: center center;

    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    z-index: 3;
    background: linear-gradient(#00000020, #00000005, #00000046);
}

.cover-container {
    position: relative;
    height: 350px;
    width: 100%;
}

.form-div {
    display: block;
    width: 600px;
    flex: 0;
}

.content-button {
    transition-duration: 0.125s;

    border: none;
    border-radius: 90px;
    padding: 0.65rem 0.8rem;

    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25rem;

    color: #fff;
    background-color: var(--red-base);

    -webkit-user-select: none;
    /* Safari */
    -ms-user-select: none;
    /* IE 10 and IE 11 */
    user-select: none;
    /* Standard syntax */
}

.content-button:hover {
    transform: scale(0.975);
}

.accent-background {
    background-color: var(--red-base);
    color: var(--base);
    font-weight: 500;
}

.row {
    display: flex;
    flex-flow: row wrap;
    align-items: center;

    gap: var(--padding-300);
}

.row > * {
    flex: 1 1 250px;
}

.col {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
}

.col.centered {
    align-items: center;
}

.text-padding {
    background-size: cover;
    background-position: center;
    padding: 0 var(--padding-text);
}

section {
    display: flex;
    flex-flow: column nowrap;
    align-items: center;

    width: 100%;
    gap: var(--padding-300);
    padding-left: var(--padding-page);
    padding-right: var(--padding-page);
}

section.full {
    max-width: 100%;
    padding-top: var(--padding-page);
    padding-bottom: var(--padding-page);
}

.section-content {
    max-width: 1000px;
    padding-left: var();
}

.borders {
    border-radius: 12px;
}

.borders-top {
    border-radius: 12px 12px 0 0;
}

.borders-right {
    border-radius: 0 12px 12px 0;
}

.borders-bottom {
    border-radius: 0 0 12px 12px;
}

.borders-left {
    border-radius: 12px 0 0 12px;
}

#contact-card {
    text-align: center;
}

/* --- LOMAKE --- */

form {
    display: flex;
    flex-flow: column nowrap;

    gap: 1rem;
}

label {
    display: block;

    font-size: 0.9rem;
}

.form-div input,
textarea {
    transition-duration: 2s;
    resize: vertical;

    padding: 0.45rem;

    font-size: 0.825rem;

    width: 100%;

    outline: 1px solid #00000000;
    border: 1px solid var(--subtle);
    border-radius: 6px;
    transition: border-color 0.3s;

    -webkit-box-sizing: border-box;
    /* Safari/Chrome, other WebKit */
    -moz-box-sizing: border-box;
    /* Firefox, other Gecko */
    box-sizing: border-box;
    /* Opera/IE 8+ */
}

input:focus,
textarea:focus {
    outline: 1px solid var(--red-300);
    border: 1px solid var(--red-300);
}

#contactForm {
    margin-top: 1rem;
    width: 100%;
    box-sizing: border-box;
}

/* --- LATAUSNAPPULA --- */

.download-section {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 0.4rem;
    max-width: 600px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;

    padding: 5px 10px;

    transition-duration: 0.1s;
    color: var(--text);
    border: 1px solid var(--blue-700);
    border-radius: 8px;
}

.download-button:hover {
    background: var(--blue-700);
    color: var(--base);
}

.download-content {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-sizing: border-box;
    font-size: 14px;
    overflow-wrap: anywhere;
    flex-flow: row nowrap;
}

.download-content::before {
    font-size: 2rem;
    font-family: 'NerdFontsSymbols Nerd Font';
    content: '\f1c1';
    margin-left: 2px;
}

.download-content::after {
    font-size: 1.5rem;
    font-family: 'NerdFontsSymbols Nerd Font';
    content: '\f01da';
    margin: auto 0 auto auto;
}

/* --- ALATUNNISTE --- */

.logo-text-footer {
    color: var(--base);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.1;
    display: inline;
}

.footer-link-list {
    display: flex;
    flex-flow: column nowrap;
    gap: 0.5rem;
}

.footer-link {
    text-decoration: underline;
    transition-duration: 0.05s;
    color: var(--surface);
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--red-50);
    text-decoration: none;
}

.contact,
address {
    color: var(--surface);
    font-weight: 350;
    font-size: 0.9rem;
    font-style: normal;
}

#logo-footer {
    max-width: 2.5rem;
}

footer {
    padding: var(--padding-gap) 0;
    color: var(--base);
    background-color: var(--red-base);
}

.footer-content {
    max-width: 800px;
    margin: auto;
}

#footer-upper {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 1.1rem;

    font-size: 1rem;
    font-weight: 500;
    list-style-type: none;

    padding-bottom: 4rem;
}

#footer-line {
    border: none;
    border-top: 1px solid var(--red-300);
}

/* FOOTER BOTTOM */

#footer-bottom {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    gap: 1.1rem;

    margin-bottom: 48px;

    font-size: 0.65rem;
    list-style-type: none;
}

.footer-bottom-link {
    color: var(--red-50);
    font-weight: 450;
    text-decoration: underline;
}

.footer-bottom-link:hover {
    color: var(--base);
    text-decoration: none;
}

#footer-copyright {
    color: var(--overlay);
    font-weight: 400;
    text-decoration: none;
}

section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.elev {
    box-shadow:
        rgba(0, 0, 0, 0.1) 0px 10px 15px -3px,
        rgba(0, 0, 0, 0.1) 0px 4px 6px -4px,
        rgb(0, 0, 0) 0px 0px 0px;
}

.icon {
    font-family: 'NerdFontsSymbols Nerd Font';
    margin-left: 0.3rem;
    content: '\eab4';
}

.hamburger,
.nav-hamburger {
    padding: 0.2rem 0.5rem;
    font-family: 'NerdFontsSymbols Nerd Font';
}

@media (max-width: 800px) {
    .hamburger {
        display: block;
    }

    .menu {
        visibility: hidden;
    }

    .menu.active {
        visibility: visible;
    }

    #nav-bar .nav-link {
        display: none;
    }
}

@media (min-width: 801px) {
    .hamburger {
        display: none;
    }
}

.menu {
    position: fixed;
    top: 0;
    right: 0;

    transition: all 0.2s ease-in-out;
    transform: translateX(100%);

    width: 100%;
    height: 100%;
    z-index: 16;

    background-color: var(--red-base);
}

.menu.active {
    transform: translateX(0);
}

.menunav {
    display: flex;
    flex-flow: column nowrap;
    justify-content: flex-end;
    align-content: center;

    padding: var(--padding-page);

    list-style-type: none;
}

.menu-header {
    display: flex;
    padding: 15px;
    justify-content: space-between;
}

.menu-link {
    border-bottom: 1px solid var(--red-300);
}

.menu-link > a {
    display: block;

    padding: 16px 12px;
    margin: 0 -12px;

    font-size: 1.1rem;
    font-weight: 600;
    color: var(--base);
}

.menu-link:hover {
    background-color: var(--red-300);
}


body.active {
    overflow-y: hidden;
}

.large-icon {
    font-family: 'NerdFontsSymbols Nerd Font';
    margin-left: 0.3rem;
    font-size: 1.2rem;
    line-height: 1.1rem;
    content: '\eab4';
}

.card-contact {
    color: var(--text);
    font-size: 0.8rem;
    font-weight: 500;
    padding: var(--padding-200) var(--padding-200);
}

.contact-icon {
    font-family: 'NerdFontsSymbols Nerd Font';
    margin-right: 0.3rem;
}

#contact-location:after {
    content: '';
    font-family: 'NerdFontsSymbols Nerd Font';
    margin-left: 0.3rem;
}

#contact-phone:after {
    content: '󰏲';
    font-family: 'NerdFontsSymbols Nerd Font';
    margin-left: 0.3rem;
}

#contact-email:after {
    content: '󰇮';
    font-family: 'NerdFontsSymbols Nerd Font';
    margin-left: 0.3rem;
}

.nerd {
    font-family: 'NerdFontsSymbols Nerd Font';
}
