/* ========================================
   Desktop Layout — Sidebar + Scroll Content
   ======================================== */

/* Sidebar */
.davenen-wrap .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-w);
    background: var(--primary) !important;
    display: flex;
    flex-direction: column;
    z-index: 100;
    overflow-y: auto;
    border: none !important;
}

.davenen-wrap .sidebar-brand {
    padding: 28px 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.davenen-wrap .sidebar-brand .brand-icon {
    width: 44px;
    height: 44px;
    background: var(--secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-weight: 800;
    font-size: 20px;
    margin-bottom: 12px;
}

.davenen-wrap .sidebar-brand .brand-name {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
}

.davenen-wrap .sidebar-brand .brand-tagline {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 2px;
    line-height: 1.4;
}

/* Sidebar nav items */
.davenen-wrap .sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.davenen-wrap .sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.25s ease;
    position: relative;
}

.davenen-wrap .sidebar-nav a svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    stroke: rgba(255, 255, 255, 0.45);
    transition: stroke 0.25s;
}

.davenen-wrap .sidebar-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
}

.davenen-wrap .sidebar-nav a:hover svg {
    stroke: rgba(255, 255, 255, 0.7);
}

/* Active state with gold accent */
.davenen-wrap .sidebar-nav a.active {
    background: rgba(232, 201, 74, 0.12);
    color: var(--secondary);
}

.davenen-wrap .sidebar-nav a.active svg {
    stroke: var(--secondary);
}

.davenen-wrap .sidebar-nav a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: var(--secondary);
    border-radius: 0 3px 3px 0;
}

/* Sidebar footer */
.davenen-wrap .sidebar-footer {
    padding: 16px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.davenen-wrap .sidebar-cta {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--primary);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    transition: all 0.2s;
}

.davenen-wrap .sidebar-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(232, 201, 74, 0.4);
}

/* Scroll progress indicator on sidebar */
.davenen-wrap .scroll-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0%;
    background: var(--secondary);
    transition: height 0.1s linear;
}

/* Main content area */
.davenen-wrap .main-content {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
}

/* Desktop section rhythm */
.davenen-wrap .dsection {
    min-height: 100vh;
    padding: 80px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.davenen-wrap .dsection:nth-child(even) {
    background: var(--bg);
}

.davenen-wrap .dsection-inner {
    max-width: 800px;
    width: 100%;
}

/* Hide sidebar on mobile, show full-width content */
@media (max-width: 767px) {
    .davenen-wrap .sidebar {
        display: none;
    }

    .davenen-wrap .main-content {
        margin-left: 0;
    }

    .davenen-wrap .dsection {
        min-height: auto;
        padding: 40px 20px;
    }
}
