:root {
    --bg-color: #0e0e0e;
    --text-primary: #e0e0e0;
    --text-secondary: #888888;
    --accent-color: #ffffff;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.layout-container {
    padding: 2rem;
    /* reduced from specific px to strict rem for consistency */
    position: relative;
    height: 100vh;
    overflow: hidden;
    /* Ensure background doesn't scroll weirdly */
}



#practice-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    /* Above basic background but below nav */
    pointer-events: none;
}

/* Header & Logo */
.site-header {
    position: fixed;
    top: 100px;
    left: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 1000;
    /* Ensure it stays above artistic content */
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: none;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
}

.site-header::-webkit-scrollbar {
    display: none;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    /* Hidden by default on desktop */
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    /* Above the header drawer */
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.menu-toggle .bar {
    width: 25px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.logo {
    font-weight: 700;
    font-size: 1.7rem;
    /* Resized to approx 70% of 2.4rem */
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 300px;
    /* The requested 300px spacing */
}

/* Navigation */
.main-nav {
    display: flex;
    flex-direction: column;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.nav-item {
    font-size: 2rem;
    font-weight: 400;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-item:hover,
.nav-item[aria-expanded="true"] {
    color: var(--text-primary);
}

/* 100 Practices Specifics */
.nav-item-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sub-nav-list {
    list-style: none;
    padding-left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sub-nav-item {
    font-size: 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.2s;
}

/* Unified Active State: Bold + Underbar */
.nav-item.active,
.sub-nav-item.active {
    color: var(--text-primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    opacity: 1;
}

/* Base states refinement */
.nav-item,
.sub-nav-item {
    transition: all 0.2s ease;
    display: inline-block;
    /* Ensure underline doesn't clip differently */
}

.sub-nav-item:hover {
    opacity: 1;
    color: var(--text-primary);
    font-weight: 700;
}

/* Extra padding for scroll safety */
.nav-list {
    padding-bottom: 2rem;
}

/* Content Area */
/* Main content area needs to be empty but occupy space or just exist */
.content-area {
    margin-left: 300px;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: calc(100% - 300px);
    position: relative;
    z-index: 2;
    /* Content layer */
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 1024px) {
    .menu-toggle {
        display: flex;
    }

    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        /* See-through Background with high transparency */
        background-color: rgba(14, 14, 14, 0.7);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 120px 40px;
        /* Top padding for logo/spacing, left padding for alignment */
        transform: translateY(-100%);
        opacity: 0;
        justify-content: flex-start;
        /* Left Alignment */
        align-items: flex-start;
        /* Left Alignment */
        text-align: left;
        /* Left Alignment */
        z-index: 1000;
        /* Ensure it's above all content */
    }

    .site-header.menu-open {
        transform: translateY(0);
        opacity: 1;
    }

    .logo {
        margin-bottom: 4rem;
        font-size: 1.6rem;
        font-weight: 700;
        color: var(--text-primary);
    }

    .site-header .logo {
        align-self: flex-start;
        /* Corrected to left */
    }

    .site-header .main-nav {
        align-items: flex-start;
        /* Left Alignment */
        width: 100%;
    }

    .site-header .nav-item {
        font-size: 2.2rem;
        /* Larger for mobile readability */
        font-weight: 600;
        /* Increased contrast/weight */
        justify-content: flex-start;
        color: var(--text-primary);
        /* Higher contrast */
    }

    .site-header .sub-nav-list {
        padding-left: 1.5rem;
        /* Indentation for sub-menu */
        margin-top: 1rem;
        margin-bottom: 2rem;
    }

    .site-header .sub-nav-item {
        font-size: 1.2rem;
        opacity: 0.9;
        /* Higher opacity for contrast */
    }

    .content-area {
        margin-left: 0;
        width: 100%;
        padding: 1rem;
    }

    /* Hamburger Animation to X */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}