/* === Header Wrapper === */
.site-header {
    padding: 20px 0;
    width: 100%;
    background-color: var(--kaetech-header-bg, #fff);
    border-bottom: 1px solid var(--kaetech-body-color, #eaeaea);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* === Header Right Container === */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px; /* Space between menu and button */
}

/* === Logo & Branding === */
.site-title {
    font-family: var(--kaetech-header-font);
    font-size: var(--kaetech-header-font-size);
    font-weight: var(--kaetech-header-font-weight);
    color: var(--kaetech-header-color);
    margin: 0;
}

.site-title a {
    text-decoration: none;
    color: var(--kaetech-header-color);
}

.site-description {
    font-family: var(--kaetech-header-font);
    font-size: 14px;
    color: var(--kaetech-header-color);
    margin: 0;
}

/* === Menu Styling === */
.site-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}

.site-navigation a {
    font-family: var(--kaetech-menu-font);
    font-size: var(--kaetech-menu-font-size);
    font-weight: var(--kaetech-menu-font-weight);
    color: var(--kaetech-menu-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-navigation a:hover,
.site-navigation a:focus {
    color: var(--kaetech-header-color);
}

/* === Header Button === */
.header-button {
    display: inline-block;
    padding: 10px 20px;
    font-family: var(--kaetech-header-button-font);
    font-size: var(--kaetech-header-button-font-size);
    font-weight: var(--kaetech-header-button-font-weight);
    color: var(--kaetech-header-button-color);
    background-color: var(--kaetech-header-button-bg-color);
    border: 2px solid var(--kaetech-header-button-border-color);
    border-radius: var(--kaetech-header-button-border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
}

.header-button:hover,
.header-button:focus {
    background-color: var(--kaetech-header-button-bg-hover-color);
    color: var(--kaetech-header-button-hover-color);
    border-color: var(--kaetech-header-button-border-hover-color);
}

/* === Body and Headings === */
body {
    font-family: var(--kaetech-body-font);
    font-size: var(--kaetech-body-font-size);
    font-weight: var(--kaetech-body-font-weight);
    color: var(--kaetech-body-color);
    background-color: var(--kaetech-body-bg, #fff);
}

h1 {
    font-family: var(--kaetech-h1-font);
    font-size: var(--kaetech-h1-font-size);
    font-weight: var(--kaetech-h1-font-weight);
    color: var(--kaetech-h1-color);
}
h2 {
    font-family: var(--kaetech-h2-font);
    font-size: var(--kaetech-h2-font-size);
    font-weight: var(--kaetech-h2-font-weight);
    color: var(--kaetech-h2-color);
}
h3 {
    font-family: var(--kaetech-h3-font);
    font-size: var(--kaetech-h3-font-size);
    font-weight: var(--kaetech-h3-font-weight);
    color: var(--kaetech-h3-color);
}
h4 {
    font-family: var(--kaetech-h4-font);
    font-size: var(--kaetech-h4-font-size);
    font-weight: var(--kaetech-h4-font-weight);
    color: var(--kaetech-h4-color);
}
h5 {
    font-family: var(--kaetech-h5-font);
    font-size: var(--kaetech-h5-font-size);
    font-weight: var(--kaetech-h5-font-weight);
    color: var(--kaetech-h5-color);
}
h6 {
    font-family: var(--kaetech-h6-font);
    font-size: var(--kaetech-h6-font-size);
    font-weight: var(--kaetech-h6-font-weight);
    color: var(--kaetech-h6-color);
}

/* === Footer === */
.site-footer {
    background-color: var(--kaetech-footer-bg);
    color: var(--kaetech-footer-text-color);
    text-align: center;
    padding: 20px 0;
    font-family: var(--kaetech-footer-font);
    font-size: var(--kaetech-footer-font-size);
    font-weight: var(--kaetech-footer-font-weight);
}

.site-footer a {
    color: var(--kaetech-footer-text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--kaetech-header-color);
}

/* === Container === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* === Content Wrapper (Body) === */
.content-sidebar-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.site-main {
    flex: 3;
    min-width: 0;
}

.site-sidebar {
    flex: 1;
    min-width: 250px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .header-right {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    .site-navigation ul {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    .site-navigation a {
        width: 100%;
    }
}

.site-navigation a:hover,
.site-navigation a:focus {
    color: var(--kaetech-menu-hover-color, var(--kaetech-header-color));
}

.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
}

/* === Mobile Menu Styles === */
.menu-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--kaetech-menu-color);
    margin-left: auto; /* push to right */
    transition: color 0.3s ease;
}

.menu-toggle:hover,
.menu-toggle:focus {
    color: var(--kaetech-menu-hover-color, var(--kaetech-header-color));
}

.mobile-menu-panel {
    position: fixed;
    top: 0;
    right: -350px; /* Hide by default */
    width: 250px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.2);
    overflow-y: auto;
    transition: right 0.3s ease;
    z-index: 9999;
    padding: 20px;
}

.mobile-menu-panel.open {
    right: 0;
}

.mobile-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.mobile-menu a {
    display: block;
    font-family: var(--kaetech-menu-font);
    font-size: var(--kaetech-menu-font-size);
    font-weight: var(--kaetech-menu-font-weight);
    color: var(--kaetech-menu-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
    color: var(--kaetech-menu-hover-color, var(--kaetech-header-color));
}

.close-menu {
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    display: block;
    margin-left: auto;
    color: var(--kaetech-menu-color);
    transition: color 0.3s ease;
}

.close-menu:hover,
.close-menu:focus {
    color: var(--kaetech-menu-hover-color, var(--kaetech-header-color));
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: row;
        align-items: center;
    }

    .header-right {
        display: none; /* hide normal menu on mobile */
    }

    .menu-toggle {
        display: block;
        margin-left: auto; /* push far right */
    }
}

.site-logo img {
    width: var(--kaetech-logo-width, 150px);
    height: auto;
}

.mobile-menu-panel {
    background-color: var(--kaetech-mobile-menu-bg-color, #fff);
}

.mobile-menu a {
    font-family: var(--kaetech-mobile-menu-font);
    font-size: var(--kaetech-mobile-menu-font-size);
    font-weight: var(--kaetech-mobile-menu-font-weight);
    color: var(--kaetech-mobile-menu-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu a:hover,
.mobile-menu a:focus {
    color: var(--kaetech-mobile-menu-hover-color, #ff0000);
}

.mobile-menu,
.mobile-menu li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-menu li {
    margin-bottom: 15px;
}

.menu-toggle {
    color: var(--kaetech-mobile-toggle-color);
}

.close-menu {
    color: var(--kaetech-mobile-close-color);
}

.menu-toggle {
    color: var(--kaetech-mobile-toggle-color);
    transition: color 0.3s ease;
}

.menu-toggle:hover,
.menu-toggle:focus {
    color: var(--kaetech-mobile-toggle-hover-color, #ff0000);
}

.close-menu {
    color: var(--kaetech-mobile-close-color);
    transition: color 0.3s ease;
}

.close-menu:hover,
.close-menu:focus {
    color: var(--kaetech-mobile-close-hover-color, #ff0000);
}

