/* /////////////////////////////////////////////////// */
/*  BASIC */
/* /////////////////////////////////////////////////// */

* {
    margin: 0;
    padding: 0;
}

p,a,h2,h3,button {
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-style: normal;
    font-variant: normal;
    color: #FDFEFE;
}

p,a,button {
    font-size: 14pt;
}

h3 {
    font-size: 21pt;
}

h2 {
    font-size: 28pt;
}

h1 {
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 32pt;
    font-style: normal;
    font-variant: normal;
    font-weight: 700;
    color: #FDFEFE;
}

body,html,div,p,a,b,i {
    margin: 0;
    padding: 0;
}

table,tr,td {
    border: 0px none;
    margin: 0;
    padding: 0;
}

/* /////////////////////////////////////////////////// */
/*  SCROLLBAR */
/* /////////////////////////////////////////////////// */

    /* Firefox only: Chrome ignores ::-webkit-scrollbar when scrollbar-color is set */
    @-moz-document url-prefix() {
        * {
            scrollbar-width: auto;
            scrollbar-color: #404040 #000000;
            }
        }

    ::-webkit-scrollbar {
        width: 10px;
        height: 10px;
        background-color: #000000;
        }

    ::-webkit-scrollbar-track {
        background-color: #000000;
        }

    ::-webkit-scrollbar-thumb {
        background-color: #404040;
        border-radius: 6px;
        transition: background-color 0.3s;
        }

    ::-webkit-scrollbar-thumb:hover {
        background-color: #0171FF;
        }

    ::-webkit-scrollbar-corner {
        background-color: #000000;
        }

/* /////////////////////////////////////////////////// */
/*  COLORS */
/* /////////////////////////////////////////////////// */

.color_black {
    background-color:#000000
}

.color_wite {
    background-color:#FDFEFE
}

.color_lightblue {
    background-color:#6DD4FF
}

/* /////////////////////////////////////////////////// */
/*  BUTTONS */
/* /////////////////////////////////////////////////// */

.interactable_button {
    background-color: transparent;
    cursor: pointer;
    white-space: nowrap;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    padding-right: 51px !important;
    padding-left: 51px !important;
    border-style: solid;
    border-width: 0.5px;
    border-radius: 5px;
    transition: border-color .3s, color .3s;
}

.button_lightblue {
    border-color: #6DD4FF;
    color: #6DD4FF;
}

.button_lightblue.interactable_button:hover {
    border-color: #FDFEFE !important;
    color: #FDFEFE !important;
}

.button_white {
    border-color: #FDFEFE;
    color: #FDFEFE;
}

.button_white.interactable_button:hover {
    border-color: #6DD4FF !important;
    color: #6DD4FF !important;
}

.button_yellow {
    border-color: yellow;
    color: yellow;
}

.button_yellow.interactable_button:hover {
    border-color: #FDFEFE !important;
    color: #FDFEFE !important;
}

.button_gray {
    border-color: #9CAEB8;
    color: #9CAEB8;
}

.button_gray.interactable_button:hover {
    border-color: #FDFEFE !important;
    color: #FDFEFE !important;
}

.button_solid_blue {
    background-color: #0171FF;
    border-color: #0171FF;
    color: #FDFEFE;
    transition: background-color .3s;
}

.button_solid_blue.interactable_button:hover {
    background-color: #003BBC !important;
    border-color: #003BBC !important;
    color: #FDEFDE !important;
}

.button_solid_green {
    background-color: #009933;
    border-color: #009933;
    color: #FDFEFE;
    transition: background-color .3s;
}

.button_solid_green.interactable_button:hover {
    background-color: #006633 !important;
    border-color: #006633 !important;
    color: #FDEFDE !important;
}

.button_solid_red {
    background-color: #EA4335;
    border-color: #EA4335;
    color: #FDFEFE;
    transition: background-color .3s;
}

.button_solid_red.interactable_button:hover {
    background-color: #A32735 !important;
    border-color: #A32735 !important;
    color: #FDEFDE !important;
}

/* /////////////////////////////////////////////////// */
/*  NAVBAR */
/* /////////////////////////////////////////////////// */

.navbar_space {
    height: 120px;
}

.navbar_shadow {
    box-shadow:00px 00px 10px 10px #202B4217;
    z-index: 10001;
}

.navbar_dropdown_content {
    position: relative;
    display: flex;
    flex-direction: column;
    right: 20px;
    width: auto;

    padding-top: 20px;

    pointer-events: none;
    opacity: 0;

    transition: opacity .3s;

    text-align: left;
}

.navbar_dropdown > p {
    cursor: default;
    transition: background-color .3s;
}

.navbar_dropdown:hover .navbar_dropdown_content {
    pointer-events: auto;
    opacity: 1;
}

