/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/


@font-face {
    font-family: 'TT Fellows';
    src: url('https://harjuelekter.com/wp-content/uploads/2026/02/TT_Fellows_Variable.woff2') format('woff2-variations'),
         url('https://harjuelekter.com/wp-content/uploads/2026/02/TT_Fellows_Variable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

body:not(.elementor-editor-active) #footer-sr-heading {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

html, body{
    font-synthesis: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-variation-settings: "slnt" 0;
	/*max-width: 1920px;
	margin-left: auto !important;
	margin-right: auto !important;*/
}

body, 
.elementor-kit-8,
h1, h2, h3, h4, h5, h6, p {
    font-family: 'TT Fellows', sans-serif !important;
    font-variation-settings: "slnt" 0;
}

.harju-text-constrained {
    max-width: 62.5rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
}

.harju-form-constrained {
    max-width: 45rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
}

.harju-form-constrained .elementor-widget-form {
    width: 100%;
}

.project-read-more {
    display: flex;
    gap: 8px;
    line-height: 28px;
    font-weight: 600;
    color: #454854;
    width: 100%;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
}

.project-read-more svg{
    width: 1em;
    fill: #454854;
    height: 1em;
}


/* --- References Grid (3 Columns) --- */
.project-ref-section {
    width: 100%;
}
.project-ref-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
}
.project-ref-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}
.project-ref-image {
    height: 200px;
    overflow: hidden;
}
.project-ref-image {
    display: block;
    height: 200px;
    overflow: hidden;
}
.project-ref-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
h3.project-ref-title {
    margin: 0 0 8px 0;
}
h3.project-ref-title {
    margin: 0 0 8px 0;
    color: #000F2D;
}
.project-ref-excerpt {
    color: #000F2D;
    font-size: 0.9rem;
    line-height: 1.5;
	margin-bottom: 20px;
}
.project-ref-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
a.project-ref-card {
    text-decoration: none;
    color: inherit;
}
a.project-prod-card {
    text-decoration: none;
    color: inherit;
}
/* --- Mobile --- */
@media (max-width: 768px) {
    .project-ref-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Custom CV Upload --- */
.elementor-field-type-upload.elementor-field-group{
    position: relative;
}

.elementor-field-type-upload.elementor-field-group .cv-upload-hidden{
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.elementor-field-type-upload.elementor-field-group .cv-upload-wrap{
    width: 100%;
}

.elementor-field-type-upload.elementor-field-group .cv-dropzone-ui{
    width: 100%;
    background: #fff;
    border: 2px dashed #878a97;
    border-radius: 4px;
    padding: 22px;
    cursor: pointer;
    display: block;
    transition: all 0.2s ease;
}

.elementor-field-type-upload.elementor-field-group .cv-dropzone-ui:hover,
.elementor-field-type-upload.elementor-field-group .cv-dropzone-ui:focus{
    border-color: #00308f;
    outline: none;
}

.elementor-field-type-upload.elementor-field-group .cv-dropzone-ui.is-drag{
    border-color: #00308f;
}

.elementor-field-type-upload.elementor-field-group .cv-dropzone-main{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #00308f;
    font-size: 16px;
    line-height: 24px;
    text-align: center;
}

.elementor-field-type-upload.elementor-field-group .cv-dropzone-icon{
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px 24px;
}

.elementor-field-type-upload.elementor-field-group .cv-dropzone-text{
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.elementor-field-type-upload.elementor-field-group .cv-dropzone-helper{
    margin-top: 4px;
    font-size: 14px;
    line-height: 24px;
    color: #686b78;
}

/* --- Products Grid (2 Columns, Horizontal Card) --- */
.elementor-element-3ea45ac{
	width: 100%;
}
.project-prod-section {
    width: 100%;
}
.project-prod-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    width: 100%;
}
.project-prod-card {
    background: #fff;
    display: flex;
    align-items: stretch !important;
    padding: 0 !important;
    gap: 0 !important;
    min-height: 180px;
    overflow: hidden;
}
.project-prod-image {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    overflow: hidden !important;
}
.project-prod-image {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: block !important;
    overflow: hidden !important;
    line-height: 0 !important;
}
.project-prod-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-height: none !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}
.project-prod-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 24px;
}
h3.project-prod-title {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 700;
}
h3.project-prod-title {
    margin: 0 0 12px 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #000F2D;
}

