/*
Theme Name: UniBurma Theme
Theme URI: https://uniburma.com/
Author: UniBurma
Author URI: https://uniburma.com/
Description: A responsive and adaptive classic WordPress starter theme built for the Gutenberg block editor. Uses a blue, white, and green color scheme.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uniburma-theme
Tags: block-editor-styles, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, responsive-layout, theme-options, translation-ready
*/

:root {
    --color-white: #FFFFFF;
    --color-black: #222222;
    --color-green: #28a745;
    --color-blue: #007bff;
    --color-gray: #757575;

    --font-heading: 'Lora', serif;
    --font-body: 'Noto Sans', sans-serif;

    --content-width: 1320px;
    --wide-width: 1440px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--color-white);
    color: var(--color-black);
    font-family: var(--font-body);
    line-height: 1.7;
    font-size: 18px;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.3;
    font-weight: 700;
}

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover,
a:focus {
    color: var(--color-green);
}

.site-container {
    max-width: 100%;
    overflow-x: hidden;
}

/* Wider site layout: use the available desktop space without touching the screen edges. */
.site-main {
    width: 100%;
}

.site-header,
.site-footer,
.site-main > * {
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.site-header,
.site-footer {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* --- Header, branding and responsive primary navigation --- */
.site-header {
    position: relative;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: nowrap;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 0;
}

.site-branding img.custom-logo {
    display: block;
    max-width: 80px;
    height: auto;
    border-radius: 5px;
}

.site-title { margin: 0; }
.site-title a {
    color: var(--color-black);
    font-size: 2rem;
    font-family: var(--font-heading);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 42px;
    padding: 8px 10px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
    background: #fff;
    color: #222;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    flex: 0 0 auto;
}

.menu-toggle-line {
    display: block;
    width: 24px;
    height: 2px;
    background: #222;
    border-radius: 2px;
}

.menu-toggle:focus-visible {
    outline: 3px solid var(--color-green);
    outline-offset: 3px;
}

.primary-menu { margin-top: 0; }
.primary-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}
.primary-menu a {
    display: inline-block;
    color: var(--color-black);
    text-decoration: none;
    font-weight: 700;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease-in-out, border-color 0.2s ease-in-out;
}
.primary-menu a:hover,
.primary-menu a:focus,
.primary-menu .current-menu-item > a {
    color: var(--color-green);
    border-bottom-color: var(--color-green);
}

.site-footer {
    border-top: 1px solid #eee;
    margin-top: 60px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-gray);
}

.entry-content > * {
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
}

.alignwide {
    max-width: var(--wide-width);
}

.alignfull {
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.alignfull img {
    width: 100%;
    height: auto;
}

.wp-block-button__link {
    background-color: var(--color-green) !important;
    color: var(--color-white) !important;
    border-radius: 5px;
    padding: 12px 24px;
}

.wp-block-button__link:hover {
    background-color: var(--color-black) !important;
}

.wp-block-quote {
    border-left: 4px solid var(--color-green);
    padding-left: 20px;
    font-style: italic;
    font-size: 1.2rem;
}

/* Mobile navigation: hidden until the hamburger button is activated. */
@media (max-width: 768px) {
    body { font-size: 16px; }

    .site-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 12px;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .site-branding {
        flex-direction: row;
        text-align: left;
        gap: 10px;
    }

    .site-branding img.custom-logo { max-width: 72px; }
    .site-title a { font-size: 1.35rem; }

    .menu-toggle { display: flex; margin-left: auto; }

    .primary-menu {
        display: none;
        flex: 0 0 100%;
        width: 100%;
        margin-top: 8px;
        padding: 12px 0 4px;
        border-top: 1px solid #eee;
    }

    .primary-menu.is-open { display: block; }

    .primary-menu ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .primary-menu li { width: 100%; }
    .primary-menu a {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 12px 8px;
        border-bottom: 1px solid #eee;
    }

    .site-footer {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

@media (min-width: 769px) {
    .menu-toggle { display: none !important; }
    .primary-menu { display: block !important; }
}