.navbar_dropdown_content .navbar_link {
    display: table-cell;
    padding: 20px;
}

.navbar_dropdown_content .navbar_link:hover {
    background-color: #000000;
}

.navbar_link {
    text-decoration: none;
    transition: color .3s;
}

.navbar_link:hover {
    color: #6DD4FF !important;
}

.navbar_cell {
    padding-bottom: 25px;
    flex-shrink: 0;
    white-space: nowrap;
}

#Navbar {
    z-index: 10000;
    height:120px;
    width:calc(100% - calc(100vw - 100%));
    left: calc(100vw - 100%);
    position: fixed;
    transition: opacity .3s;
}

/* VEEL overflow menu: click toggle (touch) */
.navbar_dropdown.clicked .navbar_dropdown_content {
    pointer-events: auto;
    opacity: 1;
    }

/* items moved into dropdown content lose their cell padding */
.navbar_dropdown_content .navbar_cell {
    padding-bottom: 0;
    }

/* VEEL menu: right-aligned to the VEEL button */
#navbar_veel {
    position: relative;
    }

.navbar_veel_wrap {
    right: -20px;
    }

#navbar_veel .navbar_dropdown_content {
    right: 0;
    }

#navbar_veel .navbar_dropdown_content .navbar_link {
    display: block;
    text-align: right;
    }

/* /////////////////////////////////////////////////// */
/*  LANDING */
/* /////////////////////////////////////////////////// */

.notclickable {
    user-select: none;
    pointer-events: none;
}

.delayed_fade_in {
    animation: fadeIn 3s;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* /////////////////////////////////////////////////// */
/*  QUOTE */
/* /////////////////////////////////////////////////// */

.space {
    height: 80px;
}

.quote_page {
    width: 700px;
    margin: auto;
    background-color: #FDFEFE;
    border-radius: 10px;
}

.quote_page_content {
    padding:40px;
    display: flex;
    flex-direction: column;
}

.quote_page p {
    color: #000B36
}

.quote_page h3 {
    color: #000B36
}

.quote_page h1 {
    color: #000B36
}

.top {
    background-color: #0171FF;
    border-radius: 10px 10px 0px 0px;
    display:flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 170px;
    position: relative;
    transition: background-color .5s;
}

.top > h3 {
    color: #FDFEFE;
    font-size: 32px;
    text-align: center;
}

.top_arrow_holder {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.top_arrow {
    background-color: #0171FF;
    height: 40px;
    width: 40px;
    transform: rotate(45deg);
    transition: background-color .5s;
}

.form_space {
    height: 20px;
}

.form_field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap:10px;
    width: 610px;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-variant: normal;
    font-style: normal;
    font-size: 14pt;
}

.form_field select {
    width: 622px;
}

.form_button {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 600px;
}

.field {
    border-radius: 8px;
    border: 1px solid #9CAEB8;
    width: 100%;
    height: 45px;
    font-size: 14pt;
    padding-left: 10px;
}

textarea.field {
    height: 215px;
    padding-top: 10px;
    resize: none;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-variant: normal;
    font-style: normal;
    font-size: 14pt;
}

.label {
    color: #000B36;
    height: 30px;
}

.horizontal {
    display: flex;
    gap: 20px;
    width: 610px;
}

.horizontal > .form_field {
    width: 50%;
}

.button_send {
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-variant: normal;
    font-style: normal;
    font-size: 14pt;
}

.loading_space {
    height: 0px;
}

.loading_container {
    width: 600px;
    position: absolute;
    z-index: 6;
    transition: opacity .5s;
    pointer-events: none;
    opacity: 0;
}

.loading_bar {
    height: 20px;
    background-color: #0171FF;
    border-radius: 4px;
    transition: width .1s;
}

.loading_bar_background {
    display: flex;
    align-items: flex-start;
    width: 100%;
    border: 1px solid #9CAEB8;
    border-radius: 8px;
    padding: 10px;
    background-color: #FDFEFE;
    opacity: 0;
    transition: opacity .5s;
}

.submit_container {
    position: absolute;
    transition: opacity .3s;
    opacity: 1;
}

.submit_space {
    height: 54px;
}

/* /////////////////////////////////////////////////// */
/*  QUOTE DONE (inline) */
/* /////////////////////////////////////////////////// */

.quote_done {
    display: none;
}

.form_text {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 35px;
    margin-bottom: 50px;
}

/* /////////////////////////////////////////////////// */
/*  FILE ADD + SQUARES */
/* /////////////////////////////////////////////////// */

    .file_add_section {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: flex-start;
        width: 100%;
        }

    .file_add_btn {
        width: 116px;
        height: 116px;
        box-sizing: border-box;
        border: 3px dashed #9CAEB8;
        border-radius: 8px;
        background-color: transparent;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        transition: border-color .3s;
        padding: 0;
        }

    .file_add_btn:hover {
        border-color: #0171FF;
        }

    .file_add_icon {
        width: 40px;
        height: 40px;
        color: #9CAEB8;
        pointer-events: none;
        transition: color .3s;
        }

    .file_add_btn:hover .file_add_icon {
        color: #0171FF;
        }

    .file_square {
        width: 116px;
        height: 116px;
        box-sizing: border-box;
        border: 2px solid #9CAEB8;
        border-radius: 8px;
        position: relative;
        overflow: hidden;
        background-color: #FDFEFE;
        cursor: pointer;
        transition: border-color .3s;
        }

    .file_square:hover {
        border-color: #EA4335;
        }

    .file_square_img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        }

    .file_square_icon {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        box-sizing: border-box;
        }

    .file_square_icon img {
        position: absolute;
        top: calc(50% - 7px);
        left: 50%;
        transform: translate(-50%, -50%);
        width: 45px;
        height: 45px;
        }

    .file_type_red {
        opacity: 0;
        transition: opacity .3s;
        }

    .file_square:hover .file_type_red {
        opacity: 1;
        }

    .file_square_name {
        position: absolute;
        bottom: 7px;
        left: 0;
        right: 0;
        color: #9CAEB8;
        font-family: "Trebuchet MS", Arial, sans-serif;
        font-size: 11.2pt;
        line-height: 1.2;
        padding: 3px 6px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        transition: color .3s;
        }

    .file_square:hover .file_square_name {
        color: #EA4335;
        }

    /* image previews: name back at the bottom edge */
    .file_square:has(.file_square_img) .file_square_name {
        bottom: 0;
        }

    .file_square_remove {
        position: absolute;
        top: 2px;
        right: 2px;
        width: 22px;
        height: 22px;
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s;
        cursor: pointer;
        z-index: 2;
        }

    .file_square:hover .file_square_remove {
        opacity: 1;
        pointer-events: auto;
        }

    .file_square_remove img {
        position: absolute;
        top: 0;
        left: 0;
        width: 22px;
        height: 22px;
        }

    .file_remove_red {
        opacity: 0;
        transition: opacity .3s;
        }

    .file_square:hover .file_remove_red {
        opacity: 1;
        }