.project-prod-desc {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    line-clamp: 6;
    overflow: hidden;
}

.project-read-more {
    transition: color 0.2s;
}

.project-read-more svg {
    fill: #454854;
    transition: fill 0.2s;
}

a.project-ref-card:hover .project-read-more,
a.project-prod-card:hover .project-read-more {
    color: #6B6E7A;
}

a.project-ref-card:hover .project-read-more svg,
a.project-prod-card:hover .project-read-more svg {
    fill: #6B6E7A;
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .project-prod-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .project-prod-card {
        flex-direction: column !important;
    }
    .project-prod-image {
        flex: 0 0 auto !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 200px !important;
    }
    .project-prod-image img {
        height: 200px !important;
        width: 100% !important;
    }
    .project-prod-content {
        padding: 20px !important;
    }
}

/* --- Specialists --- */
.harju-specialists-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 32px !important;
    margin-bottom: 32px !important;
}
.harju-specialist-item {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    align-items: flex-start !important;
}
.harju-specialist-visual {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
}
img.harju-specialist-img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}
.harju-specialist-flags {
    display: flex !important;
    gap: 6px !important;
    justify-content: center !important;
}
.harju-specialist-flag {
    width: 18px !important;
    height: 18px !important;
    object-fit: contain !important;
    display: block !important;
}
.harju-specialist-details {
    display: flex !important;
    flex-direction: column !important;
}
.harju-specialist-name {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #000 !important;
    margin: 0 0 4px 0 !important;
    line-height: 24px !important;
	text-transform: none !important;
}
.harju-specialist-job-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 24px !important;
    color: #000 !important;
}
.harju-specialist-contacts {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}
.harju-contact-row a {
    font-size: 14px !important;
    color: #000 !important;
    text-decoration: underline !important;
    line-height: 24px !important;
    word-break: break-all !important;
}
.harju-contact-row a:hover {
    color: #000 !important;
}
.harju-contact-row .harju-link-underline {
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 2px !important;
}
@media (max-width: 767px) {
    .harju-specialist-item {
        gap: 16px !important;
    }
}

/* ==========================================================================
    Governing Bodies Grid – [harju_governing_bodies]
   ========================================================================== */

.harju-governing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 0;
    padding: 0;
}

.harju-governing-card {
    /* background: #EEEEF4; */
	background: var(--e-global-color-accent);
    display: flex;
    flex-direction: column;
}

.harju-governing-visual a {
    display: block;
    line-height: 0;
}

.harju-governing-photo {
    width: 100%;
    height: 273px;
    display: block;
    object-fit: cover;
    object-position: top center;
}

