/*

 Theme Name:   Hild House

 Description:  Custom child theme for Hild House website

 Author:       Kristjan Tiido
 Website:	spetsymarketing.com

 Template:     astra

 Version:      1.0.0

*/

body {
    background-color: #EBE4D4 !important;
}

header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1000 !important;
}

table, td, th {
    border: none;
}

.mf-input-required-indicator {
    display: none;
}

.grecaptcha-badge { 
    visibility: hidden !important;
}

#hild-header {
    transition: transform 0.3s ease-in-out !important;
    transform: translateY(0) !important;
}

#hild-header.header-hidden {
    transform: translateY(-200px) !important;
}

#hild-header a:hover {
    text-decoration: underline !important;
}
#hild-footer a:hover {
    text-decoration: underline !important;
}

#hild-header-inner {
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

/* Comparison Table Styles */
.hildhouse-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: transparent;
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 300;
    font-size: 20px;
}

.hildhouse-comparison-table thead th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #000000;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
}
.hildhouse-comparison-table thead {
    background-color: #777b612e;
}

.hildhouse-comparison-table thead th:first-child {
    background-color: transparent;
    border-left: none;
    border-right: 1px solid #000;
    min-width: 300px;
}

.hildhouse-comparison-table thead th:last-child {
    border-right: none;
}

/* Make last 3 columns equal width */
.hildhouse-comparison-table thead th:nth-child(2),
.hildhouse-comparison-table thead th:nth-child(3),
.hildhouse-comparison-table thead th:nth-child(4),
.hildhouse-comparison-table tbody td:nth-child(2),
.hildhouse-comparison-table tbody td:nth-child(3),
.hildhouse-comparison-table tbody td:nth-child(4) {
    width: calc(100% / 3);
}

.hildhouse-comparison-table tbody tr:nth-child(even) {
    background-color: #777b611e;
}

.hildhouse-comparison-table tbody tr:nth-child(odd) {
    background-color: transparent;
}

.hildhouse-comparison-table tbody td {
    padding: 15px;
    border-left: 1px solid #000;
    border-right: 1px solid #000;
    color: black;
}

.hildhouse-comparison-table tbody td:first-child {
    font-weight: normal;
    text-align: left;
    border-left: none;
    border-right: 1px solid #000;
}

.hildhouse-comparison-table tbody td:last-child {
    border-right: none;
}

.hildhouse-icon-check {
    color: #28a745;
    font-size: 20px;
    font-weight: 600;
}

.hildhouse-icon-cross {
    color: #dc3545;
    font-size: 20px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hildhouse-comparison-table {
        font-size: 14px;
    }
    
    .hildhouse-comparison-table thead th,
    .hildhouse-comparison-table tbody td {
        padding: 10px 8px;
    }
}

/* Language switcher */

/* Konteiner */
.custom-lang-dropdown {
    position: relative;
    display: inline-block;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
}

/* Aktiivne keel */
.lang-current {
    padding: 8px 12px;
    color: #000000;
    display: flex;
    align-items: center;
}

/* Nooleke aktiivse keele kõrvale (valikuline) */
.lang-current:after {
    content: '▼';
    font-size: 9px;
    margin-left: 8px;
    color: #000000;
}

/* Rippmenüü loetelu - Peidetud vaikimisi */
.lang-list {
    display: none; 
    position: absolute;
    top: 100%; /* Avaneb täpselt nupu all */
    left: 0;
    min-width: 100%;
    z-index: 9999;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Üksikud keeled tulbas */
.lang-drop-item {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #000000;
    background-color: #bab5a8;
    transition: background 0.2s;
    white-space: nowrap;
}
.lang-drop-item:hover {
    color: black; 
}


/* HOVER loogika - Näita menüüd koheselt */
.custom-lang-dropdown:hover .lang-list {
    display: block;
}

/* Kui soovid, et nool pöörduks hoveri ajal */
.custom-lang-dropdown:hover .lang-current:after {
    content: '▲';
}