/*
Theme Name: Kadence Child
Theme URI: 
Description: Child theme for Kadence
Author: Your Name
Template: kadence
Version: 1.0.0
*/

/* ── Header Layout ── */
.site-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    padding: 0 2rem;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.header-nav ul li.current-menu-item a {
    color: #000;
    font-weight: 600;
    border-bottom: 2px solid rgba(0,0,0,0.8);
    padding-bottom: 5px;
}

/* ── Sticky Header ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* Push content down so it doesn't hide behind the header */
#inner-wrap {
    margin-top: 70px;
}
.site-header.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* ── Branding ── */
.header-branding {
    flex-shrink: 0;
}

.site-title-link {
    text-decoration: none;
}

.site-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.header-branding img {
	height: 40px;
    max-height: 40px;
    width: auto;
}

/* ── Navigation ── */
.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.header-nav ul li a {
    text-decoration: none;
    color: #333333;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.1s ease-in-out;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    font-weight: 600;
}

.header-nav ul li a:hover {
    color: #000;
     border-bottom: 1px solid rgba(0,0,0,0.8);
    padding-bottom: 5px;
}

/* ── Language Switcher ── */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.lang-flag {
    display: inline-flex;
    align-items: center;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    border-radius: 2px;
    overflow: hidden;
}

.lang-flag:hover {
    opacity: 1;
}

.lang-flag.active {
    opacity: 1;
    outline: 2px solid #0066cc;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Kadence fixes */

.wp-block-kadence-iconlist ul.kt-svg-icon-list .kt-svg-icon-list-item-wrap {
  align-items: flex-start !important;
}

.wp-block-kadence-iconlist ul.kt-svg-icon-list .kt-svg-icon-list-item-wrap .kt-svg-icon-list-single {
    padding: 2px 0 !important;
}

/* ── 404 Page ── */
.error-404-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 4rem 2rem;
    text-align: center;
}

.error-404-inner {
    max-width: 600px;
}

.error-404-number {
    font-size: 8rem;
    font-weight: 700;
    color: #e8e8e8;
    line-height: 1;
    margin: 0 0 1rem;
}

.error-404-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 1rem;
}

.error-404-text {
    color: #666666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 2rem;
}

.error-404-button {
    display: inline-block;
    background: #0066cc;
    color: #ffffff;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s ease;
}

.error-404-button:hover {
    background: #0052a3;
    color: #ffffff;
}

/* ── Responsive ── */
@media ( max-width: 768px ) {
    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem 0;
    }

    .header-nav ul {
        gap: 1rem;
    }
}
/* ── Hamburger Button ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none !important;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #1a1a1a;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animate to X when open */
.nav-toggle.open span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ── Mobile Navigation ── */
@media ( max-width: 768px ) {
    .nav-toggle {
        display: flex;
    }

    .header-inner {
        flex-wrap: wrap;
        height: auto;
        padding: 1rem 0;
        position: relative;
    }

    .header-nav {
        display: none;
        width: 100%;
        order: 3;
    }

    .header-nav.open {
        display: block;
    }

    .header-nav ul {
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        border-top: 1px solid #e8e8e8;
    }

    .header-nav ul li a {
        display: block;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .language-switcher {
        order: 2;
        margin-left: auto;
        padding-right: 1rem;
    }
}