.harju-governing-details {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.harju-governing-name {
    font-family: "TT Fellows", sans-serif;
    font-size: 23px;
    font-weight: 600;
    font-style: normal;
    line-height: normal;
    color: #00308F;
    margin: 0 0 4px 0;
}

.harju-governing-subtitle {
    font-family: "TT Fellows", sans-serif;
    font-size: 16px;
    font-weight: 600;
    font-style: normal;
    line-height: 24px;
    color: #00308F;
    font-feature-settings: 'liga' off, 'clig' off;
    margin: 0 0 20px 0;
}

.harju-governing-action {
    margin-top: auto;
}

.harju-governing-read-more {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 6px 20px;
    border-radius: 360px;
    border: 2px solid #00308F;
    background: transparent;
    font-family: "TT Fellows", sans-serif;
    font-size: 16px;
    font-weight: 600;
    font-style: normal;
    line-height: 24px;
    color: #00308F;
    text-align: center;
    text-decoration: none;
    font-feature-settings: 'liga' off, 'clig' off;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.harju-governing-read-more:hover,
.harju-governing-read-more:focus {
    background-color: #00308F;
    color: #fff;
}

.harju-governing-none {
    padding: 20px 0;
    color: #666;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
    .harju-governing-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

/* Mobile: 1 column */
@media (max-width: 600px) {
    .harju-governing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .harju-governing-photo {
        height: 220px;
    }

    .harju-governing-details {
        padding: 16px;
    }

    .harju-governing-name {
        font-size: 20px;
    }
}

.harju-reference-tags {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.harju-reference-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0 16px;
    border-radius: 360px;
    background: #eef6fc;
    font-family: "TT Fellows", sans-serif;
    font-size: 16px;
    font-weight: 400;
    font-style: normal;
    line-height: 24px;
    color: #454854;
    white-space: nowrap;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.harju-reference-tag:hover,
.harju-reference-tag:focus {
    background: #00308F;
    color: #fff;
}

@media (max-width: 767px) {
    .harju-reference-tag {
        font-size: 12px;
    }
}

.harju-ref-products {
    width: 100%;
}

.harju-ref-products-header {
    margin-bottom: 24px;
}

.harju-ref-products-title {
    margin: 0;
    font-family: "TT Fellows", sans-serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
}

.harju-ref-products-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.harju-ref-product-card {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 0;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.harju-ref-product-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 300px;
    width: 300px;
    align-self: stretch;
    padding: 0;
    background: #dadee6;
    box-sizing: border-box;
    overflow: hidden;
}

.harju-ref-product-visual img {
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

.harju-ref-product-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(69, 72, 84, 0.08);
}

.harju-ref-product-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    flex: 1 1 auto;
    padding: 32px;
    background: #eeeef4;
    box-sizing: border-box;
}

.harju-ref-product-name {
    margin: 0;
    font-family: "TT Fellows", sans-serif;
    font-size: 26px !important;
    font-weight: 600;
    line-height: 1.2;
    color: #454854 !important;
}

.harju-ref-product-desc {
    margin: 0;
    font-family: "TT Fellows", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: #131317;
    max-height: 72px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.harju-ref-product-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 0;
    font-family: "TT Fellows", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 28px;
    color: #454854;
}

.harju-ref-product-cta svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.harju-ref-product-card:hover .harju-ref-product-cta,
.harju-ref-product-card:focus .harju-ref-product-cta {
    color: #00308f;
}

@media (min-width: 1024px) and (max-width: 1400px) {
    .harju-ref-products-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .harju-ref-product-card {
        flex-direction: column;
        min-height: 0;
        width: 100%;
    }

    .harju-ref-product-visual {
        flex: none;
        width: 100%;
        min-height: 220px;
        padding: 0;
    }

    .harju-ref-product-content {
        padding: 24px 16px;
    }

    .harju-ref-product-name {
        font-size: 20px !important;
    }

    .harju-ref-product-cta {
        font-size: 16px;
        line-height: 24px;
    }
}

@media (max-width: 767px) {
    .harju-ref-products-title {
        font-size: 20px !important;
    }

    .harju-ref-product-card {
        flex-direction: column;
        min-height: 0;
    }

    .harju-ref-product-visual {
        flex: none;
        width: 100%;
        min-height: 220px;
        padding: 0;
    }

    .harju-ref-product-content {
        padding: 24px 16px;
    }

    .harju-ref-product-name {
        font-size: 20px !important;
    }

    .harju-ref-product-cta {
        font-size: 16px;
        line-height: 24px;
    }
}

.harju-ref-gallery {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #dadee6;
}

.harju-ref-gallery-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.harju-ref-gallery-track {
    display: flex;
    width: 100%;
    align-items: stretch;
    transition: transform 0.35s ease;
    will-change: transform;
}

.harju-ref-gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 4 / 3;
    display: block;
    position: relative;
    overflow: hidden;
    background: #dadee6;
}

.harju-ref-gallery-slide img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
}

.harju-ref-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    border-radius: 50%;
    background: #00308f;
    color: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.harju-ref-gallery-prev {
    left: 16px;
}

.harju-ref-gallery-next {
    right: 16px;
}

.harju-ref-gallery-nav:hover {
    background: #002266;
    color: #fff;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.harju-ref-gallery-nav:focus,
.harju-ref-gallery-nav:focus-visible,
.harju-ref-gallery-nav:active {
    background: #00308f;
    color: #fff;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}