/* /////////////////////////////////////////////////// */
/*  DROP OVERLAY */
/* /////////////////////////////////////////////////// */

    .drop_overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.39);
        z-index: 9;
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s;
        }

    .drop_overlay.active {
        opacity: 1;
        }

    /* separate darkness just for the navbar */
    .navbar_dark {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 120px;
        background-color: rgba(0, 0, 0, 0.39);
        z-index: 11;
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s;
        }

    .navbar_dark.active {
        opacity: 1;
        }

    .drop_box {
        display: flex;
        position: fixed;
        box-sizing: border-box;
        border: 6px dashed #9CAEB8;
        border-radius: 10px;
        z-index: 9;
        align-items: center;
        justify-content: center;
        opacity: 0;
        pointer-events: none;
        transition: opacity .3s, border-color .3s;
        }

    .drop_box.active {
        opacity: 1;
        pointer-events: auto;
        }

    .drop_box:hover {
        border-color: #0171FF;
        }

    .drop_box.grow {
        border-color: #0171FF;
        }

    .drop_icon {
        width: 120px;
        height: 120px;
        color: #9CAEB8;
        pointer-events: none;
        transition: color .3s;
        }

    .drop_box:hover .drop_icon,
    .drop_box.grow .drop_icon {
        color: #0171FF;
        }

/* /////////////////////////////////////////////////// */
/*  TEENUSED (NEW DESIGN: left bar + right view) */
/* /////////////////////////////////////////////////// */

.services_page {
    width: 1300px;
    margin: auto;
    display: flex;
    }

.services_left {
    width: 400px;
    flex-shrink: 0;
    padding: 0 0 20px 0;
    }

.services_item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 25px;
    border-radius: 5px;
    cursor: default;
    transition: background-color .3s;
    }

.services_item img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    user-select: none;
    pointer-events: none;
    transition: filter .3s;
    }

.services_item span {
    color: #FDFEFE;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 14pt;
    line-height: 1.2;
    transition: color .3s;
    }

.services_item.active {
    background-color: #FFFFFF;
    border-radius: 5px;
    }

.services_item.active span {
    color: #000000;
    }

.services_item.active img {
    filter: invert(1) grayscale(1);
    }

.services_right {
    flex: 1;
    min-width: 0;
    padding: 0 40px;
    }

.services_content {
    opacity: 1;
    transition: opacity .3s;
    }

.services_hero {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    position: relative;
    }

.services_hero img {
    width: calc(100% + 6px);
    height: calc(100% + 6px);
    position: absolute;
    top: -3px;
    left: -3px;
    object-fit: cover;
    display: block;
    }

.services_squares {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    }

.services_square {
    width: 116px;
    height: 116px;
    box-sizing: border-box;
    }

.services_square img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    user-select: none;
    opacity: 0.8;
    transition: opacity .3s;
    }

.services_square.active img {
    opacity: 1;
    }

.services_content .catalog_popup_text {
    margin-top: 20px;
    }

.services_content .catalog_popup_text h1 {
    margin-bottom: 15px;
    }

.services_block .catalog_popup_text {
    margin-top: 20px;
    }

.services_block .catalog_popup_text h1 {
    margin-bottom: 15px;
    }

.services_content .catalog_popup_text p {
    color: #FDFEFE;
    }

.services_content .catalog_popup_text h1 {
    color: #FDFEFE;
    }

/* narrow screen fallback: no left side, all topics stacked */
.services_stacked {
    display: none;
    width: 900px;
    margin: 0 auto;
    }

.services_block {
    margin-bottom: 80px;
    }

.services_block:last-child {
    margin-bottom: 0;
    }

@media (max-width: 1300px) {
    .services_page {
        width: 100%;
        display: block;
        }
    .services_left {
        display: none;
        }
    .services_right {
        display: none;
        }
    .services_stacked {
        display: block;
        }
    }

/* below 800px the page itself becomes 800px wide (Container_Main
   min-width) — the stacked catalog's 900px column must shrink with it */
@media (max-width: 800px) {
    .services_stacked {
        width: 800px;
        }
    }

/* /////////////////////////////////////////////////// */
/*  KONTAKT */
/* /////////////////////////////////////////////////// */

.page_block {
    display: flex;
    width: 920px;
    margin: 0 auto;
    padding-bottom: 80px;
    padding-top: 80px;
    }

.contact_row {
    display: flex;
    width: 100%;
    justify-content: space-between;
    }

.story_text {
    text-align: left;
    width: 580px;
    line-height: 30px;
    }

.contact_house {
    width: 300px;
    height: 300px;
    }

.vertical_pictures {
    display: flex;
    flex-direction: column;
    gap: 40px;
    }

.hr {
    color: #FDEFEFE;
    opacity: .5;
    width: 920px;
    margin: 0 auto;
    border: 0;
    border-top: 2px solid #FDEFEFE;
    }

/* /////////////////////////////////////////////////// */
/*  TEHTUD TÖÖD (showcase squares) */
/* /////////////////////////////////////////////////// */

.showcase_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0;
    width: 100%;
    }

.showcase_square {
    aspect-ratio: 1;
    position: relative;
    }

.showcase_square img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
    user-drag: none;
    transition: opacity .3s;
    }

/* /////////////////////////////////////////////////// */
/*  NO JS DISCLAIMER */
/* /////////////////////////////////////////////////// */

.nojs_box {
    border: 1px solid red;
    border-radius: 10px;
    width: 920px;
    text-align: left;
    margin: 40px auto;
}

.nojs_box h3 {
    color: red !important;
}

.nojs_box p {
    color: red !important;
}

.nojs_inside {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    margin: 40px;
    margin-right: 60px;
    margin-left: 60px;
}

.nojs_left p {
    font-size: 70pt !important;
}

.nojs_right h3 {
    text-transform: uppercase;
    line-height: 52px;
}

/* payload-limit / failure popup — same visuals as the admin confirmation box */
.msg_overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.msg_overlay.active {
    opacity: 1;
    pointer-events: auto;
}
.msg_box {
    background-color: #FFFFFF;
    border-radius: 10px;
    padding: 34px 42px;
    text-align: center;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 14pt;
    max-width: 90vw;
}
.msg_box p {
    margin: 0 0 24px 0;
    color: #000B36;
}
.msg_buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.msg_buttons button {
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-size: 14pt;
    border: none;
    border-radius: 8px;
    padding: 10px 28px;
    cursor: pointer;
    color: #FFFFFF;
    background-color: #0171FF;
    transition: background-color .3s;
}
.msg_buttons button:hover {
    background-color: #0058C7;
}

/* below 800px the page becomes 800px wide (Container_Main min-width) — the
   stacked catalog's 900px column must shrink with it. Contact section fills
   the 800px page; the text shrinks 48px (580->532) and the picture shrinks
   1.5x as much, 72px (300->228). Placed last so it beats the KONTAKT rules. */
@media (max-width: 800px) {
    .services_stacked {
        width: 800px;
        }
    .page_block {
        width: 800px;
        }
    .story_text {
        width: 532px;
        }
    .contact_house {
        width: 228px;
        height: 228px;
        }
    }
